Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get gpu name tensorflow and pytorch

# tensorflow
from tensorflow.python.client import device_lib
devices_tf = device_lib.list_local_devices()
devices_tf = print(devices)

# pytorch
import torch
devices_torch = torch.cuda.get_device_name()
print(devices_torch)
Comment

PREVIOUS NEXT
Code Example
Python :: how to read a pkl file in python 
Python :: download a file from kaggle notebook 
Python :: how to get rid of all null values in array python 
Python :: minute range python 
Python :: python writing to csv file 
Python :: how to get iheight in pyqt5 
Python :: colab kaggle dataset 
Python :: python async threading 
Python :: python faker 
Python :: Set column as index with pandas 
Python :: find null value for a particular column in dataframe 
Python :: ses mail name 
Python :: normalize rows in matrix numpy 
Python :: sort array python by column 
Python :: seaborn heatmap text labels 
Python :: csv write without new line 
Python :: PIL Make Circle 
Python :: roll longitude about zero 
Python :: python print string separated by comma 
Python :: flask debug 
Python :: python get lines from text file 
Python :: Violin Plots, Python 
Python :: python break when key pressed 
Python :: pyinstaller 
Python :: jsonresponse status code django 
Python :: how to swap tuple 
Python :: python how to change size of a window 
Python :: execute python in notepad++ 
Python :: google colab how to upload a folder 
Python :: how to remove first letter of a string python 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =