File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -171,10 +171,10 @@ end
171
171
end
172
172
end
173
173
174
- @reactant_overlay @noinline function Base. any (f, x:: AbstractArray{T} , dims) where {T}
174
+ @reactant_overlay @noinline function Base. _any (f, x:: AbstractArray{T} , dims) where {T}
175
175
if T <: TracedRNumber && T != = Union{}
176
176
return TracedRArrayOverrides. overloaded_mapreduce (f, | , x; dims)
177
177
else
178
- return Base. inferencebarrier (Base. any )(f, x, dims)
178
+ return Base. inferencebarrier (Base. _any )(f, x, dims)
179
179
end
180
180
end
Original file line number Diff line number Diff line change @@ -1371,3 +1371,8 @@ end
1371
1371
@test contains (hlo1, " chlo.conj" )
1372
1372
@test ! contains (hlo2, " chlo" )
1373
1373
end
1374
+
1375
+ @testset " scalar indexing in any #1434" begin
1376
+ xr = Reactant. to_rarray (ones (4 , 4 ))
1377
+ @test @jit (any (< (0 ), xr)) == any (< (0 ), Array (xr))
1378
+ end
You can’t perform that action at this time.
0 commit comments