Skip to content

Commit 3b406aa

Browse files
committed
fix shape
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
1 parent fd38398 commit 3b406aa

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/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def merge_dims(dims: Sequence[int | INT64]) -> INT64:
102102
else:
103103
# A dynamic dimension, unsqueeze and append it
104104
current_dim = op.Reshape(
105-
current_dim, op.Constant(value_ints=ir.AttrInt64("value_ints", []))
105+
current_dim, op.Constant(value_ints=ir.AttrInt64("value_ints", [1]))
106106
)
107107
result_dims.append(current_dim)
108108
if len(result_dims) == 1:

0 commit comments

Comments
 (0)