Skip to content

Commit

Permalink
fix jq cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Sun, Xuehao <[email protected]>
  • Loading branch information
XuehaoSun committed Jun 24, 2024
1 parent f44f811 commit e3dfcef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .azure-pipelines/scripts/models/run_onnxrt_models_trigger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ for i in "$@"; do
done

CONFIG_PATH=/neural-compressor/examples/.config/model_params_onnxrt.json
model_src_dir=$(jq .onnxrt.$model.model_src_dir $CONFIG_PATH)
dataset_location=$(jq .onnxrt.$model.dataset_location $CONFIG_PATH)
input_model=$(jq .onnxrt.$model.input_model $CONFIG_PATH)
model_src_dir=$(jq '."onnxrt"."$model"."model_src_dir"' $CONFIG_PATH)
dataset_location=$(jq '."onnxrt"."$model"."dataset_location"' $CONFIG_PATH)
input_model=$(jq '."onnxrt"."$model"."input_model"' $CONFIG_PATH)

function run_prepare_model() {
if [ -f "$input_model" ]; then
Expand Down

0 comments on commit e3dfcef

Please sign in to comment.