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

Add Attention Test Suite #37

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

erman-gurses
Copy link
Contributor

Progress on this #2
This PR refactors, adds, and migrates Attention e2e tests from the PR here: iree-org/iree#18320

Signed-off-by: erman-gurses <[email protected]>
linalg_ops/attention/generate_test_mlir_files.sh Outdated Show resolved Hide resolved
linalg_ops/attention/generate_e2e_attention_tests.py Outdated Show resolved Hide resolved
linalg_ops/iree-e2e-attention-test.cc Outdated Show resolved Hide resolved
linalg_ops/iree-e2e-attention-test.cc Outdated Show resolved Hide resolved
linalg_ops/attention/generate_e2e_attention_tests.py Outdated Show resolved Hide resolved
@erman-gurses
Copy link
Contributor Author

@ScottTodd, do we have any other comment from your side? If not, can you approve this?

Comment on lines 211 to 219
iree_hal_buffer_t* query_buffer = iree_hal_buffer_view_buffer(query);
iree_hal_buffer_t* key_buffer = iree_hal_buffer_view_buffer(key);
iree_hal_buffer_t* value_buffer = iree_hal_buffer_view_buffer(value);
iree_hal_buffer_t* result_buffer = iree_hal_buffer_view_buffer(result);
iree_hal_buffer_t *query_buffer = iree_hal_buffer_view_buffer(query);
iree_hal_buffer_t *key_buffer = iree_hal_buffer_view_buffer(key);
iree_hal_buffer_t *value_buffer = iree_hal_buffer_view_buffer(value);
iree_hal_buffer_t *result_buffer = iree_hal_buffer_view_buffer(result);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move * characters back to the type, not the variable name? clang-format will follow the dominant style in the file, so you may need to change a few

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.

3 participants