mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-22 02:58:16 +08:00
Explicit parentheses around some logical operators (#1732)
* fix some warnings * format
This commit is contained in:

committed by
GitHub

parent
ebfe64b92d
commit
88f993da38
@@ -440,7 +440,7 @@ void View::eval_gpu(const std::vector<array>& inputs, array& out) {
|
||||
// - type size is the same
|
||||
// - type size is smaller and the last axis is contiguous
|
||||
// - the entire array is row contiguous
|
||||
if (ibytes == obytes || obytes < ibytes && in.strides().back() == 1 ||
|
||||
if (ibytes == obytes || (obytes < ibytes && in.strides().back() == 1) ||
|
||||
in.flags().row_contiguous) {
|
||||
auto strides = in.strides();
|
||||
for (int i = 0; i < static_cast<int>(strides.size()) - 1; ++i) {
|
||||
|
Reference in New Issue
Block a user