klyn.math.nn.Device.list
method
public static list() as ArrayList<Device>
Description

Lists the CPU and detected NVIDIA GPUs; CPU is always present. Device initialization and operation compatibility are validated on use.

Returns

Fresh list of concrete devices; unsupported NPU execution is not advertised.

Example

for device in Device.list(): print(device)