예제 #1
0
def Prepare(benchmark_spec):
  """Install and set up TensorFlow on the target vm.

  Args:
    benchmark_spec: The benchmark specification
  """
  _UpdateBenchmarkSpecWithFlags(benchmark_spec)
  vms = benchmark_spec.vms
  vm_util.RunThreaded(_PrepareVm, vms)
  benchmark_spec.tensorflow_version = tensorflow.GetTensorFlowVersion(vms[0])
def Prepare(benchmark_spec):
    """Install and set up TensorFlow on the target vm.

  Args:
    benchmark_spec: The benchmark specification
  """
    _UpdateBenchmarkSpecWithFlags(benchmark_spec)
    vms = benchmark_spec.vms
    vm_util.RunThreaded(_PrepareVm, vms)
    benchmark_spec.tensorflow_version = tensorflow.GetTensorFlowVersion(vms[0])

    if nvidia_driver.CheckNvidiaGpuExists(vms[0]):
        benchmark_spec.gpu_type = nvidia_driver.GetGpuType(vms[0])
예제 #3
0
def Prepare(benchmark_spec):
    """Install and set up TensorFlow on the target vm.

  Args:
    benchmark_spec: The benchmark specification
  """
    _UpdateBenchmarkSpecWithFlags(benchmark_spec)
    vms = benchmark_spec.vms
    master_vm = vms[0]
    master_vm.Install('tensorflow')
    benchmark_spec.tensorflow_version = tensorflow.GetTensorFlowVersion(
        master_vm)
    _InstallTensorFlowBenchmarks(benchmark_spec)