Skip to content

Commit

Permalink
so cool
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Zhao Luo committed Aug 31, 2021
1 parent 86229c2 commit 2a7b2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -3532,7 +3532,7 @@ def _impl_v13(cls, inputs, attr, params):

if reduction == "mean":
return relay.sum(loss) / weight_total
elif reduction == "sum":
if reduction == "sum":
return relay.sum(loss)
# Case reduction == 'none'
return loss
Expand Down

0 comments on commit 2a7b2b7

Please sign in to comment.