@@ -481,18 +481,16 @@ for V in spacelist
481481 @timedtestset " Tensor functions" begin
482482 W = V1 ⊗ V2
483483 for T in (Float64, ComplexF64)
484- t = project_hermitian! (AMDGPU. randn (T, W, W))
484+ #= t = project_hermitian!(AMDGPU.randn(T, W, W))
485485 s = dim(W)
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
486+ @test (@constinferred sqrt(t))^2 ≈ t
487+ @test TensorKit.to_cpu(sqrt(t)) ≈ sqrt(TensorKit.to_cpu(t))
488+ expt = @constinferred exp(t)
489+ @test TensorKit.to_cpu(expt) ≈ exp(TensorKit.to_cpu(t))
490+ @test exp(@constinferred log(project_hermitian!(expt))) ≈ expt
491+ @test TensorKit.to_cpu(log(project_hermitian!(expt))) ≈ log(TensorKit.to_cpu(expt))
494492
495- #= @test (@constinferred cos(t))^2 + (@constinferred sin(t))^2 ≈
493+ @test (@constinferred cos(t))^2 + (@constinferred sin(t))^2 ≈
496494 id(storagetype(t), W)
497495 @test (@constinferred tan(t)) ≈ sin(t) / cos(t)
498496 @test (@constinferred cot(t)) ≈ cos(t) / sin(t)
0 commit comments