title: use tensorflow model.fit causes the main thread to timeout
body: <p>I use gevent to run the entire project. And one of the components is the TF training model. And i want to set the web status when the tf component is runned. Due to the long running time of the tf model and the preemption of resources, the front-end data transmission delay and the front-end status cannot be displayed. So how can i do ? i need you help. the tensorflow  &quot;model.fit&quot; use  multithreading? The operation logic of the project is as follows:
  <a href="https://i.stack.imgur.com/lazRv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lazRv.jpg" alt="enter image description here" /></a></p>