pub struct GradStep {
pub target: String,
pub wrt: Vec<String>,
pub output: String,
pub loc: Loc,
}Expand description
v2.65.0 — grad <letName> wrt <x> [as <name>]: differentiate the
EXPRESSION a prior rich let bound (its AST rides the IR), at compile
time, symbolically. The derivative is checked (T931/T932), simplified,
and stored in the IR — a proof-carrying artifact, re-derived at deploy.
Fields§
§target: StringThe prior rich let whose expression is differentiated.
wrt: Vec<String>The variables to differentiate against (wrt x / wrt [x, y]).
output: StringResult binding (as:). Empty ⇒ d_<target>.
loc: LocTrait Implementations§
Auto Trait Implementations§
impl Freeze for GradStep
impl RefUnwindSafe for GradStep
impl Send for GradStep
impl Sync for GradStep
impl Unpin for GradStep
impl UnsafeUnpin for GradStep
impl UnwindSafe for GradStep
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