You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as_slice here is closer to asData in the swift binding than asArray.
Similar to the situation with performing implicit conversion for as_slice, a new continuous copy is created implicitly in the swift binding. This makes the lifetime of the newly created underlying buffer rather complicated, and maybe the equivalent of asArray in the swift binding should not be implemented.
TODO:
We should document that as_slice is not equivalent to asArray
see ml-explore/mlx-swift#96
The text was updated successfully, but these errors were encountered: