Skip to content

Instantly share code, notes, and snippets.

@trongan93
Created June 12, 2020 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trongan93/719ed503a5e9c081fbf88bf43630c9d5 to your computer and use it in GitHub Desktop.
Save trongan93/719ed503a5e9c081fbf88bf43630c9d5 to your computer and use it in GitHub Desktop.
physical_devices = tf.config.experimental.list_physical_devices('GPU')
for physical_device in physical_devices:
tf.config.experimental.set_memory_growth(physical_device, True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment