Skip to content

Commit 9077b38

Browse files
authored
Refine Pytorch 3x Mixed Precision Example (#1946)
Signed-off-by: zehao-intel <[email protected]>
1 parent efcb293 commit 9077b38

File tree

7 files changed

+4
-507
lines changed

7 files changed

+4
-507
lines changed

examples/.config/model_params_pytorch_3x.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"dataset_location": "/tf_dataset/pytorch/ImageNet/raw",
153153
"input_model": "resnet18",
154154
"main_script": "main.py",
155-
"batch_size": 100
155+
"batch_size": 20
156156
}
157157
}
158158
}

examples/3.x_api/pytorch/cv/mixed_precision/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ bash run_autotune.sh --input_model=resnet18 --dataset_location=/path/to/imagenet
3636
## Benchmark
3737
```Shell
3838
# run optimized performance
39-
bash run_benchmark.sh --input_model=resnet18 --dataset_location=/path/to/imagenet --mode=performance --batch_size=100 --optimized=true --iters=500
39+
bash run_benchmark.sh --input_model=resnet18 --dataset_location=/path/to/imagenet --mode=performance --batch_size=20 --optimized=true --iters=500
40+
4041
# run optimized accuracy
4142
bash run_benchmark.sh --input_model=resnet18 --dataset_location=/path/to/imagenet --mode=accuracy --batch_size=1 --optimized=true
4243
```

examples/3.x_api/pytorch/cv/mixed_precision/run_benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function main {
1313
function init_params {
1414
iters=100
1515
tuned_checkpoint=saved_results
16-
batch_size=30
16+
batch_size=20
1717
for var in "$@"
1818
do
1919
case $var in

examples/3.x_api/pytorch/image_recognition/torchvision_models/mixed_precision/resnet18/README.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)