Disable tracer warning for slicing indices. (#50414)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50414
If the index that is supplied from python is an integral type, it converts everything to int64_t which is traced correctly.
Test Plan:
new test case
Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D25930773
fbshipit-source-id: a3dfeb49df1394c5c8bea0de46038d2c549a0dc6