• Z
    [PHI] Support construct IntArray by using Non-CPU Tensosr (#41764) · 8eecd852
    zyfncg 提交于
    * support construct scalar using non-cpu tensor
    
    * fix bugs when run unittest
    
    * fix compile bugs
    
    * fix bugs when run ci
    
    * fix compile bugs
    
    * fix bugs when move copy
    
    * perfect unit test
    
    * perfect unittest
    
    * update according to comment
    
    * int_array supports constructed by gpu tensor
    
    * add some test
    
    * polish code
    
    * adjust full api
    
    * add unittest
    
    * add unittest
    Co-authored-by: NYuanRisheng <yuanrisheng@baidu.com>
    8eecd852
tensor.py 68.4 KB