Enum cubecl_core::compute::TensorState
source · pub enum TensorState<R: Runtime> {
Empty,
Some {
bindings: Vec<Binding<R::Server>>,
metadata: Vec<u32>,
lengths: Vec<u32>,
},
}
Expand description
Handles the tensor state.
Variants§
Implementations§
source§impl<R: Runtime> TensorState<R>
impl<R: Runtime> TensorState<R>
sourcepub fn push(&mut self, tensor: &TensorHandleRef<'_, R>)
pub fn push(&mut self, tensor: &TensorHandleRef<'_, R>)
Push a new tensor to the state.
Auto Trait Implementations§
impl<R> Freeze for TensorState<R>
impl<R> RefUnwindSafe for TensorState<R>where
<<<R as Runtime>::Server as ComputeServer>::MemoryManagement as MemoryManagement<<<R as Runtime>::Server as ComputeServer>::Storage>>::Binding: RefUnwindSafe,
impl<R> Send for TensorState<R>
impl<R> Sync for TensorState<R>
impl<R> Unpin for TensorState<R>where
<<<R as Runtime>::Server as ComputeServer>::MemoryManagement as MemoryManagement<<<R as Runtime>::Server as ComputeServer>::Storage>>::Binding: Unpin,
impl<R> UnwindSafe for TensorState<R>where
<<<R as Runtime>::Server as ComputeServer>::MemoryManagement as MemoryManagement<<<R as Runtime>::Server as ComputeServer>::Storage>>::Binding: UnwindSafe,
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