pytorch 模型有多个返回值 libtorch处理 在python中函数可以有多个返回值,而c++中只允许一个(或者没有)返回值,使用libtorch处理pytorch模型需要对这一点进行处理 1.首先对python中模型进行更改 return F.sigmoid(d0), F.sigmoid(d1), F.sigmoid(d2), F.sigmoid(d3),