[PHI] Support construct IntArray by using Non-CPU Tensosr (#41764)
* 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>
Showing
paddle/phi/api/lib/int_array.cc
0 → 100644
paddle/phi/common/int_array.cc
0 → 100644
想要评论请 注册 或 登录