Fix for rand_like as well. (#33095)
Summary:
This is a followup PR to https://github.com/pytorch/pytorch/issues/32830 This solves the same issue for RandLike which we saw in RandNLike
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33095
Reviewed By: hl475
Differential Revision: D19848625
Pulled By: houseroad
fbshipit-source-id: 147921becf79490027a93606d52c5bc41d9eaf7f