Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for num_virtual_gpus (0.25 sec)

  1. 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`.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Jul 17 23:43:59 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. 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);
        }
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top