Make prediction with Keras model using multiple CPUs

℡╲_俬逩灬. 提交于 2021-01-28 12:04:00

问题


I am trying to make predictions with a Keras model (using Tensorflow 2.0) using multiple CPUs.

I have tried this: tf.config.threading.set_intra_op_parallelism_threads(4) tf.config.threading.set_inter_op_parallelism_threads(4)

While not getting an error, I am not sure if this is the right approach.

Can predictions be multithreaded?

Many thanks

来源:https://stackoverflow.com/questions/58974483/make-prediction-with-keras-model-using-multiple-cpus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!