Skip to content

Use a struct to manage the mapping between AttentionImpl enum values and their string names, simplifying GetAttentionImplName function. Add a test to ensure all valid AttentionImpl enums have a corresponding name and can be looked up.#844

Open
copybara-service[bot] wants to merge 1 commit intodevfrom
test_875204584

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Feb 25, 2026

Use a struct to manage the mapping between AttentionImpl enum values and their string names, simplifying GetAttentionImplName function. Add a test to ensure all valid AttentionImpl enums have a corresponding name and can be looked up.

@copybara-service copybara-service bot changed the title Use gtl::fixed_flat_map_of to manage the mapping between AttentionImpl enum values and their string names, simplifying GetAttentionImplName function. Add a test to ensure all valid AttentionImpl enums have a corresponding name and can be looked up. Use a struct to manage the mapping between AttentionImpl enum values and their string names, simplifying GetAttentionImplName function. Add a test to ensure all valid AttentionImpl enums have a corresponding name and can be looked up. Feb 26, 2026
…s and their string names, simplifying `GetAttentionImplName` function. Add a test to ensure all valid `AttentionImpl` enums have a corresponding name and can be looked up.

PiperOrigin-RevId: 875204584
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.

0 participants