You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
fastai callbacks previously used
run_after
andrun_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 calledorder
is now used to sort callbacks before calling them. To get similar behavior torun_after
andrun_before
you can instead useFoo.order-1
orFoo.order+1
(e.g to order compared to a callback calledFoo
).The text was updated successfully, but these errors were encountered: