Skip to content

Commit

Permalink
fixed nhwc cudnn depthwise conv
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Dec 11, 2021
1 parent 6db7172 commit 93cd039
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/tvm/relay/op/strategy/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,10 @@ def conv2d_strategy_cuda(attrs, inputs, out_type, target):
plevel=25,
)

elif is_depthwise_conv2d(data.shape, layout, kernel.shape, kernel_layout, groups):
elif (
is_depthwise_conv2d(data.shape, layout, kernel.shape, kernel_layout, groups)
and "cudnn" not in target.libs
):
if layout == "NCHW":
assert kernel_layout == "OIHW"
strategy.add_implementation(
Expand Down

0 comments on commit 93cd039

Please sign in to comment.