Skip to content

Commit

Permalink
nit change
Browse files Browse the repository at this point in the history
  • Loading branch information
miladm committed Apr 12, 2022
1 parent 05d4ca0 commit bcd981f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_xla/csrc/tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ XLATensor::PostOrderData XLATensor::RunPostOrder(
for (auto node : po_data.post_order) {
const ir::ops::DeviceData* device_data = ir::ops::DeviceData::Cast(node);
if (device_data != nullptr) {
if (device_data->data()->HasValue() == 0) {
if (!device_data->data()->HasValue()) {
TensorCollectionBarrier(coll);
}
xla::ComputationClient::Data::OpaqueHandle handle =
Expand Down

0 comments on commit bcd981f

Please sign in to comment.