pub struct UNetMidBlock2DConfig {
pub num_layers: usize,
pub resnet_eps: f64,
pub resnet_groups: Option<usize>,
pub attn_num_head_channels: Option<usize>,
pub output_scale_factor: f64,
}
Fields§
§num_layers: usize
§resnet_eps: f64
§resnet_groups: Option<usize>
§attn_num_head_channels: Option<usize>
§output_scale_factor: f64
Trait Implementations§
source§impl Clone for UNetMidBlock2DConfig
impl Clone for UNetMidBlock2DConfig
source§fn clone(&self) -> UNetMidBlock2DConfig
fn clone(&self) -> UNetMidBlock2DConfig
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 UNetMidBlock2DConfig
impl Debug for UNetMidBlock2DConfig
source§impl Default for UNetMidBlock2DConfig
impl Default for UNetMidBlock2DConfig
impl Copy for UNetMidBlock2DConfig
Auto Trait Implementations§
impl Freeze for UNetMidBlock2DConfig
impl RefUnwindSafe for UNetMidBlock2DConfig
impl Send for UNetMidBlock2DConfig
impl Sync for UNetMidBlock2DConfig
impl Unpin for UNetMidBlock2DConfig
impl UnwindSafe for UNetMidBlock2DConfig
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