pub struct PatchEmbeddingRecord<B: Backend> {
pub projection: <Linear<B> as Module<B>>::Record,
pub patch_h: <usize as Module<B>>::Record,
pub patch_w: <usize as Module<B>>::Record,
pub in_channels: <usize as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§projection: <Linear<B> as Module<B>>::RecordThe module record associative type.
patch_h: <usize as Module<B>>::RecordThe module record associative type.
patch_w: <usize as Module<B>>::RecordThe module record associative type.
in_channels: <usize as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for PatchEmbeddingRecord<B>
impl<B: Backend> Record<B> for PatchEmbeddingRecord<B>
Source§type Item<S: PrecisionSettings> = PatchEmbeddingRecordItem<B, S>
type Item<S: PrecisionSettings> = PatchEmbeddingRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for PatchEmbeddingRecord<B>
impl<B> !RefUnwindSafe for PatchEmbeddingRecord<B>
impl<B> Send for PatchEmbeddingRecord<B>
impl<B> !Sync for PatchEmbeddingRecord<B>
impl<B> Unpin for PatchEmbeddingRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnsafeUnpin for PatchEmbeddingRecord<B>where
<B as Backend>::FloatTensorPrimitive: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive: UnsafeUnpin,
<B as Backend>::Device: UnsafeUnpin,
impl<B> !UnwindSafe for PatchEmbeddingRecord<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