Struct candle_transformers::models::stable_diffusion::unet_2d::BlockConfig
source · pub struct BlockConfig {
pub out_channels: usize,
pub use_cross_attn: Option<usize>,
pub attention_head_dim: usize,
}
Fields§
§out_channels: usize
§use_cross_attn: Option<usize>
When None
no cross-attn is used, when Some(d)
then cross-attn is used and d
is the
number of transformer blocks to be used.
attention_head_dim: usize
Trait Implementations§
source§impl Clone for BlockConfig
impl Clone for BlockConfig
source§fn clone(&self) -> BlockConfig
fn clone(&self) -> BlockConfig
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 BlockConfig
impl Debug for BlockConfig
impl Copy for BlockConfig
Auto Trait Implementations§
impl Freeze for BlockConfig
impl RefUnwindSafe for BlockConfig
impl Send for BlockConfig
impl Sync for BlockConfig
impl Unpin for BlockConfig
impl UnwindSafe for BlockConfig
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