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