-
Notifications
You must be signed in to change notification settings - Fork 64
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
629 kernel functions for dense matrix of strings #845
629 kernel functions for dense matrix of strings #845
Conversation
…> struct for std::string and FixedStr16
…ng and FixedStr16
- Renamed test CSV and meta data files. - Removed unnecessary casts of ValueTypeUtils::default_value to the type it already has. - Renamed ValueTypeUtils::default_value to defaultValue. - oneHot-kernel - Removed superfluous additional convenience functions. - Release recoded intermediate. - Made index calculation view-aware. - Reduced the code duplication of the specializations for std::string and FixedStr16 by factoring out the code into a separate function template. - Tidied up BinaryOpCode.h. - Little formatting corrections. - And some more minor things.
- The FixedStr16 buffer no longer requires a null-terminator. - This change optimizes memory usage for FixedStr16 value type.
216c16e
to
eb2fe47
Compare
eb2fe47
to
f3b7504
Compare
…s-for-DenseMatrix-of-Strings
- For some reason, the changes made by 4bf6d03 were undone in this PR, even though all other recent commits from main were merged in.
- Renaming of some test cases. - Applying unit test cases for string-values matriced not only to DenseMatrix, but also to the Matrix superclass (works out-of-the-box).
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.
Thanks for this contribution, @saminbassiri. The more kernels are supported/tested on string-valued matrices, the better ;) . Your code looks good to me. I only did some minor changes (test case names etc.). Furthermore, while your unit tests only used the DenseMatrix
, they actually also work for the Matrix
superclass, so I extended the test cases by that data type. This PR is ready to be merged.
[DAPHNE-#629] Add Support for Indexing, Reshape, and Reverse on DenseMatrix of Strings at Kernel Level
Summary
This PR addresses issue #629, extending string processing capabilities in Daphne and building on the progress of PR #797.
Changes:
DenseMatrix
of strings at the kernel level.DenseMatrix
of strings at the kernel level.DenseMatrix
of strings at the kernel level.Testing
DenseMatrix<std::string>
andDenseMatrix<FixedStr16>
, ensuring the new features function as expected.