espnet2.asr.state_spaces.utils.instantiate
Less than 1 minute
espnet2.asr.state_spaces.utils.instantiate
espnet2.asr.state_spaces.utils.instantiate(registry, config, *args, partial=False, wrap=None, **kwargs)
Instantiate registered module.
registry: Dictionary mapping names to functions or target paths : (e.g. {‘model’: ‘models.SequenceModel’})
config: Dictionary with a ‘name’ key indicating which element of the registry : to grab, and kwargs to be passed into the target constructor
wrap: wrap the target class (e.g. ema optimizer or tasks.wrap)
*
args,
**
kwargs: additional arguments
to override the config to pass into the target constructor