Skip to content

Commit af3dfa2

Browse files
justinchubyCopilot
andauthored
Update onnxscript/function_libs/torch_lib/ops/core.py
Co-authored-by: Copilot <[email protected]>
1 parent 4eb25a3 commit af3dfa2

File tree

1 file changed

+1
-1
lines changed
  • onnxscript/function_libs/torch_lib/ops

1 file changed

+1
-1
lines changed

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8767,7 +8767,7 @@ def aten_unbind(self: TTensor, dim: int = 0) -> Sequence[TTensor]:
87678767
if isinstance(self.shape[dim], int):
87688768
# We can create a definitive split op if the input shape is static
87698769
outputs = op.Split(self, axis=dim, num_outputs=self.shape[dim])
8770-
return [op.Squeeze(out, [self.shape[dim]]) for out in outputs]
8770+
return [op.Squeeze(out, [dim]) for out in outputs]
87718771

87728772
return op.SplitToSequence(self, axis=dim, keepdims=False)
87738773

0 commit comments

Comments
 (0)