mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-20 19:12:24 +00:00
parent
cec919bae9
commit
b2c6617b0f
1 changed files with 1 additions and 1 deletions
|
|
@ -746,7 +746,7 @@ class SymbolicShapeInference:
|
|||
subgraphs = [get_attribute(node, 'then_branch'), get_attribute(node, 'else_branch')]
|
||||
cond = self._try_get_value(node, 0)
|
||||
if cond is not None:
|
||||
if cond > 0:
|
||||
if as_scalar(cond) > 0:
|
||||
subgraphs[1].CopyFrom(subgraphs[0])
|
||||
else:
|
||||
subgraphs[0].CopyFrom(subgraphs[1])
|
||||
|
|
|
|||
Loading…
Reference in a new issue