I have trained a LSTM model and tried to make predictions for all test observations. However, it takes forever for keras model.predict to calculate all predictions. Is there a way to speed up this process? Assume there are two features (x1 & x2) for each prediction. The length of each feature (x1 & x2) are 33. Such as [32,1,17,.......,0]. I need to make 1M predictions. My code is
predictions = np.argmax(make.predict([x1, x2]), axis = -1)
Any idea to speed up? Many Thanks