Comments (5)
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.
I have the same question. Hi @hoangtv2000 do you find the solution?
from onnxruntime.
@UsingtcNower and @hoangtv2000, you can run the onnxruntime offline-mode to optimize the model to Operator oriented: https://onnxruntime.ai/docs/performance/model-optimizations/graph-optimizations.html#offline-mode. BTW, why do you want to do this?
from onnxruntime.
@UsingtcNower and @hoangtv2000, you can run the onnxruntime offline-mode to optimize the model to Operator oriented: https://onnxruntime.ai/docs/performance/model-optimizations/graph-optimizations.html#offline-mode. BTW, why do you want to do this?
I want to use your method to run on our self-designed chip which runs efficiently by integer arithmetic-only format.
from onnxruntime.
I have the same question. Hi @hoangtv2000 do you find the solution?
You should use built-in static post-training quantization function of onnxruntime library quantize_static, remember to set quant_format to QuantFormat.QOperator
if you want your ouput model has only QOperator, set per_channel
to False
if you want per-tensor quantization and activation_type
& weight_type
to QuantType.QUInt8
if you want your weight and activation tensors in uint8 format.
from onnxruntime.
Related Issues (20)
- [Build] Access Violation error on using 'new InferenceSession(filepath)' in 1.18.1
- Why is CoreMLExecution an Objective-C class HOT 1
- Question
- [Bug]: Onnxruntime.CPU memoty leaks
- onnxruntime-directml import interference with sklearn
- ORTModelForSeq2SeqLM.from_pretrained can not use provider=['CUDAExecutionProvider','CPUExecutionProvider'] HOT 4
- Inferencing FP16 model using onnxruntime
- [Build] CUDA_PATH is set but CUDA wasn't able to be loaded (Windows 11, onnxruntime-gpu 1.13.1, CUDA 11.8) HOT 2
- [Build] [WebGPU] Failed to build without "--enable_wasm_threads" HOT 8
- [Build] ERROR: No matching distribution found for onnxruntime HOT 5
- [Feature Request] Implement IEquatable<T> on OrtTensorTypeAndShapeInfo
- [Web] Allow passing Uint8ClampedArray to ort.Tensor()
- [Build] Android build issue on windows HOT 2
- CoreML - Writing CoreML Model on every inference session creation
- [Build] Getting issue with ONNX Runtime library name HOT 2
- 【CUDA does not work】onnxruntime-gpu==1.19.0 HOT 4
- Can anyone successfully use onnx and yolo5?
- The data I output using YOLO5 is incorrect, why is that? Has anyone succeeded?
- Why ONNX Runtime Dlls are not Signed by Microsoft
- Breaks RootNamespace
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.