Port floor to structured (#57587)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57587
Use ghstack to reopen to reduce self conflict。
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D28224599
Pulled By: ezyang
fbshipit-source-id: 023f21bc976b90f8a5a409db4f3390aa4eaea446