Since TF2.0, we\'re supposed to limit CPU usage using
import tensorflow as tf tf.config.threading.set_intra_op_parallelism_threads(1) tf.config.threading.set_