lingvo.model_imports module

Global import for model hyper-parameters.

Using this module any ModelParams can be accessed via GetParams.

lingvo.model_imports._Import(name)[source]

Imports the python module of the given name.

lingvo.model_imports._InsertParams(module)[source]

Try inserting ‘params’ everywhere in the module.

lingvo.model_imports.ImportAllParams(task_root='lingvo.tasks', task_dirs=('asr', 'image', 'lm', 'milan', 'mt', 'punctuator'), require_success=False)[source]

Import all ModelParams to add to the global registry.

lingvo.model_imports.ImportParams(model_name, task_root='lingvo.tasks', require_success=True)[source]

Attempts to only import the files that may contain the model.