예제 #1
0
def main(_):
  with logger.benchmark_context(FLAGS), \
      mlperf_helper.LOGGER(FLAGS.output_ml_perf_compliance_logging):
    mlperf_helper.set_ncf_root(os.path.split(os.path.abspath(__file__))[0])
    if FLAGS.tpu:
      raise ValueError("NCF in Keras does not support TPU for now")
    run_ncf(FLAGS)
예제 #2
0
 def test_benchmark_context_failure(self, mock_config_benchmark_logger):
   mock_logger = mock.MagicMock()
   mock_config_benchmark_logger.return_value = mock_logger
   with self.assertRaises(RuntimeError):
     with logger.benchmark_context(None):
       raise RuntimeError("training error")
   mock_logger.on_finish.assert_called_once_with(logger.RUN_STATUS_FAILURE)
예제 #3
0
def main(_):
    with logger.benchmark_context(flags_obj):
        run_deep_speech(flags_obj)
예제 #4
0
def main(_):
    model_helpers.apply_clean(flags.FLAGS)
    with logger.benchmark_context(flags.FLAGS):
        stats = run(flags.FLAGS)
    logging.info('Run stats:\n%s', stats)
예제 #5
0
def main(_):
    model_helpers.apply_clean(flags.FLAGS)
    with logger.benchmark_context(flags.FLAGS):
        return run(flags.FLAGS)
예제 #6
0
def main(_):
  with logger.benchmark_context(flags.FLAGS):
    return run(flags.FLAGS)
def main(_):
    with logger.benchmark_context(flags.FLAGS):
        run_transformer(flags.FLAGS)
예제 #8
0
def main(_):
    with logger.benchmark_context(flags.FLAGS):
        run_movie(flags.FLAGS)
예제 #9
0
def main(_):
  with logger.benchmark_context(flags.FLAGS):
    run_wide_deep(flags.FLAGS)
예제 #10
0
def main(_):
    with logger.benchmark_context(flags.FLAGS):  # 调用配置Logger
        run_transformer(flags.FLAGS)  # 将参数传递给transformer
예제 #11
0
def main(_):
  model_helpers.apply_clean(flags.FLAGS)
  with logger.benchmark_context(flags.FLAGS):
    return run(flags.FLAGS)
예제 #12
0
def main(_):  #FLAGS
    #pass
    with logger.benchmark_context(flags.FLAGS):
        #pass
        run_retinopathy(flags.FLAGS)
예제 #13
0
def main(_):
    model_helpers.apply_clean(flags.FLAGS)
    ckpt = "./models/model.ckpt-0060"
    with logger.benchmark_context(flags.FLAGS):
        evaluate_model(flags.FLAGS, ckpt)
예제 #14
0
def main(_):
  with logger.benchmark_context(flags_obj):
    run_deep_speech(flags_obj)
예제 #15
0
def main(_):
    with logger.benchmark_context(flags.FLAGS):
        # Note: flags_obj 是在这里定义的
        # print('flags.FLAGS',flags.FLAGS)
        run_cifar(flags.FLAGS)
예제 #16
0
def main(_):
  with logger.benchmark_context(flags.FLAGS):
    run_imagenet(flags.FLAGS)
예제 #17
0
def main(_):
  with logger.benchmark_context(FLAGS), \
       mlperf_helper.LOGGER(FLAGS.output_ml_perf_compliance_logging):
    mlperf_helper.set_ncf_root(os.path.split(os.path.abspath(__file__))[0])
    run_ncf(FLAGS)
    mlperf_helper.stitch_ncf()
예제 #18
0
def main(_):
    with logger.benchmark_context(FLAGS):
        run_ncf(FLAGS)
예제 #19
0
def main(_):
    with logger.benchmark_context(FLAGS), mlperf_helper.LOGGER(FLAGS.ml_perf):
        mlperf_helper.set_ncf_root(os.path.split(os.path.abspath(__file__))[0])
        run_ncf(FLAGS)
        mlperf_helper.stitch_ncf()
예제 #20
0
def main(_):
  with logger.benchmark_context(flags.FLAGS):
    run_movie(flags.FLAGS)
예제 #21
0
def main(_):
    with logger.benchmark_context(FLAGS):
        run_keras_model_benchmark(FLAGS)
예제 #22
0
def start(_): # Xinyi modified
  with logger.benchmark_context(flags.FLAGS):
    eval_accuracy = run_cifar(flags.FLAGS)
    
    return eval_accuracy, flags.FLAGS.model_id
예제 #23
0
def main(_):
  with logger.benchmark_context(FLAGS), \
      mlperf_helper.LOGGER(FLAGS.output_ml_perf_compliance_logging):
    mlperf_helper.set_ncf_root(os.path.split(os.path.abspath(__file__))[0])
    run_ncf(FLAGS)
예제 #24
0
 def test_benchmark_context(self, mock_config_benchmark_logger):
   mock_logger = mock.MagicMock()
   mock_config_benchmark_logger.return_value = mock_logger
   with logger.benchmark_context(None):
     tf.compat.v1.logging.info("start benchmarking")
   mock_logger.on_finish.assert_called_once_with(logger.RUN_STATUS_SUCCESS)
 def test_benchmark_context(self, mock_config_benchmark_logger):
   mock_logger = mock.MagicMock()
   mock_config_benchmark_logger.return_value = mock_logger
   with logger.benchmark_context(None):
     logging.info("start benchmarking")
   mock_logger.on_finish.assert_called_once_with(logger.RUN_STATUS_SUCCESS)
예제 #26
0
def main(_):
    with logger.benchmark_context(flags.FLAGS):
        run_retinopathy(flags.FLAGS)
예제 #27
0
def main(_):
  with logger.benchmark_context(flags.FLAGS):
    run_imagenet(flags.FLAGS)
예제 #28
0
def main(_):
  with logger.benchmark_context(FLAGS):
    run_keras_model_benchmark(FLAGS)
예제 #29
0
def main(_):
    with logger.benchmark_context(flags.FLAGS):
        return run(flags.FLAGS)
def main(_):
    with logger.benchmark_context(flags.FLAGS):
        # Main Function
        run_wide_deep(flags.FLAGS)
예제 #31
0
def main(_):
  with logger.benchmark_context(flags.FLAGS):
    stats = run(flags.FLAGS)
  if stats:
    logging.info('Run stats:\n%s', stats)
예제 #32
0
def main(_):
  with logger.benchmark_context(FLAGS):
    run_ncf(FLAGS)
예제 #33
0
def main(_):
  with logger.benchmark_context(flags.FLAGS):
    run_cifar(flags.FLAGS)
예제 #34
0
def main(_):
  with logger.benchmark_context(flags.FLAGS):
    run_transformer(flags.FLAGS)
예제 #35
0
def main(_):
  with logger.benchmark_context(flags.FLAGS):
    run_cifar(flags.FLAGS)
예제 #36
0
def main(_):
    with logger.benchmark_context(flags_obj):
        run(flags_obj)