Skip to content

Instantly share code, notes, and snippets.

@adityaiitb
Last active October 27, 2021 20:32
Show Gist options
  • Save adityaiitb/362f5ed0879ab2bfcba838e4e66334e4 to your computer and use it in GitHub Desktop.
Save adityaiitb/362f5ed0879ab2bfcba838e4e66334e4 to your computer and use it in GitHub Desktop.
TensorFlow Saved Model CLI

Saved Model CLI

Saved Model CLI (show)

saved_model_cli show --dir resnet/1
saved_model_cli show --dir resnet/1 --tag_set serve
saved_model_cli show --dir resnet/1 --tag_set serve --signature_def serving_default

Saved Model CLI (run)

saved_model_cli run  \
    --dir resnet/1  \
    --tag_set serve  \
    --signature_def serving_default  \
    --input_exprs 'input_1=np.random.rand(1,224,224,3)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment