rszper commented on code in PR #27276:
URL: https://github.com/apache/beam/pull/27276#discussion_r1244325097


##########
examples/notebooks/beam-ml/run_inference_with_tensorflow_hub.ipynb:
##########
@@ -104,7 +104,10 @@
       "cell_type": "markdown",
       "source": [
         "## Use TensorFlow Hub's trained model URL\n",
-        "To use TensorFlow Hub's trained model URL, pass the model URL to the 
`model_uri` field of `TFModelHandler` class."
+        "To use TensorFlow Hub's trained model URL, pass the model URL to the 
`model_uri` field of `TFModelHandler` class.\n",
+        "\n",
+        "**Note:** Only models saved with [TF2 
format](https://www.tensorflow.org/tutorials/keras/save_and_load#save_the_entire_model)
 are compatible with `TFModelHandler`.\n",
+        "Checkout 
[this](https://tfhub.dev/s?subtype=module,placeholder&tf-version=tf2) for TF2 
models on TensorFlow Hub."

Review Comment:
   ```suggestion
           "To see TF2 models, go to the [TF2 section of the TensorFlow 
Hub](https://tfhub.dev/s?subtype=module,placeholder&tf-version=tf2)."
   ```



##########
examples/notebooks/beam-ml/run_inference_with_tensorflow_hub.ipynb:
##########
@@ -104,7 +104,10 @@
       "cell_type": "markdown",
       "source": [
         "## Use TensorFlow Hub's trained model URL\n",
-        "To use TensorFlow Hub's trained model URL, pass the model URL to the 
`model_uri` field of `TFModelHandler` class."
+        "To use TensorFlow Hub's trained model URL, pass the model URL to the 
`model_uri` field of `TFModelHandler` class.\n",
+        "\n",
+        "**Note:** Only models saved with [TF2 
format](https://www.tensorflow.org/tutorials/keras/save_and_load#save_the_entire_model)
 are compatible with `TFModelHandler`.\n",

Review Comment:
   ```suggestion
           "**Note:** Only models that you save in the [TF2 
format](https://www.tensorflow.org/tutorials/keras/save_and_load#save_the_entire_model)
 are compatible with `TFModelHandler`.\n",
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to