Skip to content

Instantly share code, notes, and snippets.

awk '{print substr($0,1,10)}' bam.list
@kevin3
kevin3 / GPU-tensorflow-keras-check.py
Created June 5, 2022 10:58
testing if installed GPU enabled keras and tensorflow
###test if Using GPU for ML
#These commands in the Python terminal should bring up both a CPU and a GPU device, if TensorFlow correctly identifies your GPU.
import tensorflow as tf
tf.__version__
import keras
keras.__version__
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())