If you are on the 0.2 release, reinforce is still available. If you’re on master and have torch.distributions instead, the RL examples should now be as follows: https://github.com/pytorch/examples/pull/249 104
torch.distributions is much more general and suitable for a larger range of tasks - building the equivalent of reinforce using this is relatively simple (and arguably cleaner as it can be used to create a normal loss function to backpropagate).