Skip to content

Commit

Permalink
Reverted conv2d and depthwise_conv2d patterns back
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-grovety authored May 24, 2023
1 parent fe50ae3 commit ff1fd37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tvm/relay/op/contrib/ethosu.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ def qnn_conv2d_pattern() -> tvm.relay.dataflow_pattern.DFPattern:
"""
This function creates the pattern for qnn.conv2D with optional fused RELU activation.
"""
pad = is_op("nn.pad")(wildcard(), is_constant())
optional_pad = is_op("nn.pad")(wildcard(), is_constant())
qnn_conv2d = is_op("qnn.conv2d")(
pad,
optional_pad | wildcard(),
is_constant(),
is_constant(),
is_constant(),
Expand Down Expand Up @@ -546,9 +546,9 @@ def qnn_depthwise_conv2d_pattern() -> tvm.relay.dataflow_pattern.DFPattern:
"""
This function creates the pattern for depthwise qnn.conv2D with optional fused RELU activation.
"""
pad = is_op("nn.pad")(wildcard(), is_constant())
optional_pad = is_op("nn.pad")(wildcard(), is_constant())
qnn_conv2d = is_op("qnn.conv2d")(
pad,
optional_pad | wildcard(),
is_constant(),
is_constant(),
is_constant(),
Expand Down

0 comments on commit ff1fd37

Please sign in to comment.