Skip to content

Commit 2ad82de

Browse files
committed
Add index to shape getter
1 parent 8f8df59 commit 2ad82de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_xla/csrc/ir.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void ScopePusher::ResetScopes() { ResetScopeContext(); }
225225

226226
const xla::Shape& GetXlaShape(const torch::lazy::Value& value) {
227227
XlaNode* casted = dynamic_cast<XlaNode*>(value.node.get());
228-
return casted->xla_shape();
228+
return casted->xla_shape(value.index);
229229
}
230230

231231
} // namespace torch_xla

0 commit comments

Comments
 (0)