Skip to content

Commit

Permalink
[tensorflow] fix optOption usage document (deepjavalibrary#1001)
Browse files Browse the repository at this point in the history
Change-Id: Ie044839cf082d63010a5c26d3f2f8833447919c6
  • Loading branch information
frankfliu authored Jun 8, 2021
1 parent a26f5b2 commit 8286930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tensorflow/how_to_import_tensorflow_models_in_DJL.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Criteria<Image, DetectedObjects> criteria =
.setTypes(Image.class, DetectedObjects.class)
.optFilter("backbone", "mobilenet_v2")
.optEngine("TensorFlow")
.optOption("Tags", new String[] {})
.optOption("Tags", "")
.optOption("SignatureDefKey", "default")
.optProgress(new ProgressBar())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public TfSymbolBlock(SavedModelBundle bundle, String signatureDefKey) {
+ "not found in Saved Model Bundle."
+ "Available keys: "
+ String.join(" ", keys)
+ "Please use .optOptions(\"SignatureDefKey\", \"value\") with Criteria.builder to load the model."
+ "Please use .optOption(\"SignatureDefKey\", \"value\") with Criteria.builder to load the model."
+ "Normally the value is \"default\" for TF1.x models and \"serving_default\" for TF2.x models. "
+ "Refer to: https://www.tensorflow.org/guide/saved_model"
+ "Loading the model using next available key.");
Expand Down

0 comments on commit 8286930

Please sign in to comment.