#[repr(transparent)]pub struct S8(pub i8);Expand description
Signed 8-bit integer element marker. #[repr(transparent)] around
i8.
Identical memory layout to i8, so a DeviceBuffer<i8> (or any byte
substrate the caller has) can be reinterpreted as a DeviceBuffer<S8>
via view_as without copying. The wrapper exists to drive kernel
selection at the Rust type level: integer GEMM plans parameterized on
S8 route the launch through the signed int8 tensor-core kernels.
Numerical contract: int8 inputs, int32 accumulator, float alpha/beta scaling, saturating round-to-nearest cast back to int8 on store.
Tuple Fields§
§0: i8Trait Implementations§
impl Copy for S8
impl DeviceRepr for S8
impl Eq for S8
impl IntElement for S8
Source§impl KernelDtype for S8
impl KernelDtype for S8
Source§const KIND: ElementKind = ElementKind::S8
const KIND: ElementKind = ElementKind::S8
Runtime tag for this dtype. Stable across the workspace —
keyed by this same enum in
crate::KernelSku::element.Source§impl Ord for S8
impl Ord for S8
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for S8
impl PartialOrd for S8
impl StructuralPartialEq for S8
Auto Trait Implementations§
impl Freeze for S8
impl RefUnwindSafe for S8
impl Send for S8
impl Sync for S8
impl Unpin for S8
impl UnsafeUnpin for S8
impl UnwindSafe for S8
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