Thank you for replayed. Solved by definition of atten = nn.linear((hidden_size *2)+embedded_size, hidden_size).
(hidden_size *2)+embedded_size =600
Because the result shape of torch.cat(h_t, encoder_outputs) is [batch_size=50, max_len, hidden_size=600]