Comments (6)
We haven't tried to build onnxruntime when "-DUNICODE -D_UNICODE" is enabled. Would you like to help us? We need to add a new cmake option 'onnxruntime_UNICODE', like protobuf has 'protobuf_UNICODE'. And also a few code changes would be needed.
from onnxruntime.
@MironAtHome Let's make it clear, you are attempting to run protoc on files that reside in paths that have UNICODE characters within them. Was protobuf code written in a way that it can handle UNICODE characters? Addining _DUNICODE
switches to the command line is not enough.
-DUNICODE
is a Microsoft specific switch which may affect lots of stuff , but then again, affect nothing depending on the way code is written.
I took a brief look at protobuf code on GitHub and it looks like it is written in a way that it supports Unicode paths regardless of -DUNICODE
presence at least here:
https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/io/io_win32.cc#L317
But it requires that the rest of the code treats path strings as UTF-8 encoding, otherwise it will attempt to convert to a codepage CP_ACP in this case, this is almost never what you want. You will notice that
https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/io/io_win32.cc#L383
takes a flag bool inUtf8
that denotes the string conversion from multibyte to widechar which is UTF-16 on Windows.
Bottom line, if you are able to build protobuf outside onnxruntime in way that it handles UNICODE paths, we will make sure it does the same within onnxruntime.
from onnxruntime.
Just found your comments. Will review at home tonight what is new in the build ( if anything ) and where I have left the project off when worked on it.
I think I fixed it back than but need to take a look.
from onnxruntime.
@MironAtHome is this still relevant and require fixing?
from onnxruntime.
This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
from onnxruntime.
This issue has been automatically closed due to inactivity. Please reactivate if further support is needed.
from onnxruntime.
Related Issues (20)
- [Documentation Request]
- Microsoft.ML.OnnxRuntime.DirectML causes VS 2022 project to have empty project properties list
- DirectML Exception 80070057 "The parameter is incorrect" HOT 1
- [Feature request] Support bfloat16/float8 inputs in `session.run()` HOT 2
- Getting error "Dilation not supported for AutoPadType::SAME_UPPER or AutoPadType::SAME_LOWER" HOT 1
- Caused by: java.lang.UnsatisfiedLinkError: /tmp/onnxruntime-java8147263448488960156/libonnxruntime.so: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /tmp/onnxruntime-java8147263448488960156/libonnxruntime.so) HOT 1
- [Build] LoadLibrary failed with error 126 HOT 1
- [Documentation Request]
- windows系统,Java中使用onnxruntime进行压测,cpu飙升很快,一直100% HOT 3
- Load External Data with AddExternalInitializers and output nan HOT 7
- [Build] Cross compilation for Nvidia Jetson fails at compiler check due to -fcf-protection flag HOT 1
- FAIL : LoadLibrary failed with error 126 "" when trying to load "onnxruntime_providers_cuda.dll"` HOT 1
- [Performance] Inference takes longer when session.Run() is being ran on different threads and each thread has its own session HOT 2
- Ensures <img> elements have alternate text or a role of none or presentation (img[width="30%"][height="30%"]): A11y_WCP URLs - ONNX Runtime_AI4W
- Missing dll cudnn_ops_infer64_8.dll does not generate a python error HOT 3
- [BUG] Running operations over concat output rewrites it's values
- [Build] Jetson orin nano unknown cmake error HOT 5
- how to build onnxruntime with latest version of onnx HOT 1
- [Feature Request] 2024-05-09 07:05:28.107324198 [E:onnxruntime:Default, cann_call.cc:139 CannCall] CANNGRAPH failure -1: GRAPH_FAILED ; NPU=0 ; hostname=d5624f2a4431 ; expr=ge::aclgrphParseONNXFromMem(string_model.data(), string_model.size(), parser_params, graph); 2024-05-09 07:05:28.108008819 [E:onnxruntime:, sequential_executor.cc:516 ExecuteKernel] Non-zero status code returned while running main_graph_12023255667024707207_0 node. Name:'CANNExecutionProvider_main_graph_12023255667024707207_0_0' Status Message: CANN Graph error executing ge::aclgrphParseONNXFromMem(string_model.data(), string_model.size(), parser_params, graph)
- LayerNormalization on Dnnl execution provider causing side-effect of input HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnxruntime.