Struct candle_transformers::models::stable_diffusion::unet_2d_blocks::UNetMidBlock2DCrossAttnConfig
source · pub struct UNetMidBlock2DCrossAttnConfig {
pub num_layers: usize,
pub resnet_eps: f64,
pub resnet_groups: Option<usize>,
pub attn_num_head_channels: usize,
pub output_scale_factor: f64,
pub cross_attn_dim: usize,
pub sliced_attention_size: Option<usize>,
pub use_linear_projection: bool,
pub transformer_layers_per_block: usize,
}
Fields§
§num_layers: usize
§resnet_eps: f64
§resnet_groups: Option<usize>
§attn_num_head_channels: usize
§output_scale_factor: f64
§cross_attn_dim: usize
§sliced_attention_size: Option<usize>
§use_linear_projection: bool
§transformer_layers_per_block: usize
Trait Implementations§
source§impl Clone for UNetMidBlock2DCrossAttnConfig
impl Clone for UNetMidBlock2DCrossAttnConfig
source§fn clone(&self) -> UNetMidBlock2DCrossAttnConfig
fn clone(&self) -> UNetMidBlock2DCrossAttnConfig
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 moreimpl Copy for UNetMidBlock2DCrossAttnConfig
Auto Trait Implementations§
impl Freeze for UNetMidBlock2DCrossAttnConfig
impl RefUnwindSafe for UNetMidBlock2DCrossAttnConfig
impl Send for UNetMidBlock2DCrossAttnConfig
impl Sync for UNetMidBlock2DCrossAttnConfig
impl Unpin for UNetMidBlock2DCrossAttnConfig
impl UnwindSafe for UNetMidBlock2DCrossAttnConfig
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