Tensorflow: executing an ops with a specific core of a CPU
There’s no API for pinning ops to a particular core at present, though this would make a good feature request. You could approximate this functionality by creating multiple CPU devices, each with a single-threaded threadpool, but this isn’t guaranteed to maintain the locality of a core-pinning solution: with tf.device(“/cpu:4”): # … with tf.device(“/cpu:7”): # … … Read more