问题
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