Skip to content

Commit

Permalink
Merge pull request #378 from Cytnx-dev/haoti/convert_from-fixtest
Browse files Browse the repository at this point in the history
Modify the test from->convert_from
  • Loading branch information
jeffry1829 authored Dec 1, 2023
2 parents 9944cca + 0770726 commit 016b6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/gpu/linalg_test/linalg_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TEST_F(linalg_Test, gpu_BkUt_Svd_truncate2) {
TEST_F(linalg_Test, gpu_BkUt_Svd_truncate3) {
std::vector<UniTensor> 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<UniTensor> denres = linalg::Svd_truncate(densvd_T.from(svd_T), 200, 0, true);
std::vector<UniTensor> denres = linalg::Svd_truncate(densvd_T.convert_from(svd_T), 200, 0, true);

std::vector<double> vnm_S, denvnm_S;
for (size_t i = 0; i < res[0].shape()[0]; i++)
Expand Down

0 comments on commit 016b6de

Please sign in to comment.