import tensorflow as tf
tf.debugging.set_log_device_placement(True)
for gpu in tf.config.experimental.list_physical_devices('GPU'):
tf.config.experimental.set_memory_growth(gpu, True)
with tf.device('GPU:0'):
image_shape=(500,500,500,3)
t =tf.zeros(image_shape)
del t
--
You received this message because you are subscribed to the Google Groups "Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/91cea488-3e14-43fa-91f6-7b341b219d6en%40tensorflow.org.