The issue here is that, I have more than 5000 inputs for prediction. Each with the above structure. When I iterate over these inputs and do the prediction, the time increases linearly with each iteration as shown below. But individually the prediction time is good.
Another behavior I found is that, if the model is loaded from the disc for each iteration the time remains constant. But this cannot be the solution because loading model from disc takes additional 1-2 seconds.
What could be the solution for this? Any help would be greatly appreciated. Thank you so much.
Greetings to all,
I am training a DCN model for ranking purpose. The DCN model has the below structure
The model is saved successfully and loaded in another session with the below lines of code.
The model takes 4 input features. So one input contains
The issue here is that, I have more than 5000 inputs for prediction. Each with the above structure. When I iterate over these inputs and do the prediction, the time increases linearly with each iteration as shown below. But individually the prediction time is good.
Another behavior I found is that, if the model is loaded from the disc for each iteration the time remains constant. But this cannot be the solution because loading model from disc takes additional 1-2 seconds.
What could be the solution for this? Any help would be greatly appreciated. Thank you so much.