Spoken-language-identification icon indicating copy to clipboard operation
Spoken-language-identification copied to clipboard

the problem in the "main_topcoder.py "

Open yunyouke opened this issue 4 years ago • 0 comments

in the line 127 : "gru_output = F.dropout(gru_output, training=self.training)" , the " F.dropout" is better to be changed to "nn.Dropout". The dropout module nn.Dropout conveniently handles this and shuts dropout off as soon as your model enters evaluation mode, while the functional dropout does not care about the evaluation / prediction mode. It can be referred to https://stackoverflow.com/questions/53419474/using-dropout-in-pytorch-nn-dropout-vs-f-dropout

yunyouke avatar Apr 12 '20 13:04 yunyouke