Skip to content

Commit

Permalink
[BYOC-DNNL] covered case for sum node without attr
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelJKlaiber committed Aug 2, 2022
1 parent f9f2de7 commit 6428d35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/tvm/relay/op/contrib/dnnl.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ def predicate(expr):
for e, op_name in zip([expr, expr.args[0]], ["sum", "bias_add"]):
args = get_args(e)
attrs = get_attrs(e.args[0])
if attrs is None:
return False
if not checker(attrs, args, op_name):
return False
return True
Expand Down

0 comments on commit 6428d35

Please sign in to comment.