pub struct CpuI8MatmulSquare<const DIM: usize>;Expand description
Parametric square DIM × DIM i8 × i8 → i16 matmul.
Determinism: per ADR-030’s per-axis substitution-determinism note,
the integer-arithmetic CPU impl preserves bit-identity across
targets. DIM is the square dimension; for non-square /
non-integer / variable-shape tensor compute the wiki’s pattern is
to compose this axis kernel through verbs over partition_product!
(per ADR-033/044) — the axis layer fixes the atom shape.
Trait Implementations§
Source§impl<const DIM: usize> AxisExtension for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> AxisExtension for CpuI8MatmulSquare<DIM>
Source§const AXIS_ADDRESS: &'static str = <CpuI8MatmulSquare<DIM> as TensorAxis>::AXIS_ADDRESS
const AXIS_ADDRESS: &'static str = <CpuI8MatmulSquare<DIM> as TensorAxis>::AXIS_ADDRESS
ADR-017 content address of this axis trait. The SDK macro
derives this from the trait name and method signatures.
Source§const MAX_OUTPUT_BYTES: usize = <CpuI8MatmulSquare<DIM> as TensorAxis>::MAX_OUTPUT_BYTES
const MAX_OUTPUT_BYTES: usize = <CpuI8MatmulSquare<DIM> as TensorAxis>::MAX_OUTPUT_BYTES
Maximum bytes any kernel of this axis returns.
Source§fn dispatch_kernel(
kernel_id: u32,
input: &[u8],
out: &mut [u8],
) -> Result<usize, ShapeViolation>
fn dispatch_kernel( kernel_id: u32, input: &[u8], out: &mut [u8], ) -> Result<usize, ShapeViolation>
Dispatch the kernel identified by
kernel_id against the
evaluated input bytes. The implementation copies the kernel’s
output into out and returns the written length. Read moreSource§impl<const DIM: usize> Clone for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> Clone for CpuI8MatmulSquare<DIM>
Source§fn clone(&self) -> CpuI8MatmulSquare<DIM>
fn clone(&self) -> CpuI8MatmulSquare<DIM>
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 moreSource§impl<const DIM: usize> Debug for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> Debug for CpuI8MatmulSquare<DIM>
Source§impl<const DIM: usize> Default for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> Default for CpuI8MatmulSquare<DIM>
Source§impl<const DIM: usize> SubstrateTermBody for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> SubstrateTermBody for CpuI8MatmulSquare<DIM>
Source§fn body_arena() -> &'static [Term]
fn body_arena() -> &'static [Term]
The Term arena the kernel decomposes to. Empty slice signals a
primitive-fast-path axis whose body the implementation may evaluate
through
dispatch_kernel directly per ADR-055’s optional fast-path.Source§impl<const DIM: usize> TensorAxis for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> TensorAxis for CpuI8MatmulSquare<DIM>
const AXIS_ADDRESS: &'static str = "https://uor.foundation/axis/TensorAxis/CpuI8MatmulSquare"
Source§const MAX_OUTPUT_BYTES: usize
const MAX_OUTPUT_BYTES: usize
2 * MAX_TENSOR_DIM * MAX_TENSOR_DIM = 512 bytes for
16×16. Overridden per impl.impl<const DIM: usize> Copy for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> Sealed for CpuI8MatmulSquare<DIM>
Auto Trait Implementations§
impl<const DIM: usize> Freeze for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> RefUnwindSafe for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> Send for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> Sync for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> Unpin for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> UnsafeUnpin for CpuI8MatmulSquare<DIM>
impl<const DIM: usize> UnwindSafe for CpuI8MatmulSquare<DIM>
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