pub struct GradientFlowVisualizer<T> { /* private fields */ }Expand description
Gradient flow visualizer for computation graphs
Implementations§
Source§impl<T> GradientFlowVisualizer<T>
impl<T> GradientFlowVisualizer<T>
Sourcepub fn with_settings(settings: VisualizationSettings) -> Self
pub fn with_settings(settings: VisualizationSettings) -> Self
Create visualizer with custom settings
Sourcepub fn settings(&self) -> &VisualizationSettings
pub fn settings(&self) -> &VisualizationSettings
Get the current visualization settings
Sourcepub fn set_settings(&mut self, settings: VisualizationSettings)
pub fn set_settings(&mut self, settings: VisualizationSettings)
Update visualization settings
Sourcepub fn nodes(&self) -> &HashMap<TensorId, GradientFlowNode<T>>
pub fn nodes(&self) -> &HashMap<TensorId, GradientFlowNode<T>>
Get the nodes in the visualization graph
Sourcepub fn edges(&self) -> &[GradientFlowEdge]
pub fn edges(&self) -> &[GradientFlowEdge]
Get the edges in the visualization graph
Sourcepub fn flow_analysis(&self) -> Option<&GradientFlowAnalysis<T>>
pub fn flow_analysis(&self) -> Option<&GradientFlowAnalysis<T>>
Get the flow analysis results
Sourcepub fn analyze_flow(
&mut self,
tape: &GradientTape,
target: &TrackedTensor<T>,
sources: &[&TrackedTensor<T>],
) -> Result<()>
pub fn analyze_flow( &mut self, tape: &GradientTape, target: &TrackedTensor<T>, sources: &[&TrackedTensor<T>], ) -> Result<()>
Analyze gradient flow from a computation graph
Sourcepub fn get_health_summary(&self) -> Result<String>
pub fn get_health_summary(&self) -> Result<String>
Get a summary of the gradient flow health
Trait Implementations§
Source§impl<T: Clone> Clone for GradientFlowVisualizer<T>
impl<T: Clone> Clone for GradientFlowVisualizer<T>
Source§fn clone(&self) -> GradientFlowVisualizer<T>
fn clone(&self) -> GradientFlowVisualizer<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for GradientFlowVisualizer<T>
impl<T: Debug> Debug for GradientFlowVisualizer<T>
Source§impl<T> Default for GradientFlowVisualizer<T>
impl<T> Default for GradientFlowVisualizer<T>
Auto Trait Implementations§
impl<T> Freeze for GradientFlowVisualizer<T>where
T: Freeze,
impl<T> RefUnwindSafe for GradientFlowVisualizer<T>where
T: RefUnwindSafe,
impl<T> Send for GradientFlowVisualizer<T>where
T: Send,
impl<T> Sync for GradientFlowVisualizer<T>where
T: Sync,
impl<T> Unpin for GradientFlowVisualizer<T>where
T: Unpin,
impl<T> UnsafeUnpin for GradientFlowVisualizer<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for GradientFlowVisualizer<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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