Struct candle_transformers::models::stable_diffusion::unet_2d_blocks::CrossAttnDownBlock2DConfig
source · pub struct CrossAttnDownBlock2DConfig {
pub downblock: DownBlock2DConfig,
pub attn_num_head_channels: usize,
pub cross_attention_dim: usize,
pub sliced_attention_size: Option<usize>,
pub use_linear_projection: bool,
pub transformer_layers_per_block: usize,
}
Fields§
§downblock: DownBlock2DConfig
§attn_num_head_channels: usize
§cross_attention_dim: usize
§sliced_attention_size: Option<usize>
§use_linear_projection: bool
§transformer_layers_per_block: usize
Trait Implementations§
source§impl Clone for CrossAttnDownBlock2DConfig
impl Clone for CrossAttnDownBlock2DConfig
source§fn clone(&self) -> CrossAttnDownBlock2DConfig
fn clone(&self) -> CrossAttnDownBlock2DConfig
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 Debug for CrossAttnDownBlock2DConfig
impl Debug for CrossAttnDownBlock2DConfig
source§impl Default for CrossAttnDownBlock2DConfig
impl Default for CrossAttnDownBlock2DConfig
impl Copy for CrossAttnDownBlock2DConfig
Auto Trait Implementations§
impl Freeze for CrossAttnDownBlock2DConfig
impl RefUnwindSafe for CrossAttnDownBlock2DConfig
impl Send for CrossAttnDownBlock2DConfig
impl Sync for CrossAttnDownBlock2DConfig
impl Unpin for CrossAttnDownBlock2DConfig
impl UnwindSafe for CrossAttnDownBlock2DConfig
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