Why Tensorflow creates so many CPU threads
问题 Even with inter_op_parallelism_threads = 1 intra_op_parallelism_threads = 1 values set, TensorFlow 1.5 process is not single-threaded. Why? Is there a way to completely disable unexpected thread spawning? 回答1: First of all, TensorFlow is a multi-level software stack, and each layer tries to be smart and introduces some worker threads of its own: One thread is created by Python runtime Two more threads are created by NVIDIA CUDA runtime Next, there are threads originating from the way how