diff --git a/paddle/fluid/platform/enforce.h b/paddle/fluid/platform/enforce.h index ec4d0bf910127d26e22076b723fd1359ff069464..efead293037a400e024bde7f179963e8267c08c1 100644 --- a/paddle/fluid/platform/enforce.h +++ b/paddle/fluid/platform/enforce.h @@ -276,7 +276,7 @@ inline void throw_on_error(T e) { do { \ auto __cond = COND; \ if (UNLIKELY(::paddle::platform::is_error(__cond))) { \ - PADDLE_THROW_ERROR(COND, __VA_ARGS__); \ + PADDLE_THROW_ERROR(__cond, __VA_ARGS__); \ } \ } while (0)