Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 114 for function_ref (0.17 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      graph->ToGraphDef(graphdef.get());
      return graphdef;
    }
    
    absl::Status ConvertMlirFunctionToFunctionLibraryDef(
        FuncOp func, const GraphExportConfig& configs, FunctionDef* function_def) {
      Dialect* tf_dialect = func.getContext()->getLoadedDialect("tf");
      FunctionLibraryDefinition flib_def(OpRegistry::Global(),
                                         FunctionDefLibrary());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

    #include "tensorflow/core/platform/types.h"
    #include "tsl/lib/core/status_test_util.h"
    
    namespace tensorflow {
    
    namespace {
    
    // Produce a valid graph with a resource-type input.
    FunctionDef PassThroughResource() {
      return FunctionDefHelper::Define(
          /*function_name=*/"PassThroughResource",
          /*arg_def=*/{"in: resource"},
          /*ret_def=*/{"out: resource"},
          /*attr_def=*/{},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental.cc

                                   TF_Buffer* buf, TF_Status* status) {
      auto* function_def = tensorflow::unwrap(ctx)->FindFunctionDef(function_name);
      if (function_def == nullptr) {
        status->status = tensorflow::errors::NotFound(
            "Unable to find FunctionDef with name: ", function_name);
        return;
      }
      string str = function_def->SerializeAsString();
      void* data = tensorflow::port::Malloc(str.length());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  4. tensorflow/c/eager/graph_function.cc

    namespace tensorflow {
    namespace tracing {
    namespace graph {
    GraphFunction::GraphFunction(FunctionDef fdef)
        : AbstractFunction(kGraph),
          func_record_(new FunctionRecord(std::move(fdef), {}, true)) {}
    GraphFunction::~GraphFunction() {}
    Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) {
      *fdef = &(func_record_->fdef());
      return absl::OkStatus();
    }
    }  // namespace graph
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 04 19:49:06 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

        node_name_image["identity1"]->AddAttr("_oc", "1");
        PartialTensorShape shape({2});
        node_name_image["identity1"]->AddAttr(
            kXlaInferredShapesAttrName, std::vector<PartialTensorShape>{shape});
    
        FunctionDef *xla_fdef = fdl.add_function();
        TF_CHECK_OK(GraphToFunctionDef(*g, "cluster", xla_fdef));
      }
      FunctionLibraryDefinition fld(OpRegistry::Global(), fdl);
    
      protobuf::Map<string, tensorflow::AttrValue> attrs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

        auto ret0 = ops::_Retval(s.WithOpName("ret0"), arg1, 0);
        auto ret1 = ops::_Retval(s.WithOpName("ret1"), arg0, 1);
        std::unique_ptr<Graph> g(new Graph(OpRegistry::Global()));
        TF_CHECK_OK(s.ToGraph(g.get()));
        FunctionDef *xla_fdef = fdl.add_function();
        TF_CHECK_OK(GraphToFunctionDef(*g, "f1", xla_fdef));
      }
      {
        // Function for While's "body".
        // "arg0" (T=DT_RESOURCE), "arg1" (T=DT_BOOL)
        // "ret0" = "arg0"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/core/revived_types/tf_signature_def_function_revival_state.h

    struct TFSignatureDefFunctionRevivalState {
      // Index of the node in the SavedObjectGraph it was loaded from.
      int node_id = 0;
    
      // Pointer to the original functiondef. fdef_ is guaranteed to be
      // non-null.
      const FunctionDef* fdef = nullptr;
    
      // SavedConcreteFunction contains much of the metadata of the expected "types"
      // of the inputs and outputs of a function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 23 04:49:47 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/revived_types/tf_concrete_function_revival_state.h

    struct TFConcreteFunctionRevivalState {
      // Index of the node in the SavedObjectGraph it was loaded from.
      int node_id;
    
      // Pointer to the original functiondef. fdef_ is guaranteed to be
      // non-null.
      const FunctionDef* fdef;
    
      // TensorHandle captures for this funtion
      std::vector<ImmediateExecutionTensorHandle*> captures;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 23 04:49:47 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

      op_builder.create<mlir::func::ReturnOp>(loc, tf_op->getResults());
    
      // Run the decompose passes on the module
      TF_RETURN_IF_ERROR(DecomposeGraph(module));
    
      // Export the result as a FunctionDef.
      FunctionDef func_def;
      TF_RETURN_IF_ERROR(
          ConvertMlirFunctionToFunctionLibraryDef(func, export_confs_, &func_def));
      module.erase();
      return func_def;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_function.cc

    TF_Function* TF_FunctionImportFunctionDef(const void* proto, size_t proto_len,
                                              TF_Status* status) {
      tensorflow::FunctionDef fdef;
      bool success = fdef.ParseFromArray(proto, proto_len);
      if (!success) {
        status->status = InvalidArgument(
            "Invalid FunctionDef given to TF_FunctionImportFunctionDef");
        return nullptr;
      }
    
      TF_Function* func = new TF_Function();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top