Skip to main content

VisualizableUnit

Trait VisualizableUnit 

Source
pub trait VisualizableUnit {
    type Params: Debug + Sized;

    const KIND: &'static str;

    // Required method
    fn params(&self) -> &Self::Params;
}
Expand description

Something which can have its parameters visualized.

Required Associated Constants§

Source

const KIND: &'static str

Required Associated Types§

Required Methods§

Source

fn params(&self) -> &Self::Params

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl VisualizableUnit for Softmax

Source§

const KIND: &'static str = "softmax"

Source§

type Params = ()

Source§

impl<E: Dtype + MatMulImpl, const I: usize, const O: usize, C: Conv1dKernel<E, Const<I>, Const<O>>> VisualizableUnit for Conv1d<E, I, O, C>

Source§

const KIND: &'static str = "conv1d"

Source§

type Params = <C as Conv1dKernel<E, Const<I>, Const<O>>>::Weights

Source§

impl<E: Dtype + MatMulImpl, const I: usize, const O: usize> VisualizableUnit for Dense<E, I, O>

Source§

const KIND: &'static str = "dense"

Source§

type Params = [[E; I]; O]

Source§

impl<E: Dtype, const I: usize, M: Default + Module<[E; I]> + VisualizableUnit> VisualizableUnit for LR<E, I, M>

Source§

const KIND: &'static str = M::KIND

Source§

type Params = <M as VisualizableUnit>::Params

Source§

impl<E: Dtype, const I: usize> VisualizableUnit for Bias1d<E, I>

Source§

const KIND: &'static str = "bias1d"

Source§

type Params = [[E; I]; 1]

Source§

impl<E: Dtype, const I: usize> VisualizableUnit for Diag<E, I>

Source§

const KIND: &'static str = "diag"

Source§

type Params = [[E; I]; 1]

Source§

impl<E: Dtype> VisualizableUnit for ScalarScale<E>

Source§

const KIND: &'static str = "scalar_scale"

Source§

type Params = [[E; 1]; 1]

Source§

impl<E: Float + MatMulImpl, const I: usize> VisualizableUnit for RMSDiv<E, I>

Source§

const KIND: &'static str = "rmsdiv"

Source§

type Params = ()

Source§

impl<E: Float, const I: usize> VisualizableUnit for Swish<E, I>

Source§

const KIND: &'static str = "swish"

Source§

type Params = [[E; I]; 1]

Source§

impl<E: Float> VisualizableUnit for Activation<E>

Source§

const KIND: &'static str = "activation"

Source§

type Params = ()