Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add AddUnknownPattern() and AddMissingPattern(). #1442

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

copybara-service[bot]
Copy link

Add AddUnknownPattern() and AddMissingPattern().

The other activation functions can be used incrementally, but SetUnknownPatterns() and SetMissingPatterns() cannot. This makes it a bit annoying to use, since you can't have a wrapper function that either binds an attribute or add an unknown pattern, that you could for example call in a loop.

Since attribute patterns are just a vector anyway, it is easy to make it support incremental additions.

The other activation functions can be used incrementally, but SetUnknownPatterns() and SetMissingPatterns() cannot. This makes it a bit annoying to use, since you can't have a wrapper function that either binds an attribute or add an unknown pattern, that you could for example call in a loop.

Since attribute patterns are just a vector anyway, it is easy to make it support incremental additions.

PiperOrigin-RevId: 748766532
@copybara-service copybara-service bot merged commit 050b21e into master Apr 17, 2025
1 check passed
@copybara-service copybara-service bot deleted the test_748615528 branch April 17, 2025 19:14
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