mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-19 16:48:10 +08:00
Fix incorrect path and typos (#2630)
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "mlx/backend/cpu/simd/base_simd.h"
|
#include "mlx/backend/cpu/simd/base_simd.h"
|
||||||
|
|
||||||
// There seems to be a bug in sims/base.h
|
// There seems to be a bug in simd/base_simd.h
|
||||||
// __XROS_2_0 is not defined, the expression evaluates
|
// __XROS_2_0 is not defined, the expression evaluates
|
||||||
// to true instead of false setting the SIMD library
|
// to true instead of false setting the SIMD library
|
||||||
// higher than it should be even on macOS < 15
|
// higher than it should be even on macOS < 15
|
||||||
|
@@ -378,7 +378,7 @@ void Scatter::eval_gpu(const std::vector<array>& inputs, array& out) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (upd_ndim == 0) {
|
if (upd_ndim == 0) {
|
||||||
// Need placeholders so Metal doesn't compalain
|
// Need placeholders so Metal doesn't complain
|
||||||
int shape_ = 0;
|
int shape_ = 0;
|
||||||
int64_t stride_ = 0;
|
int64_t stride_ = 0;
|
||||||
compute_encoder.set_bytes(shape_, 3);
|
compute_encoder.set_bytes(shape_, 3);
|
||||||
@@ -393,7 +393,7 @@ void Scatter::eval_gpu(const std::vector<array>& inputs, array& out) {
|
|||||||
// Set output info
|
// Set output info
|
||||||
size_t out_ndim = out.ndim();
|
size_t out_ndim = out.ndim();
|
||||||
if (out_ndim == 0) {
|
if (out_ndim == 0) {
|
||||||
// Need placeholders so Metal doesn't compalain
|
// Need placeholders so Metal doesn't complain
|
||||||
int shape_ = 0;
|
int shape_ = 0;
|
||||||
int64_t stride_ = 0;
|
int64_t stride_ = 0;
|
||||||
compute_encoder.set_bytes(shape_, 7);
|
compute_encoder.set_bytes(shape_, 7);
|
||||||
|
Reference in New Issue
Block a user