'PackedSequence' object has no attribute 'size' error with ...
https://discuss.pytorch.org/t/packedsequence-object-has-no-attribute...11.11.2020 · def __init__(self, vocab_size, embedding_dim, hidden_dim, output_dim, n_layers, bidirectional, dropout, pad_idx): super().__init__() self.n_layers = n_layers self.embedding_dim = embedding_dim self.hidden_dim = hidden_dim # Number of time steps self.sequence_len = 3 self.embedding = nn.Embedding(vocab_size, embedding_dim, padding_idx = pad_idx) # …