question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docs: model: tensorflow hub: Include examples of how to use from Python API

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pdxjohnnycommented, May 8, 2020

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.

0reactions
mHash1mcommented, May 8, 2020

@pdxjohnny sure thing. I’ll start with 619.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found