Based on your code you are calling the nn.LogSoftmax activation on output, which is the output activation of self.i2o (nn.Linear), so it shouldn’t be a tuple.
Did you modify the code somehow and could post the complete stack trace including the layer, which raises this error?