pub struct TensorHandle<H: Clone> {
pub handle: H,
pub shape: Shape,
}
Expand description
A tensor representation containing a reference to a tensor resource with a given shape.
Fields§
§handle: H
The type that can be used to point to a tensor of any kind.
shape: Shape
The shape associated to the tensor.
Trait Implementations§
Source§impl<H: Clone + Clone> Clone for TensorHandle<H>
impl<H: Clone + Clone> Clone for TensorHandle<H>
Source§fn clone(&self) -> TensorHandle<H>
fn clone(&self) -> TensorHandle<H>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<H> Freeze for TensorHandle<H>where
H: Freeze,
impl<H> RefUnwindSafe for TensorHandle<H>where
H: RefUnwindSafe,
impl<H> Send for TensorHandle<H>where
H: Send,
impl<H> Sync for TensorHandle<H>where
H: Sync,
impl<H> Unpin for TensorHandle<H>where
H: Unpin,
impl<H> UnwindSafe for TensorHandle<H>where
H: 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