| 37 | PYBIND11_NAMESPACE_BEGIN(detail) |
| 38 | |
| 39 | inline bool is_tensor_aligned(const void *data) { |
| 40 | return (reinterpret_cast<std::size_t>(data) % EIGEN_DEFAULT_ALIGN_BYTES) == 0; |
| 41 | } |
| 42 | |
| 43 | template <typename T> |
| 44 | constexpr int compute_array_flag_from_tensor() { |