pub enum HandleKind<B: Backend> {
Float(B::FloatTensorPrimitive),
Int(B::IntTensorPrimitive),
Bool(B::BoolTensorPrimitive),
Quantized(B::QuantizedTensorPrimitive),
}Available on crate feature
repr only.Expand description
Handle which points to a backend tensor primitive kind.
Variants§
Float(B::FloatTensorPrimitive)
Float tensor handle.
Int(B::IntTensorPrimitive)
Int tensor handle.
Bool(B::BoolTensorPrimitive)
Bool tensor handle.
Quantized(B::QuantizedTensorPrimitive)
Quantized tensor handle.
Implementations§
Trait Implementations§
Source§impl<B: Clone + Backend> Clone for HandleKind<B>where
B::FloatTensorPrimitive: Clone,
B::IntTensorPrimitive: Clone,
B::BoolTensorPrimitive: Clone,
B::QuantizedTensorPrimitive: Clone,
impl<B: Clone + Backend> Clone for HandleKind<B>where
B::FloatTensorPrimitive: Clone,
B::IntTensorPrimitive: Clone,
B::BoolTensorPrimitive: Clone,
B::QuantizedTensorPrimitive: Clone,
Source§fn clone(&self) -> HandleKind<B>
fn clone(&self) -> HandleKind<B>
Returns a copy 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 moreSource§impl<B: Debug + Backend> Debug for HandleKind<B>where
B::FloatTensorPrimitive: Debug,
B::IntTensorPrimitive: Debug,
B::BoolTensorPrimitive: Debug,
B::QuantizedTensorPrimitive: Debug,
impl<B: Debug + Backend> Debug for HandleKind<B>where
B::FloatTensorPrimitive: Debug,
B::IntTensorPrimitive: Debug,
B::BoolTensorPrimitive: Debug,
B::QuantizedTensorPrimitive: Debug,
Auto Trait Implementations§
impl<B> Freeze for HandleKind<B>where
<B as Backend>::FloatTensorPrimitive: Freeze,
<B as Backend>::IntTensorPrimitive: Freeze,
<B as Backend>::BoolTensorPrimitive: Freeze,
<B as Backend>::QuantizedTensorPrimitive: Freeze,
impl<B> RefUnwindSafe for HandleKind<B>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::IntTensorPrimitive: RefUnwindSafe,
<B as Backend>::BoolTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B> Send for HandleKind<B>
impl<B> Sync for HandleKind<B>
impl<B> Unpin for HandleKind<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::IntTensorPrimitive: Unpin,
<B as Backend>::BoolTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
impl<B> UnwindSafe for HandleKind<B>where
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::IntTensorPrimitive: UnwindSafe,
<B as Backend>::BoolTensorPrimitive: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: 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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more