- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TF_AddInput (0.06 sec)
-
tensorflow/c/c_api.h
// You must use TF_AddInput() for the first input (since it takes a // single tensor), and TF_AddInputList() for the second input (since // it takes a list, even if you were to pass a list with a single // tensor), as in: // TF_OperationDescription* desc = TF_NewOperation(graph, "Concat", "c"); // TF_Output concat_dim_input = {...}; // TF_AddInput(desc, concat_dim_input);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
if (transpose_a) { TF_SetAttrBool(desc, "transpose_a", 1); } if (transpose_b) { TF_SetAttrBool(desc, "transpose_b", 1); } TF_AddInput(desc, {l, 0}); TF_AddInput(desc, {r, 0}); TF_Operation* op = TF_FinishOperation(desc, s); EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); return op; }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
void UseHelper(const std::vector<TF_Output>& inputs, TF_Operation** op) { TF_OperationDescription* desc = TF_NewOperation(host_graph_, func_name_, func_node_name_); for (auto input : inputs) { TF_AddInput(desc, input); } // Set device to CPU because some ops inside the function might not be // available on GPU. TF_SetDevice(desc, "/cpu:0"); *op = TF_FinishOperation(desc, s_);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0)