At end of epoch on an IterableDataset ensure engine.state.output rema…#3373
Conversation
|
@mtauraso can you please run code formatting script: |
|
Ran the formatter and committed. My apologies for the churn, I see now this is all documented in the first time contributors guide which I didn't read earlier. |
|
Thanks for the updates and no worries about the contributing guidelines. By the way, I almost forgot about that we also need to add a test for the feature we adding. Can you please create a test here checking that state.output is not None for the iterable input data, below this line: ignite/tests/ignite/engine/test_engine.py Line 1051 in f4f7d1c Maybe something like this: def test_iterator_state_output(self):
...you can take a look for inspiration this test: test_faq_inf_iterator_with_epoch_length |
a84bc24 to
9666ef3
Compare
mtauraso
left a comment
There was a problem hiding this comment.
I found another bug while testing this 🙃
If there's an obvious fix I'd like to know, and would be happy for someone else to move the diff forward, but I probably won't have time to look in detail for a couple days.
If I find a fix I'll add it to the branch and ping again.
|
@mtauraso thanks for adding the tests. Let me reproduce the bug and make a separate ticket for it. This PR looks good to me and solves the initial problem. Let's land it and maybe work on the other bug in separate PR. |
…ins.
Fixes #3372
Description: Implements the fix described in the bugreport
Check list: