vortex_torch.flow.registry¶
Functions
|
Return the registered class for a given name, or raise if not found. |
|
Check whether a name is registered. |
List all registered names. |
|
|
Decorator used by users to register their vFlow subclasses. |
Exceptions
Errors related to class registration and lookup. |
- exception vortex_torch.flow.registry.RegistryError[source]¶
Bases:
ExceptionErrors related to class registration and lookup.
- vortex_torch.flow.registry.register(name)[source]¶
Decorator used by users to register their vFlow subclasses. .. rubric:: Example
@register(“cls_a”) class MyFlow(vFlow): …
- Parameters:
name (str)
- vortex_torch.flow.registry.get(name)[source]¶
Return the registered class for a given name, or raise if not found.