Replace the remaining usages of IntList in caffe2 to IntArrayRef
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/18282
Differential Revision: D14569269
Pulled By: bddppq
fbshipit-source-id: 5fc33701b83f9efdec4b456d2691764831d10e7f