pub struct CfCCellRecord<B: Backend> {
pub input_size: <usize as Module<B>>::Record,
pub hidden_size: <usize as Module<B>>::Record,
pub mode: <u8 as Module<B>>::Record,
pub has_sparsity_mask: <bool as Module<B>>::Record,
pub ff1: <Linear<B> as Module<B>>::Record,
pub ff2: <Option<Linear<B>> as Module<B>>::Record,
pub time_a: <Option<Linear<B>> as Module<B>>::Record,
pub time_b: <Option<Linear<B>> as Module<B>>::Record,
pub w_tau: <Option<Linear<B>> as Module<B>>::Record,
pub a: <Option<Linear<B>> as Module<B>>::Record,
pub sparsity_mask: <Option<Param<Tensor<B, 2>>> as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§input_size: <usize as Module<B>>::RecordThe module record associative type.
The module record associative type.
mode: <u8 as Module<B>>::RecordThe module record associative type.
has_sparsity_mask: <bool as Module<B>>::RecordThe module record associative type.
ff1: <Linear<B> as Module<B>>::RecordThe module record associative type.
ff2: <Option<Linear<B>> as Module<B>>::RecordThe module record associative type.
time_a: <Option<Linear<B>> as Module<B>>::RecordThe module record associative type.
time_b: <Option<Linear<B>> as Module<B>>::RecordThe module record associative type.
w_tau: <Option<Linear<B>> as Module<B>>::RecordThe module record associative type.
a: <Option<Linear<B>> as Module<B>>::RecordThe module record associative type.
sparsity_mask: <Option<Param<Tensor<B, 2>>> as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for CfCCellRecord<B>
impl<B: Backend> Record<B> for CfCCellRecord<B>
Source§type Item<S: PrecisionSettings> = CfCCellRecordItem<B, S>
type Item<S: PrecisionSettings> = CfCCellRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for CfCCellRecord<B>
impl<B> !RefUnwindSafe for CfCCellRecord<B>
impl<B> Send for CfCCellRecord<B>
impl<B> !Sync for CfCCellRecord<B>
impl<B> Unpin for CfCCellRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnwindSafe for CfCCellRecord<B>where
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more