Skip to content

Commit 9cdfe55

Browse files
committed
modify code according to review
1 parent 533d035 commit 9cdfe55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/fluid/inference/tensorrt/plugin/deformable_conv_op_plugin.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ int DeformableConvPlugin::enqueue(int batch_size, const void* const* inputs,
210210
#if CUDA_ARCH_FP16_SUPPORTED(__CUDA_ARCH__)
211211
enqueue_impl<half>(batch_size, inputs, outputs, workspace, stream);
212212
#else
213-
VLOG(1) << "Current CUDA arch dose not support fp16, so deformable conv "
214-
"trt plugin will do nothing while data type is fp16";
213+
PADDLE_THROW(platform::errors::InvalidArgument(
214+
"Current CUDA arch dose not support fp16. Please use fp32 instead."));
215215
#endif
216216
} else {
217217
PADDLE_THROW(platform::errors::InvalidArgument(

0 commit comments

Comments
 (0)