vortex_torch.flow.loader¶
Functions
|
Build a vFlow instance from a previously registered class. |
Exceptions
Errors while validating or constructing the flow instance. |
|
Errors while loading/exec user modules or resolving classes. |
- exception vortex_torch.flow.loader.FlowLoadError[source]¶
Bases:
ExceptionErrors while loading/exec user modules or resolving classes.
- exception vortex_torch.flow.loader.FlowInitError[source]¶
Bases:
ExceptionErrors while validating or constructing the flow instance.
- vortex_torch.flow.loader.build_vflow(selected, init_kwargs=None, user_file=None)[source]¶
Build a vFlow instance from a previously registered class.
- Parameters:
- Return type:
- Behavior:
If user_file is provided, it will be executed (imported) to trigger any @register(…) calls inside the file.
Then we fetch the class from the global registry by ‘selected’.
We validate constructor kwargs and instantiate the class.
- Raises:
FlowLoadError – When file import fails or selected key is missing.
FlowInitError – When constructor validation/instantiation fails.
- Parameters:
- Return type: