pub struct NetworkVisualizer<F: Float + Debug + ScalarOperand> { /* private fields */ }
Expand description
Network architecture visualizer
Implementations§
Source§impl<F: Float + Debug + 'static + FromPrimitive + ScalarOperand + Send + Sync> NetworkVisualizer<F>
impl<F: Float + Debug + 'static + FromPrimitive + ScalarOperand + Send + Sync> NetworkVisualizer<F>
Sourcepub fn new(model: Sequential<F>, config: VisualizationConfig) -> Self
pub fn new(model: Sequential<F>, config: VisualizationConfig) -> Self
Create a new network visualizer
Sourcepub fn visualize_architecture(&mut self) -> Result<PathBuf>
pub fn visualize_architecture(&mut self) -> Result<PathBuf>
Generate network architecture visualization
Sourcepub fn get_cached_layout(&self) -> Option<&NetworkLayout>
pub fn get_cached_layout(&self) -> Option<&NetworkLayout>
Get the cached layout if available
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the layout cache
Sourcepub fn update_config(&mut self, config: VisualizationConfig)
pub fn update_config(&mut self, config: VisualizationConfig)
Update the visualization configuration
Auto Trait Implementations§
impl<F> Freeze for NetworkVisualizer<F>
impl<F> !RefUnwindSafe for NetworkVisualizer<F>
impl<F> Send for NetworkVisualizer<F>where
F: Send,
impl<F> Sync for NetworkVisualizer<F>where
F: Sync,
impl<F> Unpin for NetworkVisualizer<F>
impl<F> !UnwindSafe for NetworkVisualizer<F>
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