Test deep learning libraries#

Test Tensorflow#

Import tensorflow and test that tensorflow recognizes the GPU

import tensorflow as tf
visible_devices = tf.config.list_physical_devices()
print()
print('visible_devices',visible_devices)
print()
visible_devices [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
import stardist