Open LuciferTian opened 5 years ago
Same error!
self.rnn = nn.GRU(embed_dim, hidden_size, num_layers, dropout) ,把droupout去掉就行了。
self.rnn = nn.GRU(embed_dim, hidden_size, num_layers, dropout) ,把droupout去掉就行了。
why?
Could you provide some trained models in order that we don't need to train them ourselves?
Define the 'dropout' as keyword argments could solve this issue, such as, self.gru = torch.GRU(xxx, xxx, xxx, dropout=dropout).
运行到score, _ = model(x)时,出错,不知道是什么原因呢?TypeError: gru() received an invalid combination of arguments - got (Tensor, Tensor, list, float, int, float, bool, bool, bool), but expected one of: