- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetServerDef (0.06 sec)
-
tensorflow/c/eager/c_api_test_util.h
// Create a ServerDef with the given `job_name` and add `num_tasks` tasks in it. tensorflow::ServerDef GetServerDef(const tensorflow::string& job_name, int num_tasks); // Create a ServerDef with job name "localhost" and add `num_tasks` tasks in it. tensorflow::ServerDef GetServerDef(int num_tasks); // Create a multi-client ServerDef with the given `job_name`, add `num_tasks`
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Jul 17 23:43:59 UTC 2023 - 7.7K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc
#include "tensorflow/core/platform/strcat.h" #include "tensorflow/core/platform/test.h" #include "tensorflow/core/protobuf/cluster.pb.h" #include "tensorflow/core/protobuf/tensorflow_server.pb.h" tensorflow::ServerDef GetServerDef(const std::string& job_name, int num_tasks) { tensorflow::ServerDef server_def; server_def.set_protocol("grpc"); server_def.set_job_name(job_name); server_def.set_task_index(0);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Jul 10 07:18:05 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/c/eager/c_api_remote_test.cc
#include "tensorflow/core/protobuf/tensorflow_server.pb.h" namespace { using ::tensorflow::string; void TestRemoteExecute(bool async) { tensorflow::ServerDef server_def = GetServerDef(2); // This server def has the task index set to 0. string serialized = server_def.SerializeAsString(); server_def.set_task_index(1); std::unique_ptr<tensorflow::GrpcServer> worker_server;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Aug 12 00:14:22 UTC 2020 - 5.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_remote_test_util.cc
bool remote_func_outputs, bool has_packed_input) { CHECK(!has_packed_input || func); tensorflow::ServerDef server_def = GetServerDef(3); // This server def has the task index set to 0. string serialized = server_def.SerializeAsString(); server_def.set_task_index(1); std::unique_ptr<tensorflow::GrpcServer> worker_server1;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Dec 11 22:56:03 UTC 2020 - 9.1K bytes - Viewed (0)