Skip to main content

logit_loom_diffusion/
lib.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3#![doc = include_str!("../README.md")]
4#![forbid(unsafe_code)]
5
6mod contract;
7mod error;
8mod execution;
9mod execution_v2;
10mod execution_v3;
11mod image_program;
12mod krea_activation;
13mod observer;
14mod pipeline;
15mod projected_component;
16
17pub use contract::{
18    DiffusionCheckpointReceipt, DiffusionPlan, DiffusionSchedule, InterventionFailure,
19    InterventionSpec, MAX_COMPONENTS, MAX_DEVICE_LABEL_BYTES, MAX_DIFFUSION_STEPS,
20    MAX_INTERVENTION_STAGES, MAX_TENSOR_DIMENSIONS, MAX_TENSOR_ELEMENTS, PipelineReceipt,
21    PipelineSpec, StageReceipt, StepContext, TensorDType, TensorLayout, TensorSpec,
22};
23pub use error::{Error, Result};
24pub use execution::{
25    ImageBufferBinding, ImageBufferLayout, ImageBufferRole, ImageExecutionPlan,
26    ImageExecutionReceipt, ImageOperation, ImageOutputFormat, ImageTerminal, LoraStackEntry,
27    MAX_IMAGE_BUFFERS, MAX_IMAGE_DIMENSION, MAX_IMAGE_LORAS, MAX_IMAGE_OBSERVATIONS,
28    MAX_IMAGE_OPERATORS, MAX_OPERATOR_CONTROL_BYTES, MAX_SELECTOR_LABEL_BYTES, ObservationKind,
29    ObservationRequest, OperatorInvocation, ScalePoint, ScaleSchedule, SeedSelection, StepSelector,
30    TensorSelector,
31};
32pub use execution_v2::{
33    ImageCheckpointPlan, ImageCleanupDisposition, ImageCleanupPolicy, ImageCompositeOperation,
34    ImageCompositeReceipt, ImageCompositeStage, ImageExecutionPlanV2, ImageExecutionReceiptV2,
35    ImageOutputReceiptV2, ImageOutputRoute, ImageOutputSource, ImageValueSource,
36    MAX_IMAGE_COMPOSITE_STAGES, MAX_IMAGE_GRAPH_SCRATCH_BYTES, mask_blend_rgb8,
37};
38pub use execution_v3::{ImageExecutionPlanV3, ImageExecutionReceiptV3, ImageOutputReceiptV3};
39pub use image_program::{
40    ImageOpaqueValueKindV1, ImagePngColorV1, ImageProgramCleanupDispositionV1,
41    ImageProgramInputBindingV1, ImageProgramInputV1, ImageProgramLivenessV1, ImageProgramLoraV1,
42    ImageProgramMeasurementsV1, ImageProgramNativeOutputRoleV1, ImageProgramNativeOutputV1,
43    ImageProgramNativeStageV1, ImageProgramOutputReceiptV1, ImageProgramOutputRouteV1,
44    ImageProgramOutputSourceV1, ImageProgramPlanV1, ImageProgramReceiptV1, ImageProgramReleaseV1,
45    ImageProgramStageOperationV1, ImageProgramStageReceiptV1, ImageProgramStageV1,
46    ImageProgramTerminalV1, ImageProgramValueMeasurementV1, ImageProgramValuePlacementV1,
47    ImageProgramValueReceiptV1, ImageProgramValueSpecV1, ImageProgramValueV1,
48    MAX_IMAGE_PROGRAM_ARENA_BYTES, MAX_IMAGE_PROGRAM_INPUTS, MAX_IMAGE_PROGRAM_OUTPUTS,
49    MAX_IMAGE_PROGRAM_STAGES, MAX_IMAGE_PROGRAM_VALUE_BYTES, MAX_IMAGE_PROGRAM_VALUES,
50    image_program_value_content,
51};
52pub use krea_activation::*;
53pub use observer::{ObserverReceipt, ObserverSet, StepObserver};
54pub use pipeline::{ChannelBias, Intervention, Pipeline};
55pub use projected_component::*;
56
57pub use logit_loom_core::{ActivationStatisticsV1, ControlFlow, Digest};
58pub use logit_loom_executor::BufferSpec;