title: Tensorflow 2 - very high SHR on GPU training
body: <p>I have a very high SHR usage and furthermore a way too long runtime for my process. I am only doing inference and have the following setup:</p>
  <pre><code>gpus = tf.config.list_physical_devices('GPU')
  if gpus:
      # Limit Memory growth
      for gpu in gpus:
          tf.config.experimental.set_memory_growth(gpu, True)
      tf.config.set_visible_devices(gpus[arg.gpu], 'GPU')
      logical_gpus = tf.config.list_logical_devices('GPU')
      print(len(gpus), &quot;Physical GPUs,&quot;, len(logical_gpus), &quot;Logical GPU&quot;)
  
  # Initialize Dataloader
  dataset = UCFDataset('labels.csv', augmentation=arg.augm, factor=arg.factor)
  dataloader = DataLoader(dataset=dataset, batch_size=1)
  
  with tf.device(f'/device:GPU:{arg.gpu}'):
      # Initialize model
      model = I3D(labels=dataset.kinetics_labels)
  
      for step, (video, category, labels) in enumerate(tqdm(dataloader)):
          top_1_bool, top_3_bool, top_5_bool = model.predict(video, labels)
          ...
  </code></pre>
  <p>As you can see, the SHR usage is enormous. <a href="https://i.stack.imgur.com/z1GnC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z1GnC.png" alt="enter image description here" /></a></p>
  <p>Also, after running the script, I get the following warning:</p>
  <p><code>I tensorflow/core/platform/default/subprocess.cc:304] Start cannot spawn child process: No such file or directory</code>.</p>
  <p>Can anyone help me?</p>