File size: 144 Bytes
dca99f4
 
 
 
 
 
 
1
2
3
4
5
6
7
def main():
    import torch
    print(torch.cuda.is_available())
    print(torch.cuda.get_device_name())

if __name__ == '__main__':
    main()