Skip to content
Permalink
67fc206c68
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (10 sloc) 317 Bytes
from distutils.version import LooseVersion
import warnings
import tensorflow as tf
# Check tensorflow version
print(f'Tensorflow version: {tf.__version__}')
# Check for GPU
if not tf.test.gpu_device_name():
warnings.warn('No GPU found')
else:
print(f'Default GPU device: {tf.test.gpu_device_name()}')