Skip to content

Commit

Permalink
updated toString API to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
miladm committed Apr 27, 2022
1 parent 99350f9 commit 56b9be9
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 @@ -996,7 +996,7 @@ std::vector<xla::ComputationClient::DataPtr> XLATensor::GatherTensorsXlaData(
void XLATensor::TensorCollectionBarrier(SyncTensorCollection* coll) {
static const std::string invalid_device(
"Unknown0"); /* Temp solution to idetify unassigned devices */
if (coll->device.ToString().compare(invalid_device) == 0 ||
if (coll->device.toString().compare(invalid_device) == 0 ||
coll->unlocker.size() > 0) {
return;
}
Expand Down

0 comments on commit 56b9be9

Please sign in to comment.