Skip to content

Commit

Permalink
remove gpu input when call on cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
CaRoLZhangxy committed Mar 28, 2024
1 parent 811ff3a commit 9b151d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/api_cc/src/DeepPotPT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +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 " << gpu_id
std::cout << "load model from: " << model << " to cpu "
<< std::endl;
} else {
std::cout << "load model from: " << model << " to gpu " << gpu_id
Expand Down

0 comments on commit 9b151d5

Please sign in to comment.