RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same or input should be a MKLDNN tensor and weight is a dense tensor
Bill-JLN opened this issue · 7 comments
Bill-JLN commented
yeyupiaoling commented
类型错误,你有改吗?没看到。你这边修改了,你拉下最新代码试试。
Bill-JLN commented
我等会把最新的代码拉一下改一下
yeyupiaoling commented
主要是这里:
AudioClassification-Pytorch/reader.py
Line 22 in 017d398
AudioClassification-Pytorch/infer.py
Line 22 in 017d398
Bill-JLN commented
这两行改成float64吗
yeyupiaoling commented
这是改好的。就是float32
Bill-JLN commented
行,我试试
Bill-JLN commented
解决了,跪谢大佬