Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove uses of
raise unimplemented
(#122136)
Summary: `unimplemented` is a function that raises an error, so `raise unimplemented(...)` never reaches the `raise`. Another related issue is that `raise unimplemented(...) from e` doesn't attach the exception cause correctly. I fix this by adding a `from_exc` argument to `unimplemented`. X-link: pytorch/pytorch#122136 Approved by: https://github.com/lezcano Reviewed By: huydhn Differential Revision: D55271689 fbshipit-source-id: a4ffcb1c72f966869af6dd87dfbecf0a324e41b7
- Loading branch information