Skip to content

Commit

Permalink
fix openvino export tmp model, add binary flag
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Apr 14, 2022
1 parent 6e7e219 commit e632773
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 e632773

Please sign in to comment.