Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Relay][OpStrategy] Tweak cublas/cudnn priority level #5820

Merged
merged 3 commits into from
Jun 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions python/tvm/relay/op/strategy/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def conv2d_strategy_cuda(attrs, inputs, out_type, target):
has_groups=True),
wrap_topi_schedule(topi.cuda.schedule_conv2d_cudnn),
name="conv2d_cudnn.cuda",
plevel=15)
plevel=25)
elif is_depthwise_conv2d(data.shape, layout, kernel.shape, kernel_layout, groups):
if layout == "NCHW":
assert kernel_layout == "OIHW"
Expand Down Expand Up @@ -218,7 +218,7 @@ def conv2d_strategy_cuda(attrs, inputs, out_type, target):
has_groups=True),
wrap_topi_schedule(topi.cuda.schedule_conv2d_cudnn),
name="conv2d_cudnn.cuda",
plevel=15)
plevel=25)
cudnn_impl = True

if layout == 'NCHW':
Expand Down Expand Up @@ -377,7 +377,7 @@ def conv3d_strategy_cuda(attrs, inputs, out_type, target):
strategy.add_implementation(wrap_compute_conv3d(topi.cuda.conv3d_cudnn, True),
wrap_topi_schedule(topi.cuda.schedule_conv3d_cudnn),
name="conv3d_cudnn.cuda",
plevel=15)
plevel=25)
return strategy

@conv3d_winograd_without_weight_transfrom_strategy.register(["cuda", "gpu"])
Expand Down Expand Up @@ -473,7 +473,7 @@ def dense_strategy_cuda(attrs, inputs, out_type, target):
wrap_compute_dense(topi.cuda.dense_cublas),
wrap_topi_schedule(topi.cuda.schedule_dense_cublas),
name="dense_cublas.cuda",
plevel=15)
plevel=25)
return strategy

@batch_matmul_strategy.register(["cuda", "gpu"])
Expand Down