Skip to content

Conversation

@gchalump
Copy link
Contributor

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/2251

This change refactors the TBE benchmark params reporter to properly structure feature maps (Es, Ds, Bs, Ls, feature_table_map) within the appropriate data classes instead of adding them as ad-hoc fields to the JSON output.

Changes:

  • Added Ls (list of pooling factors) field to PoolingParams dataclass
  • Added feature_table_map field to TBEDataConfig dataclass
  • Updated extract_params() to properly populate Es, Ds in TBEDataConfig, Bs in BatchParams, and Ls in PoolingParams
  • Removed all ad-hoc code that was manually adding these fields to the JSON output
  • Updated SplitTableBatchedEmbeddingBagsCodegen.forward() to pass feature_table_map to the reporter

Differential Revision: D89408478

Summary:
X-link: facebookresearch/FBGEMM#2251

This change refactors the TBE benchmark params reporter to properly structure feature maps (`Es`, `Ds`, `Bs`, `Ls`, `feature_table_map`) within the appropriate data classes instead of adding them as ad-hoc fields to the JSON output.

**Changes:**
- Added `Ls` (list of pooling factors) field to `PoolingParams` dataclass
- Added `feature_table_map` field to `TBEDataConfig` dataclass
- Updated `extract_params()` to properly populate `Es`, `Ds` in `TBEDataConfig`, `Bs` in `BatchParams`, and `Ls` in `PoolingParams`
- Removed all ad-hoc code that was manually adding these fields to the JSON output
- Updated `SplitTableBatchedEmbeddingBagsCodegen.forward()` to pass `feature_table_map` to the reporter

Differential Revision: D89408478
@meta-cla meta-cla bot added the cla signed label Dec 18, 2025
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Dec 18, 2025

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

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