We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8471a5 commit 1e0f44aCopy full SHA for 1e0f44a
1 file changed
onnxscript/function_libs/torch_lib/ops/core.py
@@ -9200,7 +9200,7 @@ def aten_type_as(self: TTensor, other: TTensor2) -> TTensor2:
9200
def aten_unbind(self: TTensor, dim: int = 0) -> Sequence[TTensor]:
9201
"""unbind.int(Tensor(a -> *) self, int dim=0) -> Tensor(a)[]"""
9202
9203
- if isinstance(self.shape[dim], int) and not version_utils.torch_older_than("2.7"):
+ if isinstance(self.shape[dim], int):
9204
num_outputs = self.shape[dim]
9205
results = []
9206
for i in range(num_outputs):
0 commit comments