Fix #48903 (#50817)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50817
Replace some longs with int64_t. Thanks Tom Heaven for contributing
this patch.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Reviewed By: bdhirsh
Differential Revision: D25975915
Pulled By: ezyang
fbshipit-source-id: c1061a85f80ad17fa4fb313da797bc6d5ba203c2