Skip to content

Commit

Permalink
test multiple DeepPot
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Jan 12, 2024
1 parent ff58456 commit 6fe0f80
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions source/api_cc/tests/test_multiple_deeppot.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
#include <fcntl.h>
#include <gtest/gtest.h>
#include <sys/stat.h>
#include <sys/types.h>

#include <algorithm>
#include <cmath>
#include <fstream>
#include <string>
#include <vector>

#include "DeepPot.h"


TEST(TestMultipleDeepPot, multiple_deep_pot) {
std::string file_name = "../../tests/infer/deeppot.pbtxt";
deepmd::convert_pbtxt_to_pb("../../tests/infer/deeppot.pbtxt",
"deeppot.pb");

deepmd::DeepPot dp1("deeppot.pb");
deepmd::DeepPot dp2("deeppot.pb");

remove("deeppot.pb");
};

0 comments on commit 6fe0f80

Please sign in to comment.