This reference describes unreleased code on main; no release documents it yet.

rlmesh::Device

enumPreviewuse rlmesh::Device;[source]

Device a tensor's storage lives on, mirroring DLPack's DLDeviceType.

enum Device

Cpu

variant[source]
Cpu = 1

Host CPU memory (kDLCPU).

as_str

method[source]
fn as_str(self) -> &'static str

Python’s spelling of the device ("cpu").

Trait implementations

  • impl Debug for Device
  • impl Clone for Device
  • impl Copy for Device
  • impl StructuralPartialEq for Device
  • impl PartialEq for Device
  • impl Eq for Device
  • impl Hash for Device
  • impl Display for Device