mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Reduce a little overhead (#871)
* some small overhead improvements * use result_type in rms_norm * remove release force * fix + use non-vector version * revert compile change * fix ops * a little more overhead * a little more cleanup and overhead
This commit is contained in:
@@ -158,9 +158,7 @@ array expand_dims(
|
||||
StreamOrDevice s = {});
|
||||
|
||||
/** Add a singleton dimension at the given axis. */
|
||||
inline array expand_dims(const array& a, int axis, StreamOrDevice s = {}) {
|
||||
return expand_dims(a, std::vector<int>{axis}, s);
|
||||
}
|
||||
array expand_dims(const array& a, int axis, StreamOrDevice s = {});
|
||||
|
||||
/** Slice an array. */
|
||||
array slice(
|
||||
|
||||
Reference in New Issue
Block a user