hub.load_module_spec

hub.load_module_spec(path)

Loads a ModuleSpec from the filesystem.

Args:

  • 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.

Returns:

A ModuleSpec.

Raises:

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