pub enum BodyAtom {
Arg(usize),
Assume {
src: u16,
domain: NumericDomain,
},
Unary {
op: &'static str,
src: u16,
},
Binary {
op: &'static str,
left: u16,
right: u16,
},
Affine {
src: u16,
mul: f64,
add: f64,
},
}Expand description
One step in an audited library-op body. Step indices refer to earlier atoms in the same body.
Variants§
Arg(usize)
Call-site argument (0 = first tensor operand).
Assume
Identity view that records an API-level domain fact (e.g. BCE targets ∈ [0, 1]).
Unary
Binary
Affine
tensor.affine(mul, add) with proven literal coefficients.
Trait Implementations§
impl Copy for BodyAtom
impl StructuralPartialEq for BodyAtom
Auto Trait Implementations§
impl Freeze for BodyAtom
impl RefUnwindSafe for BodyAtom
impl Send for BodyAtom
impl Sync for BodyAtom
impl Unpin for BodyAtom
impl UnsafeUnpin for BodyAtom
impl UnwindSafe for BodyAtom
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