Skip to content

Commit

Permalink
Refine Pytorch 3x Mixed Precision Example (#1946)
Browse files Browse the repository at this point in the history
Signed-off-by: zehao-intel <zehao.huang@intel.com>
  • Loading branch information
zehao-intel authored Jul 23, 2024
1 parent efcb293 commit 9077b38
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 507 deletions.
2 changes: 1 addition & 1 deletion examples/.config/model_params_pytorch_3x.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"dataset_location": "/tf_dataset/pytorch/ImageNet/raw",
"input_model": "resnet18",
"main_script": "main.py",
"batch_size": 100
"batch_size": 20
}
}
}
3 changes: 2 additions & 1 deletion examples/3.x_api/pytorch/cv/mixed_precision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ bash run_autotune.sh --input_model=resnet18 --dataset_location=/path/to/imagenet
## Benchmark
```Shell
# run optimized performance
bash run_benchmark.sh --input_model=resnet18 --dataset_location=/path/to/imagenet --mode=performance --batch_size=100 --optimized=true --iters=500
bash run_benchmark.sh --input_model=resnet18 --dataset_location=/path/to/imagenet --mode=performance --batch_size=20 --optimized=true --iters=500

# run optimized accuracy
bash run_benchmark.sh --input_model=resnet18 --dataset_location=/path/to/imagenet --mode=accuracy --batch_size=1 --optimized=true
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function main {
function init_params {
iters=100
tuned_checkpoint=saved_results
batch_size=30
batch_size=20
for var in "$@"
do
case $var in
Expand Down

This file was deleted.

Loading

0 comments on commit 9077b38

Please sign in to comment.