title: How to give a batch of frames to the model in pytorch c++ api?
body: <p>I've written a code to load the pytorch model in C++ with help of the PyTorch C++ Frontend api. I want to give a batch of frames to a pretrained model in the C++ by using <code>module-&gt;forward(batch_frames)</code>. But it can forward through a single input. <br/>
  How can I give a batch of inputs to the model?</p>
  
  <p>A part of code that I want to give the batch is shown below:</p>
  
  <pre><code> cv::Mat frame;
   vector&lt;torch::jit::IValue&gt; frame_batch;
  
   // do some pre-processes on each frame and then add it to the frame_batch
  
   //forward through the batch frames
   torch::Tensor output = module-&gt;forward(frame_batch).toTensor();
  </code></pre>