models icon indicating copy to clipboard operation
models copied to clipboard

使用resnet网络出错

Open hwx724221178 opened this issue 6 years ago • 1 comments

使用paddle官方给的resnet50模型训练数据,出现错误,TypeError: fc() got an unexpected keyword argument 'is_test',请问是什么问题。b站别人视频同样运行没有出错

hwx724221178 avatar May 18 '20 15:05 hwx724221178

应该是调用fluid.layers.fc()时误多传了is_test参数,fc的使用文档可以参考 https://www.paddlepaddle.org.cn/documentation/docs/zh/api_cn/layers_cn/fc_cn.html#fc

huangjun12 avatar May 19 '20 03:05 huangjun12