Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TF_GraphToFunction (0.2 sec)

  1. tensorflow/c/c_api_function_test.cc

                   const std::vector<string>& output_names,
                   bool expect_failure = false) {
        ASSERT_EQ(func_, nullptr);
        const char** output_names_ptr = ToArray(output_names);
        func_ = TF_GraphToFunction(func_graph_, func_name_, false, num_opers,
                                   num_opers == -1 ? nullptr : opers.data(),
                                   inputs.size(), inputs.data(), outputs.size(),
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  2. tensorflow/c/c_api_function.cc

      TF_Function* tf_function = new TF_Function();
      tf_function->record = new tensorflow::FunctionRecord(
          std::move(fdef), std::move(stack_traces), false);
    
      return tf_function;
    }
    
    TF_Function* TF_GraphToFunction(const TF_Graph* fn_body, const char* fn_name,
                                    unsigned char append_hash_to_fn_name,
                                    int num_opers, const TF_Operation* const* opers,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  3. tensorflow/c/c_api_experimental_test.cc

      TF_Operation* feed = Placeholder(func_graph.get(), s.get());
      TF_Operation* neg = Neg(feed, func_graph.get(), s.get());
    
      TF_Output inputs[] = {{feed, 0}};
      TF_Output outputs[] = {{neg, 0}};
      *func = TF_GraphToFunction(func_graph.get(), name, append_hash, -1,
                                 /*opers=*/nullptr, 1, inputs, 1, outputs,
                                 /*output_names=*/nullptr,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  4. tensorflow/c/eager/c_api_unified_experimental_graph.cc

                "been implemented yet.");
          }
          graph_outputs.push_back(output->output_);
        }
    
        auto s = TF_NewStatus();
        auto func = TF_GraphToFunction(graph_.get(), name_.data(), 0, -1, nullptr,
                                       inputs_.size(), inputs_.data(),
                                       graph_outputs.size(), graph_outputs.data(),
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  5. tensorflow/c/eager/c_api.h

    TF_CAPI_EXPORT extern void TFE_ContextAddFunctionDef(
        TFE_Context* ctx, const char* serialized_function_def, size_t size,
        TF_Status* status);
    
    // Adds a function (created from TF_GraphToFunction or
    // TF_FunctionImportFunctionDef) to the context, allowing it to be executed with
    // TFE_Execute by creating an op with the same name as the function.
    TF_CAPI_EXPORT extern void TFE_ContextAddFunction(TFE_Context* ctx,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  6. tensorflow/c/eager/c_api_experimental_test.cc

      TF_Operation* id = TF_FinishOperation(id_descr, status);
      ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
      TF_Output input{arg, 0};
      TF_Output output{id, 0};
      TF_Function* fn =
          TF_GraphToFunction(function_graph, "ident", 0, 1, &id, 1, &input, 1,
                             &output, nullptr, nullptr, "test", status);
      ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
      TF_DeleteGraph(function_graph);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  7. tensorflow/c/c_api.h

        const TF_FunctionOptions* opts, const char* description, TF_Status* status);
    
    // Similar to TF_GraphToFunction but allows specifying control outputs of the
    // function.
    //
    //  The arguments of TF_GraphToFunction have the same meaning, but the new
    //  arguments are as follows:
    //
    //    ncontrol_outputs: Number of control outputs of the function.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  8. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      TF_Operation* operations[]{placeholder_op, reduce_op};
      TF_Output y{reduce_op, 0};
      const char* output_name = "y";
      std::unique_ptr<TF_Function, decltype(&TF_DeleteFunction)> function(
          TF_GraphToFunction(
              /* fn_body */ body.get(), /* fn_name */ function_name,
              /* append_hash_to_fn_name */ 0, /* num_opers */ 2,
              /* opers */ operations, /* ninputs */ 1, /* inputs */ &x,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
Back to top