File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
onnxscript/function_libs/torch_lib/ops Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def merge_dims(dims: Sequence[int | INT64]) -> INT64:
8686 """Merge consecutive constant dimensions."""
8787
8888 if not dims :
89- return op .Constant (value_ints = ir .AttrInt64 ("value_ints" , []))
89+ return op .Constant (value_ints = ir .AttrInt64s ("value_ints" , []))
9090
9191 remaining_dims = list (dims )
9292 result_dims = []
@@ -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" , [1 ]))
105+ current_dim , op .Constant (value_ints = ir .AttrInt64s ("value_ints" , [1 ]))
106106 )
107107 result_dims .append (current_dim )
108108 if len (result_dims ) == 1 :
You can’t perform that action at this time.
0 commit comments