mlx.core.Device# class Device# 用于运行操作的设备。 __init__(self, type: mlx.core.DeviceType, index: int = 0) → None# 方法 __init__(self, type[, index]) 属性 type (self) -> mlx.core.DeviceType