Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Jul 22, 2024
1 parent b9ba9da commit 287bebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/test/perftest/ort_test_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ select from 'TF8', 'TF16', 'UINT8', 'FLOAT', 'ITENSOR'. \n)");
const std::streampos fsize = file.tellg();
file.seekg(0, std::ios_base::beg);
std::vector<char> model_bytes(narrow<size_t>(fsize));
file.read(model_bytes.data(), fsize);
file.read(model_bytes.data(), narrow<std::streamsize>(fsize));
session_ = Ort::Session(env, model_bytes.data(), model_bytes.size(), session_options);
} else {
ORT_THROW("Model file could not be opened.\n");
Expand Down

0 comments on commit 287bebe

Please sign in to comment.