pub struct Tensor3Shape<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize>;Expand description
Parametric ConstrainedTypeShape for a row-major rank-3 tensor of
shape D0 × D1 × D2 carrying ELEM_BYTES-byte elements.
Per ADR-031’s Tensor<Element, Shape> shape commitment for rank-3.
Common GGUF / ONNX usage: per-head attention key / value tensors
(batch × heads × dim), 3D image volumes, sequence-of-tokens
embeddings.
Trait Implementations§
Source§impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Clone for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Clone for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
Source§fn clone(&self) -> Tensor3Shape<D0, D1, D2, ELEM_BYTES>
fn clone(&self) -> Tensor3Shape<D0, D1, D2, ELEM_BYTES>
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 D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> ConstrainedTypeShape for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> ConstrainedTypeShape for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
Source§const IRI: &'static str = "https://uor.foundation/type/ConstrainedType"
const IRI: &'static str = "https://uor.foundation/type/ConstrainedType"
IRI of the ontology
type:ConstrainedType instance this shape represents.Source§const SITE_COUNT: usize
const SITE_COUNT: usize
Number of sites (fields) this constrained type carries.
Source§const CONSTRAINTS: &'static [ConstraintRef]
const CONSTRAINTS: &'static [ConstraintRef]
Per-site constraint list. Empty means unconstrained.
Source§const CYCLE_SIZE: u64
const CYCLE_SIZE: u64
ADR-032: cardinality of the shape’s value-set (the cycle
structure of the shape under the substrate’s discrete-clock
model). Used by the
prism_model! macro to lower first_admit
(closure-body grammar G16) to the correct descent measure.
Conventions: Read moreSource§const SITE_BUDGET: usize = Self::SITE_COUNT
const SITE_BUDGET: usize = Self::SITE_COUNT
Ontology-level
siteBudget: count of data sites only,
excluding bookkeeping introduced by composition (coproduct tag
sites, etc.). Equals SITE_COUNT for leaf shapes and for
shapes whose composition introduces no bookkeeping (products,
cartesian products). Strictly less than SITE_COUNT for coproduct
shapes and any shape whose SITE_COUNT includes inherited
bookkeeping. Introduced by the Product/Coproduct Completion
Amendment §4a; defaults to SITE_COUNT so pre-amendment
shape impls remain valid without edits.Source§impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Debug for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Debug for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
Source§impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Default for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Default for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
Source§impl<'a, const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> IntoBindingValue<'a> for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<'a, const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> IntoBindingValue<'a> for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
Source§fn as_binding_value<const INLINE_BYTES: usize>(
&self,
) -> TermValue<'a, INLINE_BYTES>
fn as_binding_value<const INLINE_BYTES: usize>( &self, ) -> TermValue<'a, INLINE_BYTES>
Return this input value’s canonical content-addressable bytes as a
source-polymorphic
crate::pipeline::TermValue carrier (ADR-060).
Inline for values within the derived inline width, Borrowed for
larger in-memory values (zero-copy), or Stream for unbounded
sources. The carrier borrows the input’s 'a-lived data; for an
Inline-only input it owns its bytes and is valid for any 'a.impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Copy for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> GroundedShape for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Sealed for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
Auto Trait Implementations§
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Freeze for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> RefUnwindSafe for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Send for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Sync for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> Unpin for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> UnsafeUnpin for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
impl<const D0: usize, const D1: usize, const D2: usize, const ELEM_BYTES: usize> UnwindSafe for Tensor3Shape<D0, D1, D2, ELEM_BYTES>
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