otx.algorithms.anomaly.adapters.anomalib.strategies#

Lightning strategy for single XPU device.

Classes

SingleXPUStrategy([device, accelerator, ...])

Strategy for training on single XPU device.

class otx.algorithms.anomaly.adapters.anomalib.strategies.SingleXPUStrategy(device: device | str | int = 'xpu:0', accelerator: Accelerator | None = None, checkpoint_io: CheckpointIO | None = None, precision_plugin: PrecisionPlugin | None = None)[source]#

Bases: SingleDeviceStrategy

Strategy for training on single XPU device.

setup_optimizers(trainer: Trainer) None[source]#

Sets up optimizers.

property is_distributed: bool#

Returns true if the strategy supports distributed training.