# Example where I can set batch-size \> 1

**URL:** <https://forums.developer.nvidia.com/t/example-where-i-can-set-batch-size-1/184162>\
**Category:** DeepStream SDK\
**Created:** [July 20, 2021, 10:31am UTC](https://forums.developer.nvidia.com/t/example-where-i-can-set-batch-size-1/184162 "2021-07-20T10:31:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehul.vast](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mehul.vast](https://forums.developer.nvidia.com/u/mehul.vast)\
**Post date:** [July 20, 2021, 10:31am UTC](https://forums.developer.nvidia.com/t/example-where-i-can-set-batch-size-1/184162/1 "2021-07-20T10:31:00Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)** RTX 2060  
**• DeepStream Version** 5.0  
**• JetPack Version (valid for Jetson only)**  
**• TensorRT Version** 7.1  
**• NVIDIA GPU Driver Version (valid for GPU only)** 460  
**• Issue Type( questions, new requirements, bugs)** Question

**• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)**  
Is there a deepstream-app example in samples where I can set batch-size\>1  
I have exported a pytorch model into onnx with batch-size = 5 , when I run this model with deepstream-test-app3, I get errors if I run it with source video files \< 5.  
It runs correctly when input source is equal to 5.  
The converted model Passes the trtexec test

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [July 27, 2021, 4:05am UTC](https://forums.developer.nvidia.com/t/example-where-i-can-set-batch-size-1/184162/3 "2021-07-27T04:05:33Z")

</div>

Sorry for the late response, we will investigate and do the update soon.

---

<div class="post-metadata">

**Author:** ![bcao](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/bcao/32/14043_2.png) [@bcao](https://forums.developer.nvidia.com/u/bcao)\
**Post date:** [July 27, 2021, 4:20am UTC](https://forums.developer.nvidia.com/t/example-where-i-can-set-batch-size-1/184162/4 "2021-07-27T04:20:07Z")

</div>

Please wait for the DS 6.0 and see if the issue persist.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [October 9, 2021, 12:58am UTC](https://forums.developer.nvidia.com/t/example-where-i-can-set-batch-size-1/184162/6 "2021-10-09T00:58:56Z")

</div>

Closed on October 9, 2021, 12:58am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
