当前位置:网站首页>【量化测试】
【量化测试】
2022-07-24 15:15:00 【网络星空(luoc)】
文章目录

量化前
量化后
#Dynamic quantization 动态量化
import onnx
from onnxruntime.quantization import quantize_dynamic, QuantType
model_fp32 = 'path/to/the/model.onnx'
model_quant = 'path/to/the/model.quant.onnx'
quantized_model = quantize_dynamic(model_fp32, model_quant, weight_type=QuantType.QUInt8)
--------------------------
# QAT quantization QAT量化
import onnx
from onnxruntime.quantization import quantize_qat, QuantType
model_fp32 = 'path/to/the/model.onnx'
model_quant = 'path/to/the/model.quant.onnx'
quantized_model = quantize_qat(model_fp32, model_quant)
边栏推荐
- Use of keywords const, volatile and pointer; Assembly language and view of register status
- 老虎口瀑布:铜梁版小壶口瀑布
- 2022 robocom world robot developer competition - undergraduate group (provincial competition) -- question 2: intelligent medication assistant (finished)
- DDD based on ABP -- Entity creation and update
- 【MATLAB】MATLAB画图系列二 1.元胞与数组转化 2.属性元胞 3.删除nan值 4.合并多fig为同一fig 5.合并多fig至同一axes
- Error when using Fiddler hook: 502 Fiddler - connection failed
- 华为相机能力
- 深度学习中的学习率调整策略(1)
- MySQL function
- 异或程序
猜你喜欢

MySQL build master-slave synchronization - build with docker

多数据源配置下,解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题

MongoDB入门学习

Kotlin class and inheritance

spark:获取日志中每个时间段的访问量(入门级-简单实现)

LeetCode高频题56. 合并区间,将重叠的区间合并为一个区间,包含所有区间

打假Yolov7的精度,不是所有的论文都是真实可信

Spark: get the access volume of each time period in the log (entry level - simple implementation)

Route planning method for UAV in unknown environment based on improved SAS algorithm

Overall testing framework for performance testing
随机推荐
Calculate the M-day moving average price of two stocks
LeetCode高频题56. 合并区间,将重叠的区间合并为一个区间,包含所有区间
(09) flask is OK if it has hands - cookies and sessions
Jmeter-调用上传文件或图片接口
SQL的SELF JOIN用法
Machine learning practice notes
云开发单机版图片九宫格流量主源码
Storage and traversal of Graphs
[tkinter美化] 脱离系统样式的窗口(三系统通用)
Research Summary / programming FAQs
[300 opencv routines] 238. Harris corner detection in opencv
kali简洁转换语言方法(图解)
Summary of feature selection: filtered, wrapped, embedded
图的存储和遍历
在哪家证券公司开户最好最安全 如何开户炒股票
dataframe 分组后排序的前n行 nlargest argmax idmax tail !!!!
Outlook tutorial, how to create tasks and to DOS in outlook?
Discussion on the basic use and address of pointer in array object
Sword finger offer II 001. integer division
Spark: get the access volume of each time period in the log (entry level - simple implementation)