We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e78cee4 commit f2a8bc6Copy full SHA for f2a8bc6
test/test_basics.jl
@@ -272,7 +272,9 @@ arrayts = (Array, JLArray)
272
for p in 1:3
273
@test norm(a, p) ≈ norm(Array(a), p)
274
end
275
- @test tr(a) ≈ tr(Array(a))
+ # We use `@allowscalar` here since there seems to be a regression
276
+ # in `tr` of GPU arrays for that operation.
277
+ @test @allowscalar(tr(a)) ≈ tr(Array(a))
278
279
a[3, 3] = NaN
280
@test isnan(norm(a))
0 commit comments