Struct candle_transformers::models::stable_diffusion::unet_2d_blocks::CrossAttnUpBlock2DConfig
source · pub struct CrossAttnUpBlock2DConfig {
pub upblock: UpBlock2DConfig,
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§
§upblock: UpBlock2DConfig
§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 CrossAttnUpBlock2DConfig
impl Clone for CrossAttnUpBlock2DConfig
source§fn clone(&self) -> CrossAttnUpBlock2DConfig
fn clone(&self) -> CrossAttnUpBlock2DConfig
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 CrossAttnUpBlock2DConfig
impl Debug for CrossAttnUpBlock2DConfig
source§impl Default for CrossAttnUpBlock2DConfig
impl Default for CrossAttnUpBlock2DConfig
impl Copy for CrossAttnUpBlock2DConfig
Auto Trait Implementations§
impl Freeze for CrossAttnUpBlock2DConfig
impl RefUnwindSafe for CrossAttnUpBlock2DConfig
impl Send for CrossAttnUpBlock2DConfig
impl Sync for CrossAttnUpBlock2DConfig
impl Unpin for CrossAttnUpBlock2DConfig
impl UnwindSafe for CrossAttnUpBlock2DConfig
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