Rate this Page

torch.cpu.is_initialized#

torch.cpu.is_initialized()[source]#

Returns True if the CPU is initialized. Always True.

N.B. This function only exists to facilitate device-agnostic code

Return type

bool