We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f3e4c commit 97e2cdbCopy full SHA for 97e2cdb
onnxscript/function_libs/torch_lib/ops/core.py
@@ -8616,12 +8616,11 @@ def aten_type_as(self: TTensor, other: TTensor2) -> TTensor2:
8616
return op.CastLike(self, other)
8617
8618
8619
-@torch_op("aten::unbind.int")
+@torch_op("aten::unbind.int", trace_only=True)
8620
def aten_unbind(self: TTensor, dim: int = 0) -> Sequence[TTensor]:
8621
"""unbind.int(Tensor(a -> *) self, int dim=0) -> Tensor(a)[]"""
8622
8623
- split_sizes = op.Constant(value_int=1)
8624
- return op.SplitToSequence(self, split_sizes, axis=dim, keepdims=False)
+ return op.SplitToSequence(self, None, axis=dim, keepdims=False)
8625
8626
8627
@torch_op("aten::unflatten.int", trace_only=True)
0 commit comments