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
torch_xla: Use new macros for throwing exceptions (part 1). (#9593)
Follow-up: #9588 and #9580
Target: `torch_xla/csrc` directory
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` directory, replacing every use of
those, now deprecated, functions by the newly introduced macros.
_Note: since there were lots of files in `torch_xla/csrc` that needed
update, they were split in multiple parts._
0 commit comments