Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 54 for function_ref (0.26 sec)

  1. tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc

      return std::make_pair(dtype, tensorflow::PartialTensorShape(dims));
    }
    
    }  // namespace
    
    Status MapFunctionSignaturesFromTFSavedModelMLIR(
        mlir::ModuleOp module,
        llvm::function_ref<void(const TFRTSavedModelSignatureInfo&)> map_fn) {
      // Create bound inputs for each functions.
      mlir::SymbolTable symbol_table(module);
      tensorflow::Status status = absl::OkStatus();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

        };
    
        auto dequant_values =
            mlir::cast<DenseIntOrFPElementsAttr>(input_values)
                .mapValues(FloatType::getF32(rewriter.getContext()),
                           llvm::function_ref<DequantizeFuncType>(dequantize_func));
        rewriter.replaceOpWithNewOp<TFL::ConstOp>(dequant_op, dequant_op.getType(),
                                                  dequant_values);
    
        return success();
      }
    };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf.cc

    using mlir::func::FuncOp;
    
    // Run the TF XLA Bridge based on the input pipeline, which can be either TPU
    // bridge pipeline or non TPU bridge pipeline.
    tensorflow::Status RunTFXLABridge(
        ModuleOp module,
        llvm::function_ref<void(OpPassManager &pm)> pipeline_builder,
        llvm::StringRef module_name = llvm::StringRef(),
        llvm::StringRef dump_prefix = "tf_xla_bridge_v2") {
      // Explicitly check that the TensorFlow dialect can constant fold ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:25:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/core/revived_types/flat_tensor_function.h

     public:
      // Factory for creating a FlatTensorFunction.
      //
      // Params:
      //  function_def - The function_def associated with the created
      //                 FlatTensorFunction. FlatTensorFunction will register this
      //                 function_def with `ctx` on creation, and de-register it on
      //                 destruction. function_def must be non-null, but
      //                 otherwise has no lifetime requirements.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 22 21:03:41 UTC 2020
    - 3.8K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/revived_types/flat_tensor_function.cc

      if (!status.ok()) {
        LOG(ERROR) << "Failed to remove functiondef " << name_ << ". "
                   << status.message();
      }
    }
    
    Status FlatTensorFunction::Create(
        const FunctionDef* function_def,
        std::vector<ImmediateExecutionTensorHandle*> captures,
        ImmediateExecutionContext* ctx, std::unique_ptr<FlatTensorFunction>* out) {
      TF_RETURN_IF_ERROR(ctx->AddFunctionDef(*function_def));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def.h

      for (tensorflow::NodeDef& node_def : *graph_def.mutable_node()) {
        func(node_def);
      }
    
      for (tensorflow::FunctionDef& function_def :
           *graph_def.mutable_library()->mutable_function()) {
        for (tensorflow::NodeDef& node_def : *function_def.mutable_node_def()) {
          func(node_def);
        }
      }
    }
    
    }  // namespace stablehlo::quantization
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 28 18:38:06 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/core/revived_types/tf_concrete_function.h

     public:
      // Factory function for creating a TFConcreteFunction.
      //
      // Params:
      //  function_def - The function_def associated with the created
      //                 TFConcreteFunction. TFConcreteFunction will register this
      //                 function_def with `ctx` on creation, and de-register it on
      //                 destruction. function_def must be non-null, but
      //                 otherwise has no lifetime requirements.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/revived_types/tf_signature_def_function.h

      // Factory function for creating a TFSignatureDefFunction.
      //
      // Params:
      //  function_def - The function_def associated with the created
      //                 TFSignatureDefFunction. TFSignatureDefFunction will
      //                 register this function_def with `ctx` on creation, and
      //                 de-register it on destruction. function_def must be
      //                 non-null, but otherwise has no lifetime requirements.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/core/saved_model_utils.h

    gtl::FlatMap<StringPiece, const AttrValueMap*, StringPieceHasher> NodeToAttrMap(
        const tensorflow::GraphDef& graphdef);
    
    // Maps the name of each FunctionDef in `library` to its corresponding
    // FunctionDef. Callers must ensure `library` outlives the returned map.
    gtl::FlatMap<StringPiece, const tensorflow::FunctionDef*, StringPieceHasher>
    FunctionNameToFunctionDefMap(const FunctionDefLibrary& library);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 13 04:18:52 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/core/revived_types/tf_concrete_function.cc

    Status TFConcreteFunction::Create(
        const FunctionDef* function_def,
        std::vector<ImmediateExecutionTensorHandle*> captures,
        FunctionMetadata metadata, ImmediateExecutionContext* ctx,
        std::unique_ptr<TFConcreteFunction>* out) {
      std::unique_ptr<FlatTensorFunction> func;
      TF_RETURN_IF_ERROR(FlatTensorFunction::Create(
          function_def, std::move(captures), ctx, &func));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 06:55:27 UTC 2020
    - 2.4K bytes
    - Viewed (0)
Back to top