Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix openvino export tmp model, add binary flag #353

Merged
merged 1 commit into from
Apr 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions csrc/net/openvino/openvino_net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ Result<void> OpenVINONet::Init(const Value& args) {
OUTCOME_TRY(auto raw_bin, model.ReadFile(config.weights));

try {
std::ofstream xml_out(tmp_xml);
std::ofstream xml_out(tmp_xml, std::ios::binary);
xml_out << raw_xml;
xml_out.close();
std::ofstream bin_out(tmp_bin);
std::ofstream bin_out(tmp_bin, std::ios::binary);
bin_out << raw_bin;
bin_out.close();
} catch (const std::exception& e) {
Expand Down