Skip to content
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

Incorporate gru-nonlin #15

Merged
merged 3 commits into from
Dec 4, 2015
Merged

Incorporate gru-nonlin #15

merged 3 commits into from
Dec 4, 2015

Conversation

jakezhaojb
Copy link
Contributor

This is basically an incorporation of the `nonlin' trick that introduced from [here].(https://github.com/laulysta/nmt). Please review before merging it into master.

@@ -250,6 +250,39 @@ def param_init_gru(options, params, prefix='gru', nin=None, dim=None):
return params


def param_init_gru_nonlin(options, params, prefix='gru',
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about defining U_nl, b_nl, Ux_nl and bx_nl in param_init_gru_cond after calling param_init_gru, instead of making a new function param_init_gru_nonlin?

@kyunghyuncho
Copy link
Collaborator

@jakezhaojb once the one comment I made is resolved, I'll merge it right away.

@jakezhaojb
Copy link
Contributor Author

Yes! I just did. Please review it.

nin=None, dim=None, dimctx=None):
nin=None, dim=None, dimctx=None,
nin_nonlin=None, dim_nonlin=None,
hiero_nonlin=False):
Copy link
Collaborator

Choose a reason for hiding this comment

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

hiero_nonlin is not used in this code. Please remove any related entries.

@jakezhaojb
Copy link
Contributor Author

Yeah done.

kyunghyuncho added a commit that referenced this pull request Dec 4, 2015
@kyunghyuncho kyunghyuncho merged commit 0e48ec9 into nyu-dl:master Dec 4, 2015
@kyunghyuncho
Copy link
Collaborator

Thanks, @jakezhaojb

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.

None yet

2 participants