8000 Make `mask` in `PassThroughEncoder` work by WrRan · Pull Request #2448 · allenai/allennlp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Make mask in PassThroughEncoder work #2448

Merged
merged 4 commits into from
Jan 31, 2019

Conversation

WrRan
Copy link
Contributor
@WrRan WrRan commented Jan 28, 2019

The current PassThroughEncoder simply returns the input without taking into account the role of the parameter mask. I don't think this is a good idea for two reasons:

  1. We should try our best to ensure that the same parameters of similar modules play the same role instead of ignoring it;
  2. Using the parameter mask is more flexible. If we don't want to mask out any part, just pass in None (default value).

This PR is for it. What do you think?

Copy link
Contributor
@DeNeutoy DeNeutoy left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@DeNeutoy DeNeutoy merged commit a8e0f15 into allenai:master Jan 31, 2019
@WrRan WrRan deleted the mask_work_in_passthrough branch March 16, 2019 14:07
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.

2 participants
0