leaspy.algo.utils.algo_with_device module
- class AlgoWithDeviceMixin(settings)
Bases:
objectMixin class containing common attributes & methods for algorithms with a torch device.
- Parameters:
- settings
AlgorithmSettings The specifications of the algorithm as a
AlgorithmSettingsinstance.
- settings
- Attributes:
- algorithm_devicestr
Valid torch device (only the type of the device is used)