# tensorrt and caffe output have large difference with probability of a few percent

**URL:** <https://forums.developer.nvidia.com/t/tensorrt-and-caffe-output-have-large-difference-with-probability-of-a-few-percent/72645>\
**Category:** TensorRT\
**Created:** [April 8, 2019, 3:14am UTC](https://forums.developer.nvidia.com/t/tensorrt-and-caffe-output-have-large-difference-with-probability-of-a-few-percent/72645 "2019-04-08T03:14:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![86108429](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@86108429](https://forums.developer.nvidia.com/u/86108429)\
**Post date:** [April 8, 2019, 3:14am UTC](https://forums.developer.nvidia.com/t/tensorrt-and-caffe-output-have-large-difference-with-probability-of-a-few-percent/72645/1 "2019-04-08T03:14:33Z")

</div>

Hello, I have a problem.

I test 100 images, and find that, for tensorrt and caffe output(such as softmax layer), although most images have very small difference, about 0.0x or 0.00x. but several images still have very large difference, about 0.x. This phenomenon occurs for tensorrt4 and tensorrt5.  
So what causes this? can you give some advises?

---

<div class="post-metadata">

**Author:** ![86108429](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@86108429](https://forums.developer.nvidia.com/u/86108429)\
**Post date:** [April 12, 2019, 8:28am UTC](https://forums.developer.nvidia.com/t/tensorrt-and-caffe-output-have-large-difference-with-probability-of-a-few-percent/72645/2 "2019-04-12T08:28:35Z")

</div>

As the image preprocessing use opencv for tensorrt, so if the image preprocessing also use opencv for caffe inference, and the output will be same. Close this problem now.
