pub enum TensorValue {
Show 23 variants
I8(Tensor<i8>),
I16(Tensor<i16>),
F32(Tensor<f32>),
F64(Tensor<f64>),
U8(Tensor<u8>),
U16(Tensor<u16>),
I32(Tensor<i32>),
I64(Tensor<i64>),
U32(Tensor<u32>),
U64(Tensor<u64>),
Bool(Tensor<bool>),
Bitset(Tensor<Bitset>),
F16(Tensor<F16>),
BF16(Tensor<BF16>),
F8(Tensor<F8>),
I4(Tensor<I4>),
I2(Tensor<I2>),
I1(Tensor<I1>),
U4(Tensor<U4>),
U2(Tensor<U2>),
U1(Tensor<U1>),
T2(Tensor<T2>),
T1(Tensor<T1>),
}Expand description
Runtime tensor value with an enum over concrete dtypes.
Variants§
I8(Tensor<i8>)
I16(Tensor<i16>)
F32(Tensor<f32>)
F64(Tensor<f64>)
U8(Tensor<u8>)
U16(Tensor<u16>)
I32(Tensor<i32>)
I64(Tensor<i64>)
U32(Tensor<u32>)
U64(Tensor<u64>)
Bool(Tensor<bool>)
Bitset(Tensor<Bitset>)
F16(Tensor<F16>)
BF16(Tensor<BF16>)
F8(Tensor<F8>)
I4(Tensor<I4>)
I2(Tensor<I2>)
I1(Tensor<I1>)
U4(Tensor<U4>)
U2(Tensor<U2>)
U1(Tensor<U1>)
T2(Tensor<T2>)
T1(Tensor<T1>)
Implementations§
Trait Implementations§
Source§impl Clone for TensorValue
impl Clone for TensorValue
Source§fn clone(&self) -> TensorValue
fn clone(&self) -> TensorValue
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 moreSource§impl Debug for TensorValue
impl Debug for TensorValue
Source§impl Fetchable for TensorValue
impl Fetchable for TensorValue
Source§impl From<BF16> for TensorValue
impl From<BF16> for TensorValue
Source§impl From<Bitset> for TensorValue
impl From<Bitset> for TensorValue
Source§impl From<F16> for TensorValue
impl From<F16> for TensorValue
Source§impl From<F8> for TensorValue
impl From<F8> for TensorValue
Source§impl From<I1> for TensorValue
impl From<I1> for TensorValue
Source§impl From<I2> for TensorValue
impl From<I2> for TensorValue
Source§impl From<I4> for TensorValue
impl From<I4> for TensorValue
Source§impl From<T1> for TensorValue
impl From<T1> for TensorValue
Source§impl From<T2> for TensorValue
impl From<T2> for TensorValue
Source§impl From<U1> for TensorValue
impl From<U1> for TensorValue
Source§impl From<U2> for TensorValue
impl From<U2> for TensorValue
Source§impl From<U4> for TensorValue
impl From<U4> for TensorValue
Source§impl From<bool> for TensorValue
impl From<bool> for TensorValue
Source§impl From<f32> for TensorValue
impl From<f32> for TensorValue
Source§impl From<f64> for TensorValue
impl From<f64> for TensorValue
Source§impl From<i16> for TensorValue
impl From<i16> for TensorValue
Source§impl From<i32> for TensorValue
impl From<i32> for TensorValue
Source§impl From<i64> for TensorValue
impl From<i64> for TensorValue
Source§impl From<i8> for TensorValue
impl From<i8> for TensorValue
Source§impl From<u16> for TensorValue
impl From<u16> for TensorValue
Source§impl From<u32> for TensorValue
impl From<u32> for TensorValue
Source§impl From<u64> for TensorValue
impl From<u64> for TensorValue
Source§impl From<u8> for TensorValue
impl From<u8> for TensorValue
impl Send for TensorValue
Auto Trait Implementations§
impl !Freeze for TensorValue
impl !RefUnwindSafe for TensorValue
impl !Sync for TensorValue
impl Unpin for TensorValue
impl UnwindSafe for TensorValue
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