提交 5485caf7 编写于 作者: S Superjom

add EQ

上级 6512893b
......@@ -162,5 +162,10 @@ inline void throw_on_error(T e) {
} \
} while (0)
#define PADDLE_ENFORCE_EQ(__VAL0, __VAL1) \
PADDLE_ENFORCE((__VAL0) == (__VAL1), "enforce %s == %s failed, %s != %s", \
#__VAL0, #__VAL1, std::to_string(__VAL0), \
std::to_string(__VAL1));
} // namespace platform
} // namespace paddle
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册