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

Calculate GRU input sums together #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Calculate GRU input sums together #95

wants to merge 1 commit into from

Conversation

anibali
Copy link

@anibali anibali commented Aug 30, 2015

The purpose of this PR is to apply the combined input sum calculation trick from the LSTM module to GRU also. This will allow for fairer comparisons between the two in experiments. A quick test shows a speed increase of about 6% over the existing GRU implementation, but of course mileage will vary.

@karpathy
Copy link
Owner

Hi, this looks good. Have you double checked that it also gives the same results as the old implementation?

@anibali
Copy link
Author

anibali commented Aug 30, 2015

The results were not identical, but the training loss was similar and the output sensible. Isn't this to be expected given the change?

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.

2 participants