[bug] Fix argpack with struct and vector #8403
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue: #8385
Brief Summary
🤖 Generated by Copilot at 33db838
Added support for struct arguments in kernels using
ArgPack
types and fixed a bug with nested struct offsets. Added tests forArgPack
with struct and vector types.Walkthrough
🤖 Generated by Copilot at 33db838
Struct
class fromtaichi.lang.struct
to support struct arguments (link)isinstance
check to includeStruct
as a possible data type (link)ArgPack
elements to kernels intest_argpack.py
(link)