add contiguous function type hint for tensor (#21285)
Summary:
Fixes #21261
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21285
Differential Revision: D15604270
Pulled By: soumith
fbshipit-source-id: c1c02348e338477a507052de0a1065cf42a99387