You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: official/keras_application_models/README.md
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,19 @@ Synthetic dataset is used for the benchmark.
19
19
Two custom callbacks are provided for model benchmarking: ExamplesPerSecondCallback and LoggingMetricCallback. For each callback, `epoch_based` and `batch_based` options are available to set the benchmark level. Check [model_callbacks.py](model_callbacks.py) for more details.
20
20
21
21
## Running Code
22
-
To benchmark a model, use `--model` to specify the model name, and issue the following command:
22
+
To benchmark a model, use `--model` to specify the model name. To perform the benchmark with eager execution, issue the following command:
23
23
```
24
-
python benchmark_main.py --model=resnet
24
+
python benchmark_main.py --model resnet50 --eager
25
25
```
26
+
Note that, if eager execution is enabled, only one GPU is utilized even if multiple GPUs are provided and multi_gpu_model is used.
27
+
28
+
29
+
To use distribution strategy in the benchmark, run the following:
0 commit comments