Skip to content

Commit

Permalink
change is_constant pattern to wildcard in gelu pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Nov 3, 2021
1 parent 84da943 commit cfacfa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/op/contrib/cutlass.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def make_gelu_pattern(bias_out, out_dtype="float16"):
mul = is_op("multiply")(bias_out, is_constant())
mul = is_op("multiply")(bias_out, wildcard())
if out_dtype == "float16":
erf = is_op("cast")(is_op("erf")(is_op("cast")(mul)))
else:
Expand Down

0 comments on commit cfacfa2

Please sign in to comment.