原因是forward函数出了问题,没能检测到forward()函数。大多是forward打错名字,或是位置错了(前进或退后了位置,应该与上方定义的__init__()函数位置对齐)
raise NotImplementedError pytorch
猜你喜欢
转载自blog.csdn.net/qq_39938666/article/details/88596560
今日推荐
周排行