code refine (#6164)

release/0.11.0
chengduo 8 years ago committed by Yu Yang
parent aabe1db111
commit e50f35706a

@ -244,7 +244,7 @@ inline void throw_on_error(T e) {
#define __PADDLE_BINARY_COMPARE(__VAL0, __VAL1, __CMP, __INV_CMP, ...) \
do { \
if (!UNLIKELY((__VAL0)__CMP(__VAL1))) { \
if (UNLIKELY(!((__VAL0)__CMP(__VAL1)))) { \
PADDLE_THROW("enforce %s " #__CMP " %s failed, %s " #__INV_CMP \
" %s\n%s", \
#__VAL0, #__VAL1, paddle::string::to_string(__VAL0), \

Loading…
Cancel
Save