@[TOC]AttributeError: ‘tuple’ object has no attribute ‘log_softmax’
项目场景:
开发环境:pytorch + pycharm +深度学习
问题描述:
运行代码出错
AttributeError: 'tuple' object has no attribute 'log_softmax'
原因分析:
是调用模型时,返回值个数不匹配的问题
@[TOC]AttributeError: ‘tuple’ object has no attribute ‘log_softmax’
开发环境:pytorch + pycharm +深度学习
运行代码出错
AttributeError: 'tuple' object has no attribute 'log_softmax'
是调用模型时,返回值个数不匹配的问题