pub struct DiffusionPlan {
pub components: BTreeMap<String, Digest>,
pub conditioning: Digest,
pub rng: Digest,
pub seed: u64,
pub tensor: TensorSpec,
pub schedule: DiffusionSchedule,
}Expand description
Exact model, conditioning, random-state, tensor, and schedule contract.
Fields§
§components: BTreeMap<String, Digest>Named component artifact identities in deterministic key order.
conditioning: DigestIdentity of exact tokenization and conditioning output.
rng: DigestRandom-number-generator implementation identity.
seed: u64Exact random seed interpreted by the identified RNG.
tensor: TensorSpecIterative state exposed at step boundaries.
schedule: DiffusionScheduleExact schedule.
Implementations§
Source§impl DiffusionPlan
impl DiffusionPlan
Sourcepub fn new(
components: BTreeMap<String, Digest>,
conditioning: Digest,
rng: Digest,
seed: u64,
tensor: TensorSpec,
schedule: DiffusionSchedule,
) -> Result<Self, CoreError>
pub fn new( components: BTreeMap<String, Digest>, conditioning: Digest, rng: Digest, seed: u64, tensor: TensorSpec, schedule: DiffusionSchedule, ) -> Result<Self, CoreError>
Constructs and validates an exact diffusion execution plan.
§Errors
Returns an error for invalid components, tensor, or schedule.
Trait Implementations§
Source§impl Clone for DiffusionPlan
impl Clone for DiffusionPlan
Source§impl Debug for DiffusionPlan
impl Debug for DiffusionPlan
Source§impl<'de> Deserialize<'de> for DiffusionPlan
impl<'de> Deserialize<'de> for DiffusionPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DiffusionPlan
impl PartialEq for DiffusionPlan
Source§impl Serialize for DiffusionPlan
impl Serialize for DiffusionPlan
impl StructuralPartialEq for DiffusionPlan
Auto Trait Implementations§
impl Freeze for DiffusionPlan
impl RefUnwindSafe for DiffusionPlan
impl Send for DiffusionPlan
impl Sync for DiffusionPlan
impl Unpin for DiffusionPlan
impl UnsafeUnpin for DiffusionPlan
impl UnwindSafe for DiffusionPlan
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