# Tensorrt7 Error:

**URL:** <https://forums.developer.nvidia.com/t/tensorrt7-error/109347>\
**Category:** TensorRT\
**Created:** [December 19, 2019, 7:24am UTC](https://forums.developer.nvidia.com/t/tensorrt7-error/109347 "2019-12-19T07:24:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel.lch](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@daniel.lch](https://forums.developer.nvidia.com/u/daniel.lch)\
**Post date:** [December 19, 2019, 7:24am UTC](https://forums.developer.nvidia.com/t/tensorrt7-error/109347/1 "2019-12-19T07:24:31Z")

</div>

Using onnx=1.6.0 i can generate the .onnx file successfuly. And I can export the engine using tnesorrt=6.0 , However when change the tensorrt to 7, the trt.OnnxParser not work, the network.num\_layers is zeros.

---

<div class="post-metadata">

**Author:** ![SunilJB](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/suniljb/32/14043_2.png) [@SunilJB](https://forums.developer.nvidia.com/u/SunilJB)\
**Post date:** [December 19, 2019, 8:39am UTC](https://forums.developer.nvidia.com/t/tensorrt7-error/109347/2 "2019-12-19T08:39:02Z")

</div>

Similar to below Dev talk topic:  
[https://devtalk.nvidia.com/default/topic/1068661/tensorrt/tensorrt7-parse-error](https://devtalk.nvidia.com/default/topic/1068661/tensorrt/tensorrt7-parse-error)

Thanks
