Skip to content

Fix resouce leakage and other modernization#5362

Closed
cyyever wants to merge 8 commits into
pytorch:mainfrom
cyyever:bugfix/fix
Closed

Fix resouce leakage and other modernization#5362
cyyever wants to merge 8 commits into
pytorch:mainfrom
cyyever:bugfix/fix

Conversation

@cyyever

@cyyever cyyever commented Jan 31, 2026

Copy link
Copy Markdown
Contributor

This PR fixes memory leak in EmbeddingSpMDM, uses c10::bit_cast to avoid UB, throws on direct conv path and contains other improvements by C++17.

@meta-cla meta-cla Bot added the cla signed label Jan 31, 2026
@meta-codesync

meta-codesync Bot commented Feb 1, 2026

Copy link
Copy Markdown
Contributor

@q10 has imported this pull request. If you are a Meta employee, you can view this in D91996554.

@q10

q10 commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

@cyyever could you split the PR into two PRs, one for fixing the race conditions and another for the other modernizations?

Signed-off-by: cyy <cyyever@outlook.com>
Signed-off-by: cyy <cyyever@outlook.com>
Signed-off-by: cyy <cyyever@outlook.com>
Signed-off-by: cyy <cyyever@outlook.com>
Signed-off-by: cyy <cyyever@outlook.com>
@cyyever cyyever changed the title Fix race conditions and other modernization Fix resouce leakage and other modernization Feb 3, 2026
@cyyever

cyyever commented Feb 3, 2026

Copy link
Copy Markdown
Contributor Author

@q10 Race condition fixes are excluded

Signed-off-by: cyy <cyyever@outlook.com>
Signed-off-by: cyy <cyyever@outlook.com>
Signed-off-by: cyy <cyyever@outlook.com>
@meta-codesync

meta-codesync Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

@q10 merged this pull request in 20fd165.

@cyyever cyyever deleted the bugfix/fix branch February 8, 2026 01:33
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.

3 participants