Skip to content

Use TORCH_CHECK instead of throw #537

Open
@NicolasHug

Description

@NicolasHug

Whenever possible, we should try to raise exceptions through TORCH_CHECK instead of throw 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersrefactorImproves code itself, but does not fix a bug or add new functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions