Skip to content

Commit

Permalink
Update Reduce.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
curioyang authored May 9, 2024
1 parent c49e2d8 commit 7756e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nncase.Importer/Onnx/Reduce.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private Expr ReduceCore(in NodeProto op, ReduceOp reduceOp, Expr initValue, Func
{
var input = GetInputExpr(op, 0);
Expr axis;
if ((reduceOp == ReduceOp.Sum && GetOpSet(op) < 13) || (reduceOp != ReduceOp.Sum && GetOpSet(op) < 18))
if ((reduceOp == ReduceOp.Sum && GetOpSet(op) < 13) || GetOpSet(op) < 18)
{
axis = GetAxesAttribute(op, input);
}
Expand Down

0 comments on commit 7756e29

Please sign in to comment.