pub struct ConvSelfAttentionBlockRecord<B: Backend> {
pub norm: <GroupNorm<B> as Module<B>>::Record,
pub q: <Conv2d<B> as Module<B>>::Record,
pub k: <Conv2d<B> as Module<B>>::Record,
pub v: <Conv2d<B> as Module<B>>::Record,
pub proj_out: <Conv2d<B> as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§norm: <GroupNorm<B> as Module<B>>::RecordThe module record associative type.
q: <Conv2d<B> as Module<B>>::RecordThe module record associative type.
k: <Conv2d<B> as Module<B>>::RecordThe module record associative type.
v: <Conv2d<B> as Module<B>>::RecordThe module record associative type.
proj_out: <Conv2d<B> as Module<B>>::RecordThe module record associative type.
Trait Implementations§
source§impl<B: Clone + Backend> Clone for ConvSelfAttentionBlockRecord<B>
impl<B: Clone + Backend> Clone for ConvSelfAttentionBlockRecord<B>
source§fn clone(&self) -> ConvSelfAttentionBlockRecord<B>
fn clone(&self) -> ConvSelfAttentionBlockRecord<B>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<B: Debug + Backend> Debug for ConvSelfAttentionBlockRecord<B>
impl<B: Debug + Backend> Debug for ConvSelfAttentionBlockRecord<B>
source§impl<B: Backend> Record for ConvSelfAttentionBlockRecord<B>
impl<B: Backend> Record for ConvSelfAttentionBlockRecord<B>
Auto Trait Implementations§
impl<B> RefUnwindSafe for ConvSelfAttentionBlockRecord<B>where
<B as Backend>::TensorPrimitive<1>: RefUnwindSafe,
<B as Backend>::TensorPrimitive<4>: RefUnwindSafe,
impl<B> Send for ConvSelfAttentionBlockRecord<B>
impl<B> Sync for ConvSelfAttentionBlockRecord<B>
impl<B> Unpin for ConvSelfAttentionBlockRecord<B>
impl<B> UnwindSafe for ConvSelfAttentionBlockRecord<B>where
<B as Backend>::TensorPrimitive<1>: UnwindSafe,
<B as Backend>::TensorPrimitive<4>: 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