Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
89253699
Unverified
Commit
89253699
authored
Nov 14, 2022
by
Derry Lin
Committed by
GitHub
Nov 14, 2022
Browse files
[Fix] Fix DCN TensorRT plugin (#2408)
parent
652b1bf2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
mmcv/ops/csrc/tensorrt/plugins/trt_deform_conv.cpp
mmcv/ops/csrc/tensorrt/plugins/trt_deform_conv.cpp
+1
-1
mmcv/ops/csrc/tensorrt/plugins/trt_modulated_deform_conv.cpp
mmcv/ops/csrc/tensorrt/plugins/trt_modulated_deform_conv.cpp
+1
-1
mmcv/ops/csrc/tensorrt/plugins/trt_modulated_deform_conv_kernel.cu
...csrc/tensorrt/plugins/trt_modulated_deform_conv_kernel.cu
+2
-2
No files found.
mmcv/ops/csrc/tensorrt/plugins/trt_deform_conv.cpp
View file @
89253699
...
@@ -286,7 +286,7 @@ nvinfer1::IPluginV2 *DeformableConvPluginDynamicCreator::createPlugin(
...
@@ -286,7 +286,7 @@ nvinfer1::IPluginV2 *DeformableConvPluginDynamicCreator::createPlugin(
deformableGroup
=
static_cast
<
const
int
*>
(
fc
->
fields
[
i
].
data
)[
0
];
deformableGroup
=
static_cast
<
const
int
*>
(
fc
->
fields
[
i
].
data
)[
0
];
}
}
if
(
field_name
.
compare
(
"group"
)
==
0
)
{
if
(
field_name
.
compare
(
"group
s
"
)
==
0
)
{
group
=
static_cast
<
const
int
*>
(
fc
->
fields
[
i
].
data
)[
0
];
group
=
static_cast
<
const
int
*>
(
fc
->
fields
[
i
].
data
)[
0
];
}
}
...
...
mmcv/ops/csrc/tensorrt/plugins/trt_modulated_deform_conv.cpp
View file @
89253699
...
@@ -258,7 +258,7 @@ nvinfer1::IPluginV2 *ModulatedDeformableConvPluginDynamicCreator::createPlugin(
...
@@ -258,7 +258,7 @@ nvinfer1::IPluginV2 *ModulatedDeformableConvPluginDynamicCreator::createPlugin(
deformableGroup
=
static_cast
<
const
int
*>
(
fc
->
fields
[
i
].
data
)[
0
];
deformableGroup
=
static_cast
<
const
int
*>
(
fc
->
fields
[
i
].
data
)[
0
];
}
}
if
(
field_name
.
compare
(
"group"
)
==
0
)
{
if
(
field_name
.
compare
(
"group
s
"
)
==
0
)
{
group
=
static_cast
<
const
int
*>
(
fc
->
fields
[
i
].
data
)[
0
];
group
=
static_cast
<
const
int
*>
(
fc
->
fields
[
i
].
data
)[
0
];
}
}
...
...
mmcv/ops/csrc/tensorrt/plugins/trt_modulated_deform_conv_kernel.cu
View file @
89253699
...
@@ -75,9 +75,9 @@ void ModulatedDeformConvForwardCUDAKernelLauncher(
...
@@ -75,9 +75,9 @@ void ModulatedDeformConvForwardCUDAKernelLauncher(
const
size_t
input_step
=
channels
*
height
*
width
;
const
size_t
input_step
=
channels
*
height
*
width
;
const
size_t
offset_step
=
const
size_t
offset_step
=
deformable_group
*
kernel_h
*
kernel_w
*
2
*
height
*
width
;
deformable_group
*
kernel_h
*
kernel_w
*
2
*
height
_out
*
width
_out
;
const
size_t
mask_step
=
const
size_t
mask_step
=
deformable_group
*
kernel_h
*
kernel_w
*
height
*
width
;
deformable_group
*
kernel_h
*
kernel_w
*
height
_out
*
width
_out
;
const
size_t
out_step
=
channels_out
*
height_out
*
width_out
;
const
size_t
out_step
=
channels_out
*
height_out
*
width_out
;
const
size_t
out_group_step
=
out_step
/
group
;
const
size_t
out_group_step
=
out_step
/
group
;
const
size_t
col_g_step
=
const
size_t
col_g_step
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment