There was an error while loading. Please reload this page.
1 parent 0eb9c2a commit c66a7c1Copy full SHA for c66a7c1
1 file changed
crates/mlxcore/src/array.rs
@@ -121,7 +121,8 @@ impl Array {
121
/// (row-major) element order rather than the raw storage buffer.
122
///
123
/// # Panics
124
- /// Panics if `T::DTYPE` does not match the array's dtype.
+ /// Panics if `T::DTYPE` does not match the array's dtype, or if
125
+ /// making the array contiguous fails.
126
pub fn to_vec<T: ArrayElement>(&self) -> Vec<T> {
127
// Materialize a row-contiguous copy: strided views (transpose) and
128
// stride-0 views (broadcast) don't lay their logical elements out
0 commit comments