Skip to content

Commit

Permalink
Don't WrapXlaData
Browse files Browse the repository at this point in the history
  • Loading branch information
jonb377 committed Oct 5, 2023
1 parent e4e7ffd commit 31793b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_xla/csrc/init_python_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1720,8 +1720,8 @@ void InitXlaModuleBindings(py::module m) {
<< " vs " << expected_shard_shape;
}

auto data_handle = WrapXlaData(ShardingUtil::CreateShardedData(
shards, local_devices, sharding_spec));
auto data_handle = ShardingUtil::CreateShardedData(
shards, local_devices, sharding_spec);
XLATensorPtr xla_tensor = XLATensor::Create(std::move(data_handle));
xla_tensor->SetShardingSpec(*sharding_spec);
auto tensor = bridge::AtenFromXlaTensor(std::move(xla_tensor));
Expand Down

0 comments on commit 31793b2

Please sign in to comment.