pub struct ClassificationModelRecord<B: Backend> {
pub encoder: <EEGEncoder<B> as Module<B>>::Record,
pub full_linear: <Linear<B> as Module<B>>::Record,
pub channel_linear: <Linear<B> as Module<B>>::Record,
pub cls_fc1: <Linear<B> as Module<B>>::Record,
pub cls_fc2: <Linear<B> as Module<B>>::Record,
pub cls_fc3: <Linear<B> as Module<B>>::Record,
pub feature_size: <usize as Module<B>>::Record,
pub num_global_tokens: <usize as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§encoder: <EEGEncoder<B> as Module<B>>::RecordThe module record associative type.
full_linear: <Linear<B> as Module<B>>::RecordThe module record associative type.
channel_linear: <Linear<B> as Module<B>>::RecordThe module record associative type.
cls_fc1: <Linear<B> as Module<B>>::RecordThe module record associative type.
cls_fc2: <Linear<B> as Module<B>>::RecordThe module record associative type.
cls_fc3: <Linear<B> as Module<B>>::RecordThe module record associative type.
feature_size: <usize as Module<B>>::RecordThe module record associative type.
num_global_tokens: <usize as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for ClassificationModelRecord<B>
impl<B: Backend> Record<B> for ClassificationModelRecord<B>
Source§type Item<S: PrecisionSettings> = ClassificationModelRecordItem<B, S>
type Item<S: PrecisionSettings> = ClassificationModelRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for ClassificationModelRecord<B>
impl<B> !RefUnwindSafe for ClassificationModelRecord<B>
impl<B> Send for ClassificationModelRecord<B>
impl<B> !Sync for ClassificationModelRecord<B>
impl<B> Unpin for ClassificationModelRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnsafeUnpin for ClassificationModelRecord<B>where
<B as Backend>::FloatTensorPrimitive: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive: UnsafeUnpin,
<B as Backend>::Device: UnsafeUnpin,
impl<B> !UnwindSafe for ClassificationModelRecord<B>
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