Use TORCH_CHECK
instead of throw
#537
Labels
good first issue
Good for newcomers
refactor
Improves code itself, but does not fix a bug or add new functionality.
Whenever possible, we should try to raise exceptions through
TORCH_CHECK
instead ofthrow
in our C++ code-base (follow-up to #535 (comment)).This may require updates to the Python and C++ tests as well to catch the proper exception type.
The text was updated successfully, but these errors were encountered: