LSTM module: 'tuple' object has no attribute 'dim ...
discuss.pytorch.org › t › lstm-module-tuple-objectMar 05, 2018 · Hi All, I am trying to modify this example Link for pytorch, Though I am getting the same error, as discussed here Link .But I have passed the correct dimension: My model is like below: model = torch.nn.Sequential( torch.nn.Linear(1,20), torch.nn.LSTM(input_size = 20, hidden_size = 20,num_layers = 1,bidirectional = False), torch.nn.Linear(20, 1), ) And I’m trying to predict the output by ...