Trait burn::tensor::backend::DeviceOps

pub trait DeviceOps:
    Clone
    + Default
    + PartialEq
    + Send
    + Sync
    + Debug {
    // Required method
    fn id(&self) -> DeviceId;
}
Expand description

The handle device trait allows to get an id for a backend device.

Required Methods§

fn id(&self) -> DeviceId

Return the device id.

Object Safety§

This trait is not object safe.

Implementors§