pub struct ModelRecord<B: Backend> {
pub conv1d1: <Conv1d<B> as Module<B>>::Record,
pub conv1d2: <Conv1d<B> as Module<B>>::Record,
pub conv1d3: <Conv1d<B> as Module<B>>::Record,
pub gemm1: <Linear<B> as Module<B>>::Record,
pub gemm2: <Linear<B> as Module<B>>::Record,
pub phantom: <PhantomData<B> as Module<B>>::Record,
pub device: <Ignored<B::Device> as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§conv1d1: <Conv1d<B> as Module<B>>::RecordThe module record associative type.
conv1d2: <Conv1d<B> as Module<B>>::RecordThe module record associative type.
conv1d3: <Conv1d<B> as Module<B>>::RecordThe module record associative type.
gemm1: <Linear<B> as Module<B>>::RecordThe module record associative type.
gemm2: <Linear<B> as Module<B>>::RecordThe module record associative type.
phantom: <PhantomData<B> as Module<B>>::RecordThe module record associative type.
device: <Ignored<B::Device> as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for ModelRecord<B>
impl<B: Backend> Record<B> for ModelRecord<B>
Source§type Item<S: PrecisionSettings> = ModelRecordItem<B, S>
type Item<S: PrecisionSettings> = ModelRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for ModelRecord<B>
impl<B> !RefUnwindSafe for ModelRecord<B>
impl<B> Send for ModelRecord<B>
impl<B> !Sync for ModelRecord<B>
impl<B> Unpin for ModelRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnwindSafe for ModelRecord<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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.