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

Additional test for logging during validation loop #3907

Merged
merged 3 commits into from
Oct 6, 2020
Merged

Additional test for logging during validation loop #3907

merged 3 commits into from
Oct 6, 2020

Conversation

nathanpainchaud
Copy link
Contributor

@nathanpainchaud nathanpainchaud commented Oct 6, 2020

Test for #3906 .

@williamFalcon williamFalcon marked this pull request as ready for review October 6, 2020 18:35
@mergify mergify bot requested a review from a team October 6, 2020 18:35
@williamFalcon
Copy link
Contributor

Fixes #3906

Thank you!

@williamFalcon williamFalcon merged commit c510a7f into Lightning-AI:master Oct 6, 2020
try:
batch_size = self.unpack_batch_size(batch)
except RecursionError as re:
batch_size = 1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@williamFalcon I'm not too sure about the correctness of setting this to 1, or of using len(sample) in unpack_batch_size() when sample is a string. This way, the batch size will always be 1, even we have a list of strings with batch_size>1 coming from the dataloader. You can try to add a batch_size to the dataloader in the test, and unpack_batch_size will still indicate 1 as the batch size with the current patch.

@Borda Borda added the ci Continuous Integration label Oct 6, 2020
@Borda Borda added this to the 0.10.0 milestone Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants