Skip to main content

DebugSession

Struct DebugSession 

Source
pub struct DebugSession { /* private fields */ }
Expand description

Main debugging session that coordinates all debugging tools

Implementations§

Source§

impl DebugSession

Integration with main debug session

Source

pub async fn enable_regression_detection( &mut self, config: RegressionDetectionConfig, ) -> Result<RegressionDetector>

Enable regression detection for this debug session

Source§

impl DebugSession

Integration with main debug session

Source

pub async fn enable_streaming( &mut self, config: StreamingDebugConfig, ) -> Result<Arc<StreamingDebugger>>

Enable streaming for this debug session

Source§

impl DebugSession

Source

pub fn new(config: DebugConfig) -> Self

Create a new debugging session

Source

pub fn id(&self) -> Uuid

Get session ID

Source

pub fn config(&self) -> &DebugConfig

Get debug configuration

Source

pub fn tensor_inspector(&self) -> &TensorInspector

Get tensor inspector

Source

pub fn tensor_inspector_mut(&mut self) -> &mut TensorInspector

Get mutable tensor inspector

Source

pub fn gradient_debugger(&self) -> &GradientDebugger

Get gradient debugger

Source

pub fn gradient_debugger_mut(&mut self) -> &mut GradientDebugger

Get mutable gradient debugger

Source

pub fn model_diagnostics(&self) -> &ModelDiagnostics

Get model diagnostics

Source

pub fn model_diagnostics_mut(&mut self) -> &mut ModelDiagnostics

Get mutable model diagnostics

Source

pub fn hooks(&self) -> &HookManager

Get hook manager

Source

pub fn hooks_mut(&mut self) -> &mut HookManager

Get mutable hook manager

Source

pub fn profiler(&self) -> &Profiler

Get profiler

Source

pub fn profiler_mut(&mut self) -> &mut Profiler

Get mutable profiler

Source

pub fn memory_profiler(&self) -> Option<&MemoryProfiler>

Get memory profiler

Source

pub fn memory_profiler_mut(&mut self) -> Option<&mut MemoryProfiler>

Get mutable memory profiler

Source

pub fn interactive_debugger(&self) -> &InteractiveDebugger

Get interactive debugger

Source

pub fn interactive_debugger_mut(&mut self) -> &mut InteractiveDebugger

Get mutable interactive debugger

Source

pub fn anomaly_detector(&self) -> &AnomalyDetector

Get anomaly detector

Source

pub fn anomaly_detector_mut(&mut self) -> &mut AnomalyDetector

Get mutable anomaly detector

Source

pub fn computation_graph_analyzer(&self) -> &ComputationGraphAnalyzer

Get computation graph analyzer

Source

pub fn computation_graph_analyzer_mut( &mut self, ) -> &mut ComputationGraphAnalyzer

Get mutable computation graph analyzer

Source

pub fn architecture_analyzer(&self) -> &ArchitectureAnalyzer

Get architecture analyzer

Source

pub fn architecture_analyzer_mut(&mut self) -> &mut ArchitectureAnalyzer

Get mutable architecture analyzer

Source

pub fn behavior_analyzer(&self) -> &BehaviorAnalyzer

Get behavior analyzer

Source

pub fn behavior_analyzer_mut(&mut self) -> &mut BehaviorAnalyzer

Get mutable behavior analyzer

Source

pub fn training_dynamics_analyzer(&self) -> &TrainingDynamicsAnalyzer

Get training dynamics analyzer

Source

pub fn training_dynamics_analyzer_mut( &mut self, ) -> &mut TrainingDynamicsAnalyzer

Get mutable training dynamics analyzer

Source

pub fn differential_debugger(&self) -> &DifferentialDebugger

Get differential debugger

Source

pub fn differential_debugger_mut(&mut self) -> &mut DifferentialDebugger

Get mutable differential debugger

Source

pub fn interpretability_analyzer(&self) -> &InterpretabilityAnalyzer

Get interpretability analyzer

Source

pub fn interpretability_analyzer_mut(&mut self) -> &mut InterpretabilityAnalyzer

Get mutable interpretability analyzer

Source

pub fn health_checker(&self) -> &HealthChecker

Get health checker

Source

pub fn health_checker_mut(&mut self) -> &mut HealthChecker

Get mutable health checker

Source

pub fn transformer_debugger(&self) -> Option<&TransformerDebugger>

Get transformer debugger

Source

pub fn transformer_debugger_mut(&mut self) -> Option<&mut TransformerDebugger>

Get mutable transformer debugger

Source

pub fn advanced_ml_debugger(&self) -> &AdvancedMLDebugger

Get advanced ML debugger

Source

pub fn advanced_ml_debugger_mut(&mut self) -> &mut AdvancedMLDebugger

Get mutable advanced ML debugger

Source

pub fn ai_code_analyzer(&self) -> Option<&AICodeAnalyzer>

Get AI code analyzer

Source

pub fn ai_code_analyzer_mut(&mut self) -> Option<&mut AICodeAnalyzer>

Get mutable AI code analyzer

Source

pub fn distributed_debugger(&self) -> Option<&DistributedDebugger>

Get distributed debugger

Source

pub fn distributed_debugger_mut(&mut self) -> Option<&mut DistributedDebugger>

Get mutable distributed debugger

Source

pub fn environmental_monitor(&self) -> Option<&EnvironmentalMonitor>

Get environmental monitor

Source

pub fn environmental_monitor_mut(&mut self) -> Option<&mut EnvironmentalMonitor>

Get mutable environmental monitor

Source

pub async fn start(&mut self) -> Result<()>

Start debugging session

Source

pub async fn stop(&mut self) -> Result<DebugReport>

Stop debugging session and generate report

Source

pub async fn export(&self, path: &str) -> Result<()>

Export debug session to file

Source

pub async fn generate_snapshot(&self) -> Result<DebugReport>

Generate a snapshot of current state

Source

pub fn debug_tensor<T>( &mut self, tensor: &ArrayD<T>, name: &str, ) -> Result<Uuid>
where T: Clone + Into<f64> + Debug + 'static,

Convenience method for debugging tensors (used by debug_tensor! macro)

Source

pub fn debug_gradients<T>( &mut self, _layer_name: &str, gradients: &[T], ) -> Result<()>
where T: Clone + Into<f64> + Debug + 'static,

Convenience method for debugging gradients (used by debug_gradient! macro)

Trait Implementations§

Source§

impl Debug for DebugSession

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more