We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac2768 commit dfcdd73Copy full SHA for dfcdd73
torch_xla/csrc/status.h
@@ -69,8 +69,8 @@ namespace torch_xla {
69
// Previous error message. (at <cpp-source-file>:<line>)
70
// ...
71
//
72
-#define XLA_RETURN_IF_ERROR(rexpr, ...) \
73
- do { \
+#define XLA_RETURN_IF_ERROR(rexpr, ...) \
+ do { \
74
XLA_RETURN_IF_ERROR_IMPL_(rexpr, XLA_STATUS_VAR_, {}, ##__VA_ARGS__) \
75
} while (false)
76
@@ -99,7 +99,7 @@ namespace torch_xla {
99
100
101
102
-#define XLA_ASSIGN_OR_RETURN(lhs, rexpr, ...) \
+#define XLA_ASSIGN_OR_RETURN(lhs, rexpr, ...) \
103
XLA_RETURN_IF_ERROR_IMPL_(rexpr, XLA_STATUS_VAR_, \
104
lhs = std::move(XLA_STATUS_VAR_).value(), \
105
##__VA_ARGS__)
0 commit comments