From b971ba045ba33fa89374e7be4b305a825d62786f Mon Sep 17 00:00:00 2001 From: wenbin Date: Thu, 8 Sep 2022 10:33:36 +0800 Subject: [PATCH] bug fix (#45853) --- .../inference/tensorrt/plugin/layernorm_shift_partition_op.cu | 2 -- 1 file changed, 2 deletions(-) diff --git a/paddle/fluid/inference/tensorrt/plugin/layernorm_shift_partition_op.cu b/paddle/fluid/inference/tensorrt/plugin/layernorm_shift_partition_op.cu index ce38a545efe..0605b392163 100644 --- a/paddle/fluid/inference/tensorrt/plugin/layernorm_shift_partition_op.cu +++ b/paddle/fluid/inference/tensorrt/plugin/layernorm_shift_partition_op.cu @@ -386,7 +386,6 @@ void invokeLayernormShiftPartition(T *out, } } -#if CUDA_ARCH_FP16_SUPPORTED(__CUDA_ARCH__) template <> void invokeLayernormShiftPartition(half *out, const half *input, @@ -433,7 +432,6 @@ void invokeLayernormShiftPartition(half *out, eps); } } -#endif template static void convertAndCopy(const std::vector &host, T *dev) { -- GitLab