Struct cubecl_core::frontend::TensorHandleRef
source · pub struct TensorHandleRef<'a, R: Runtime> {
pub handle: &'a Handle<R::Server>,
pub strides: &'a [usize],
pub shape: &'a [usize],
}
Expand description
Tensor representation with a reference to the server handle, the strides and the shape.
Fields§
§handle: &'a Handle<R::Server>
§strides: &'a [usize]
§shape: &'a [usize]
Implementations§
source§impl<'a, R: Runtime> TensorHandleRef<'a, R>
impl<'a, R: Runtime> TensorHandleRef<'a, R>
sourcepub fn as_tensor_arg(&'a self, vectorisation: u8) -> TensorArg<'a, R>
pub fn as_tensor_arg(&'a self, vectorisation: u8) -> TensorArg<'a, R>
Convert the handle into a tensor argument.
Auto Trait Implementations§
impl<'a, R> Freeze for TensorHandleRef<'a, R>
impl<'a, R> RefUnwindSafe for TensorHandleRef<'a, R>where
<<<R as Runtime>::Server as ComputeServer>::MemoryManagement as MemoryManagement<<<R as Runtime>::Server as ComputeServer>::Storage>>::Handle: RefUnwindSafe,
impl<'a, R> Send for TensorHandleRef<'a, R>
impl<'a, R> Sync for TensorHandleRef<'a, R>
impl<'a, R> Unpin for TensorHandleRef<'a, R>
impl<'a, R> UnwindSafe for TensorHandleRef<'a, R>where
<<<R as Runtime>::Server as ComputeServer>::MemoryManagement as MemoryManagement<<<R as Runtime>::Server as ComputeServer>::Storage>>::Handle: RefUnwindSafe,
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