diff --git a/include/xtensor-python/pytensor.hpp b/include/xtensor-python/pytensor.hpp index e75a141..d06b3e5 100644 --- a/include/xtensor-python/pytensor.hpp +++ b/include/xtensor-python/pytensor.hpp @@ -323,7 +323,7 @@ namespace xt shape_type shape = forward_sequence(e.derived_cast().shape()); strides_type strides = make_sequence(N, size_type(0)); compute_strides(shape, layout::row_major, strides); - init_array(shape, strides); + init_tensor(shape, strides); semantic_base::assign(e); }