Skip to main content

SemanticOpDesc

Struct SemanticOpDesc 

Source
pub struct SemanticOpDesc { /* private fields */ }
Expand description

One mathematical or domain operation before executable lowering.

Implementations§

Source§

impl SemanticOpDesc

Source

pub const fn id(&self) -> SemanticOpId

Return the graph-local operation identity.

Source

pub const fn name(&self) -> &'static str

Return the stable qualified operation name.

Source

pub const fn contract_hash(&self) -> u64

Return the schema-derived operation contract hash.

Source

pub const fn differentiation(&self) -> OpDifferentiation

Return the differentiation behavior.

Source

pub const fn lowering(&self) -> OpLowering

Return the requested lowering family.

Source

pub const fn control_flow(&self) -> OpControlFlow

Return the semantic control-flow class.

Source

pub fn inputs(&self) -> &[Option<SemanticValueId>]

Return logical input identities; None preserves an absent optional slot.

Source

pub fn outputs(&self) -> &[SemanticValueId]

Return logical output identities.

Source

pub fn attributes(&self) -> &[OpAttribute]

Return ordered non-value semantic inputs.

Source

pub fn accesses(&self) -> &[SemanticValueAccess]

Return merged logical accesses.

Source

pub fn mutated_inputs(&self) -> &[SemanticValueId]

Return semantically mutated inputs.

Source

pub fn aliases(&self) -> &[SemanticAliasDesc]

Return output-to-input aliases.

Source

pub fn control_dependencies(&self) -> &[SemanticOpId]

Return explicit control dependencies.

Source

pub const fn optional_input_mask(&self) -> u8

Return the fixed-input optionality mask preserved from the schema.

Source

pub const fn backward_of(&self) -> Option<SemanticOpId>

Return the forward operation owning this backward operation.

Source

pub const fn backward_sequence(&self) -> u64

Return the owning autograd tape sequence.

Trait Implementations§

Source§

impl Clone for SemanticOpDesc

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SemanticOpDesc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SemanticOpDesc

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SemanticOpDesc

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.