pub struct GradientFlowVisualizer { /* private fields */ }Expand description
Gradient flow visualizer 勾配フロービジュアライザー
Implementations§
Source§impl GradientFlowVisualizer
impl GradientFlowVisualizer
Sourcepub fn trace_from_variable<T>(
&mut self,
var: &Variable<T>,
label: &str,
) -> usize
pub fn trace_from_variable<T>( &mut self, var: &Variable<T>, label: &str, ) -> usize
Trace gradient flow from a variable 変数から勾配フローをトレース
Sourcepub fn add_operation(
&mut self,
op_name: &str,
inputs: Vec<usize>,
output: usize,
)
pub fn add_operation( &mut self, op_name: &str, inputs: Vec<usize>, output: usize, )
Add an operation node 演算ノードを追加
Sourcepub fn save_to_file(&self, path: &Path) -> Result<()>
pub fn save_to_file(&self, path: &Path) -> Result<()>
Save visualization to file 可視化をファイルに保存
Sourcepub fn gradient_flow_summary(&self) -> GradientFlowSummary
pub fn gradient_flow_summary(&self) -> GradientFlowSummary
Generate a summary of gradient flow statistics 勾配フロー統計のサマリーを生成
Sourcepub fn detect_issues(&self) -> Vec<GradientFlowIssue>
pub fn detect_issues(&self) -> Vec<GradientFlowIssue>
Detect potential gradient flow issues 潜在的な勾配フローの問題を検出
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GradientFlowVisualizer
impl RefUnwindSafe for GradientFlowVisualizer
impl Send for GradientFlowVisualizer
impl Sync for GradientFlowVisualizer
impl Unpin for GradientFlowVisualizer
impl UnwindSafe for GradientFlowVisualizer
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