Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Fix: Doc for LockedDropout Input Shape#73

Merged
PetrochukM merged 2 commits intoPetrochukM:masterfrom
JiaqiLiu:master
May 5, 2019
Merged

Fix: Doc for LockedDropout Input Shape#73
PetrochukM merged 2 commits intoPetrochukM:masterfrom
JiaqiLiu:master

Conversation

@JiaqiLiu
Copy link
Copy Markdown
Contributor

LockedDrop applies the same dropout mask to every time step.

Based on the implementation, here, the input x should have shape [sequence length, batch size, rnn hidden size].

That is, the first dimension should be sequence length (time sequence). Then, when mask.expand_as(x), we get the same mask for every time step.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Apr 29, 2019

Codecov Report

Merging #73 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #73   +/-   ##
=======================================
  Coverage   94.15%   94.15%           
=======================================
  Files          57       57           
  Lines        1523     1523           
=======================================
  Hits         1434     1434           
  Misses         89       89
Impacted Files Coverage Δ
torchnlp/nn/lock_dropout.py 93.33% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f7320d...71d2ce1. Read the comment docs.

Copy link
Copy Markdown
Owner

@PetrochukM PetrochukM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thank you! I'll merge as soon as the tests pass.

@PetrochukM PetrochukM merged commit 4753e4f into PetrochukM:master May 5, 2019
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.

3 participants