[BE] fix bc check (#62687)
Summary:
a bug was discovered in https://github.com/pytorch/pytorch/issues/62434, for some reason comparing the schema name didn't match the allow_list item. So:
1. remove duplicate regex compile
2. make use of the schema string is used instead of just the name
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62687
Reviewed By: ezyang
Differential Revision: D30102437
Pulled By: walterddr
fbshipit-source-id: 541b2ed77948f24daebb08623cadabb034a241e0
Author
Rong Rong (AI Infra)