pub struct BidiLayersRecord<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 outputs_merge: <Vec<OutputMerge> as Module>::Record,
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§outputs_merge: <Vec<OutputMerge> as Module>::RecordThe module record associative type.
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 BidiLayersRecord<M>where
M: Module + ModuleDisplay + Module,
impl<M> Record for BidiLayersRecord<M>where
M: Module + ModuleDisplay + Module,
Auto Trait Implementations§
impl<M> !Freeze for BidiLayersRecord<M>
impl<M> !RefUnwindSafe for BidiLayersRecord<M>
impl<M> !UnwindSafe for BidiLayersRecord<M>
impl<M> Send for BidiLayersRecord<M>
impl<M> Sync for BidiLayersRecord<M>where
<M as Module>::Record: Sync,
impl<M> Unpin for BidiLayersRecord<M>where
<M as Module>::Record: Unpin,
impl<M> UnsafeUnpin for BidiLayersRecord<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