【PyTorch】Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same

2022年12月26日12:25:41

和网上找到的答案都不一样。

问题是因为我在__init__外面的函数中定义了一个卷积操作

然后就一直报错。

具体原因之后再查吧。

  • 作者:ncc1995
  • 原文链接:https://blog.csdn.net/ncc1995/article/details/99710017
    更新时间:2022年12月26日12:25:41 ,共 61 字。