Skip to content
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

[TIR] Add is_vector Method to DataType class and update usages across Codebase #17443

Merged
merged 3 commits into from
Oct 6, 2024

Conversation

LeiWang1999
Copy link
Contributor

This pull request introduces a new method is_vector to the DataType class and updates various parts of the codebase to use this method for checking if a type is a vector.

This commit refactors the `data_type.h` and `c_runtime_api.h` files. It introduces a new function `is_vector()` in the `DataType` class to check if a type is a vector type. Additionally, it adds a new constant `kTVMGridConstant` in the `TVMTypeCode` enum in `c_runtime_api.h`. These changes improve the code organization and provide better support for vector types.
@Hzfengsy Hzfengsy merged commit ff0b07b into apache:main Oct 6, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants