Shortcuts

CPUAccelerator

class lightning.pytorch.accelerators.CPUAccelerator[소스]

기반 클래스: lightning.pytorch.accelerators.accelerator.Accelerator

Accelerator for CPU devices.

static auto_device_count()[소스]

Get the devices when set to auto.

반환 형식

int

get_device_stats(device)[소스]

Get CPU stats from psutil package.

반환 형식

Dict[str, Any]

static get_parallel_devices(devices)[소스]

Gets parallel devices for the Accelerator.

반환 형식

List[device]

static is_available()[소스]

CPU is always available for execution.

반환 형식

bool

static parse_devices(devices)[소스]

Accelerator device parsing logic.

반환 형식

int

setup_device(device)[소스]
예외 발생

MisconfigurationException – If the selected device is not CPU.

반환 형식

None

teardown()[소스]

Clean up any state created by the accelerator.

반환 형식

None