I’ve encountered an odd issue: I save the model (in .h5 after early stopping and checkpoint), and load it using tf.keras.models.load_model() in another notebook session. When I give a list of strings to predict on (after fitting on text, tokenizing and converting to sequence), it returns the same output every time on very different sentences, then throws a retracing warning after a while.
What could be the problem here? When the model was first run and completed, I predicted a few text and all was well. When I save it then load it back, it doesn’t work.