Skip to content

Conversation

copybara-service[bot]
Copy link

[Jax] Propagate XLA metadata to function argument attributes in MLIR.

Currently function arguments are missing frontend_attributes set by set_xla_metadata.

This change modifies the MLIR lowering process to include the current xla_metadata in the mhlo.frontend_attributes of the function arguments. This allows metadata to be associated with specific inputs in the generated XLA HLO. Tests are updated to verify that argument attributes contain the expected metadata.

Currently function arguments are missing `frontend_attributes` set by `set_xla_metadata`.

This change modifies the MLIR lowering process to include the current `xla_metadata` in the `mhlo.frontend_attributes` of the function arguments. This allows metadata to be associated with specific inputs in the generated XLA HLO. Tests are updated to verify that argument attributes contain the expected metadata.

PiperOrigin-RevId: 816363146
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