Enum HandleKind
pub enum HandleKind<B>where
B: Backend,{
Float(<B as BackendTypes>::FloatTensorPrimitive),
Int(<B as BackendTypes>::IntTensorPrimitive),
Bool(<B as BackendTypes>::BoolTensorPrimitive),
Quantized(<B as BackendTypes>::QuantizedTensorPrimitive),
}Expand description
Handle which points to a backend tensor primitive kind.
Variants§
Float(<B as BackendTypes>::FloatTensorPrimitive)
Float tensor handle.
Int(<B as BackendTypes>::IntTensorPrimitive)
Int tensor handle.
Bool(<B as BackendTypes>::BoolTensorPrimitive)
Bool tensor handle.
Quantized(<B as BackendTypes>::QuantizedTensorPrimitive)
Quantized tensor handle.
Implementations§
§impl<B> HandleKind<B>where
B: Backend,
impl<B> HandleKind<B>where
B: Backend,
Trait Implementations§
§impl<B> Clone for HandleKind<B>where
B: Clone + Backend,
<B as BackendTypes>::FloatTensorPrimitive: Clone,
<B as BackendTypes>::IntTensorPrimitive: Clone,
<B as BackendTypes>::BoolTensorPrimitive: Clone,
<B as BackendTypes>::QuantizedTensorPrimitive: Clone,
impl<B> Clone for HandleKind<B>where
B: Clone + Backend,
<B as BackendTypes>::FloatTensorPrimitive: Clone,
<B as BackendTypes>::IntTensorPrimitive: Clone,
<B as BackendTypes>::BoolTensorPrimitive: Clone,
<B as BackendTypes>::QuantizedTensorPrimitive: Clone,
§fn clone(&self) -> HandleKind<B>
fn clone(&self) -> HandleKind<B>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<B> Debug for HandleKind<B>where
B: Debug + Backend,
<B as BackendTypes>::FloatTensorPrimitive: Debug,
<B as BackendTypes>::IntTensorPrimitive: Debug,
<B as BackendTypes>::BoolTensorPrimitive: Debug,
<B as BackendTypes>::QuantizedTensorPrimitive: Debug,
impl<B> Debug for HandleKind<B>where
B: Debug + Backend,
<B as BackendTypes>::FloatTensorPrimitive: Debug,
<B as BackendTypes>::IntTensorPrimitive: Debug,
<B as BackendTypes>::BoolTensorPrimitive: Debug,
<B as BackendTypes>::QuantizedTensorPrimitive: Debug,
Auto Trait Implementations§
impl<B> Freeze for HandleKind<B>where
<B as BackendTypes>::FloatTensorPrimitive: Freeze,
<B as BackendTypes>::IntTensorPrimitive: Freeze,
<B as BackendTypes>::BoolTensorPrimitive: Freeze,
<B as BackendTypes>::QuantizedTensorPrimitive: Freeze,
impl<B> RefUnwindSafe for HandleKind<B>where
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::IntTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::BoolTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B> Send for HandleKind<B>
impl<B> Sync for HandleKind<B>
impl<B> Unpin for HandleKind<B>where
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
<B as BackendTypes>::IntTensorPrimitive: Unpin,
<B as BackendTypes>::BoolTensorPrimitive: Unpin,
<B as BackendTypes>::QuantizedTensorPrimitive: Unpin,
impl<B> UnsafeUnpin for HandleKind<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::IntTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::BoolTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<B> UnwindSafe for HandleKind<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
<B as BackendTypes>::IntTensorPrimitive: UnwindSafe,
<B as BackendTypes>::BoolTensorPrimitive: UnwindSafe,
<B as BackendTypes>::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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<K, Q> Comparable<Q> for K
impl<K, Q> Comparable<Q> for K
§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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