Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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)
 
PREVIOUS NEXT
Tagged: #gpu #tensorflow #pytorch
ADD COMMENT
Topic
Name
9+8 =