mirror of
https://github.com/This-weiyuqing/ECG_by_Diffenert_CNN_Test.git
synced 2026-10-18 11:23:39 +08:00
load two layer of cnn
This commit is contained in:
1 parent
815bd40d40
commit
5f757ad939
11 files changed
+158
-126
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import torch
|
||||
torch.cuda.is_available()
|
||||
print(torch.cuda.is_available())
|
||||
print(torch.__version__)
|
||||
|
||||
|
||||
print(torch.cuda.is_available() )# cuda是否可用
|
||||
print(torch.cuda.device_count() )# gpu数量
|
||||
print(torch.cuda.current_device())# 当前设备索引, 从0开始
|
||||
print(torch.cuda.get_device_name(0))# 返回gpu名字
|
||||
Reference in new issue
Block a user