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

[i1] Remove command line option to enable packed storage #19528

Open
wants to merge 20 commits into
base: lialan/i1_attr
Choose a base branch
from

Conversation

lialan
Copy link
Contributor

@lialan lialan commented Dec 19, 2024

  • only use #iree_encoding.packed_storage to designate if an i1 tensor is of packed memory layout.
  • remove iree-experimental-packed-i1-storage command line option.
  • teach type converters to allow casting into packed tensor types

* make `packed_storage` as a type of `iree_encoding` attribute, and make type converters accept it.
* `i1` tensors with `#iree_encoding.packed_storage` will be interpreted as packed i1 type, same as specifying `--iree-experimental-packed-i1-storage`.
* `--iree-experimental-packed-i1-storage` are kept for testing purposes. We can drop this option after frontend enables emitting `i1` tensors with attributes.

Signed-off-by: Alan Li <[email protected]>
@lialan
Copy link
Contributor Author

lialan commented Dec 31, 2024

This is a successor, improving PR to #19354

@lialan lialan marked this pull request as ready for review December 31, 2024 09:30
@hanhanW
Copy link
Contributor

hanhanW commented Jan 7, 2025

The diff is off. There are some changes from #19354. E.g., the below is not part of this PR, right?

image

Can you rebase and fix it?

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