-
Notifications
You must be signed in to change notification settings - Fork 621
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
Numpy reader devel #1858
Numpy reader devel #1858
Conversation
… files before renaming
…osition for fortran ordered numpy arrays
Some Jupyter example would be nice to show how it can be used. |
!build |
CI MESSAGE: [1239650]: BUILD STARTED |
CI MESSAGE: [1239650]: BUILD PASSED |
!build |
CI MESSAGE: [1243203]: BUILD STARTED |
CI MESSAGE: [1243203]: BUILD FAILED |
// extract header length | ||
uint16_t header_len = 0; | ||
memcpy(&header_len, &token[8], 2); | ||
DALI_ENFORCE(header_len % 16 == 0, |
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.
It fails in tests...
…ength being integer multiples of 16, header-length+10 has to be modulo 16. Fixed
!build |
CI MESSAGE: [1244701]: BUILD STARTED |
CI MESSAGE: [1244701]: BUILD PASSED |
Why we need this PR?
What happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
[ Added numpy_file_reader and -loader ]
[ dali/operators/reader ]
[ updated Dockerfile.deps with updated boost mirror, renaming of FIleLoader to FileLabelLoader (and the corresponding files, i.e. renamed file_loader. to file_label_loader.* and added file_loader.* with the new definition) in Dali/operators/reader/loader, numpy_loader.* and numpy_reader_op.* in the reader directory, inlined a few helper functions in dali/kernels/common/transpose.h, the header contained implementations which caused linking errors ]*
[ I ran the test suite for the existing operators and added a test for the numpy reader under dali/test/python. It basically creates a numpy file and loads it the regular way and also using the loader and compares the output]
[ No, nothing did change. I am happy to add a doc item for the reader though in case it is requested. ]
JIRA TASK: [ NA ]