"tf_config": {
"device_count": {"CPU": 4},
# tell tf.Session to use CPU limit, if you have
# more CPU, you can increase this value appropriately
"inter_op_parallelism_threads": 0,
# the number of threads in the thread pool available
# for each process for blocking operation nodes set to 0
# to allow the system to select the appropriate value.
"intra_op_parallelism_threads": 0, # tells the degree of thread
# parallelism of the tf.Session operation.
# the smaller the value, the less reuse the thread will have
# and the more likely it will use more CPU cores.
# if the value is 0,
# tensorflow will automatically select an appropriate value.
"gpu_options": {"allow_growth": True}
# if set True, will try to allocate
# as much GPU memory as possible to support running
}