Trait burn::module::AutodiffModule

pub trait AutodiffModule<B>:
    Module<B>
    + Send
    + Debug
where B: AutodiffBackend,
{ type InnerModule: Module<<B as AutodiffBackend>::InnerBackend>; // Required method fn valid(&self) -> Self::InnerModule; }
Expand description

Module with auto-differentiation backend.

Required Associated Types§

type InnerModule: Module<<B as AutodiffBackend>::InnerBackend>

Inner module without auto-differentiation.

Required Methods§

fn valid(&self) -> Self::InnerModule

Get the same module, but on the inner backend without auto-differentiation.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<B> AutodiffModule<B> for bool
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for f32
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for f64
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for i8
where B: AutodiffBackend,

§

type InnerModule = i8

§

fn valid(&self) -> <i8 as AutodiffModule<B>>::InnerModule

§

impl<B> AutodiffModule<B> for i16
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for i32
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for i64
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for u8
where B: AutodiffBackend,

§

type InnerModule = u8

§

fn valid(&self) -> <u8 as AutodiffModule<B>>::InnerModule

§

impl<B> AutodiffModule<B> for u16
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for u32
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for u64
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for usize
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for String
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for PhantomData<B>
where B: AutodiffBackend,

§

impl<B, L0, L1> AutodiffModule<B> for (L0, L1)

§

impl<B, L0, L1, L2> AutodiffModule<B> for (L0, L1, L2)

§

impl<B, L0, L1, L2, L3> AutodiffModule<B> for (L0, L1, L2, L3)

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<T, B> AutodiffModule<B> for Option<T>

§

impl<T, B> AutodiffModule<B> for Vec<T>

§

impl<const N: usize, T, B> AutodiffModule<B> for [T; N]

Implementors§

§

impl<B> AutodiffModule<B> for MultiHeadAttention<B>

§

impl<B> AutodiffModule<B> for Conv1d<B>

§

impl<B> AutodiffModule<B> for Conv2d<B>

§

impl<B> AutodiffModule<B> for Conv3d<B>

§

impl<B> AutodiffModule<B> for ConvTranspose1d<B>

§

impl<B> AutodiffModule<B> for ConvTranspose2d<B>

§

impl<B> AutodiffModule<B> for ConvTranspose3d<B>

§

impl<B> AutodiffModule<B> for DeformConv2d<B>

§

impl<B> AutodiffModule<B> for Gru<B>

§

impl<B> AutodiffModule<B> for Interpolate1d
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for Interpolate2d
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for BinaryCrossEntropyLoss<B>

§

impl<B> AutodiffModule<B> for CrossEntropyLoss<B>

§

impl<B> AutodiffModule<B> for HuberLoss
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for MseLoss
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for AdaptiveAvgPool1d
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for AdaptiveAvgPool2d
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for AvgPool1d
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for AvgPool2d
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for MaxPool1d
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for MaxPool2d
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for BiLstm<B>

§

impl<B> AutodiffModule<B> for Dropout
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for Embedding<B>

§

impl<B> AutodiffModule<B> for GateController<B>

§

impl<B> AutodiffModule<B> for Gelu
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for GroupNorm<B>

§

impl<B> AutodiffModule<B> for HardSigmoid
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for InstanceNorm<B>

§

impl<B> AutodiffModule<B> for LayerNorm<B>

§

impl<B> AutodiffModule<B> for LeakyRelu
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for Linear<B>

§

impl<B> AutodiffModule<B> for Lstm<B>

§

impl<B> AutodiffModule<B> for PRelu<B>

§

impl<B> AutodiffModule<B> for PositionalEncoding<B>

§

impl<B> AutodiffModule<B> for Relu
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for RmsNorm<B>

§

impl<B> AutodiffModule<B> for RotaryEncoding<B>

§

impl<B> AutodiffModule<B> for Sigmoid
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for SwiGlu<B>

§

impl<B> AutodiffModule<B> for Tanh
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for Unfold4d
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for PositionWiseFeedForward<B>

§

impl<B> AutodiffModule<B> for TransformerDecoder<B>

§

impl<B> AutodiffModule<B> for TransformerDecoderLayer<B>

§

impl<B> AutodiffModule<B> for TransformerEncoder<B>

§

impl<B> AutodiffModule<B> for TransformerEncoderLayer<B>

§

impl<B> AutodiffModule<B> for bf16
where B: AutodiffBackend,

§

impl<B> AutodiffModule<B> for f16
where B: AutodiffBackend,

§

impl<B, T> AutodiffModule<B> for Ignored<T>
where B: AutodiffBackend, T: Sync + Send + Debug + Clone,

§

impl<B, const D: usize> AutodiffModule<B> for BatchNorm<B, D>

§

impl<const D: usize, B> AutodiffModule<B> for Param<Tensor<B, D>>
where B: AutodiffBackend,

§

impl<const D: usize, B> AutodiffModule<B> for Param<Tensor<B, D, Bool>>
where B: AutodiffBackend,

§

impl<const D: usize, B> AutodiffModule<B> for Param<Tensor<B, D, Int>>
where B: AutodiffBackend,

§

impl<const D: usize, B> AutodiffModule<B> for RunningState<Tensor<B, D>>
where B: AutodiffBackend,

§

impl<const D: usize, B, K> AutodiffModule<B> for Tensor<B, D, K>