pub enum HandleKind<B: Backend> {
Float(B::FloatTensorPrimitive),
Int(B::IntTensorPrimitive),
Bool(B::BoolTensorPrimitive),
Quantized(B::QuantizedTensorPrimitive),
Empty,
}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.
Empty
Empty handle (used as a dummy representation).
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§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)