We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd38398 commit 3b406aaCopy full SHA for 3b406aa
onnxscript/function_libs/torch_lib/ops/common.py
@@ -102,7 +102,7 @@ def merge_dims(dims: Sequence[int | INT64]) -> INT64:
102
else:
103
# A dynamic dimension, unsqueeze and append it
104
current_dim = op.Reshape(
105
- current_dim, op.Constant(value_ints=ir.AttrInt64("value_ints", []))
+ current_dim, op.Constant(value_ints=ir.AttrInt64("value_ints", [1]))
106
)
107
result_dims.append(current_dim)
108
if len(result_dims) == 1:
0 commit comments