Skip to content

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

Merged
Hzfengsy merged 3 commits intoapache:mainfrom
tile-ai:datatype_extent
Oct 6, 2024
Merged

[TIR] Add is_vector Method to DataType class and update usages across Codebase#17443
Hzfengsy merged 3 commits intoapache:mainfrom
tile-ai:datatype_extent

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
@LeiWang1999 LeiWang1999 deleted the datatype_extent branch November 14, 2024 05:45
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