change outputs and grads from fp16-fp16-comparision and fp16-fp32 (#50700)
* change outputs and grads from fp16-fp16-comparision and fp16-fp32
comparision
* support grad comparision fp16-fp32
* the change of reference dtype only occured from np.float16 to np.float32
* fix the list type can not infer the dtype by attribute dtype by transfer
the list to array
* adjust the default atol and rtol of float16 to 1e-3
* Polish code
* fix error
* fix
* Polish code
* fix the _is_cal_ref and np.float16
* fix the combination of is_calc_ref and np.float16
* remove unuseful codes in op_test.py
* fix ci
* fix the rtol set in the dygraph checker and eager checker
---------
Co-authored-by: NZzSean <18818272991@163.com>
Showing
想要评论请 注册 或 登录