Skip to content

Fix dropout parameter in LeakyParallel - #405

Open
igorperic17 wants to merge 1 commit into
jeshraghian:masterfrom
igorperic17:master
Open

Fix dropout parameter in LeakyParallel#405
igorperic17 wants to merge 1 commit into
jeshraghian:masterfrom
igorperic17:master

Conversation

@igorperic17

Copy link
Copy Markdown
  • Fix dropout not working in LeakyParallel due to nn.RNN only applying dropout to intermediate layers (not the last layer)
  • Since LeakyParallel uses num_layers=1, manually apply dropout to RNN output instead of passing it to nn.RNN
  • Add comprehensive test suite for LeakyParallel dropout functionality
  • Update docstring to clarify dropout behavior

Fixes GitHub issue where dropout parameter had no effect even when set to 1.0 #403

- Fix dropout not working in LeakyParallel due to nn.RNN only applying
  dropout to intermediate layers (not the last layer)
- Since LeakyParallel uses num_layers=1, manually apply dropout to RNN
  output instead of passing it to nn.RNN
- Add comprehensive test suite for LeakyParallel dropout functionality
- Update docstring to clarify dropout behavior

Fixes GitHub issue where dropout parameter had no effect even when set to 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant