Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire committed Mar 3, 2022
1 parent f00bc33 commit d3f9a6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ template void deform_conv<float>(const float* input, const float* weight, const
int inputHeight, int inputWidth, int nOutputPlane, int kW, int kH,
int dW, int dH, int padW, int padH, int dilationW, int dilationH,
int group, int deformable_group, int im2col_step,
cublasHandle_t cublas_handle, cudaStream_t stream);
cublasHandle_t cublas_handle, cudaStream_t stream);
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ void deform_conv(const scalar_t* input, const scalar_t* weight, const scalar_t*
int inputWidth, int nOutputPlane, int kW, int kH, int dW, int dH, int padW,
int padH, int dilationW, int dilationH, int group, int deformable_group,
int im2col_step, cublasHandle_t cublas_handle, cudaStream_t stream);
#endif // TRT_DEFORM_CONV_KERNEL_HPP
#endif // TRT_DEFORM_CONV_KERNEL_HPP
6 changes: 1 addition & 5 deletions mmdeploy/mmcv/ops/deform_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ def deform_conv__default(ctx,
bias=False,
im2col_step=32):
"""Rewrite symbolic function for default backend."""
assert not bias, 'The "bias" parameter should be False.'
assert groups == 1, 'The "groups" parameter should be 1.'
domain = 'mmdeploy'
op_name = 'MMCVDeformConv2d'
return g.op(
f'{domain}::{op_name}',
'mmdeploy::MMCVDeformConv2d',
input,
offset,
weight,
Expand Down

0 comments on commit d3f9a6c

Please sign in to comment.