原文:`TypeError: torch.mm received an invalid combination of arguments - got (torch.FloatTensor, Variable),

TypeError: torch.mm received an invalid combination of arguments got torch.FloatTensor, Variable , but expected one of: torch.SparseFloatTensor mat , torch.FloatTensor mat torch.FloatTensor source, t ...

2018-08-16 22:23 0 4841 推荐指数:

查看详情

关于torch.FloatTensor()

类型转换, 将list ,numpy转化为tensor a = torch.tensor([[1, 2], [3, 4]]) print(torch.FloatTensor(a.size())) ...

Tue Mar 16 00:28:00 CST 2021 0 696
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM