novaphy.Device¶
Device descriptor used by ModelBuilder.finalize(device=...) and by various
backend constructors to identify a compute device.
Constructors¶
| Constructor | Description |
|---|---|
Device.cpu() |
CPU device. |
Device.cuda(ordinal=0) |
CUDA device with given ordinal. |
Attributes¶
| Attribute | Description |
|---|---|
type |
DeviceType. |
ordinal |
Integer device ordinal (CUDA). |