Python class
DeviceKind
DeviceKindβ
class max.graph.DeviceKind(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
A device type representation.
CPUβ
CPU = 'cpu'
GPUβ
GPU = 'gpu'
from_string()β
static from_string(txt)
Parses a device kind from its string representation.
-
Parameters:
-
txt (str)
-
Return type:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!