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

Postpost compilation in DatasetEvaluator #1185

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

rizar
Copy link
Contributor

@rizar rizar commented Mar 30, 2017

For debugging it's much better if the compilation in DatasetEvaluator happens when it's first called, not when it's created.

@dmitriy-serdyuk
Copy link
Contributor

Hmm. As for me, it is better to crash sooner (if something is wrong with evaluation) rather than later.

@rizar
Copy link
Contributor Author

rizar commented Mar 30, 2017 via email

@dmitriy-serdyuk
Copy link
Contributor

Yes, but evaluation might be very slow. It is always frustrating when model compiles for several minutes, then evaluates for half an hour and then crashes with a first batch of training. And if you interrupt it during evaluation you'll have to wait again for compilation.

I would explicitly compile the evaluator on before_training callback.

@rizar
Copy link
Contributor Author

rizar commented Mar 30, 2017 via email

@dmitriy-serdyuk
Copy link
Contributor

LGTM then

@rizar rizar merged commit 6b0acfc into mila-iqia:master Mar 30, 2017
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