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
ModelZoo
SOLOv2-pytorch
Commits
2800bf3a
Unverified
Commit
2800bf3a
authored
Apr 03, 2019
by
Kai Chen
Committed by
GitHub
Apr 03, 2019
Browse files
Merge pull request #464 from yhcao6/dcn_cpp_extension
solve deformable_col2im: invalid argument by increasing channel
parents
058e27d6
7307e40b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmdet/ops/dcn/src/deform_conv_cuda_kernel.cu
mmdet/ops/dcn/src/deform_conv_cuda_kernel.cu
+2
-1
No files found.
mmdet/ops/dcn/src/deform_conv_cuda_kernel.cu
View file @
2800bf3a
...
@@ -73,10 +73,11 @@ using namespace at;
...
@@ -73,10 +73,11 @@ using namespace at;
i += blockDim.x * gridDim.x)
i += blockDim.x * gridDim.x)
const
int
CUDA_NUM_THREADS
=
1024
;
const
int
CUDA_NUM_THREADS
=
1024
;
const
int
kMaxGridNum
=
65535
;
inline
int
GET_BLOCKS
(
const
int
N
)
inline
int
GET_BLOCKS
(
const
int
N
)
{
{
return
(
N
+
CUDA_NUM_THREADS
-
1
)
/
CUDA_NUM_THREADS
;
return
std
::
min
(
kMaxGridNum
,
(
N
+
CUDA_NUM_THREADS
-
1
)
/
CUDA_NUM_THREADS
)
;
}
}
template
<
typename
scalar_t
>
template
<
typename
scalar_t
>
...
...
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