explicitly provide memory format when calling to clone() at rprop.py
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28693
Test Plan: Imported from OSS
Differential Revision: D18333379
Pulled By: ifedan
fbshipit-source-id: 4430efc0602a3fc6ef05adac07df845a696449f7