Skip to content

Commit a2ec5d1

Browse files
authored
Remove TensorMap after cg call (deepmodeling#5797)
1 parent 0401194 commit a2ec5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_hsolver/hsolver_pw.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ void HSolverPW<T, Device>::hamiltSolvePsiK(hamilt::Hamilt<T, Device>* hm,
477477

478478
cg.diag(hpsi_func, spsi_func, psi_tensor, eigen_tensor, this->ethr_band, prec_tensor);
479479
// TODO: Double check tensormap's potential problem
480-
ct::TensorMap(psi.get_pointer(), psi_tensor, {psi.get_nbands(), psi.get_nbasis()}).sync(psi_tensor);
480+
// ct::TensorMap(psi.get_pointer(), psi_tensor, {psi.get_nbands(), psi.get_nbasis()}).sync(psi_tensor);
481481
}
482482
else if (this->method == "bpcg")
483483
{

0 commit comments

Comments
 (0)