Struct tvm::function::ffi::DLDevice [−][src]
Expand description
\brief A Device for Tensor and operator.
Fields
device_type: u32
\brief The device type used in the device.
device_id: i32
\brief The device index
Implementations
Trait Implementations
Creates a DLDevice from a string (e.g., “cpu”, “cuda”, “ext_dev”)
Auto Trait Implementations
impl RefUnwindSafe for DLDevice
impl UnwindSafe for DLDevice
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