pub struct TensorVisualizer { /* private fields */ }Expand description
Main tensor visualizer
Implementations§
Source§impl TensorVisualizer
impl TensorVisualizer
Sourcepub fn with_config(config: VisualizationConfig) -> Self
pub fn with_config(config: VisualizationConfig) -> Self
Create a new tensor visualizer with custom configuration
Sourcepub fn visualize_tensor(&self, tensor: &Tensor) -> Result<String>
pub fn visualize_tensor(&self, tensor: &Tensor) -> Result<String>
Visualize a tensor as text representation
Sourcepub fn compute_statistics(&self, tensor: &Tensor) -> Result<TensorStats>
pub fn compute_statistics(&self, tensor: &Tensor) -> Result<TensorStats>
Generate tensor statistics
Sourcepub fn create_heatmap(&self, tensor: &Tensor) -> Result<TensorHeatmap>
pub fn create_heatmap(&self, tensor: &Tensor) -> Result<TensorHeatmap>
Create a heatmap visualization for 2D tensors
Sourcepub fn create_histogram(
&self,
tensor: &Tensor,
num_bins: usize,
) -> Result<TensorHistogram>
pub fn create_histogram( &self, tensor: &Tensor, num_bins: usize, ) -> Result<TensorHistogram>
Create a histogram for 1D tensor or flattened tensor
Sourcepub fn create_slice_view(
&self,
tensor: &Tensor,
max_slices: usize,
) -> Result<TensorSliceView>
pub fn create_slice_view( &self, tensor: &Tensor, max_slices: usize, ) -> Result<TensorSliceView>
Create slice view for multi-dimensional tensors
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TensorVisualizer
impl RefUnwindSafe for TensorVisualizer
impl Send for TensorVisualizer
impl Sync for TensorVisualizer
impl Unpin for TensorVisualizer
impl UnsafeUnpin for TensorVisualizer
impl UnwindSafe for TensorVisualizer
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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