-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dropout #195
Closed
Closed
Dropout #195
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The author set self % scale equal to sum(input) / sum(self % output). In order to get sum(input) == sum(output) the correct definition of scale is what I wrote (i can offer a proof if desired).
Sorry I'm not very used with GitHub. Could you tell me how? |
No problem and I appreciate your patience. Here's how to submit a new PR against this one.
Let me know how it goes. |
I cloned your repo but it doesn't have the dropout layer file. Since it is only a line of change, could you change your code? Thank you. In the next days, I wanted to work on #171. Is it possible? Thanks |
Sure, thanks. I will add you as a co-author to the commit for proper
attribution, probably tomorrow.
…On Tue, Jan 28, 2025, 14:18 Riccardo Orsi ***@***.***> wrote:
I cloned your repo but it doesn't have the dropout layer file. Since it is
only a line of change, could you change your code? Thank you.
In the next days, I wanted to work on #171
<#171>. Is it
possible? Thanks
—
Reply to this email directly, view it on GitHub
<#195 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7RDPV7BCHXRLMNVKUBIMT2M7JWZAVCNFSM6AAAAABV4O2T7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJZHA3DENJTG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed a conceptual error present in nf_dropout_layer_submodule.f90. In order to get sum(input) == sum(output) the definition of scale should be sum(input) / sum(input * self % mask)
Proof:
sum(input) == sum(output)
sum(input) == sum(input * mask * scale)
Since scale is constant,
sum(input) == scale * sum(input * mask)
But scale == sum(input) / sum(input * self % mask), so:
sum(input) == sum(input) * sum(input * mask) / sum(input * mask)