pub struct Calibrator<'g> { /* private fields */ }Expand description
Compiled calibration harness. The graph is owned by the caller —
we hold a reference and the compiled artifacts (arena + schedule).
The caller writes inputs and parameters into arena_mut() between
batches.
Implementations§
Source§impl<'g> Calibrator<'g>
impl<'g> Calibrator<'g>
Sourcepub fn new(graph: &'g Graph, taps: Vec<NodeId>) -> Self
pub fn new(graph: &'g Graph, taps: Vec<NodeId>) -> Self
Build a calibrator over graph that records max-abs at each
tap after every step(). The graph must already have those
taps in its outputs list (so the memory planner keeps their
arena slots alive to end-of-execution); this constructor
asserts the precondition.
Sourcepub fn arena_mut(&mut self) -> &mut Arena
pub fn arena_mut(&mut self) -> &mut Arena
Mutable arena access — for writing inputs/params before each
step() and (typically once at startup) for filling
Op::Constant data via rlx_runtime’s loader.
Sourcepub fn arena(&self) -> &Arena
pub fn arena(&self) -> &Arena
Read-only arena view — for reading the tap values manually if the caller wants something fancier than max-abs.
Auto Trait Implementations§
impl<'g> Freeze for Calibrator<'g>
impl<'g> !RefUnwindSafe for Calibrator<'g>
impl<'g> Send for Calibrator<'g>
impl<'g> Sync for Calibrator<'g>
impl<'g> Unpin for Calibrator<'g>
impl<'g> UnsafeUnpin for Calibrator<'g>
impl<'g> !UnwindSafe for Calibrator<'g>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more