pub struct SensorEncoderRecord<B: Backend> {
pub patch_embed: <PatchEmbedding<B> as Module<B>>::Record,
pub pos_embed: <Param<Tensor<B, 3>> as Module<B>>::Record,
pub blocks: <Vec<EncoderBlock<B>> as Module<B>>::Record,
pub norm: <LayerNorm<B> as Module<B>>::Record,
pub map_head: <Option<MAPHead<B>> as Module<B>>::Record,
pub dropout: <Dropout as Module<B>>::Record,
pub d_model: <usize as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§patch_embed: <PatchEmbedding<B> as Module<B>>::RecordThe module record associative type.
pos_embed: <Param<Tensor<B, 3>> as Module<B>>::RecordThe module record associative type.
blocks: <Vec<EncoderBlock<B>> as Module<B>>::RecordThe module record associative type.
norm: <LayerNorm<B> as Module<B>>::RecordThe module record associative type.
map_head: <Option<MAPHead<B>> as Module<B>>::RecordThe module record associative type.
dropout: <Dropout as Module<B>>::RecordThe module record associative type.
d_model: <usize as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for SensorEncoderRecord<B>
impl<B: Backend> Record<B> for SensorEncoderRecord<B>
Source§type Item<S: PrecisionSettings> = SensorEncoderRecordItem<B, S>
type Item<S: PrecisionSettings> = SensorEncoderRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for SensorEncoderRecord<B>
impl<B> !RefUnwindSafe for SensorEncoderRecord<B>
impl<B> Send for SensorEncoderRecord<B>
impl<B> !Sync for SensorEncoderRecord<B>
impl<B> Unpin for SensorEncoderRecord<B>where
<B as Backend>::FloatTensorPrimitive<3>: Unpin,
<B as Backend>::QuantizedTensorPrimitive<3>: Unpin,
<B as Backend>::Device: Unpin,
<B as Backend>::FloatTensorPrimitive<1>: Unpin,
<B as Backend>::QuantizedTensorPrimitive<1>: Unpin,
<B as Backend>::FloatTensorPrimitive<4>: Unpin,
<B as Backend>::QuantizedTensorPrimitive<4>: Unpin,
<B as Backend>::FloatTensorPrimitive<2>: Unpin,
<B as Backend>::QuantizedTensorPrimitive<2>: Unpin,
impl<B> UnsafeUnpin for SensorEncoderRecord<B>where
<B as Backend>::FloatTensorPrimitive<3>: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive<3>: UnsafeUnpin,
<B as Backend>::Device: UnsafeUnpin,
<B as Backend>::FloatTensorPrimitive<1>: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive<1>: UnsafeUnpin,
<B as Backend>::FloatTensorPrimitive<4>: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive<4>: UnsafeUnpin,
<B as Backend>::FloatTensorPrimitive<2>: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive<2>: UnsafeUnpin,
impl<B> UnwindSafe for SensorEncoderRecord<B>where
<B as Backend>::FloatTensorPrimitive<3>: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive<3>: UnwindSafe,
<B as Backend>::FloatTensorPrimitive<1>: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive<1>: UnwindSafe,
<B as Backend>::FloatTensorPrimitive<4>: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive<4>: UnwindSafe,
<B as Backend>::FloatTensorPrimitive<2>: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive<2>: 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 more