Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 28, 2024
1 parent 9b151d5 commit a4ae015
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/api_cc/src/DeepPotPT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ void DeepPotPT::init(const std::string& model,
gpu_enabled = torch::cuda::is_available();
if (!gpu_enabled) {
device = torch::Device(torch::kCPU);
std::cout << "load model from: " << model << " to cpu "
<< std::endl;
std::cout << "load model from: " << model << " to cpu " << std::endl;
} else {
std::cout << "load model from: " << model << " to gpu " << gpu_id

Check warning on line 52 in source/api_cc/src/DeepPotPT.cc

View check run for this annotation

Codecov / codecov/patch

source/api_cc/src/DeepPotPT.cc#L52

Added line #L52 was not covered by tests
<< std::endl;
Expand Down

0 comments on commit a4ae015

Please sign in to comment.