- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for Localhost (0.17 sec)
-
tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc
job_def->set_name(job_name); for (int i = 0; i < num_tasks; i++) { int port = tensorflow::testing::PickUnusedPortOrDie(); job_def->mutable_tasks()->insert( {i, tensorflow::strings::StrCat("localhost", ":", port)}); LOG(INFO) << "Picked test port: " << port << " for job: " << job_name << ", task: " << i; } return server_def; } namespace tensorflow { namespace parallel_device {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 27 22:09:57 GMT 2023 - 6.7K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
} void TestConnectToCluster(bool keep_localhost_for_first_connect) { // Fail fast on GetStatus requests so we can get errors instead of timeout // when updating cluster with non-exsitent worker tensorflow::setenv("GRPC_FAIL_FAST", "TRUE", /*overwrite=*/1); const string first_name = keep_localhost_for_first_connect ? "localhost" : "abc"; tensorflow::ServerDef server_def = GetServerDef(first_name, 1);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Apr 14 10:03:59 GMT 2023 - 19.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_distributed_test.cc
EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status); const char task0_name[] = "/job:localhost/replica:0/task:0/device:CPU:0"; const char task1_name[] = "/job:localhost/replica:0/task:1/device:CPU:0"; const char task2_name[] = "/job:localhost/replica:0/task:2/device:CPU:0"; // Create one variable per task. TFE_TensorHandle* h0 = TestVariable(ctx, 1.0, task1_name);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 23.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
job_def->mutable_tasks()->insert( {i, tensorflow::strings::StrCat("localhost:", port)}); LOG(INFO) << "Picked test port: " << port << " for job: " << job_name << ", task: " << i; } return server_def; } tensorflow::ServerDef GetServerDef(int num_tasks) { return GetServerDef("localhost", num_tasks); } tensorflow::ServerDef GetMultiClientServerDef(const std::string& job_name,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 23.5K bytes - Viewed (2) -
tensorflow/c/eager/c_api_experimental_test.cc
auto cluster = server_def.mutable_cluster(); auto client_job = cluster->add_job(); client_job->set_name("localhost"); int client_port = tensorflow::testing::PickUnusedPortOrDie(); client_job->mutable_tasks()->insert( {0, strings::StrCat("localhost:", client_port)}); server_def.set_job_name("localhost"); auto serialized = server_def.SerializeAsString();
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
// cluster { job { name: "client" tasks { key: 0 value: "localhost:14525" } } // job { name: "worker" tasks { key: 1 value: "localhost:14523" } } // } job_name: "worker" task_index: 1 protocol: "grpc" // // Worker0: // cluster { job { name: "client" tasks { key: 0 value: "localhost:14526" } } // job { name: "worker" tasks { key: 0 value: "localhost:14522" } }
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_api_experimental_test.cc
TEST(CAPI_EXPERIMENTAL, GetServerDefTest) { const string expected_text_proto(R"(cluster { job { name: "worker" tasks { key: 0 value: "tpuserver:0" } tasks { key: 1 value: "localhost:1" } } } job_name: "worker" task_index: 1 protocol: "grpc" )"); TF_Status* status = TF_NewStatus(); TF_Buffer* result = TFE_GetServerDef(expected_text_proto.c_str(), status);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jan 17 22:27:52 GMT 2023 - 13.1K bytes - Viewed (1) -
tensorflow/c/eager/c_api_experimental.cc
const char* prefix, TF_Status* status) { 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 =
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 11 23:52:39 GMT 2024 - 35.9K bytes - Viewed (3) -
tensorflow/c/eager/c_api.cc
return nullptr; } std::vector<std::unique_ptr<tensorflow::Device>> devices; status->status = tensorflow::DeviceFactory::AddDevices( opts->session_options.options, "/job:localhost/replica:0/task:0", &devices); if (!status->status.ok()) return nullptr; std::unique_ptr<tensorflow::DeviceMgr> device_mgr( new tensorflow::DynamicDeviceMgr(std::move(devices)));
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 43.9K bytes - Viewed (2)