Created by: luotao1
In general, it's recommended to use PADDLE_ENFORCE
for error_mesage. However, in CUDA device kernel or HOSTDEVICE function, we must use PADDLE_ASSERT
now.
This PR unify PADDLE_ASSERT_MSG
into PADDLE_ENFORCE(error_message)
to meet the demands of CUDA device kernel.