Skip to content

[fork demo — not for upstream] Fix EulerLite set_timesteps torch.flip - #14

Closed
alex-16moro wants to merge 1 commit into
mainfrom
cursor/scheduler-flip-timesteps-3eed
Closed

alex-16moro wants to merge 1 commit into
mainfrom
cursor/scheduler-flip-timesteps-3eed

Conversation

@alex-16moro

Copy link
Copy Markdown
Owner

Summary

[fork demo — not for upstream]

EulerLiteScheduler.set_timesteps used [::-1] on a torch tensor, which raises. Replaced with torch.flip(..., dims=[0]). step() stays TODO(engineer).

No scheduling_heun_lite.py on this fork.

Kit template fix: alex-16moro/diffuser_agent#16

Convention gate

Scheduler contract only. Overlay-gate on this file when merged to main.

Tests run

Covered on the kit PR (python3 -m unittest discover -s tests -t . — 52 passed, 0 skipped, with torch installed).

Open in Web Open in Cursor 

Replace tensor [::-1] (unsupported) with torch.flip. Leave step() as TODO.

Co-authored-by: ale93.moro <ale93.moro@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants