pub struct TensorHandle<R, E>where
R: Runtime,
E: CubePrimitive,{
pub handle: Handle,
pub shape: Vec<usize>,
pub strides: Vec<usize>,
/* private fields */
}Expand description
Tensor representation containing a server handle as well as basic tensor metadata.,
Fields§
§handle: HandleThe buffer where the data are stored.
shape: Vec<usize>The shape of the tensor.
strides: Vec<usize>The strides of the tensor.
Implementations§
Source§impl<R, E> TensorHandle<R, E>where
R: Runtime,
E: CubePrimitive,
impl<R, E> TensorHandle<R, E>where
R: Runtime,
E: CubePrimitive,
Trait Implementations§
Source§impl<R, E> Clone for TensorHandle<R, E>where
R: Runtime,
E: CubePrimitive,
impl<R, E> Clone for TensorHandle<R, E>where
R: Runtime,
E: CubePrimitive,
Auto Trait Implementations§
impl<R, E> Freeze for TensorHandle<R, E>
impl<R, E> RefUnwindSafe for TensorHandle<R, E>where
E: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, E> Send for TensorHandle<R, E>
impl<R, E> Sync for TensorHandle<R, E>
impl<R, E> Unpin for TensorHandle<R, E>
impl<R, E> UnwindSafe for TensorHandle<R, E>where
E: UnwindSafe,
R: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)