From a5789097f755ff224ed4637363ba93c3b47d2333 Mon Sep 17 00:00:00 2001 From: hunghaoti Date: Wed, 22 Nov 2023 02:13:17 +0800 Subject: [PATCH] Modify the test from->convert_from, otherwise the compilation when using CUDA will cannot success. --- tests/gpu/linalg_test/linalg_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gpu/linalg_test/linalg_test.cpp b/tests/gpu/linalg_test/linalg_test.cpp index 1a4dd22c..c3ad0734 100644 --- a/tests/gpu/linalg_test/linalg_test.cpp +++ b/tests/gpu/linalg_test/linalg_test.cpp @@ -28,7 +28,7 @@ TEST_F(linalg_Test, gpu_BkUt_Svd_truncate2) { TEST_F(linalg_Test, gpu_BkUt_Svd_truncate3) { std::vector res = linalg::Svd_truncate(svd_T, 200, 0, true); UniTensor densvd_T = UniTensor(zeros(svd_T.shape(), svd_T.dtype(), svd_T.device())); - std::vector denres = linalg::Svd_truncate(densvd_T.from(svd_T), 200, 0, true); + std::vector denres = linalg::Svd_truncate(densvd_T.convert_from(svd_T), 200, 0, true); std::vector vnm_S, denvnm_S; for (size_t i = 0; i < res[0].shape()[0]; i++)