pub struct Caps {
pub name: &'static str,
pub threads: usize,
pub graphs: bool,
pub unified_memory: bool,
}Expand description
What a backend can do.
Fields§
§name: &'static strcpu, cuda, metal or ane.
threads: usizeWorker threads, for the CPU.
graphs: boolWhether plans are captured as device graphs, which makes padding to the bucket matter.
unified_memory: boolWhether host and device share memory.
Trait Implementations§
impl Eq for Caps
impl StructuralPartialEq for Caps
Auto Trait Implementations§
impl Freeze for Caps
impl RefUnwindSafe for Caps
impl Send for Caps
impl Sync for Caps
impl Unpin for Caps
impl UnsafeUnpin for Caps
impl UnwindSafe for Caps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more