View source on GitHub |
Lazily import a module, mainly to avoid pulling in large dependencies.
tf_agents.utils.lazy_loader.LazyLoader(
local_name, parent_module_globals, name, warning=None
)
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.