Skip to content

Commit

Permalink
Add test case for config.pbtxt check for models not supporting auto-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmayv25 authored Sep 14, 2022
1 parent d37a50d commit 91f0a95
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unable to find the model configuration file
14 changes: 13 additions & 1 deletion qa/L0_model_config/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ done
mkdir -p special_cases/invalid_platform/1
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/savedmodel_float32_float32_float32/1/model.savedmodel \
special_cases/invalid_platform/1/
# Note that graphdef models don't support auto-complete-config
# and that is why we are using graphdef model in this test case.
mkdir -p special_cases/noautofill_noconfig/1
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/graphdef_float32_float32_float32/1/model.graphdef \
special_cases/noautofill_noconfig/1/

# Copy reshape model files into the test model repositories.
mkdir -p autofill_noplatform_success/tensorflow_graphdef/reshape_config_provided/1
Expand Down Expand Up @@ -335,7 +340,14 @@ done

# Run special test cases
for TARGET in `ls special_cases`; do
SERVER_ARGS="--model-repository=`pwd`/models --strict-model-config=true"
case $TARGET in
"invalid_platform")
EXTRA_ARGS="--disable-auto-complete-config" ;;
*)
EXTRA_ARGS="" ;;
esac

SERVER_ARGS="--model-repository=`pwd`/models $EXTRA_ARGS"
SERVER_LOG=$SERVER_LOG_BASE.special_case_${TARGET}.log

rm -fr models && mkdir models
Expand Down

0 comments on commit 91f0a95

Please sign in to comment.