Skip to content

Commit

Permalink
Test3
Browse files Browse the repository at this point in the history
  • Loading branch information
bili2002 committed Jan 3, 2024
1 parent d1f83f8 commit 4e177fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onnxruntime/test/framework/inference_session_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2975,15 +2975,15 @@ TEST(InferenceSessionTests, Bench) {
// Initialize and load the InferenceSession
InferenceSession session{so, *env};

ASSERT_STATUS_OK(session.Load("model.onnx"));
ASSERT_STATUS_OK(session.Load("model3.onnx"));
ASSERT_STATUS_OK(session.Initialize());

// Input numpy array
std::fstream input_file("input.txt");
std::fstream input_file("input3.txt");
std::vector<float> values = {};
for(float number; input_file >> number; ) { values.push_back(number); }

std::vector<int64_t> dims = {static_cast<long long>(values.size()) / 5, 5};
std::vector<int64_t> dims = {static_cast<long long>(values.size()) / 15, 15};

std::cout << "Loaded: " << values.size() << std::endl;

Expand Down

0 comments on commit 4e177fa

Please sign in to comment.