mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Use && instead of and (#1663)
* Use && instead of and * Remove "and" in ops.cpp
This commit is contained in:
@@ -808,7 +808,7 @@ std::vector<array> meshgrid(
|
||||
outputs.push_back(reshape(arrays[i], std::move(shape), s));
|
||||
}
|
||||
|
||||
if (indexing == "xy" and ndim > 1) {
|
||||
if (indexing == "xy" && ndim > 1) {
|
||||
Shape shape(ndim, 1);
|
||||
|
||||
shape[1] = arrays[0].size();
|
||||
|
||||
Reference in New Issue
Block a user