| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -342,7 +342,7 @@ namespace xt | |||
| 342 | 342 | */ | |
| 343 | 343 | template <class T, std::size_t N, layout_type L> | |
| 344 | 344 | inline pytensor<T, N, L>::pytensor(const self_type& rhs) | |
| 345 | - : self_type() | ||
| 345 | + : base_type(), semantic_base(rhs) | ||
| 346 | 346 | { | |
| 347 | 347 | init_tensor(rhs.shape(), rhs.strides()); | |
| 348 | 348 | std::copy(rhs.storage().cbegin(), rhs.storage().cend(), this->storage().begin()); | |
@@ -416,7 +416,7 @@ namespace xt | |||
| 416 | 416 | auto dtype = pybind11::detail::npy_format_descriptor<T>::dtype(); | |
| 417 | 417 | ||
| 418 | 418 | auto tmp = pybind11::reinterpret_steal<pybind11::object>( | |
| 419 | - PyArray_NewFromDescr(&PyArray_Type, (PyArray_Descr*) dtype.ptr(), static_cast<int>(shape.size()), | ||
| 419 | + PyArray_NewFromDescr(&PyArray_Type, (PyArray_Descr*) dtype.release().ptr(), static_cast<int>(shape.size()), | ||
| 420 | 420 | const_cast<npy_intp*>(shape.data()), python_strides, | |
| 421 | 421 | nullptr, flags, nullptr)); | |
| 422 | 422 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments