- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SessionOptions (0.08 sec)
-
tensorflow/c/eager/c_api_experimental.cc
std::vector<std::unique_ptr<tensorflow::Device>> devices; if (prefix == nullptr || strlen(prefix) == 0) prefix = "/job:localhost/replica:0/task:0"; tensorflow::SessionOptions sess_options; (*sess_options.config.mutable_device_count())["CPU"] = num_cpus; status->status = tensorflow::DeviceFactory::AddCpuDevices(sess_options, prefix, &devices);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 35.9K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TestEncodeDecode(__LINE__, {"the", "quick", "brown", "fox", "jumped", "over"}); string big(1000, 'a'); TestEncodeDecode(__LINE__, {"small", big, "small2"}); } TEST(CAPI, SessionOptions) { TF_SessionOptions* opt = TF_NewSessionOptions(); TF_DeleteSessionOptions(opt); } TEST(CAPI, DeprecatedSession) { TF_Status* s = TF_NewStatus(); TF_SessionOptions* opt = TF_NewSessionOptions();
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)