Skip to content
Open
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
4 changes: 2 additions & 2 deletions DeepSolo++/adet/layers/csrc/DeformAttn/ms_deform_attn.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ms_deform_attn_forward(
const at::Tensor &attn_weight,
const int im2col_step)
{
if (value.type().is_cuda())
if (value.is_cuda())
{
#ifdef WITH_CUDA
return ms_deform_attn_cuda_forward(
Expand All @@ -48,7 +48,7 @@ ms_deform_attn_backward(
const at::Tensor &grad_output,
const int im2col_step)
{
if (value.type().is_cuda())
if (value.is_cuda())
{
#ifdef WITH_CUDA
return ms_deform_attn_cuda_backward(
Expand Down