pub enum IntDType {
I64,
I32,
I16,
I8,
U64,
U32,
U16,
U8,
}Variants§
Trait Implementations§
Source§impl<B: Backend> Cast<B, Bool> for IntDType
impl<B: Backend> Cast<B, Bool> for IntDType
Source§type OutputKind = Int
type OutputKind = Int
The output tensor kind after casting.
Source§fn cast(primitive: B::BoolTensorPrimitive, dtype: Self) -> B::IntTensorPrimitive
fn cast(primitive: B::BoolTensorPrimitive, dtype: Self) -> B::IntTensorPrimitive
Cast a tensor primitive to the target dtype.
Source§impl<B: Backend> Cast<B, Float> for IntDType
impl<B: Backend> Cast<B, Float> for IntDType
Source§type OutputKind = Int
type OutputKind = Int
The output tensor kind after casting.
Source§fn cast(primitive: TensorPrimitive<B>, dtype: Self) -> B::IntTensorPrimitive
fn cast(primitive: TensorPrimitive<B>, dtype: Self) -> B::IntTensorPrimitive
Cast a tensor primitive to the target dtype.
Source§impl<B: Backend> Cast<B, Int> for IntDType
impl<B: Backend> Cast<B, Int> for IntDType
Source§type OutputKind = Int
type OutputKind = Int
The output tensor kind after casting.
Source§fn cast(primitive: B::IntTensorPrimitive, dtype: Self) -> B::IntTensorPrimitive
fn cast(primitive: B::IntTensorPrimitive, dtype: Self) -> B::IntTensorPrimitive
Cast a tensor primitive to the target dtype.
Source§impl Ord for IntDType
impl Ord for IntDType
Source§impl PartialOrd for IntDType
impl PartialOrd for IntDType
impl Copy for IntDType
impl Eq for IntDType
impl StructuralPartialEq for IntDType
Auto Trait Implementations§
impl Freeze for IntDType
impl RefUnwindSafe for IntDType
impl Send for IntDType
impl Sync for IntDType
impl Unpin for IntDType
impl UnsafeUnpin for IntDType
impl UnwindSafe for IntDType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.