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 2d312fe commit e48de32Copy full SHA for e48de32
torch_xla/csrc/runtime/runtime.cpp
@@ -1,5 +1,6 @@
1
#include <torch/csrc/lazy/backend/backend_device.h>
2
3
+#include "absl/log/absl_check.h"
4
#include "torch_xla/csrc/device.h"
5
#include "torch_xla/csrc/runtime/computation_client.h"
6
#include "torch_xla/csrc/runtime/env_vars.h"
torch_xla/csrc/status.h
@@ -7,9 +7,9 @@ namespace torch_xla {
7
8
#define _XLA_RETURN_IF_ERROR_AND_THEN(REXPR, ...) \
9
{ \
10
- auto _status = (REXPR); \
11
- if (!_status.ok()) { \
12
- return _status.status(); \
+ auto& _statusor = (REXPR); \
+ if (!_statusor.ok()) { \
+ return _statusor.status(); \
13
} \
14
__VA_ARGS__ \
15
}
0 commit comments