use propagate_names instead of propagate_names_for_reduction for cumsum and cumprod
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/31134
Differential Revision: D18964172
Pulled By: anjali411
fbshipit-source-id: 3050c6d283a469a858378c44ac2ab9102baefce5