mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-28 09:08:54 +00:00
Add architecture debugging
This commit is contained in:
@@ -35,6 +35,8 @@ def print_gpu_info():
|
|||||||
print('PyTorch version', torch.__version__)
|
print('PyTorch version', torch.__version__)
|
||||||
print('CUDA Available?', torch.cuda.is_available())
|
print('CUDA Available?', torch.cuda.is_available())
|
||||||
print('CUDA Device count', torch.cuda.device_count())
|
print('CUDA Device count', torch.cuda.device_count())
|
||||||
|
print('CUDA architectures library was compiled for', torch.cuda.get_arch_list())
|
||||||
|
|
||||||
#try:
|
#try:
|
||||||
# from tensorflow.python.client import device_lib
|
# from tensorflow.python.client import device_lib
|
||||||
# print('local devices', str(device_lib.list_local_devices()).replace("\n", "\n "))
|
# print('local devices', str(device_lib.list_local_devices()).replace("\n", "\n "))
|
||||||
|
|||||||
Reference in New Issue
Block a user