You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
I wrote this replace_masked_values function before I realized that masked_fill_ exists. I'm pretty sure we could just use masked_fill_ instead of what's currently here:
I wrote this
replace_masked_values
function before I realized thatmasked_fill_
exists. I'm pretty sure we could just usemasked_fill_
instead of what's currently here:allennlp/allennlp/nn/util.py
Lines 463 to 475 in 1700db4
I'm not certain this works correctly with gradients and things, but it should...
The text was updated successfully, but these errors were encountered: