# tf_agents.utils.lazy_loader.LazyLoader

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/lazy_loader.py#L28-L68) |

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.