Mojo module
device
Defines the types and functions to interact with hardware devices.
For example, you can create a CPU device like this:
from max.driver import cpu_device
def main():
device = cpu_device()
Structsβ
- β
Device
: Represents a logical instance of a device, for eg: CPU. This can be used to allocate and manage memory in a device's address space, and to compile and execute models and graphs on a device.
Functionsβ
- β
cpu_device
: Creates a CPU Device.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
π What went wrong?