Skip to content

Commit

Permalink
Add bash quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-smnk committed Jul 31, 2024
1 parent 25c9763 commit ea52d6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/mlir_bench/mlp_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ for MB in "${MINI_BATCHES[@]}"; do
MODEL_CONFIG=(-l="linear[${MB},${LAYER},${LAYER}] relu[]")
fi
GEN_FLAGS=(-t ${DATA_TYPE} -n ${MODEL_NAME})
if [ ${IS_DYNAMIC} ]; then
if [ "${IS_DYNAMIC}" ]; then
GEN_FLAGS+=(--dynamic)
fi
python3 ${MODEL_GEN} "${MODEL_CONFIG[@]}" "${GEN_FLAGS[@]}"
Expand Down
2 changes: 1 addition & 1 deletion tools/mlir_bench/ov_raw_mlir_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if ! [ "$(command -v ${BENCH_RUNNER})" ]; then
echo "Missing benchmark runner ${BENCH_RUNNER}"
exit 1
fi
if [ ${IS_DYNAMIC} ]; then
if [ "${IS_DYNAMIC}" ]; then
echo "Dynamic shapes are not supported by ${BENCH_RUNNER}"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion tools/mlir_bench/tpp_mlir_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if ! [ "$(command -v ${BENCH_RUNNER})" ]; then
echo "Missing benchmark runner ${BENCH_RUNNER}"
exit 1
fi
if [ ${IS_DYNAMIC} ]; then
if [ "${IS_DYNAMIC}" ]; then
echo "Dynamic shapes are not supported by ${BENCH_RUNNER}"
exit 1
fi
Expand Down

0 comments on commit ea52d6b

Please sign in to comment.