Skip to content

Commit

Permalink
a backet is missing...
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Jan 26, 2024
1 parent d157a4f commit 522b7c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/api_cc/src/DeepPot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void DeepPot::init(const std::string& model,
backend = deepmd::DPBackend::PyTorch;

Check warning on line 42 in source/api_cc/src/DeepPot.cc

View check run for this annotation

Codecov / codecov/patch

source/api_cc/src/DeepPot.cc#L42

Added line #L42 was not covered by tests
} else if (model.length() >= 3 && model.substr(model.length() - 3) == ".pb") {
backend = deepmd::DPBackend::TensorFlow;
}
else {
throw deepmd::deepmd_exception("Unsupported model file format");

Check warning on line 47 in source/api_cc/src/DeepPot.cc

View check run for this annotation

Codecov / codecov/patch

source/api_cc/src/DeepPot.cc#L47

Added line #L47 was not covered by tests
}
Expand Down

0 comments on commit 522b7c8

Please sign in to comment.