I\'m trying to create four threads (each one with its own graph and model) that will run concurently and issue predictions in the same way.
My thread code is somethi
I have figured what I was doing wrong. My thinking was right but I shouldn't have recreated the Graph and Session below. The bottom part of the code should simply be:
thread_locker.acquire()
with thread_graph.as_default():
with thread_session.as_default():
pred_data= model.predict(X_pred)
thread_locker.release()