Skip to content

Commit

Permalink
fix: Update dataset location for resnet models
Browse files Browse the repository at this point in the history
Signed-off-by: Sun, Xuehao <[email protected]>
  • Loading branch information
XuehaoSun committed Jul 1, 2024
1 parent 4418482 commit 7a5e0ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ done

CONFIG_PATH="/neural-compressor/examples/.config/model_params_onnxrt.json"
model_src_dir=$(jq -r ".\"onnxrt\".\"$model\".\"model_src_dir\"" "$CONFIG_PATH")
if [ $model == *"resnet"* ]; then
if [[ "$model" == *"resnet"* ]]; then
dataset_location="/tf_dataset2/datasets/imagenet/ImagenetRaw/ImagenetRaw_small_5000/ILSVRC2012_img_val"
label_path="/tf_dataset2/datasets/imagenet/ImagenetRaw/ImagenetRaw_small_5000/val.txt"

Check warning on line 25 in .azure-pipelines/scripts/models/run_onnxrt_models_trigger.sh

View workflow job for this annotation

GitHub Actions / Optional Lint

[shellcheck] reported by reviewdog 🐶 label_path appears unused. Verify use (or export if used externally). Raw Output: ./.azure-pipelines/scripts/models/run_onnxrt_models_trigger.sh:25:5: warning: label_path appears unused. Verify use (or export if used externally). (ShellCheck.SC2034)
else
Expand Down

0 comments on commit 7a5e0ee

Please sign in to comment.