161f891255fd65a08c27eb9746272c89f2484090,perfkitbenchmarker/linux_benchmarks/resnet_benchmark.py,,Run,#Any#,219

Before Change


              cmd=resnet_benchmark_cmd_step,
              tpu=(benchmark_spec.tpu_groups["eval"].GetName() if
                   benchmark_spec.tpus else ""),
              num_cores=(benchmark_spec.tpu_groups["eval"].GetNumShards() if
                         benchmark_spec.tpus else 0)))
      stdout, stderr = vm.RobustRemoteCommand(resnet_benchmark_eval_cmd,
                                              should_log=True)
      samples.extend(MakeSamplesFromEvalOutput(

After Change


        cmd=resnet_benchmark_cmd, step=step)
    if benchmark_spec.mode in ("train", "train_and_eval"):
      if benchmark_spec.tpus:
        tpu = benchmark_spec.tpu_groups["train"].GetName()
        num_cores = "--num_cores={}".format(
            benchmark_spec.tpu_groups["train"].GetNumShards())
      else:
        tpu = num_cores = ""
      resnet_benchmark_train_cmd = (
          "{cmd} --tpu={tpu} --mode=train {num_cores}".format(
              cmd=resnet_benchmark_cmd_step,
              tpu=tpu, num_cores=num_cores))
      start = time.time()
      stdout, stderr = vm.RobustRemoteCommand(resnet_benchmark_train_cmd,
                                              should_log=True)
      elapsed_seconds += (time.time() - start)
      samples.extend(mnist_benchmark.MakeSamplesFromTrainOutput(
          metadata, stdout + stderr, elapsed_seconds, step))
    if benchmark_spec.mode in ("train_and_eval", "eval"):
      if benchmark_spec.tpus:
        tpu = benchmark_spec.tpu_groups["eval"].GetName()
        num_cores = "--num_cores={}".format(
            benchmark_spec.tpu_groups["eval"].GetNumShards())
      else:
        tpu = num_cores = ""
      resnet_benchmark_eval_cmd = (
          "{cmd} --tpu={tpu} --mode=eval {num_cores}".format(
              cmd=resnet_benchmark_cmd_step,
              tpu=tpu, num_cores=num_cores))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 161f891255fd65a08c27eb9746272c89f2484090
Time: 2019-02-28
Author: tohaowu@google.com
File Name: perfkitbenchmarker/linux_benchmarks/resnet_benchmark.py
Class Name:
Method Name: Run


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 161f891255fd65a08c27eb9746272c89f2484090
Time: 2019-02-28
Author: tohaowu@google.com
File Name: perfkitbenchmarker/linux_benchmarks/inception3_benchmark.py
Class Name:
Method Name: Run


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: da8eec455b854554093ca80da3b6524a860888f5
Time: 2019-02-28
Author: tohaowu@google.com
File Name: perfkitbenchmarker/linux_benchmarks/mnist_benchmark.py
Class Name:
Method Name: Run