Thanks for tuning in to Google I/O. View all sessions on demandWatch on demand

hub.load_module_spec

Loads a ModuleSpec from a TF Hub service or the filesystem.

THIS FUNCTION IS DEPRECATED.

path string describing the location of a module. There are several supported path encoding schemes: a) A URL like "https://hub.tensorflow.google.cn/the/module/1" referring to hub.tensorflow.google.cn or another service implementing https://www.tensorflow.org/hub/hosting. b) A URL like "https://example.com/module.tar.gz" that points to a compressed tarball directly, as long as that web server ignores the query parameters added by https://www.tensorflow.org/hub/hosting. c) Any filesystem location of a module directory (e.g. /module_dir for a local filesystem). All filesystems implementations provided by Tensorflow are supported. d) Private name resolution schemes added by the maintainer of your local installation of the tensorflow_hub library (usually none).

A ModuleSpec.

ValueError on unexpected values in the module spec.
tf.errors.OpError on file handling exceptions.