[fix][tiny][caffe2] Avoid triggering errors when allow ratio is 100% (#34757)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34757
Reviewed By: Wakeupbuddy
Differential Revision: D20451255
fbshipit-source-id: 07997cf31dba653b61d082ec3f28357c3b90c4eb