Support %-based string formatting (#45976)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/45976
Test Plan: Imported from OSS
Reviewed By: jamesr66a
Differential Revision: D24374215
Pulled By: ansley
fbshipit-source-id: 2005fe7f09dc8d3c44c4bfdccab6b4dc46a5e517