mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-30 03:37:44 +00:00
[Symbolic shape infer] fix scalar shape in Expand (#7285)
This commit is contained in:
parent
bc6ef809bb
commit
0d49e53985
1 changed files with 1 additions and 1 deletions
|
|
@ -689,7 +689,7 @@ class SymbolicShapeInference:
|
|||
get_shape_from_sympy_shape(sympy_shape)))
|
||||
|
||||
def _infer_Expand(self, node):
|
||||
expand_to_shape = self._try_get_value(node, 1)
|
||||
expand_to_shape = as_list(self._try_get_value(node, 1), keep_none=True)
|
||||
if expand_to_shape is not None:
|
||||
# new_shape's dim can come from shape value
|
||||
self._update_computed_dims(expand_to_shape)
|
||||
|
|
|
|||
Loading…
Reference in a new issue