【prim】Slice grad (#50771)
* support prim test in OpTest
* fix cmake
* fix op test
* fix test_input_spec
* disable cinn in reduce_sum unit test
* add bfloat16 dtype for sum
* add approve rules
* polish code
* add clear jit program function
* convert grad out from tensor to numpy
* remove unnecessary code
* add only_prim flag
* fix flag
* fix op test
* add attr
* fix optest comp inplace error
* fix op test
* fix op test with guard
* add initialization of check_comp flag
* fix comp inplace error in op test
* rename check_comp with check_prim and add bfloat16 dtype convert
* rename comp_op_type to prim_op_type
* rename comp to prim
* remove useless code
* skip ci check for only prim
* add no_grad_vars and grad_outputs in prim test
* fix var_dict
* fix op test for only_prim
* fix dy2static bugs
* polish some code
* temp
* modify op test
* except cinn test
* modify bfp16
* modify pad grad
* add pad_grad dtype
* start cinn part
---------
Co-authored-by: NCharles-hit <wanghao107@baidu.com>
Showing
想要评论请 注册 或 登录