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
171171 end
172172end
173173
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}
175175 if T <: TracedRNumber && T != = Union{}
176176 return TracedRArrayOverrides. overloaded_mapreduce (f, | , x; dims)
177177 else
178- return Base. inferencebarrier (Base. any )(f, x, dims)
178+ return Base. inferencebarrier (Base. _any )(f, x, dims)
179179 end
180180end
Original file line number Diff line number Diff line change @@ -1371,3 +1371,8 @@ end
13711371 @test contains (hlo1, " chlo.conj" )
13721372 @test ! contains (hlo2, " chlo" )
13731373end
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