From 913b8305a810a9e5571fb7e211baf6bc30951a9a Mon Sep 17 00:00:00 2001 From: kmp5VT Date: Thu, 2 Nov 2023 14:49:34 -0400 Subject: [PATCH] Don't return SVD of U, S, V --- NDTensors/ext/NDTensorsCUDAExt/linearalgebra.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NDTensors/ext/NDTensorsCUDAExt/linearalgebra.jl b/NDTensors/ext/NDTensorsCUDAExt/linearalgebra.jl index d808a7d911..4720df1e21 100644 --- a/NDTensors/ext/NDTensorsCUDAExt/linearalgebra.jl +++ b/NDTensors/ext/NDTensorsCUDAExt/linearalgebra.jl @@ -31,7 +31,7 @@ function NDTensors.svd_catch_error(A::CuMatrix, ::CUDA.CUSOLVER.QRAlgorithm) return nothing end MV, MS, MU = USV - USV = SVD(copy(MU), MS, Adjoint(MV)) + USV = (MU, MS, MV) else USV = try svd(A; alg=CUDA.CUSOLVER.QRAlgorithm())