pub struct LayersRecord<M>where
M: Module + ModuleDisplay + Module,{
pub n_real_layers: EmptyRecord,
pub n_virtual_layers: EmptyRecord,
pub real_layers: <Vec<Layer<M>> as Module>::Record,
pub ignore_first_residual: EmptyRecord,
pub ignore_last_residual: EmptyRecord,
pub residuals: <Residuals as Module>::Record,
pub class_latents: EmptyRecord,
pub class_latents_emb: <Option<Param<Tensor<2>>> as Module>::Record,
}Expand description
The record type for the module.
Fields§
§n_real_layers: EmptyRecord§n_virtual_layers: EmptyRecord§real_layers: <Vec<Layer<M>> as Module>::RecordThe module record associative type.
ignore_first_residual: EmptyRecord§ignore_last_residual: EmptyRecord§residuals: <Residuals as Module>::RecordThe module record associative type.
class_latents: EmptyRecord§class_latents_emb: <Option<Param<Tensor<2>>> as Module>::RecordThe module record associative type.
Trait Implementations§
Source§impl<M> Record for LayersRecord<M>where
M: Module + ModuleDisplay + Module,
impl<M> Record for LayersRecord<M>where
M: Module + ModuleDisplay + Module,
Auto Trait Implementations§
impl<M> !Freeze for LayersRecord<M>
impl<M> !RefUnwindSafe for LayersRecord<M>
impl<M> !UnwindSafe for LayersRecord<M>
impl<M> Send for LayersRecord<M>
impl<M> Sync for LayersRecord<M>where
<M as Module>::Record: Sync,
impl<M> Unpin for LayersRecord<M>where
<M as Module>::Record: Unpin,
impl<M> UnsafeUnpin for LayersRecord<M>
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