title: Java Tensorflow + Keras Equivalent of model.predict()
body: <p>In python you can simply pass a numpy array to <code>predict()</code> to get predictions from your model. What is the equivalent using Java with a <code>SavedModelBundle</code>?</p>
  
  <h2>Python</h2>
  
  <pre class="lang-py prettyprint-override"><code>model = tf.keras.models.Sequential([
    # layers go here
  ])
  model.compile(...)
  model.fit(x_train, y_train)
  
  predictions = model.predict(x_test_maxabs) # &lt;= This line 
  </code></pre>
  
  <h2>Java</h2>
  
  <pre class="lang-java prettyprint-override"><code>SavedModelBundle model = SavedModelBundle.load(path, "serve");
  model.predict() // ????? // What does it take as in input? Tensor?
  </code></pre>