Skip to content

Commit c8471a5

Browse files
Update onnxscript/function_libs/torch_lib/ops/core.py
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>
1 parent b57875b commit c8471a5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • onnxscript/function_libs/torch_lib/ops

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9201,8 +9201,6 @@ def aten_unbind(self: TTensor, dim: int = 0) -> Sequence[TTensor]:
92019201
"""unbind.int(Tensor(a -> *) self, int dim=0) -> Tensor(a)[]"""
92029202

92039203
if isinstance(self.shape[dim], int) and not version_utils.torch_older_than("2.7"):
9204-
# For torch>=2.7 with static shapes, use explicit Slice operations
9205-
# to avoid issues with Split returning a non-iterable SymbolicTensor
92069204
num_outputs = self.shape[dim]
92079205
results = []
92089206
for i in range(num_outputs):

0 commit comments

Comments
 (0)