File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -483,15 +483,14 @@ for V in spacelist
483483 for T in (Float64, ComplexF64)
484484 t = project_hermitian! (AMDGPU. randn (T, W, W))
485485 s = dim (W)
486- # @test (@constinferred sqrt(t))^2 ≈ t
487- # @test TensorKit.to_cpu(sqrt(t)) ≈ sqrt(TensorKit.to_cpu(t))
488-
489- expt = @constinferred exp (t)
490- @test TensorKit. to_cpu (expt) ≈ exp (TensorKit. to_cpu (t))
491-
492- # log doesn't work on AMDGPU yet (scalar indexing)
493- # @test exp(@constinferred log(project_hermitian!(expt))) ≈ expt
494- # @test TensorKit.to_cpu(log(project_hermitian!(expt))) ≈ log(TensorKit.to_cpu(expt))
486+ AMDGPU. @allowscalar begin
487+ @test (@constinferred sqrt (t))^ 2 ≈ t
488+ @test TensorKit. to_cpu (sqrt (t)) ≈ sqrt (TensorKit. to_cpu (t))
489+ expt = @constinferred exp (t)
490+ @test TensorKit. to_cpu (expt) ≈ exp (TensorKit. to_cpu (t))
491+ @test exp (@constinferred log (project_hermitian! (expt))) ≈ expt
492+ @test TensorKit. to_cpu (log (project_hermitian! (expt))) ≈ log (TensorKit. to_cpu (expt))
493+ end
495494
496495 #= @test (@constinferred cos(t))^2 + (@constinferred sin(t))^2 ≈
497496 id(storagetype(t), W)
You can’t perform that action at this time.
0 commit comments