Skip to content

Commit

Permalink
Rename input
Browse files Browse the repository at this point in the history
  • Loading branch information
jonb377 committed Nov 30, 2023
1 parent 99e697d commit 48e9943
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 @@ -1816,10 +1816,10 @@ void InitXlaModuleBindings(py::module m) {
// of the shards returned from `_get_local_shards`.
m.def(
"_get_local_shard_replica_and_indices",
[](const std::vector<at::Tensor>& input)
[](const std::vector<at::Tensor>& input_tensors)
-> std::vector<std::vector<std::pair<int, py::object>>> {
std::vector<std::vector<std::pair<int, py::object>>> result;
for (auto& tensor : input) {
for (auto& tensor : input_tensors) {
XLATensorPtr xtensor = bridge::GetXlaTensor(tensor);
XLA_CHECK(xtensor->sharding_spec() != nullptr)
<< "Tensor is not sharded";
Expand Down

0 comments on commit 48e9943

Please sign in to comment.