Skip to content

Instantly share code, notes, and snippets.

View kaecius's full-sized avatar

Daniel Cañadillas kaecius

View GitHub Profile
import tensorflow as tf # tensorflow==2.4
gpus = tf.config.experimental.list_physical_devices('GPU')
tf.config.experimental.set_memory_growth(gpus[0],True)