diff --git a/source/api_cc/src/DeepPotPT.cc b/source/api_cc/src/DeepPotPT.cc index 1b1229ec85..69d73c18e2 100644 --- a/source/api_cc/src/DeepPotPT.cc +++ b/source/api_cc/src/DeepPotPT.cc @@ -221,10 +221,10 @@ void DeepPotPT::compute(ENERGYVTYPE& ener, torch::from_blob(atype_64.data(), {1, natoms}, int_options).to(device); inputs.push_back(atype_Tensor); c10::optional box_Tensor; - if(!box.empty()) - { - box_Tensor = torch::from_blob(const_cast(box.data()), {1, 9}, options) - .to(device); + if (!box.empty()) { + box_Tensor = + torch::from_blob(const_cast(box.data()), {1, 9}, options) + .to(device); } inputs.push_back(box_Tensor); c10::optional fparam_tensor;