Skip to content

Commit

Permalink
remove commented out codes
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Jan 16, 2024
1 parent 85ff70f commit 807cdbe
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions source/api_cc/src/DataModifierTF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ void DipoleChargeModifierTF::init(const std::string& model,
deepmd::check_status(NewSession(options, &session));
deepmd::check_status(ReadBinaryProto(Env::Default(), model, graph_def));
deepmd::check_status(session->Create(*graph_def));
// int nnodes = graph_def.node_size();
// for (int ii = 0; ii < nnodes; ++ii){
// cout << ii << " \t " << graph_def.node(ii).name() << endl;
// }
dtype = session_get_dtype(session, "descrpt_attr/rcut");
if (dtype == tensorflow::DT_DOUBLE) {
rcut = get_scalar<double>("descrpt_attr/rcut");
Expand Down Expand Up @@ -308,11 +304,6 @@ void DipoleChargeModifierTF::compute(
}
// add ele contrinution
dfcorr_ = dfcorr_2;
// for (int ii = 0; ii < nloc; ++ii){
// for (int dd = 0; dd < 3; ++dd){
// dfcorr_[ii*3+dd] += delef_[ii*3+dd];
// }
// }
for (int ii = 0; ii < nloc_real; ++ii) {
int oii = real_bkw_map[ii];
for (int dd = 0; dd < 3; ++dd) {
Expand Down

0 comments on commit 807cdbe

Please sign in to comment.