I have noticed that in some cases running the prediction changes the state of the model (model.state) and this change prevents the prediction from being successfully rerun a second time. This modification of the original code ensures that the state is not changed and thus allows the prediction to be repeated successfully.
I have noticed that in some cases running the prediction changes the state of the model (model.state) and this change prevents the prediction from being successfully rerun a second time. This modification of the original code ensures that the state is not changed and thus allows the prediction to be repeated successfully.