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

Rewrite convert #381

Merged
merged 8 commits into from
Nov 10, 2020
Merged

Rewrite convert #381

merged 8 commits into from
Nov 10, 2020

Conversation

breuleux
Copy link
Member

@breuleux breuleux commented Nov 9, 2020

This rewrites the ConversionResource and infer_constant in the inferrer to be simpler. The tests seem to take 10-20% less time to execute overall with these changes. For example, for the RNN, step_infer is about 30% faster because it doesn't reroute to new constants when the constants already contain converted value (also, it doesn't set a _converted field in nodes anymore, which had always been a dirty hack).

I also fixed the debugger when using buche.

Copy link
Contributor

@abergeron abergeron left a comment

Choose a reason for hiding this comment

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

Travis is unhappy, but I am.

@breuleux
Copy link
Member Author

Everything passes now.

@abergeron abergeron merged commit b1e0457 into mila-iqia:master Nov 10, 2020
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