Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check gpu in tensorflow

# For tensorflow 2:
print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))

# For tensorflow 1:
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #gpu #tensorflow
ADD COMMENT
Topic
Name
9+9 =