Skip to content

Refactor vhlo::TensorV1Attr to store DenseElementsAttr#2940

Open
gb-prog wants to merge 2 commits into
openxla:mainfrom
gb-prog:stablehlo-vhlo-memory
Open

Refactor vhlo::TensorV1Attr to store DenseElementsAttr#2940
gb-prog wants to merge 2 commits into
openxla:mainfrom
gb-prog:stablehlo-vhlo-memory

Conversation

@gb-prog
Copy link
Copy Markdown

@gb-prog gb-prog commented Apr 18, 2026

This change updates the internal representation of vhlo::TensorV1Attr to hold a DenseElementsAttr instead of just an ArrayRef. This aligns better with MLIR's built-in attribute types. Call sites are updated to access the raw data via getData().getRawData() when interacting with bytecode or other formats requiring raw buffers.

@gb-prog gb-prog requested review from GleasonK and abhigunj April 18, 2026 01:33
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.

1 participant