当前位置:网站首页>[8] Assertion failed: dims. nbDims == 4 || dims. nbDims == 5
[8] Assertion failed: dims. nbDims == 4 || dims. nbDims == 5
2022-04-23 07:28:00 【wujpbb7】
onnx turn trt There was a mistake :
[04/22/2022-15:45:13] [W] [TRT] onnx2trt_utils.cpp:220: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[04/22/2022-15:45:13] [E] [TRT] (Unnamed Layer* 371) [Shuffle]: at most one dimension may be inferred
ERROR: onnx2trt_utils.cpp:1517 In function scaleHelper:
[8] Assertion failed: dims.nbDims == 4 || dims.nbDims == 5
[04/22/2022-15:45:13] [E] Failed to parse onnx file
[04/22/2022-15:45:13] [E] Parsing model failed
[04/22/2022-15:45:13] [E] Engine creation failed
[04/22/2022-15:45:13] [E] Engine set up failed
according to This article , Can solve , But it needs to be upgraded trt.
No upgrade trt The solution is , recompile libnvonnxparser.so, Replace trtexec Version used .
The specific steps are :( Assuming the current trt The version is 7.2.1.6, Installed in /usr/local/TensroRT7.2.1.6)
1、 download
git clone -b 7.2.1 https://github.com/onnx/onnx-tensorrt.git
2、 compile
cd onnx-tensorrt
git submodule update --init --recursive
mkdir build && cd build
cmake .. -DTENSORRT_ROOT=/usr/local/TensorRT-7.2.1.6 && make -j
3、 use ldd trtexec Look at what it depends on libnvonnxparser.so Where is the , Replace with the corresponding newly generated file .
Reference resources :
版权声明
本文为[wujpbb7]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230611549983.html
边栏推荐
- EMMC/SD学习小记
- Raspberry Pie: two color LED lamp experiment
- 【点云系列】Neural Opacity Point Cloud(NOPC)
- CMSIS CM3源码注解
- 如何利用qemu搭建SOC protoype:80行代码实现一个Cortex M4 模拟器
- Device Tree 详解
- Visual Studio 2019安装与使用
- Pytoch model saving and loading (example)
- SHA512/384 原理及C语言实现(附源码)
- Thanos. SH kill bully script, easily delete half of the files in the system at random
猜你喜欢
随机推荐
Chapter 3 pytoch neural network toolbox
enforce fail at inline_container.cc:222
Chapter 2 pytoch foundation 2
Wechat applet uses wxml2canvas plug-in to generate some problem records of pictures
机器学习——模型优化
Compression and acceleration technology of deep learning model (I): parameter pruning
Write a wechat double open gadget to your girlfriend
美摄科技云剪辑,助力哔哩哔哩使用体验再升级
Chapter 2 pytoch foundation 1
PyTorch 11.正则化
带您遨游太空,美摄科技为航天创意小程序提供全面技术支持
【点云系列】 A Rotation-Invariant Framework for Deep Point Cloud Analysis
【点云系列】Learning Representations and Generative Models for 3D pointclouds
《Attention in Natural Language Processing》翻译
N states of prime number solution
[point cloud series] sg-gan: advantageous self attention GCN for point cloud topological parts generation
SPI NAND FLASH小结
GIS实战应用案例100篇(五十二)-ArcGIS中用栅格裁剪栅格,如何保持行列数量一致并且对齐?
ECDSA 签名验证原理及C语言实现
机器学习——朴素贝叶斯









