Struct stablediffusion_wgpu::model::unet::TransformerBlockRecord
source · pub struct TransformerBlockRecord<B: Backend> {
pub norm1: <LayerNorm<B> as Module<B>>::Record,
pub attn1: <MultiHeadAttention<B> as Module<B>>::Record,
pub norm2: <LayerNorm<B> as Module<B>>::Record,
pub attn2: <MultiHeadAttention<B> as Module<B>>::Record,
pub norm3: <LayerNorm<B> as Module<B>>::Record,
pub mlp: <MLP<B> as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§norm1: <LayerNorm<B> as Module<B>>::RecordThe module record associative type.
attn1: <MultiHeadAttention<B> as Module<B>>::RecordThe module record associative type.
norm2: <LayerNorm<B> as Module<B>>::RecordThe module record associative type.
attn2: <MultiHeadAttention<B> as Module<B>>::RecordThe module record associative type.
norm3: <LayerNorm<B> as Module<B>>::RecordThe module record associative type.
mlp: <MLP<B> as Module<B>>::RecordThe module record associative type.
Trait Implementations§
source§impl<B: Clone + Backend> Clone for TransformerBlockRecord<B>
impl<B: Clone + Backend> Clone for TransformerBlockRecord<B>
source§fn clone(&self) -> TransformerBlockRecord<B>
fn clone(&self) -> TransformerBlockRecord<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 TransformerBlockRecord<B>
impl<B: Debug + Backend> Debug for TransformerBlockRecord<B>
source§impl<B: Backend> Record for TransformerBlockRecord<B>
impl<B: Backend> Record for TransformerBlockRecord<B>
Auto Trait Implementations§
impl<B> RefUnwindSafe for TransformerBlockRecord<B>where
<B as Backend>::TensorPrimitive<1>: RefUnwindSafe,
<B as Backend>::TensorPrimitive<2>: RefUnwindSafe,
impl<B> Send for TransformerBlockRecord<B>
impl<B> Sync for TransformerBlockRecord<B>
impl<B> Unpin for TransformerBlockRecord<B>
impl<B> UnwindSafe for TransformerBlockRecord<B>where
<B as Backend>::TensorPrimitive<1>: UnwindSafe,
<B as Backend>::TensorPrimitive<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