会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tanyayangyang
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
你在写bug呢
#报错记录#RuntimeError: Expected tensor for 'out' to have the same device as tensor for argument #2 'mat1'; but device 1 does not equal 0 (while checking arguments for addmm)
摘要:最后发现是device_id没有全部修改成0
阅读全文
posted @
2021-11-15 21:14
tanyayangyang
阅读(1103)
评论(0)
推荐(0)
#报错记录#TypeError: __init__() takes 1 positional argument but 2 were given
摘要:class conv_try(nn.Module): def __init__(self): super(conv_try, self).__init__() # self.conv1 = nn.Conv1d(1, 32, kernel_size=3, stride=2, padding=1) #
阅读全文
posted @
2021-11-08 12:27
tanyayangyang
阅读(1172)
评论(0)
推荐(0)
公告