当前位置:网站首页>[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
边栏推荐
- Cmder Chinese garbled code problem
- pth 转 onnx 时出现的 gather、unsqueeze 等算子
- How keras saves and loads the keras model
- MySQL installation and configuration - detailed tutorial
- [8] Assertion failed: dims.nbDims == 4 || dims.nbDims == 5
- Unable to determine the device handle for GPU 0000:02:00.0: GPU is lost.
- 主流 RTOS 评估
- . net encountered failed to decode downloaded font while loading font:
- 直观理解 torch.nn.Unfold
- 【Tensorflow】共享机制
猜你喜欢

【点云系列】 场景识别类导读

MySQL installation and configuration - detailed tutorial

Wechat applet uses wxml2canvas plug-in to generate some problem records of pictures

【點雲系列】SG-GAN: Adversarial Self-Attention GCN for Point Cloud Topological Parts Generation

传输层重要知识(面试,复试,期末)

Machine learning II: logistic regression classification based on Iris data set

Detailed explanation of unwind stack backtracking

公专融合对讲机是如何实现多模式通信下的协同工作?

imx6ull-qemu 裸机教程1:GPIO,IOMUX,I2C

【指标】Precision、Recall
随机推荐
Unwind 栈回溯详解
【点云系列】Neural Opacity Point Cloud(NOPC)
PyTorch 12. hook的用法
Chapter 1 numpy Foundation
scons 搭建嵌入式arm编译
《Attention in Natural Language Processing》翻译
Wechat applet uses wxml2canvas plug-in to generate some problem records of pictures
x86架构初探之8086
GIS实战应用案例100篇(三十四)-拼接2020globeland30
【点云系列】点云隐式表达相关论文概要
Résolution du système
RISCV MMU 概述
直观理解 torch.nn.Unfold
FATFS FAT32学习小记
Modifying a column with the 'identity' pattern is not supported
Proteus 8.10安装问题(亲测稳定不闪退!)
AUTOSAR从入门到精通100讲(五十)-AUTOSAR 内存管理系列- ECU 抽象层和 MCAL 层
美摄助力百度“度咔剪辑”,让知识创作更容易
MySQL的安装与配置——详细教程
基于open mv 搭配stm32循迹