hub.load_module_spec(path)
Loads a ModuleSpec from the filesystem.
path
: string describing the location of a module. There are several supported path encoding schemes: a) URL location specifying an archived module (e.g. http://domain/module.tgz) b) Any filesystem location of a module directory (e.g. /module_dir for a local filesystem). All filesystems implementations provided by Tensorflow are supported.A ModuleSpec.
ValueError
: on unexpected values in the module spec.tf.OpError
: on file handling exceptions.
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/hub/load_module_spec