Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove documentation of _SoftmaxLoss #2302
Comments
|
It appears that this class now lives here: https://github.com/allenai/allennlp/blob/master/allennlp/modules/softmax_loss.py From nelson's link, the ask is: @matt-peters I'd like to do this and just want to make sure I understand what you mean. I suppose it could be reasonable to assume that a class such as this might add a word into the vocabulary corresponding to a padding ID (i.e. new vocabulary size would be num_words+1), and that the target tensor argument could include such an id. If I’m right about what you mean that does strike me as an unnatural design, and I would be surprised if a user thought that was how it worked. Would you still like this amendment to the documentation included? Thanks |


more details at: #2264 (comment)