Skip to content

Commit

Permalink
fix openvino export tmp model, add binary flag (open-mmlab#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc authored Apr 15, 2022
1 parent 89ce8e2 commit 6aacede
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 6aacede

Please sign in to comment.