title: How to pass multiple 2d array as input to tensorflow serving api?
body: <p>I have a tensorflow model which takes two 2d arrays as input.</p>
  <p>This is how I trained the model.</p>
  <pre><code>x.shape == (100, 250)
  y.shape == (100, 10)
  
  model.fit([x,y], y_train)
  </code></pre>
  <p>Now I'm using tensorflow serving API for deploying into production. Now when I tried to make a api request for predictions I'm getting an error</p>
  <p><code>&quot;{'error': 'instances is a plain list, but expecting list of objects as multiple input tensors required as per tensorinfo_map'}&quot;</code></p>
  <pre><code>data1 = json.dumps({&quot;signature_name&quot;: &quot;serving_default&quot;,
                     &quot;instances&quot;: [x.tolist(), y.tolist()]})
  # both x and y are numpy 2d array 
  
  json_response = requests.post('http://44.287.13.8:9000/v1/models/context_model/versions/1:predict',
                                 data=data1, headers=headers)
  
  pred = json.loads(json_response.text)
  
  print(pred)
  {'error': 'instances is a plain list, but expecting list of objects as multiple input tensors required as per tensorinfo_map'}
  </code></pre>