File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 25
25
26
26
import math
27
27
import os
28
+ import sys
28
29
29
30
# pylint: disable=g-bad-import-order
30
31
from absl import flags
@@ -389,6 +390,12 @@ def resnet_main(
389
390
This is only used if flags_obj.export_dir is passed.
390
391
"""
391
392
393
+ print ("\n " * 3 )
394
+ tf .logging .info ("TF version: {}" .format (tf .VERSION ))
395
+ tf .logging .info ("TF git version: {}" .format (tf .GIT_VERSION ))
396
+ print ("\n " * 3 )
397
+ sys .stdout .flush ()
398
+
392
399
model_helpers .apply_clean (flags .FLAGS )
393
400
394
401
# Using the Winograd non-fused algorithms provides a small performance boost.
@@ -487,7 +494,9 @@ def input_fn_eval():
487
494
488
495
if num_train_epochs :
489
496
classifier .train (input_fn = lambda : input_fn_train (num_train_epochs ),
490
- hooks = train_hooks , max_steps = flags_obj .max_train_steps )
497
+ hooks = train_hooks , steps = 5 )
498
+
499
+ continue # We don't need eval for this repro.
491
500
492
501
tf .logging .info ('Starting to evaluate.' )
493
502
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -e
3
+
4
+ pushd ../..
5
+ export PYTHONPATH=$( pwd)
6
+ popd
7
+
8
+ TIME=$( date +%s)
9
+
10
+ python3 imagenet_main.py --clean --data_dir /imn/imagenet/combined/ \
11
+ --model_dir /tmp/garden_imagenet --train_epochs 30 --batch_size 2048 --resnet_version 1 \
12
+ --resnet_size 50 --dtype fp16 --num_gpus 8 | & tee imagenet_garden_${TIME} .log
You can’t perform that action at this time.
0 commit comments