Skip to content

Commit

Permalink
modify code according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxinxin08 committed Oct 26, 2021
1 parent 533d035 commit 9cdfe55
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ int DeformableConvPlugin::enqueue(int batch_size, const void* const* inputs,
#if CUDA_ARCH_FP16_SUPPORTED(__CUDA_ARCH__)
enqueue_impl<half>(batch_size, inputs, outputs, workspace, stream);
#else
VLOG(1) << "Current CUDA arch dose not support fp16, so deformable conv "
"trt plugin will do nothing while data type is fp16";
PADDLE_THROW(platform::errors::InvalidArgument(
"Current CUDA arch dose not support fp16. Please use fp32 instead."));
#endif
} else {
PADDLE_THROW(platform::errors::InvalidArgument(
Expand Down

0 comments on commit 9cdfe55

Please sign in to comment.