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
ops: Use new macros for throwing exceptions. (#9592)
Follow-up: #9588 and #9580
Target:
- `torch_xla/csrc/ops` directory
- Files related to the tracing of tensor operations
In summary, this PR:
- Replaces all calls to `OkOrThrow()` and `GetValueOrThrow()` (that
throws an exception without source location information of the
*"throw-site"*) with the macros `XLA_THROW_IF_ERROR()` and
`XLA_ASSIGN_OR_THROW()`.
- Corresponds to the fine-grained set of PRs that came from breaking
down PR #9580
- Focuses on the `torch_xla/csrc/ops` directory and other files related
to the tracing of tensor operations, replacing every use of those, now
deprecated, functions by the newly introduced macros.
0 commit comments