-
Notifications
You must be signed in to change notification settings - Fork 622
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
Change WDS index version representation to integer. #4708
Conversation
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
!build |
CI MESSAGE: [7567149]: BUILD STARTED |
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
9109e08
to
4f7370a
Compare
@@ -24,6 +24,7 @@ | |||
#include <utility> | |||
#include <vector> | |||
#include "dali/core/bitmask.h" | |||
#include "dali/core/version_util.h" |
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.
Why not include that in .cc
file?
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.
Will do.
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
1f1f3fc
to
1303849
Compare
CI MESSAGE: [7567523]: BUILD STARTED |
CI MESSAGE: [7567523]: BUILD PASSED |
#ifndef DALI_CORE_VERSION_UTIL_H_ | ||
#define DALI_CORE_VERSION_UTIL_H_ | ||
|
||
namespace dali { |
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.
The contents of this file are (mostly) copied from core/util.h
- these functions are not generic enough to warrant a place in util.h
. The differences:
GetVersionNumber
renamed toMakeVersionNumber
- Added a default value for
patch
- Made
value
a templateV *
instead of fixedint *
. - Added a customizable
invalid_value
… utilties. (NVIDIA#4708) * Change WDS index version representation to integer. * Use a common utility for generating an integer version number. * Move version utilities to a standalone header * Make version utilities more generic Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Category:
Refactoring (Redesign of existing code that doesn't affect functionality)
Description:
It changes the representation of the WDS index from a string to integer. It improves performance and it would help with comparisons.
Additional information:
Affected modules and functionalities:
WDS reader
Key points relevant for the review:
Tests:
dali/test/python/reader/test_webdataset_*.py
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: DALI-2557