File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
conan_patches/onnx/patches Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments