pub struct TensorHandleRef<'a, R: Runtime> {
pub handle: &'a Handle,
pub strides: &'a [usize],
pub shape: &'a [usize],
pub elem_size: usize,
pub runtime: PhantomData<R>,
}
Expand description
Tensor representation with a reference to the server handle, the strides and the shape.
Fields§
§handle: &'a Handle
§strides: &'a [usize]
§shape: &'a [usize]
§elem_size: usize
§runtime: PhantomData<R>
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.
Trait Implementations§
Auto Trait Implementations§
impl<'a, R> Freeze for TensorHandleRef<'a, R>
impl<'a, R> RefUnwindSafe for TensorHandleRef<'a, R>where
R: 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>where
R: Unpin,
impl<'a, R> UnwindSafe for TensorHandleRef<'a, R>where
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