Skip to content

Commit 1e0f44a

Browse files
committed
remove the version check
1 parent c8471a5 commit 1e0f44a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • onnxscript/function_libs/torch_lib/ops

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9200,7 +9200,7 @@ def aten_type_as(self: TTensor, other: TTensor2) -> TTensor2:
92009200
def aten_unbind(self: TTensor, dim: int = 0) -> Sequence[TTensor]:
92019201
"""unbind.int(Tensor(a -> *) self, int dim=0) -> Tensor(a)[]"""
92029202

9203-
if isinstance(self.shape[dim], int) and not version_utils.torch_older_than("2.7"):
9203+
if isinstance(self.shape[dim], int):
92049204
num_outputs = self.shape[dim]
92059205
results = []
92069206
for i in range(num_outputs):

0 commit comments

Comments
 (0)