Struct DenseModel
pub struct DenseModel<'a, H> {
pub config: DenseConfig,
pub layers: &'a [DenseLayer<H>],
pub embedding: TensorBinding<H>,
pub output_norm: Option<TensorBinding<H>>,
pub output: Option<TensorBinding<H>>,
}Fields§
§config: DenseConfig§layers: &'a [DenseLayer<H>]§embedding: TensorBinding<H>§output_norm: Option<TensorBinding<H>>§output: Option<TensorBinding<H>>Trait Implementations§
§impl<'a, H> Clone for DenseModel<'a, H>where
H: Clone,
impl<'a, H> Clone for DenseModel<'a, H>where
H: Clone,
§fn clone(&self) -> DenseModel<'a, H>
fn clone(&self) -> DenseModel<'a, 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<'a, H> Copy for DenseModel<'a, H>where
H: Copy,
Auto Trait Implementations§
impl<'a, H> Freeze for DenseModel<'a, H>where
H: Freeze,
impl<'a, H> RefUnwindSafe for DenseModel<'a, H>where
H: RefUnwindSafe,
impl<'a, H> Send for DenseModel<'a, H>
impl<'a, H> Sync for DenseModel<'a, H>where
H: Sync,
impl<'a, H> Unpin for DenseModel<'a, H>where
H: Unpin,
impl<'a, H> UnsafeUnpin for DenseModel<'a, H>where
H: UnsafeUnpin,
impl<'a, H> UnwindSafe for DenseModel<'a, H>where
H: UnwindSafe + RefUnwindSafe,
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