tensortools.abc
abstract
abstract(func)
An abstract decorator. Raises a NotImplementedError if called.
Arguments:
func: The function.
Returns:
The wrapper function.
LazyLoader
LazyLoader(self, local_name, parent_module_globals, name)
Lazily import a module, mainly to avoid pulling in large dependencies.
contrib, and ffmpeg are examples of modules that are large and not always
needed, and this allows them to only be loaded when they are used.