fix dropout AD & rename range to rangelist (#17691)
Summary:
fixes #17669
Address apaszke 's comments in #17523
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17691
Differential Revision: D14328083
Pulled By: ailzhang
fbshipit-source-id: 9ec4a54f13bfd1aaf4b1821dd00c31793ac07a44