Comments (6)
Many of the log calls that occur even after a session has been created do not go through the session logger. E.g., you can find many uses of LOGS_DEFAULT
in the code.
Consider using the Ort::Env
constructor which takes a custom logging function to use a custom logger for more of the logs.
onnxruntime/include/onnxruntime/core/session/onnxruntime_cxx_api.h
Lines 703 to 704 in 113aa29
from onnxruntime.
Many of the log calls that occur even after a session has been created do not go through the session logger. E.g., you can find many uses of
LOGS_DEFAULT
in the code.
Shouldn't that be considered a bug then?
Consider using the
Ort::Env
constructor which takes a custom logging function to use a custom logger for more of the logs.
That's what we did before 1.17. But having all logs going to the same place can be a mess when you have multiple sessions being used at the same time.
from onnxruntime.
Many of the log calls that occur even after a session has been created do not go through the session logger. E.g., you can find many uses of
LOGS_DEFAULT
in the code.
Shouldn't that be considered a bug then?
@pranavsharma what do you think?
from onnxruntime.
In the Run() function, we create a separate run logger. This is different from the session logger. We may not have access (or difficult to get access) to the run logger in all the places during the Run call. Hence, we resort to using LOGS_DEFAULT. Your case is different. If you've overridden a session with your own logger, it should be used during session init. If not, it's a bug.
from onnxruntime.
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
from onnxruntime.
Any news about this issue? Thanks.
from onnxruntime.
Related Issues (20)
- Support Numpy v2.0 HOT 9
- Segmentation fault during inference HOT 2
- Can't find definition of OrtTensorRTProviderOptionsV2 in latest release
- [Mobile] Segmentation fault after repeated inference HOT 4
- [Bug] W16A16 quantization, qdq_error is empty, but W8A8 is normal HOT 1
- [Feature Request] support FP8 calibraion method and quantization HOT 2
- DML cannot use device_id = 1 , run_with_iobinding failed. HOT 1
- [Mobile] CreatMemoryInfo Failure in Android when try to create Ort::Value HOT 6
- [Build] ERROR: *.whl is not a valid wheel filename & ImportError: DLL load failed while importing onnxruntime_pybind11_state HOT 7
- [Performance] Running YOLOv8-seg.onnx with Dynamic Batch Size on GPU HOT 1
- [Web] `Error: [WebGPU] Kernel "[Conv] /text_encoder/encoder/layers.0/feed_forward/conv_2/Conv" failed. Error: FILTER_IN_CHANNEL should be equal to DATA_CHANNEL` HOT 1
- [Bug] fp8 quantization, weight_error is empty, but qdq_err is normal
- cannot resolve operator 'Cast' with opsets: ai.onnx v17 [Web]
- [Performance] Call a error when running on windows 7.detail:System.TypeInitializationException at Microsoft.ML.OnnxRuntime.SessionOptions..ctor() HOT 3
- [Feature Request] Support for Florence-2 model family
- [Web] [Webnn] Can't seem to use the WebNN. Getting "WEBNN execution provider is not supported in this build." HOT 2
- Symbolic Shape infer fails on onnx file without much logs
- How to convert quantized ONNX model from Tensor-Oriented format to Operator-Oriented format?
- Quantized ONNX Model Still Has Float32 Input/Output Tensors HOT 1
- [Build] build python wheel fails
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.