logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

NotImplementedError: Module is missing the required “forward“ function

2.def forward函数与def __init__(self,config):一定要对齐。1.重写父类函数时,函数名称写错,我将。

文章图片
#python#深度学习#pytorch
AttributeError: ‘list‘ object has no attribute ‘decode‘

这里报错的原因是由于readlines()读取的数据是list类型,导致后面content的数据类型也为list;

文章图片
#中文分词#python
NotImplementedError: Module is missing the required “forward“ function

2.def forward函数与def __init__(self,config):一定要对齐。1.重写父类函数时,函数名称写错,我将。

文章图片
#python#深度学习#pytorch
到底了