Another attempt to fix version comparison check (#69939)
Summary:
Fixes #{issue number}
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69939
Reviewed By: atalman
Differential Revision: D33108135
Pulled By: malfet
fbshipit-source-id: cadadfe5b04c4378f149136f8e1f8e8d6266775c