-
Notifications
You must be signed in to change notification settings - Fork 639
Add fallback for missing source info in check_batch #5861
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
Conversation
!build |
CI MESSAGE: [26057779]: BUILD STARTED |
dali/test/python/test_utils.py
Outdated
@@ -351,7 +351,10 @@ def _verify_batch_size(batch): | |||
if hasattr(batch2[i], "source_info"): | |||
error_msg += f"\nRHS data source: {batch2[i].source_info()}" | |||
|
|||
dump_as_core_artifacts(batch1[i].source_info(), left, right, sample_idx=i) | |||
filename = ( | |||
batch1[i].source_info() if hasattr(batch1[i], "source_info") else f"'unknown{i}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
batch1[i].source_info() if hasattr(batch1[i], "source_info") else f"'unknown{i}" | |
batch1[i].source_info() if hasattr(batch1[i], "source_info") else f"unknown{i}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
- When dumping core artifacts in check_batch, handle cases where source_info is not available by using a fallback filename with the sample index. Signed-off-by: Janusz Lisiecki <[email protected]>
!build |
CI MESSAGE: [26058103]: BUILD STARTED |
CI MESSAGE: [26058103]: BUILD FAILED |
CI MESSAGE: [26058103]: BUILD PASSED |
is not available by using a fallback filename with the sample index.
Category:
Other (e.g. Documentation, Tests, Configuration)
Description:
is not available by using a fallback filename with the sample index.
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
dump_as_core_artifacts
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A