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

Using CancelBackwardException introduced in #3644 to create own backward pass #3721

Closed
olivialocke opened this issue Jul 5, 2022 · 1 comment

Comments

@olivialocke
Copy link

olivialocke commented Jul 5, 2022

I have a callback that implements a custom backward pass, thus, would like to attach a RaiseBackwardException (CancelBackwardException) in the implementation as mentioned in #3644 .

However, while 'CancelStepException' and 'CancelBatchException' etc can be imported from fastai.callback, 'CancelBackwardException' cannot.

Is there a specific way to import / how should the RaiseBackwardException be attached in the implementation?

Thanks!

@olivialocke
Copy link
Author

olivialocke commented Jul 5, 2022

The version needed to be updated (from fastai 2.6.3 to 2.7.5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant