#[non_exhaustive]pub enum IndexOutputKind {
U32,
I32,
I64,
}Expand description
Runtime tag for an IndexOutputElement. i64 is the default
(PyTorch convention) and the only variant prior to Phase 12.2;
u32 and i32 were added so downstream frameworks that prefer
narrower index dtypes (Fuel uses u32) can avoid a post-pass cast.
#[non_exhaustive] — additional output index dtypes (u64 for
frameworks that prefer unsigned indices end-to-end) may land in
future phases. Match arms must include a _ => catch-all.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
U32
Unsigned 32-bit output index dtype.
I32
Signed 32-bit output index dtype.
I64
Signed 64-bit output index dtype — PyTorch default.
Trait Implementations§
Source§impl Clone for IndexOutputKind
impl Clone for IndexOutputKind
Source§fn clone(&self) -> IndexOutputKind
fn clone(&self) -> IndexOutputKind
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 IndexOutputKind
Source§impl Debug for IndexOutputKind
impl Debug for IndexOutputKind
impl Eq for IndexOutputKind
Source§impl Hash for IndexOutputKind
impl Hash for IndexOutputKind
Source§impl PartialEq for IndexOutputKind
impl PartialEq for IndexOutputKind
Source§fn eq(&self, other: &IndexOutputKind) -> bool
fn eq(&self, other: &IndexOutputKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IndexOutputKind
Auto Trait Implementations§
impl Freeze for IndexOutputKind
impl RefUnwindSafe for IndexOutputKind
impl Send for IndexOutputKind
impl Sync for IndexOutputKind
impl Unpin for IndexOutputKind
impl UnsafeUnpin for IndexOutputKind
impl UnwindSafe for IndexOutputKind
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