Source code for tensorial.config

from typing import Any

import hydra
import omegaconf

__all__ = ("instantiate",)


[docs] def instantiate(cfg: omegaconf.OmegaConf, **kwargs) -> Any: """Given an omegaconf configuration, instantiate the corresponding object""" return hydra.utils.instantiate(cfg, _convert_="object", **kwargs)