pub struct VisualizationConfig {
pub show_details: bool,
pub show_shapes: bool,
pub max_depth: usize,
pub use_color: bool,
pub indent: String,
pub show_tensor_ids: bool,
pub show_node_ids: bool,
pub horizontal_layout: bool,
pub cluster_by_operation: bool,
}Expand description
Configuration for graph visualization.
Fields§
§show_details: boolShow operation details (spec strings, etc.)
show_shapes: boolShow tensor shapes in node labels
max_depth: usizeMaximum depth for ASCII rendering (0 = unlimited)
use_color: boolUse colour in DOT output
indent: StringIndent string for ASCII rendering
show_tensor_ids: boolShow tensor indices alongside names
show_node_ids: boolShow node indices alongside operation labels
horizontal_layout: boolUse horizontal (LR) layout in DOT
cluster_by_operation: boolCluster operations by type in DOT
Implementations§
Source§impl VisualizationConfig
impl VisualizationConfig
Sourcepub fn with_details(self, v: bool) -> Self
pub fn with_details(self, v: bool) -> Self
Builder: toggle detail display.
Sourcepub fn with_shapes(self, v: bool) -> Self
pub fn with_shapes(self, v: bool) -> Self
Builder: toggle shape display.
Sourcepub fn with_max_depth(self, d: usize) -> Self
pub fn with_max_depth(self, d: usize) -> Self
Builder: set maximum ASCII rendering depth.
Sourcepub fn with_color(self, v: bool) -> Self
pub fn with_color(self, v: bool) -> Self
Builder: toggle colour in DOT output.
Sourcepub fn with_tensor_ids(self, v: bool) -> Self
pub fn with_tensor_ids(self, v: bool) -> Self
Builder: toggle tensor id display.
Sourcepub fn with_node_ids(self, v: bool) -> Self
pub fn with_node_ids(self, v: bool) -> Self
Builder: toggle node id display.
Sourcepub fn with_horizontal_layout(self, v: bool) -> Self
pub fn with_horizontal_layout(self, v: bool) -> Self
Builder: toggle horizontal layout.
Sourcepub fn with_clustering(self, v: bool) -> Self
pub fn with_clustering(self, v: bool) -> Self
Builder: toggle operation clustering.
Trait Implementations§
Source§impl Clone for VisualizationConfig
impl Clone for VisualizationConfig
Source§fn clone(&self) -> VisualizationConfig
fn clone(&self) -> VisualizationConfig
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 Debug for VisualizationConfig
impl Debug for VisualizationConfig
Auto Trait Implementations§
impl Freeze for VisualizationConfig
impl RefUnwindSafe for VisualizationConfig
impl Send for VisualizationConfig
impl Sync for VisualizationConfig
impl Unpin for VisualizationConfig
impl UnsafeUnpin for VisualizationConfig
impl UnwindSafe for VisualizationConfig
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