Skip to content

Validate MultiMetric names - #5652

Open
anasooo wants to merge 1 commit into
google:mainfrom
anasooo:fix-multimetric-reserved-names
Open

anasooo wants to merge 1 commit into
google:mainfrom
anasooo:fix-multimetric-reserved-names

Conversation

@anasooo

@anasooo anasooo commented Nov 15, 2026

Copy link
Copy Markdown

nnx.MultiMetric allows metric names that conflict with its own methods (reset, update, compute) or internal _metric_names attribute. These names can break the container. This change rejects them with a clear ValueError and adds regression coverage for all four names.

This branch has not been deployed

No deployments
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