docs: model: tensorflow hub: Include examples of how to use from Python API
See original GitHub issueThe model plugins page has command line examples but needs examples from Python as well.
Copy the format of the examples/quickstart_filenames.py
file and add a .. code-block:: python
section for each model, keeping the Python example consistent with the command line example for each model. Let’s add the python example after the CLI example for each.
For the tensorflow hub model, the docstring of the Model
needs to be updated.
Edit:
Here’s a good example from when tensorflow was updated: https://github.com/intel/dffml/commit/e7aaeb1e1e2f1b2ce74d1fe6ecc6422bf6df178c
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
TensorFlow Hub
Tutorials show you end-to-end examples using TensorFlow Hub. See models. Find trained TF, TFLite, and TF.js models for your use case.
Read more >hub.Module - TensorFlow
The hub.Module API works for TF1 only. For TF2, switch to plain SavedModels and hub.load(). A Module represents a part of a TensorFlow...
Read more >Transfer learning with TensorFlow Hub
TensorFlow Hub is a repository of pre-trained TensorFlow models. This tutorial demonstrates how to: Use models from TensorFlow Hub with tf.keras .
Read more >hub.KerasLayer | TensorFlow Hub
This layer wraps a callable object for use as a Keras layer. The callable object can be passed directly, or be specified by...
Read more >SavedModels from TF Hub in TensorFlow 2
The SavedModel format of TensorFlow 2 is the recommended way to share pre-trained models and model pieces on TensorFlow Hub.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You could also do https://github.com/intel/dffml/issues/619 first and then not do the Python example with
literalinclude
, but with the normal>>>
instead.@pdxjohnny sure thing. I’ll start with 619.