Trait burn::module::ModuleDisplayDefault

pub trait ModuleDisplayDefault {
    // Required method
    fn content(&self, _content: Content) -> Option<Content>;

    // Provided method
    fn num_params(&self) -> usize { ... }
}
Expand description

Default display settings for a module.

Required Methods§

fn content(&self, _content: Content) -> Option<Content>

Attributes of the module used for display purposes.

§Arguments
  • _content - The content object that contains display settings and attributes.
§Returns

An optional content object containing the display attributes.

Provided Methods§

fn num_params(&self) -> usize

Gets the number of the parameters of the module.

Implementations on Foreign Types§

§

impl ModuleDisplayDefault for bool

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for f32

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for f64

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for i8

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for i16

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for i32

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for i64

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for str

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for u8

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for u16

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for u32

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for u64

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for usize

§

fn content(&self, content: Content) -> Option<Content>

§

impl ModuleDisplayDefault for String

§

fn content(&self, content: Content) -> Option<Content>

§

impl<B> ModuleDisplayDefault for PhantomData<B>
where B: Backend,

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1> ModuleDisplayDefault for (L0, L1)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2> ModuleDisplayDefault for (L0, L1, L2)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3> ModuleDisplayDefault for (L0, L1, L2, L3)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4> ModuleDisplayDefault for (L0, L1, L2, L3, L4)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5, L6> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5, L6)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5, L6, L7> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5, L6, L7)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5, L6, L7, L8> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5, L6, L7, L8)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<L0, L1, L2, L3, L4, L5, L6, L7, L8, L9> ModuleDisplayDefault for (L0, L1, L2, L3, L4, L5, L6, L7, L8, L9)

§

fn content(&self, content: Content) -> Option<Content>

§

impl<T> ModuleDisplayDefault for Option<T>
where T: ModuleDisplay,

§

fn content(&self, content: Content) -> Option<Content>

§

impl<T> ModuleDisplayDefault for Vec<T>
where T: ModuleDisplay,

§

fn content(&self, content: Content) -> Option<Content>

§

impl<const N: usize, T> ModuleDisplayDefault for [T; N]
where T: ModuleDisplay,

§

fn content(&self, content: Content) -> Option<Content>

Implementors§

§

impl ModuleDisplayDefault for Interpolate1d

§

impl ModuleDisplayDefault for Interpolate2d

§

impl ModuleDisplayDefault for HuberLoss

§

impl ModuleDisplayDefault for MseLoss

§

impl ModuleDisplayDefault for AdaptiveAvgPool1d

§

impl ModuleDisplayDefault for AdaptiveAvgPool2d

§

impl ModuleDisplayDefault for AvgPool1d

§

impl ModuleDisplayDefault for AvgPool2d

§

impl ModuleDisplayDefault for MaxPool1d

§

impl ModuleDisplayDefault for MaxPool2d

§

impl ModuleDisplayDefault for Dropout

§

impl ModuleDisplayDefault for Gelu

§

impl ModuleDisplayDefault for HardSigmoid

§

impl ModuleDisplayDefault for LeakyRelu

§

impl ModuleDisplayDefault for Relu

§

impl ModuleDisplayDefault for Sigmoid

§

impl ModuleDisplayDefault for Tanh

§

impl ModuleDisplayDefault for Unfold4d

§

impl ModuleDisplayDefault for bf16

§

impl ModuleDisplayDefault for f16

§

impl<B> ModuleDisplayDefault for MultiHeadAttention<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for Conv1d<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for Conv2d<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for Conv3d<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for ConvTranspose1d<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for ConvTranspose2d<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for ConvTranspose3d<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for Gru<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for BinaryCrossEntropyLoss<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for CrossEntropyLoss<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for BiLstm<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for Embedding<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for GateController<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for GroupNorm<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for InstanceNorm<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for LayerNorm<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for Linear<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for Lstm<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for PRelu<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for PositionalEncoding<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for RmsNorm<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for RotaryEncoding<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for SwiGlu<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for PositionWiseFeedForward<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for TransformerDecoder<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for TransformerDecoderLayer<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for TransformerEncoder<B>
where B: Backend,

§

impl<B> ModuleDisplayDefault for TransformerEncoderLayer<B>
where B: Backend,

§

impl<B, const D: usize> ModuleDisplayDefault for BatchNorm<B, D>
where B: Backend,

§

impl<T> ModuleDisplayDefault for Ignored<T>
where T: Sync + Send + Debug + Clone,

§

impl<V> ModuleDisplayDefault for RunningState<V>

§

impl<const D: usize, B> ModuleDisplayDefault for Param<Tensor<B, D>>
where B: Backend,

§

impl<const D: usize, B> ModuleDisplayDefault for Param<Tensor<B, D, Bool>>
where B: Backend,

§

impl<const D: usize, B> ModuleDisplayDefault for Param<Tensor<B, D, Int>>
where B: Backend,

§

impl<const D: usize, B, K> ModuleDisplayDefault for Tensor<B, D, K>
where B: Backend, K: BasicOps<B>,