Tensor cannot be used as a tuple
torch.jit.script_method Tensor cannot be used as a tuple
错误代码:
函数返回一个x:
return x
#
# x = self.bn_last(x)
# x = self.activation(x)
# return output[0], output[1], x
而接收时需要三个值:
out3, out4, out5 = model(x)