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 moreAuto Trait Implementations§
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize> RefUnwindSafe for TransformerDecoderBlock<MODEL_DIM, NUM_HEADS, FF_DIM>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize> Send for TransformerDecoderBlock<MODEL_DIM, NUM_HEADS, FF_DIM>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize> Sync for TransformerDecoderBlock<MODEL_DIM, NUM_HEADS, FF_DIM>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize> Unpin for TransformerDecoderBlock<MODEL_DIM, NUM_HEADS, FF_DIM>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize> UnwindSafe for TransformerDecoderBlock<MODEL_DIM, NUM_HEADS, FF_DIM>
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