[acc_utils] Fix off by one for model info getter (#65708)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65708
att
Test Plan: added unit test
Reviewed By: khabinov
Differential Revision: D31209992
fbshipit-source-id: c1b4e70bd9705dcfdf3039cb8791149c8646f1d7