Skip to content

Commit e5a9353

Browse files
committed
Merge branch 'develop' of github.com:PaddlePaddle/Paddle into reset_vars_on_pserver
2 parents 580f55f + 14242ea commit e5a9353

40 files changed

+1898
-583
lines changed

benchmark/fluid/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.7 /usr/lib/libcudnn.so && ln -s
1111
# Add "ENV http_proxy=http://ip:port" if your download is slow, and don't forget to unset it at runtime.
1212
# exmaple: unset http_proxy && unset https_proxy && python fluid_benchmark.py ...
1313

14+
1415
RUN pip install -U pip
1516
RUN pip install -U kubernetes paddlepaddle
1617

@@ -27,5 +28,6 @@ ADD *.whl /
2728
RUN pip install /*.whl && rm -f /*.whl
2829

2930
ENV LD_LIBRARY_PATH=/usr/local/lib
30-
ADD fluid_benchmark.py recordio_converter.py args.py recordio_converter.py run.sh run_fluid_benchmark.sh /workspace/
31+
ADD fluid_benchmark.py recordio_converter.py args.py recordio_converter.py run.sh run_fluid_benchmark.sh imagenet_reader.py /workspace/
3132
ADD models/ /workspace/models/
33+

benchmark/fluid/args.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
__all__ = ['parse_args', ]
1818

1919
BENCHMARK_MODELS = [
20-
"machine_translation", "resnet", "vgg", "mnist", "stacked_dynamic_lstm"
20+
"machine_translation", "resnet", "se_resnext", "vgg", "mnist",
21+
"stacked_dynamic_lstm", "resnet_with_preprocess"
2122
]
2223

2324

@@ -67,12 +68,12 @@ def parse_args():
6768
'--cpus',
6869
type=int,
6970
default=1,
70-
help='If cpus > 1, will use ParallelDo to run, else use Executor.')
71+
help='If cpus > 1, will set ParallelExecutor to use multiple threads.')
7172
parser.add_argument(
7273
'--data_set',
7374
type=str,
7475
default='flowers',
75-
choices=['cifar10', 'flowers'],
76+
choices=['cifar10', 'flowers', 'imagenet'],
7677
help='Optional dataset for benchmark.')
7778
parser.add_argument(
7879
'--infer_only', action='store_true', help='If set, run forward only.')
@@ -122,6 +123,11 @@ def parse_args():
122123
type=str,
123124
default="",
124125
help='Directory that contains all the training recordio files.')
126+
parser.add_argument(
127+
'--test_data_path',
128+
type=str,
129+
default="",
130+
help='Directory that contains all the test data (NOT recordio).')
125131
parser.add_argument(
126132
'--use_inference_transpiler',
127133
action='store_true',
@@ -130,5 +136,9 @@ def parse_args():
130136
'--no_random',
131137
action='store_true',
132138
help='If set, keep the random seed and do not shuffle the data.')
139+
parser.add_argument(
140+
'--use_lars',
141+
action='store_true',
142+
help='If set, use lars for optimizers, ONLY support resnet module.')
133143
args = parser.parse_args()
134144
return args

0 commit comments

Comments
 (0)