def predict_on_batch(self, x):
        x = standardize_input_data(x, self.input_names,
                                   self.internal_input_shapes)
        if self.uses_learning_phase:
            ins = x + [0.]
        else:
            ins = x
        self._make_predict_function()
        outputs = self.predict_function(ins)
        if len(outputs) == 1:
            return outputs[0]
        return outputs
Returns predictions for a single batch of samples.
dataset/ETHPy150Open fchollet/keras/keras/engine/training.py/Model.predict_on_batch