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 4eb25a3 commit af3dfa2Copy full SHA for af3dfa2
onnxscript/function_libs/torch_lib/ops/core.py
@@ -8767,7 +8767,7 @@ def aten_unbind(self: TTensor, dim: int = 0) -> Sequence[TTensor]:
8767
if isinstance(self.shape[dim], int):
8768
# We can create a definitive split op if the input shape is static
8769
outputs = op.Split(self, axis=dim, num_outputs=self.shape[dim])
8770
- return [op.Squeeze(out, [self.shape[dim]]) for out in outputs]
+ return [op.Squeeze(out, [dim]) for out in outputs]
8771
8772
return op.SplitToSequence(self, axis=dim, keepdims=False)
8773
0 commit comments