Struct dfdx::nn::builders::TransformerDecoder
source · pub struct TransformerDecoder<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize, const NUM_LAYERS: usize>;
Trait Implementations§
source§impl<const M: usize, const H: usize, const F: usize, const L: usize, E: Dtype, D: Device<E>> BuildOnDevice<D, E> for TransformerDecoder<M, H, F, L>where
TransformerDecoder<M, H, F, L, E, D>: BuildModule<D, E>,
impl<const M: usize, const H: usize, const F: usize, const L: usize, E: Dtype, D: Device<E>> BuildOnDevice<D, E> for TransformerDecoder<M, H, F, L>where TransformerDecoder<M, H, F, L, E, D>: BuildModule<D, E>,
type Built = TransformerDecoder<M, H, F, L, 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, const NUM_LAYERS: usize> Clone for TransformerDecoder<MODEL_DIM, NUM_HEADS, FF_DIM, NUM_LAYERS>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize, const NUM_LAYERS: usize> Clone for TransformerDecoder<MODEL_DIM, NUM_HEADS, FF_DIM, NUM_LAYERS>
source§fn clone(&self) -> TransformerDecoder<MODEL_DIM, NUM_HEADS, FF_DIM, NUM_LAYERS>
fn clone(&self) -> TransformerDecoder<MODEL_DIM, NUM_HEADS, FF_DIM, NUM_LAYERS>
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, const NUM_LAYERS: usize> RefUnwindSafe for TransformerDecoder<MODEL_DIM, NUM_HEADS, FF_DIM, NUM_LAYERS>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize, const NUM_LAYERS: usize> Send for TransformerDecoder<MODEL_DIM, NUM_HEADS, FF_DIM, NUM_LAYERS>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize, const NUM_LAYERS: usize> Sync for TransformerDecoder<MODEL_DIM, NUM_HEADS, FF_DIM, NUM_LAYERS>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize, const NUM_LAYERS: usize> Unpin for TransformerDecoder<MODEL_DIM, NUM_HEADS, FF_DIM, NUM_LAYERS>
impl<const MODEL_DIM: usize, const NUM_HEADS: usize, const FF_DIM: usize, const NUM_LAYERS: usize> UnwindSafe for TransformerDecoder<MODEL_DIM, NUM_HEADS, FF_DIM, NUM_LAYERS>
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