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 remove the unused assert.h
, and is the next of #19285.
TODO:
- remove
PADDLE_ASSERT
, remain onlyPADDLE_ASSERT_MSG
, i.e, we should write error message in CUDA device kernel. - unify
PADDLE_ASSERT_MSG
intoPADDLE_ENFORCE
to meet the demands of CUDA device kernel.