File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -1227,7 +1227,8 @@ end
1227
1227
x_ra = Reactant. to_rarray (randn (Float32, 6 , 6 ))
1228
1228
lu_ra, ipiv, perm, info = @jit Ops. lu (x_ra)
1229
1229
1230
- @test @jit (recon_from_lu (lu_ra)) ≈ @jit (getindex (x_ra, perm, :))
1230
+ @test @jit (recon_from_lu (lu_ra)) ≈ @jit (getindex (x_ra, perm, :)) atol = 1e-5 rtol =
1231
+ 1e-2
1231
1232
end
1232
1233
1233
1234
@testset " batched" begin
Original file line number Diff line number Diff line change 188
188
flastlinindices (x) = LinearIndices (x)[findlast (x)]
189
189
flastlinindices (f, x) = LinearIndices (x)[findlast (f, x)]
190
190
191
- @test ffirstlinindices (x) ≈ @jit (findfirst (x_ra))
192
- @test flastlinindices (x) ≈ @jit (findlast (x_ra))
191
+ @test ffirstlinindices (x) ≈ @jit (findfirst (x_ra)) broken = contains (
192
+ string (Reactant. devices ()[1 ]), " TPU"
193
+ )
194
+ @test flastlinindices (x) ≈ @jit (findlast (x_ra)) broken = contains (
195
+ string (Reactant. devices ()[1 ]), " TPU"
196
+ )
193
197
194
198
x = Int64[
195
199
3 5 7 9
198
202
]
199
203
x_ra = Reactant. to_rarray (x)
200
204
201
- @test ffirstlinindices (iseven, x) ≈ @jit (findfirst (iseven, x_ra))
202
- @test flastlinindices (iseven, x) ≈ @jit (findlast (iseven, x_ra))
205
+ @test ffirstlinindices (iseven, x) ≈ @jit (findfirst (iseven, x_ra)) broken = contains (
206
+ string (Reactant. devices ()[1 ]), " TPU"
207
+ )
208
+ @test flastlinindices (iseven, x) ≈ @jit (findlast (iseven, x_ra)) broken = contains (
209
+ string (Reactant. devices ()[1 ]), " TPU"
210
+ )
203
211
end
204
212
205
213
@testset " approx top k lowering" begin
You can’t perform that action at this time.
0 commit comments