Struct stablediffusion_wgpu::model::clip::CLIPRecord
source · pub struct CLIPRecord<B: Backend> {
pub token_embedding: <Embedding<B> as Module<B>>::Record,
pub position_embedding: <Param<Tensor<B, 2>> as Module<B>>::Record,
pub blocks: <Vec<ResidualDecoderAttentionBlock<B>> as Module<B>>::Record,
pub layer_norm: <LayerNorm<B> as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§token_embedding: <Embedding<B> as Module<B>>::RecordThe module record associative type.
position_embedding: <Param<Tensor<B, 2>> as Module<B>>::RecordThe module record associative type.
blocks: <Vec<ResidualDecoderAttentionBlock<B>> as Module<B>>::RecordThe module record associative type.
layer_norm: <LayerNorm<B> as Module<B>>::RecordThe module record associative type.
Trait Implementations§
source§impl<B: Clone + Backend> Clone for CLIPRecord<B>
impl<B: Clone + Backend> Clone for CLIPRecord<B>
source§fn clone(&self) -> CLIPRecord<B>
fn clone(&self) -> CLIPRecord<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 CLIPRecord<B>
impl<B: Debug + Backend> Debug for CLIPRecord<B>
source§impl<B: Backend> Record for CLIPRecord<B>
impl<B: Backend> Record for CLIPRecord<B>
Auto Trait Implementations§
impl<B> RefUnwindSafe for CLIPRecord<B>where
<B as Backend>::TensorPrimitive<1>: RefUnwindSafe,
<B as Backend>::TensorPrimitive<2>: RefUnwindSafe,
impl<B> Send for CLIPRecord<B>
impl<B> Sync for CLIPRecord<B>
impl<B> Unpin for CLIPRecord<B>
impl<B> UnwindSafe for CLIPRecord<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