[Cherry-pick] Add complex api conj, real and imag (#29750)
* Add complex dtype op (add) test example (#29603)
* add op test case for complex
* polish code details
* add xpu set constant support
* fix argument rror
* remove useless pyc file
* [Complex] Add real & imag op and api for complex tensor (#29672)
* add complex real op & api & unittest
* add imag op & api & unittest
* refactor op impl
* revert simplify writing due to complile failed
* polish details
* polish grad op code
* add conj op for complex types (#29527)
* add conj op for complex types
* add conj for complex types
* add more test case
* add conj_op test
* modify conj api and impl
* add complex type for fill_constant_op xpu
* add setConstant for complex type
* remove complex conj test file
* user define grad for test_conj_op
* add test case for static mode of conj api
* modify conj doc
* change input args name to x
* remove useless codes
* conj support real types
* add conj test case for real number
Co-authored-by: Nchentianyu03 <chentianyu03@baidu.com>
Showing
paddle/fluid/operators/conj_op.cc
0 → 100644
paddle/fluid/operators/conj_op.cu
0 → 100644
paddle/fluid/operators/conj_op.h
0 → 100644
paddle/fluid/operators/imag_op.cc
0 → 100644
paddle/fluid/operators/imag_op.cu
0 → 100644
paddle/fluid/operators/imag_op.h
0 → 100644
paddle/fluid/operators/real_op.cc
0 → 100644
paddle/fluid/operators/real_op.cu
0 → 100644
paddle/fluid/operators/real_op.h
0 → 100644
想要评论请 注册 或 登录