Skip to content

Conversation

@gchalump
Copy link
Contributor

Summary:
Add field validation and filtering to TBEDataConfig.from_json to handle JSON inputs, used in benchmark, that may contain unknown or extra fields.

The current tbe_reporter has adhoc properties added to the output that mismatch with the current structure.

This change makes JSON deserialization more robust by filtering out unrecognized fields and logging warnings for missing expected fields and info messages for ignored extra fields. This allows the code to gracefully handle evolving schema or data from external sources without breaking deserialization.

Differential Revision: D87658217

@meta-codesync
Copy link
Contributor

meta-codesync bot commented Nov 21, 2025

@gchalump has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87658217.

Summary:
X-link: facebookresearch/FBGEMM#2163


Add field validation and filtering to `TBEDataConfig.from_json` to handle JSON inputs, used in benchmark, that may contain unknown or extra fields.

The current `tbe_reporter` has adhoc properties added to the output that mismatch with the current structure.

This change makes JSON deserialization more robust by filtering out unrecognized fields and logging warnings for missing expected fields and info messages for ignored extra fields. This allows the code to gracefully handle evolving schema or data from external sources without breaking deserialization.

Differential Revision: D87658217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant