- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for ServerDef (0.07 sec)
-
tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc
#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/immediate_execution_distributed_manager.h
#include <cstdint> #include <string> #include "tensorflow/core/platform/status.h" namespace tsl { class CoordinationServiceAgent; } namespace tensorflow { class ImmediateExecutionContext; class ServerDef; class WorkerEnv; class WorkerCacheInterface; class ImmediateExecutionDistributedManager { public: virtual ~ImmediateExecutionDistributedManager() {}
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
} return server_def; } tensorflow::ServerDef GetServerDef(int num_tasks) { return GetServerDef("localhost", num_tasks); } tensorflow::ServerDef GetMultiClientServerDef(const std::string& job_name, int num_tasks, int num_virtual_gpus) { tensorflow::ServerDef server_def; server_def.set_protocol("grpc");
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
#include "tensorflow/core/protobuf/cluster.pb.h" #include "tensorflow/core/protobuf/tensorflow_server.pb.h" namespace { using ::tensorflow::string; void ReplaceTaskInServerDef(tensorflow::ServerDef* server_def, int task_index) { tensorflow::JobDef* job_def = server_def->mutable_cluster()->mutable_job(0); int port = tensorflow::testing::PickUnusedPortOrDie(); job_def->mutable_tasks()->at(task_index) =
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 19.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_distributed_test.cc
" key: 'sum'" " value: 'add2:z:0'" " }", &def)); return def.SerializeAsString(); } void TestFunctionWithPackedInput(const bool remote) { 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);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 23.4K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
} TF_Buffer* TFE_GetServerDef(const char* text_proto, TF_Status* status) { tensorflow::ServerDef server_def; if (!tensorflow::protobuf::TextFormat::ParseFromString(text_proto, &server_def)) { status->status = tensorflow::errors::Internal( "Invalid text proto for ServerDef: ", text_proto); return nullptr; } status->status = absl::Status();
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 29.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
"TFE_ContextSetServerDef not supported on mobile"); #else // !defined(IS_MOBILE_PLATFORM) tensorflow::ServerDef server_def; if (!server_def.ParseFromArray(proto, proto_len)) { status->status = tensorflow::errors::InvalidArgument( "Invalid tensorflow.ServerDef protocol buffer"); return; } status->status = tensorflow::unwrap(ctx)->GetDistributedManager()->SetOrUpdateServerDef(
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 43.9K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_context.h
// all tasks in the cluster. // This call internally coordinates with other tasks to initialize the eager // context and TF server for multi-client execution. virtual absl::Status EnableCollectiveOps(const ServerDef& server_def) = 0; // Set a distributed manager that helps set up, update, and check liveness // of member tasks in the cluster. virtual void SetDistributedManager(
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.cc
const void* proto, size_t proto_len, TF_Status* status) { tensorflow::ServerDef server_def; if (!server_def.ParseFromArray(proto, proto_len)) { status->status = tensorflow::errors::InvalidArgument( "Invalid tensorflow.ServerDef protocol buffer"); return; } status->status = tensorflow::unwrap(ctx) ->GetDistributedManager()
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/eager/c_api_experimental.h
// Dynamic cluster API. // Update an existing context with a new set of servers defined in a ServerDef // proto. Servers can be added to and removed from the list of remote workers // in the context. A New set of servers identified by the ServerDef must be up // when the context is updated. // // This API is for experimental usage and may be subject to change.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 39.5K bytes - Viewed (0)