Trait cubecl_runtime::memory_management::MemoryHandle

source ·
pub trait MemoryHandle<Binding>: Clone + Send + Sync + Debug {
    // Required methods
    fn can_mut(&self) -> bool;
    fn binding(self) -> Binding;
}
Expand description

The managed tensor buffer handle that points to some memory segment. It should not contain actual data.

Required Methods§

source

fn can_mut(&self) -> bool

Checks if the underlying memory can be safely mutated.

source

fn binding(self) -> Binding

Get the binding associated to the current handle.

Object Safety§

This trait is not object safe.

Implementors§