ptrblck:

I understand that the eager model is working for a single iteration and hangs in the second one?
While the scripted model is slower in the first iteration and works fine afterwards?


The model works well in eager model. After scripting it,  the first iteration is like 6 seconds, second one around 3minutes and third one and go on like 1 second.
I think that it is being optimized. Is there any way of having pre optimizing in a Flask API Rest or disabling optimization? Or Saving optimized one so when it gets loaded is the optimized version?