Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace run_after with order; do not run after cbs on exception #3101

Closed
jph00 opened this issue Dec 24, 2020 · 0 comments
Closed

replace run_after with order; do not run after cbs on exception #3101

jph00 opened this issue Dec 24, 2020 · 0 comments
Labels

Comments

@jph00
Copy link
Member

jph00 commented Dec 24, 2020

fastai callbacks previously used run_after and run_before to organize themselves to run in a reasonable order. However, since callbacks can't know what other callbacks exist in either libraries or modules, this wasn't really flexible enough.

Therefore, an int attribute called order is now used to sort callbacks before calling them. To get similar behavior to run_after and run_before you can instead use Foo.order-1 or Foo.order+1 (e.g to order compared to a callback called Foo).

@jph00 jph00 added the breaking label Dec 24, 2020
@jph00 jph00 closed this as completed in 50d2f73 Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant