Loads a ModuleSpec from a TF Hub service or the filesystem.
hub.load_module_spec(
path
)
THIS FUNCTION IS DEPRECATED.
Args
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).