pub struct NoopObserver;Expand description
Zero-sized observer used by the ordinary unobserved inference path.
Trait Implementations§
Source§impl<T, E> ActivationObserver<T, E> for NoopObserver
impl<T, E> ActivationObserver<T, E> for NoopObserver
Source§fn observe(&mut self, _path: &str, _value: &T) -> Result<(), E>
fn observe(&mut self, _path: &str, _value: &T) -> Result<(), E>
Observes a named backend-native tensor.
Source§fn routing_control(
&mut self,
_path: &str,
_token_rows: u64,
) -> Result<Option<GroupSelectionControl>, E>
fn routing_control( &mut self, _path: &str, _token_rows: u64, ) -> Result<Option<GroupSelectionControl>, E>
Obtains a validated control before the selector dispatches any experts.
The default ordinary path allocates and materializes nothing.
Source§fn routing_applied(
&mut self,
_path: &str,
_original: Option<RoutingDecision<'_, T>>,
_effective: RoutingDecision<'_, T>,
) -> Result<(), E>
fn routing_applied( &mut self, _path: &str, _original: Option<RoutingDecision<'_, T>>, _effective: RoutingDecision<'_, T>, ) -> Result<(), E>
Receives original/effective decisions before they reach the expert provider.
Source§fn routing_failed(&mut self, _path: &str, _message: &str)
fn routing_failed(&mut self, _path: &str, _message: &str)
Records a failed control under the enclosing forward pass’s failure owner.
Source§fn finish(&mut self) -> Result<(), E>
fn finish(&mut self) -> Result<(), E>
Completes an ordinary forward pass under its existing failure owner.
Scheduled-but-missing interventions must fail before prediction commitment.
Source§fn intervene(&mut self, _path: &str, _value: &T) -> Result<Option<T>, E>
fn intervene(&mut self, _path: &str, _value: &T) -> Result<Option<T>, E>
Optionally replaces an activation before it is consumed or returned.
Source§fn observe_routing(
&mut self,
_routing: RoutingObservation<'_, T>,
) -> Result<(), E>
fn observe_routing( &mut self, _routing: RoutingObservation<'_, T>, ) -> Result<(), E>
Observes normalized routed-expert decisions and contributions.
Source§impl Clone for NoopObserver
impl Clone for NoopObserver
Source§fn clone(&self) -> NoopObserver
fn clone(&self) -> NoopObserver
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 moreimpl Copy for NoopObserver
Source§impl Debug for NoopObserver
impl Debug for NoopObserver
Source§impl Default for NoopObserver
impl Default for NoopObserver
Source§fn default() -> NoopObserver
fn default() -> NoopObserver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopObserver
impl RefUnwindSafe for NoopObserver
impl Send for NoopObserver
impl Sync for NoopObserver
impl Unpin for NoopObserver
impl UnsafeUnpin for NoopObserver
impl UnwindSafe for NoopObserver
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