pub enum TensorDtype {
F32,
F16,
BF16,
U8,
}Expand description
Element dtypes supported by the loaders.
Variants§
F32
IEEE 32-bit float.
F16
IEEE 16-bit half float.
BF16
bfloat16.
U8
Unsigned 8-bit integer (raw packed data, e.g. quantized weights).
Implementations§
Trait Implementations§
Source§impl Clone for TensorDtype
impl Clone for TensorDtype
Source§fn clone(&self) -> TensorDtype
fn clone(&self) -> TensorDtype
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 moreimpl Copy for TensorDtype
Source§impl Debug for TensorDtype
impl Debug for TensorDtype
Source§impl Display for TensorDtype
impl Display for TensorDtype
impl Eq for TensorDtype
Source§impl PartialEq for TensorDtype
impl PartialEq for TensorDtype
impl StructuralPartialEq for TensorDtype
Auto Trait Implementations§
impl Freeze for TensorDtype
impl RefUnwindSafe for TensorDtype
impl Send for TensorDtype
impl Sync for TensorDtype
impl Unpin for TensorDtype
impl UnsafeUnpin for TensorDtype
impl UnwindSafe for TensorDtype
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.