Struct dfdx::nn::builders::TransformerDecoderBlock
source · pub struct TransformerDecoderBlock<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize>;
Trait Implementations§
source§impl<const M: usize, const N: usize, const F: usize, E: Dtype, D: Device<E>> BuildOnDevice<D, E> for TransformerDecoderBlock<M, N, F>where
TransformerDecoderBlock<M, N, F, E, D>: BuildModule<D, E>,
impl<const M: usize, const N: usize, const F: usize, E: Dtype, D: Device<E>> BuildOnDevice<D, E> for TransformerDecoderBlock<M, N, F>where TransformerDecoderBlock<M, N, F, E, D>: BuildModule<D, E>,
type Built = TransformerDecoderBlock<M, N, F, E, D>
fn try_build_on_device(device: &D) -> Result<Self::Built, D::Err>
fn build_on_device(device: &D) -> Self::Built
source§impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize> Clone for TransformerDecoderBlock<MODEL_DIM, NUM_HEADS, FF_DIM>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize> Clone for TransformerDecoderBlock<MODEL_DIM, NUM_HEADS, FF_DIM>
source§fn clone(&self) -> TransformerDecoderBlock<MODEL_DIM, NUM_HEADS, FF_DIM>
fn clone(&self) -> TransformerDecoderBlock<MODEL_DIM, NUM_HEADS, FF_DIM>
Returns a copy 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 more