- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for num_virtual_gpus (0.1 seconds)
-
tensorflow/c/eager/c_api_test_util.h
// Create a multi-client ServerDef with the given `job_name`, add `num_tasks` // tasks and `num_virtual_gpus` virtual GPUs in it. tensorflow::ServerDef GetMultiClientServerDef(const std::string& job_name, int num_tasks, int num_virtual_gpus = 0); // Create a variable handle with name `variable_name` on a device with name // `device_name`.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Mon Jul 17 23:43:59 GMT 2023 - 7.7K bytes - Click Count (0) -
tensorflow/c/eager/c_api_test_util.cc
if ((tensorflow::IsGoogleCudaEnabled() || tensorflow::IsBuiltWithROCm()) && num_virtual_gpus > 0) { tensorflow::GPUOptions* gpu_options = server_def.mutable_default_session_config()->mutable_gpu_options(); auto virtual_devices = gpu_options->mutable_experimental()->add_virtual_devices(); for (int i = 0; i < num_virtual_gpus; ++i) { virtual_devices->add_memory_limit_mb(200); } }
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Oct 09 05:56:18 GMT 2025 - 23.4K bytes - Click Count (0)