Skip to content

Commit

Permalink
fixed residual block check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Dec 23, 2021
1 parent 6ee5a39 commit d4a78a3
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 @@ -167,7 +167,7 @@ def check_conv2d_residual(call, binary_op):
# residual binary op and the root conv2d of this pattern.
# If the root conv2d is the parent of both lhs and rhs, we should reject this pattern.
if get_root_call(lhs, "nn.conv2d") == conv2d and get_root_call(rhs, "nn.conv2d") == conv2d:
return True
return False

return all(x == y for (x, y) in zip(lhs.checked_type.shape, rhs.checked_type.shape))

Expand Down

0 comments on commit d4a78a3

Please sign in to comment.