Skip to content

Integrators: Allow passing an integration schedule with fixed time-points #402

@vpratz

Description

@vpratz

Some methods (e.g., diffusion models) [1] provide a fixed schedule for integration that takes into account the (approximately known) curvature of the underlying ODE.

Currently, only fixed single step size and (automatic) adaptive step size schedules are possible, but no fixed schedules with varying steps sizes.

@LarsKue How can we introduce them best?
One option woud be the following: If the steps parameter to integrate is iterable and numeric, we interpret it as times for a fixed schedule with [start_time, t_1, t_2, ..., stop_time]. In this setting, we would make the start_time and stop_time parameters optional, and introduce checks to ensure they are passed in the other cases.

What do you think? If you are ok with this design, I would offer to create a PR for this.

[1] https://arxiv.org/abs/2206.00364

Metadata

Metadata

Assignees

Labels

discussionDiscuss a topic or question not necessarily with a clear output in mind.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions