摘要: 解决方法: def conv_2(batch, channel=256): mydevice = torch.device('cuda' if torch.cuda.is_available() else 'cpu') ### aimin li, added for x in batch: x.to 阅读全文
posted @ 2025-10-04 16:42 emanlee 阅读(15) 评论(0) 推荐(0)
摘要: 原因: 两个地方里面的包的版本不一致。 需要一个一个检查版本:比如python的版本,torch的版本。 out = F.conv2d(input=x, weight=weights, bias=b, stride=1, padding=1) # out: (1, unit_channel, l, 阅读全文
posted @ 2025-10-04 16:23 emanlee 阅读(11) 评论(0) 推荐(0)
摘要: pip list 可以查到某个包,但是,import某个包,出现 ModuleNotFoundError: No module named (segmamba) [root@ibiomed ~]# pip list | grep gen gensim 4.3.3 (segmamba) [root@i 阅读全文
posted @ 2025-10-04 15:50 emanlee 阅读(56) 评论(0) 推荐(0)