- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for TF_Graph (0.04 sec)
-
tensorflow/c/c_api_internal.h
// will eventually contain the full while loop. TF_Graph* parent; TF_Output* parent_inputs; }; struct TF_OperationDescription { TF_OperationDescription(TF_Graph* g, const char* op_type, const char* node_name) : node_builder(node_name, op_type, g->graph.op_registry()), graph(g) {} tensorflow::NodeBuilder node_builder; TF_Graph* graph;
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Sat May 13 00:49:12 UTC 2023 - 7.6K bytes - Viewed (0) -
tensorflow/c/c_api_function.cc
status->status = g->graph.AddGradientDef(std::move(gdef)); } int TF_GraphNumFunctions(TF_Graph* g) { tensorflow::mutex_lock l(g->mu); return g->graph.flib_def().num_functions(); } int TF_GraphGetFunctions(TF_Graph* g, TF_Function** funcs, int max_func, TF_Status* status) { tensorflow::FunctionDefLibrary lib; {
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 13.7K bytes - Viewed (0) -
tensorflow/c/c_api.h
// Graphs are thread-safe when used as directed below. typedef struct TF_Graph TF_Graph; // Return a new graph object. TF_CAPI_EXPORT extern TF_Graph* TF_NewGraph(void); // Destroy an options object. Graph will be deleted once no more // TFSession's are referencing it. TF_CAPI_EXPORT extern void TF_DeleteGraph(TF_Graph*); // Operation being built. The underlying graph must outlive this.
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0) -
tensorflow/c/c_api.cc
} TF_Graph* TF_NewGraph() { return new TF_Graph; } void TF_DeleteGraph(TF_Graph* g) { if (g == nullptr) return; g->mu.lock(); g->delete_requested = true; const bool del = g->sessions.empty(); g->mu.unlock(); if (del) delete g; } TF_Operation* TF_GraphOperationByName(TF_Graph* graph, const char* oper_name) { mutex_lock l(graph->mu);
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Tue May 13 06:30:43 UTC 2025 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_DeleteStatus(s); } /* TODO(skyewm): this test currently DCHECKs, change to bad status TEST(CAPI, InputFromDifferentGraphError) { TF_Status* s = TF_NewStatus(); TF_Graph* g1 = TF_NewGraph(); TF_Graph* g2 = TF_NewGraph(); TF_Operation* feed = Placeholder(g1, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); // Attempt to create node in g2 with input from g1 Neg(feed, g2, s);
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Fri Dec 27 12:18:10 UTC 2024 - 97K bytes - Viewed (0) -
tensorflow/c/c_api_experimental_test.cc
#endif // !defined(PLATFORM_WINDOWS) } void DefineFunction(const char* name, TF_Function** func, const char* description = nullptr, bool append_hash = false) { std::unique_ptr<TF_Graph, decltype(&TF_DeleteGraph)> func_graph( TF_NewGraph(), TF_DeleteGraph); std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> s(TF_NewStatus(), TF_DeleteStatus);
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.h
// `len`. The format is subject to change in the future. // The returned string is heap-allocated, and caller should call free() on it. TF_CAPI_EXPORT extern const char* TF_GraphDebugString(TF_Graph* graph, size_t* len); // Returns the function content in a human-readable format, with length set in // `len`. The format is subject to change in the future.
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Thu Apr 27 21:07:00 UTC 2023 - 15.1K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
TF_DeleteBuffer(attr_buf); } const char* func_name_ = "MyFunc"; const char* func_node_name_ = "MyFunc_0"; TF_Status* s_; TF_Graph* func_graph_; TF_Graph* host_graph_; TF_Function* func_; // Workaround for not being able to initialize empty map using {} std::unordered_set<string> empty_; };
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (1) -
tensorflow/c/c_api_experimental.cc
options.set_trace_level(tensorflow::RunOptions::NO_TRACE); } TF_Buffer* ret = TF_NewBuffer(); TF_CHECK_OK(MessageToBuffer(options, ret)); return ret; } const char* TF_GraphDebugString(TF_Graph* graph, size_t* len) { tensorflow::mutex_lock c(graph->mu); const auto& debug_str = graph->graph.ToGraphDefDebug().DebugString(); *len = debug_str.size(); char* ret = static_cast<char*>(malloc(*len + 1));
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Mon Aug 18 03:53:25 UTC 2025 - 29.5K bytes - Viewed (0)