mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Partially fixes #122980 - change cpp type mapping for complex64 to std::complex<float> - add `aoti_torch_item_complex64` and `aoti_torch_scalar_to_tensor_complex64`. - add `expensiveCopyToTensor()` to convert `ArrayRefTensor<T>` type to `AtenTensorHandle` type. - if we want to fully fix #122980, we still need to let ArrayRef and MiniArrayRef to consider underlying storage number of elements. See more details in https://github.com/pytorch/pytorch/pull/132347 (#132347 broke some internal tests, so we need more work before landing it). Pull Request resolved: https://github.com/pytorch/pytorch/pull/132810 Approved by: https://github.com/desertfire |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| main.cpp | ||
| README.md | ||
| test_cast.cpp | ||
| test_dtype.cpp | ||
| test_math.cpp | ||
| test_rand.cpp | ||
| test_vec.cpp | ||
Tests in this directory are meant to guard certain ATen/c10 util functions and data structures are implemented in a header-only fashion, to make sure AOTInductor generated CPU model code is ABI backward-compatible.