- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TF_NewOperation (0.06 sec)
-
tensorflow/c/c_test_util.cc
TF_OperationDescription* desc = TF_NewOperation(graph, "AddN", name); TF_Output inputs[2] = {l, r}; TF_AddInputList(desc, inputs, 2); return TF_FinishOperation(desc, s); } void NegHelper(TF_Operation* n, TF_Graph* graph, TF_Status* s, const char* name, TF_Operation** op) { TF_OperationDescription* desc = TF_NewOperation(graph, "Neg", name); TF_Output neg_input = {n, 0};
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Sat Oct 04 05:55:32 UTC 2025 - 17.8K bytes - Viewed (1) -
tensorflow/c/c_api_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); constant_ = ScalarConst(10, graph_, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); desc_ = TF_NewOperation(graph_, "AddN", "add"); TF_Output inputs[] = {{feed1_, 0}, {constant_, 0}}; TF_AddInputList(desc_, inputs, TF_ARRAYSIZE(inputs)); } ~CApiColocationTest() override { TF_DeleteGraph(graph_);
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Mon Nov 17 00:00:38 UTC 2025 - 97K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
// exceptions are disabled during compilation) 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.
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Mon Nov 17 00:00:38 UTC 2025 - 63.6K bytes - Viewed (1) -
tensorflow/c/c_api.cc
const char* oper_name) TF_EXCLUSIVE_LOCKS_REQUIRED(graph->mu) { return new TF_OperationDescription(graph, op_type, oper_name); } TF_OperationDescription* TF_NewOperation(TF_Graph* graph, const char* op_type, const char* oper_name) { mutex_lock l(graph->mu); return TF_NewOperationLocked(graph, op_type, oper_name); }Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Sat Oct 04 05:55:32 UTC 2025 - 102.4K bytes - Viewed (0)