pub struct ModelDebugger { /* private fields */ }Expand description
Comprehensive model debugger
Implementations§
Source§impl ModelDebugger
impl ModelDebugger
Sourcepub fn new(config: DebugConfig) -> Result<Self>
pub fn new(config: DebugConfig) -> Result<Self>
Create a new model debugger
Sourcepub fn start_debugging(&mut self, model_id: &str) -> Result<String>
pub fn start_debugging(&mut self, model_id: &str) -> Result<String>
Start a debugging session
Sourcepub fn stop_debugging(&mut self, session_id: &str) -> Result<DebugReport>
pub fn stop_debugging(&mut self, session_id: &str) -> Result<DebugReport>
Stop debugging and generate report
Sourcepub fn remove_hook(&mut self, session_id: &str, hook_id: &str) -> Result<()>
pub fn remove_hook(&mut self, session_id: &str, hook_id: &str) -> Result<()>
Remove a debug hook
Sourcepub fn inspect_tensor(
&mut self,
session_id: &str,
tensor_name: &str,
tensor_data: &[f32],
shape: &[usize],
) -> Result<TensorSnapshot>
pub fn inspect_tensor( &mut self, session_id: &str, tensor_name: &str, tensor_data: &[f32], shape: &[usize], ) -> Result<TensorSnapshot>
Inspect a tensor
Sourcepub fn analyze_gradients(
&mut self,
session_id: &str,
parameter_name: &str,
gradients: &[f32],
) -> Result<GradientInfo>
pub fn analyze_gradients( &mut self, session_id: &str, parameter_name: &str, gradients: &[f32], ) -> Result<GradientInfo>
Analyze gradients
Sourcepub fn analyze_activations(
&mut self,
session_id: &str,
layer_name: &str,
activations: &[f32],
) -> Result<ActivationPattern>
pub fn analyze_activations( &mut self, session_id: &str, layer_name: &str, activations: &[f32], ) -> Result<ActivationPattern>
Analyze activations
Auto Trait Implementations§
impl Freeze for ModelDebugger
impl RefUnwindSafe for ModelDebugger
impl Send for ModelDebugger
impl Sync for ModelDebugger
impl Unpin for ModelDebugger
impl UnsafeUnpin for ModelDebugger
impl UnwindSafe for ModelDebugger
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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