I am currently training a CNN on Paperspace/Gradient Notebooks (Python 3.8.10, Tensorflow 2.7.0)
The training takes surprisingly long and it appears that >200% of the CPU is utilized but only 15-20% of the GPU. Tensorflow seems to recognize the GPU:
Also, I followed their template to set up the training with tf.device():
try:
with tf.device('/device:GPU:0'):
model_Sezer.fit(train_dataset,
epochs = 100,
validation_data = validation_dataset,
callbacks = [tensorboard_callback, checkpoint_Accuracy,],
class_weight = class_weight
)
except RuntimeError as e:
print(e)
Does anyone know how I can fully train on the GPU?