Replace resize_dim() with set_sizes_and_strides() (#16732)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16732
Use set_sizes_and_strides instead of resize_dim with.
Reviewed By: ezyang
Differential Revision: D13947867
fbshipit-source-id: 067b096b1fde14b039690992a5fe3ace386b2789