pub struct Flux2Weights {
pub x_embedder: LinearWeights,
pub context_embedder: LinearWeights,
pub time_guidance: Flux2TimestepGuidanceWeights,
pub time_guidance_target: Option<Flux2TimestepGuidanceWeights>,
pub double_mod_img: Flux2ModulationWeights,
pub double_mod_txt: Flux2ModulationWeights,
pub single_mod: Flux2ModulationWeights,
pub transformer_blocks: Vec<Flux2DoubleBlockWeights>,
pub single_transformer_blocks: Vec<Flux2SingleBlockWeights>,
pub norm_out: Flux2NormOutWeights,
pub proj_out: LinearWeights,
}Fields§
§x_embedder: LinearWeights§context_embedder: LinearWeights§time_guidance: Flux2TimestepGuidanceWeights§time_guidance_target: Option<Flux2TimestepGuidanceWeights>Second timestep embedder for flow-map dual-time (t vs t′). When None, dual-time
forwards reuse Self::time_guidance for both (averaged embedding).
double_mod_img: Flux2ModulationWeights§double_mod_txt: Flux2ModulationWeights§single_mod: Flux2ModulationWeights§transformer_blocks: Vec<Flux2DoubleBlockWeights>§single_transformer_blocks: Vec<Flux2SingleBlockWeights>§norm_out: Flux2NormOutWeights§proj_out: LinearWeightsTrait Implementations§
Source§impl Clone for Flux2Weights
impl Clone for Flux2Weights
Source§fn clone(&self) -> Flux2Weights
fn clone(&self) -> Flux2Weights
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Flux2Weights
impl RefUnwindSafe for Flux2Weights
impl Send for Flux2Weights
impl Sync for Flux2Weights
impl Unpin for Flux2Weights
impl UnsafeUnpin for Flux2Weights
impl UnwindSafe for Flux2Weights
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more