Running Keras model for prediction in multiple threads

前端 未结 2 1046
逝去的感伤
逝去的感伤 2020-12-15 18:08

similar to this question I was running an asynchronous reinforcement learning algorithm and need to run model prediction in multiple threads to get training data more quickl

2条回答
  •  攒了一身酷
    2020-12-15 18:28

    It's a bad idea to predict data in multiple threads . You can use greater batch_size in model.predict when you predict data offline and use tensorflow serving when you predict data online.

提交回复
热议问题