You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0015c76
Browse filesBrowse the repository at this point in the historyBrowse files
Read reduce keepdim when it is serialized as Bool (#24379)
Summary:
mean.dim and sum.dim_IntList read keepdim only when it was serialized as Int, but it is serialized as Bool, so a dynamic resize dropped the kept dim.
keepdim is now read as Bool or Int (anything else throws), and the output rank is checked against it at build time.
This unblocks normalization built from mean(keepdim=True) in dynamic-length models.
Reviewed By: SS-JIA
Differential Revision: D127010334
Pull Request resolved: #24379
0 commit comments