Skip to content

Commit 10280d3

Browse files
committed
fix patch
1 parent 5ecb50e commit 10280d3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
--- a/onnx/common/file_utils.h
2-
+++ b/onnx/common/file_utils.h
3-
@@ -17,7 +17,8 @@ namespace ONNX_NAMESPACE {
1+
diff --git a/Users/simo/.conan2/p/onnx7f96e379d7d4a/s/src/onnx/common/file_utils.h b/file_utils.h
2+
index b847798..18ecc20 100644
3+
--- a/Users/simo/.conan2/p/onnx7f96e379d7d4a/s/src/onnx/common/file_utils.h
4+
+++ b/file_utils.h
5+
@@ -17,8 +17,7 @@ namespace ONNX_NAMESPACE {
46

57
template <typename T>
68
void LoadProtoFromPath(const std::string proto_path, T& proto) {
7-
- std::fstream proto_stream(proto_path, std::ios::in | std::ios::binary);
8-
+ std::filesystem::path proto_u8_path = std::filesystem::u8path(proto_path);
9-
+ std::fstream proto_stream(proto_u8_path, std::ios::in | std::ios::binary);
9+
- std::filesystem::path proto_u8_path = std::filesystem::u8path(proto_path);
10+
- std::fstream proto_stream(proto_u8_path, std::ios::in | std::ios::binary);
11+
+ std::fstream proto_stream(proto_path, std::ios::in | std::ios::binary);
1012
if (!proto_stream.good()) {
1113
fail_check("Unable to open proto file: ", proto_path, ". Please check if it is a valid proto. ");
1214
}

0 commit comments

Comments
 (0)