• C
    [Cherry-pick] Add complex api conj, real and imag (#29750) · ab5cc042
    Chen Weihang 提交于
    * 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>
    ab5cc042
fill_constant_op_xpu.cc 1.1 KB