ELF icon indicating copy to clipboard operation
ELF copied to clipboard

Update elf to support pytorch 0.4

Open alcinos opened this issue 7 years ago • 2 comments

This PR updates the code base to be somewhat compatible with the new version of Pytorch. Note that the new Pytorch version includes fixes in important things like the multinomial distribution (which is used in ELF). Hence it can lead to a different behaviour.

A summary of the changes:

  • Use .item() where appropriate. I may have missed some places, since I only tested this PR on Atari
  • Remove volatile and use torch.no_grad instead
  • Some stricter reshaping to cope with finickier dimension checks

Unfortunately, merging this PR means that ELF no longer works on 0.3 and earlier.

alcinos avatar Jul 03 '18 13:07 alcinos

Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours has expired.

Before we can review or merge your code, we need you to email [email protected] with your details so we can update your status.

facebook-github-bot avatar Jul 25 '18 20:07 facebook-github-bot

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

facebook-github-bot avatar Oct 11 '20 15:10 facebook-github-bot