Skip to content

Commit f1a5d17

Browse files
Merge pull request xtensor-stack#78 from JohanMabille/tensor_fix
replacing init_array with init_tensor
2 parents 79a6bd4 + 22f8b07 commit f1a5d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xtensor-python/pytensor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ namespace xt
323323
shape_type shape = forward_sequence<shape_type>(e.derived_cast().shape());
324324
strides_type strides = make_sequence<strides_type>(N, size_type(0));
325325
compute_strides(shape, layout::row_major, strides);
326-
init_array(shape, strides);
326+
init_tensor(shape, strides);
327327
semantic_base::assign(e);
328328
}
329329

0 commit comments

Comments
 (0)