Struct DenseLayer
pub struct DenseLayer<H> {
pub attn_norm: Option<TensorBinding<H>>,
pub q: Option<TensorBinding<H>>,
pub k: Option<TensorBinding<H>>,
pub v: Option<TensorBinding<H>>,
pub output: Option<TensorBinding<H>>,
pub ffn_norm: Option<TensorBinding<H>>,
pub gate: Option<TensorBinding<H>>,
pub up: Option<TensorBinding<H>>,
pub down: Option<TensorBinding<H>>,
}Fields§
§attn_norm: Option<TensorBinding<H>>§q: Option<TensorBinding<H>>§k: Option<TensorBinding<H>>§v: Option<TensorBinding<H>>§output: Option<TensorBinding<H>>§ffn_norm: Option<TensorBinding<H>>§gate: Option<TensorBinding<H>>§up: Option<TensorBinding<H>>§down: Option<TensorBinding<H>>Trait Implementations§
§impl<H> Clone for DenseLayer<H>where
H: Clone,
impl<H> Clone for DenseLayer<H>where
H: Clone,
§fn clone(&self) -> DenseLayer<H>
fn clone(&self) -> DenseLayer<H>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<H> Copy for DenseLayer<H>where
H: Copy,
Auto Trait Implementations§
impl<H> Freeze for DenseLayer<H>where
H: Freeze,
impl<H> RefUnwindSafe for DenseLayer<H>where
H: RefUnwindSafe,
impl<H> Send for DenseLayer<H>where
H: Send,
impl<H> Sync for DenseLayer<H>where
H: Sync,
impl<H> Unpin for DenseLayer<H>where
H: Unpin,
impl<H> UnsafeUnpin for DenseLayer<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for DenseLayer<H>where
H: UnwindSafe,
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