Mechanical conversion of every relative import under v2/ to an absolute v2.* path (from .x / ..x / ...x -> from v2.<pkg>.x) so imports are unambiguous, grep-able, and stable when code is copied/moved between entrypoints (VideoGenerator, CLI, server). Surgical prefix-only rewrite: only the 'from <dots><module>' prefix changed — import names, parentheses, multi-line formatting, comments, and ordering are byte-for-byte preserved (no collapsing, no reorder, no unrelated reformatting). - 471 imports across 125 files; v2/tests/ was already absolute (untouched). - Validated: all 125 files compile, every 'from v2.* import' target resolves to a real module/package, zero relative imports remain (full sweep), CPU mini suite green (202 passed, 2 skipped).
29 lines
845 B
Python
29 lines
845 B
Python
"""Loop plane — driven loops + policies (design_v3 §5)."""
|
|
from __future__ import annotations
|
|
|
|
from v2._enums import LoopKind, WorkUnitKind
|
|
from v2.loop.contracts import (
|
|
CacheOp,
|
|
CachePlan,
|
|
Done,
|
|
Loop,
|
|
LoopContext,
|
|
LoopResult,
|
|
LoopState,
|
|
PlacementHint,
|
|
ResourceRequest,
|
|
ShapeSignature,
|
|
StepContext,
|
|
StepResult,
|
|
WorkPlan,
|
|
)
|
|
from v2.loop.driver import LoopRunner
|
|
from v2.loop.sampler import add_noise, build_flow_sigmas, flow_match_euler_step, x0_from_velocity
|
|
|
|
__all__ = [
|
|
"Loop", "LoopContext", "LoopState", "LoopResult", "WorkPlan", "Done", "StepResult",
|
|
"StepContext", "ShapeSignature", "ResourceRequest", "CachePlan", "CacheOp", "PlacementHint",
|
|
"LoopRunner", "LoopKind", "WorkUnitKind",
|
|
"build_flow_sigmas", "flow_match_euler_step", "x0_from_velocity", "add_noise",
|
|
]
|