Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Documentation for exp_mask #41

Open
murphp15 opened this issue May 29, 2018 · 1 comment
Open

Documentation for exp_mask #41

murphp15 opened this issue May 29, 2018 · 1 comment

Comments

@murphp15
Copy link

murphp15 commented May 29, 2018

I understand this is not really a bug but I have no idea how to figure out what the method is doing.
None of the tests hit this method so I can't really debug it.
Sorry for the stupid questions but I'm all out of ways of understanding what it is suppose to do.

@chrisc36
Copy link
Contributor

This method fixes the numbers that are not in the mask to be a very negative number (instead of just zero, as is usually done in masking). This is done so that if we exponentiate the tensor, the masked elements will become zero, or at least very close to zero.

In other words it masks out the tensor in log-space.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants