- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for KSession (0.18 sec)
-
tensorflow/c/c_api_test.cc
std::unique_ptr<CSession> csession(new CSession(graph_, s_)); std::unique_ptr<CSession> expected_csession( new CSession(expected_graph_, s_)); std::vector<TF_Output> grad_outputs_vec; grad_outputs_vec.assign(grad_outputs, grad_outputs + 2); csession->SetOutputs(grad_outputs_vec); csession->Run(s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/c_api_internal.h
}; struct TF_Operation { tensorflow::Node node; private: ~TF_Operation() = default; }; struct TF_Session { TF_Session(tensorflow::Session* s, TF_Graph* g); tensorflow::Session* session; TF_Graph* const graph; tensorflow::mutex mu TF_ACQUIRED_AFTER(TF_Graph::mu); int last_num_graph_nodes;
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sat May 13 00:49:12 GMT 2023 - 7.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_test.cc
TFE_DeleteExecutor(executor); TFE_DeleteContext(ctx); } TEST(CAPI, CreateLocalContextAsReset) { tensorflow::ServerDef server_def = GetServerDef("worker", 2); server_def.mutable_default_session_config()->set_isolate_session_state(false); ServerFactory* factory; ASSERT_TRUE(ServerFactory::GetFactory(server_def, &factory).ok()); server_def.set_job_name("worker"); server_def.set_task_index(0);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 03:14:26 GMT 2023 - 31.5K bytes - Viewed (1) -
tensorflow/c/eager/c_api_test.cc
TFE_DeleteContext(ctx); } TEST(CAPI, ShareVariableAcrossContextsWorks) { // TODO(shreepadma): Add a test case with isolate_session_state set to true. tensorflow::ServerDef server_def_0 = GetServerDef(3); server_def_0.mutable_default_session_config()->set_isolate_session_state( false); tensorflow::ServerDef server_def_1 = ReplaceTaskInServerDef(server_def_0, /*task_index=*/0);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 20:50:20 GMT 2023 - 94.6K bytes - Viewed (1) -
tensorflow/c/c_test_util.cc
return names; } CSession::CSession(TF_Graph* graph, TF_Status* s, bool use_XLA) { TF_SessionOptions* opts = TF_NewSessionOptions(); TF_EnableXLACompilation(opts, use_XLA); session_ = TF_NewSession(graph, opts, s); TF_DeleteSessionOptions(opts); } CSession::CSession(TF_Session* session) : session_(session) {} CSession::~CSession() { TF_Status* s = TF_NewStatus();
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:52 GMT 2021 - 17.8K bytes - Viewed (2) -
tensorflow/c/BUILD
":tf_status_internal", ":tf_tensor_internal", "//tensorflow/core:protos_all_cc", "@com_google_absl//absl/status", ], ) filegroup( name = "pywrap_tf_session_hdrs", srcs = [ "python_api.h", ], visibility = [ "//tensorflow/core:__pkg__", "//tensorflow/python:__pkg__", ], ) cc_library(
Plain Text - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Mar 27 18:00:18 GMT 2024 - 30.3K bytes - Viewed (0) -
tensorflow/c/c_api.cc
} TF_Session* session = new TF_Session(bundle.session.release(), graph); graph->sessions[session] = ""; session->last_num_graph_nodes = graph->graph.num_node_ids(); return session; #endif // defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD) } void TF_CloseSession(TF_Session* s, TF_Status* status) { status->status = s->session->Close(); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api.h
// TFE_Context must outlive all tensor handles created using it. In other // words, TFE_DeleteContext() must be called after all tensor handles have // been deleted (with TFE_DeleteTensorHandle). // // TODO(ashankar): Merge with TF_Session? typedef struct TFE_Context TFE_Context; TF_CAPI_EXPORT extern TFE_Context* TFE_NewContext( const TFE_ContextOptions* opts, TF_Status* status); TF_CAPI_EXPORT extern void TFE_DeleteContext(TFE_Context* ctx);
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 27 21:07:00 GMT 2023 - 22.8K bytes - Viewed (1) -
tensorflow/c/c_test_util.h
// Returns a sorted vector of names contained in `grad_def` std::vector<string> GetFuncNames(const tensorflow::GraphDef& graph_def); class CSession { public: CSession(TF_Graph* graph, TF_Status* s, bool use_XLA = false); explicit CSession(TF_Session* session); ~CSession(); void SetInputs(std::vector<std::pair<TF_Operation*, TF_Tensor*>> inputs); void SetOutputs(std::initializer_list<TF_Operation*> outputs);
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 09 01:06:53 GMT 2018 - 6K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
const std::vector<std::vector<int32_t>>& expected_results) { // Create a session for this graph CSession csession(host_graph_, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); // Run csession.SetInputs(inputs); csession.SetOutputs(outputs); csession.Run(s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); // Check results
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 20 22:08:54 GMT 2023 - 63.6K bytes - Viewed (6)