Reputation: 560
I am trying to use only single core of CPU. My system has 8 Cores. When I htop
on terminal it should use only single core else all should remain silent. I am using below code but it is still using my all cores, what am I doing wrong ?
Code:
import tensorflow as tf
session_conf = tf.ConfigProto(intra_op_parallelism_threads=1,
inter_op_parallelism_threads=1,
device_count={'CPU': 1})
sess = tf.Session(config=session_conf)
It is utilizing all cores but with low percentage like 23 or 20 etc!
Upvotes: 1
Views: 967