From 4644b47db199ccda856c81ca88d6a3c58c41890f Mon Sep 17 00:00:00 2001 From: Eugene Kuznetsov Date: Tue, 9 Jun 2020 05:13:35 +0000 Subject: [PATCH] Remove duplicate macros --- .../core/kernels/non_max_suppression_op.cu.cc | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tensorflow/core/kernels/non_max_suppression_op.cu.cc b/tensorflow/core/kernels/non_max_suppression_op.cu.cc index 53559b20419..c2cae2ab212 100644 --- a/tensorflow/core/kernels/non_max_suppression_op.cu.cc +++ b/tensorflow/core/kernels/non_max_suppression_op.cu.cc @@ -28,25 +28,6 @@ limitations under the License. #include "tensorflow/core/util/gpu_launch_config.h" #include "tensorflow/stream_executor/stream_executor.h" -#define TF_RETURN_IF_CUDA_ERROR(result) \ - do { \ - cudaError_t error(result); \ - if (!SE_PREDICT_TRUE(error == cudaSuccess)) { \ - return errors::Internal("Cuda call failed with ", \ - cudaGetErrorString(error)); \ - } \ - } while (0) - -#define TF_OP_REQUIRES_CUDA_SUCCESS(context, result) \ - do { \ - cudaError_t error(result); \ - if (!SE_PREDICT_TRUE(error == cudaSuccess)) { \ - context->SetStatus(errors::Internal("Cuda call failed with", \ - cudaGetErrorString(error))); \ - return; \ - } \ - } while (0) - struct __align__(16) Box { float x1, y1, x2, y2; };