IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

DeviceKind

DeviceKind

class max.graph.DeviceKind(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

source

Bases: str, Enum

A device type representation.

CPU

CPU = 'cpu'

source

GPU

GPU = 'gpu'

source

NPU

NPU = 'npu'

source

from_string()

static from_string(txt)

source

Parses a device kind from its string representation.

Parameters:

txt (str)

Return type:

DeviceKind