Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Removing last_dim_*softmax #1687

Merged
merged 3 commits into from Aug 29, 2018

Conversation

matt-gardner
Copy link
Contributor

Back when we rolled our own masked_softmax and masked_log_softmax, we had to treat higher-dimension inputs separately. We don't need to do that anymore, and so we should deprecate last_dim_softmax and last_dim_log_softmax in favor of just using the other versions, which will be more efficient.

@matt-gardner matt-gardner merged commit 3df54c8 into allenai:master Aug 29, 2018
@matt-gardner matt-gardner deleted the remove_last_dim_softmax branch August 29, 2018 17:14
gabrielStanovsky pushed a commit to gabrielStanovsky/allennlp that referenced this pull request Sep 7, 2018
* Removing last_dim_*softmax

* Remove unused import

* Fix sum dimension
@j6mes
Copy link

j6mes commented Mar 25, 2019

I'm upgrading a system from this deprecated version of allennlp. Does masked_softmax have the same behaviour in newer versions?

@matt-gardner
Copy link
Contributor Author

Yes, the behavior is the same.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants