Struct tvm::Device [−][src]
pub struct Device {
pub device_type: DeviceType,
pub device_id: usize,
}
Fields
device_type: DeviceType
device_id: usize
Implementations
Trait Implementations
Creates a Device from a string (e.g., “cpu”, “cuda”, “ext_dev”)
Auto Trait Implementations
impl RefUnwindSafe for Device
impl UnwindSafe for Device
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more