pub struct VaeDecoder {
pub latent_channels: usize,
pub scaling_factor: f32,
pub shift_factor: f32,
/* private fields */
}Expand description
The full decoder: conv_in → mid(res, attn, res) → up-blocks → GroupNorm + SiLU → conv_out, plus the diffusers latent
de-normalization z/scaling_factor + shift_factor.
Fields§
§latent_channels: usize§scaling_factor: f32§shift_factor: f32Implementations§
Source§impl VaeDecoder
impl VaeDecoder
Auto Trait Implementations§
impl Freeze for VaeDecoder
impl RefUnwindSafe for VaeDecoder
impl Send for VaeDecoder
impl Sync for VaeDecoder
impl Unpin for VaeDecoder
impl UnsafeUnpin for VaeDecoder
impl UnwindSafe for VaeDecoder
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