Skip to content

Commit e48de32

Browse files
committed
Fix compilation errors
1 parent 2d312fe commit e48de32

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

torch_xla/csrc/runtime/runtime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <torch/csrc/lazy/backend/backend_device.h>
22

3+
#include "absl/log/absl_check.h"
34
#include "torch_xla/csrc/device.h"
45
#include "torch_xla/csrc/runtime/computation_client.h"
56
#include "torch_xla/csrc/runtime/env_vars.h"

torch_xla/csrc/status.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ namespace torch_xla {
77

88
#define _XLA_RETURN_IF_ERROR_AND_THEN(REXPR, ...) \
99
{ \
10-
auto _status = (REXPR); \
11-
if (!_status.ok()) { \
12-
return _status.status(); \
10+
auto& _statusor = (REXPR); \
11+
if (!_statusor.ok()) { \
12+
return _statusor.status(); \
1313
} \
1414
__VA_ARGS__ \
1515
}

0 commit comments

Comments
 (0)