title: tensorflow how to use tf.map_fn to process two input tensor shape of (?, 40,30,128) and (?,40,30) in batch wise, ? is my batch size
body: <p>I am using TF1.12.</p>
  
  <p>I got a function input size is <code>fn([40, 30, 128],[40, 30])</code> and return <code>tf.float32</code></p>
  
  <p>But with batch size, I don't know what to do. Then I found this <a href="https://www.tensorflow.org/versions/r1.12/api_docs/python/tf/map_fn" rel="nofollow noreferrer">function</a> <code>tf.map_fn</code>. I got two input so where shall I put my input.
  <code>input1 [?, 40, 30, 128]</code>and <code>input2 [?, 40, 30]</code></p>
  
  <p>The batch size is <code>None</code>, but they are equal.</p>
  
  <p>Anything related will be thankful. I am new to tensorflow, so anything is helpful.</p>
  
  <p>Big Thanks!</p>