Skip to content

Commit

Permalink
Update cifar10_main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
isaprykin authored Sep 15, 2017
1 parent 570ac4c commit 28d37e7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tutorials/image/cifar10_estimator/cifar10_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,10 @@ def _experiment_fn(run_config, hparams):

train_steps = hparams.train_steps
eval_steps = num_eval_examples // hparams.eval_batch_size

num_workers = run_config.num_worker_replicas


classifier = tf.estimator.Estimator(
model_fn=get_model_fn(num_gpus, variable_strategy, num_workers),
model_fn=get_model_fn(num_gpus, variable_strategy,
run_config.num_worker_replicas or 1),
config=run_config,
params=hparams)

Expand Down

0 comments on commit 28d37e7

Please sign in to comment.