Skip to content

Commit 329f9bc

Browse files
fix fetch name
1 parent 1a07636 commit 329f9bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/api_cc/src/DeepPotPD.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,12 @@ void DeepPotPD::compute(ENERGYVTYPE& ener,
359359
std::vector<VALUETYPE> coord_wrapped = coord;
360360
int natoms = atype.size();
361361
int nframes = 1;
362-
auto coord_wrapped_Tensor = predictor->GetInputHandle("coord");
362+
auto coord_wrapped_Tensor = predictor->GetInputHandle("extended_coord");
363363
coord_wrapped_Tensor->Reshape({1, natoms, 3});
364364
coord_wrapped_Tensor->CopyFromCpu(coord_wrapped.data());
365365

366366
std::vector<std::int64_t> atype_64(atype.begin(), atype.end());
367-
auto atype_Tensor = predictor->GetInputHandle("atype");
367+
auto atype_Tensor = predictor->GetInputHandle("extended_atype");
368368
atype_Tensor->Reshape({1, natoms});
369369
atype_Tensor->CopyFromCpu(atype_64.data());
370370

0 commit comments

Comments
 (0)