Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 4.prioritized dqn.ipynb #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jsrimr
Copy link

@jsrimr jsrimr commented Mar 24, 2019

removed volatile parameter and added wrapper @torch.no_grad()
zip(*samples) -> list(zip(*samples))
.data[0] -> .item() . # 2 cases

removed volatile parameter and added wrapper @torch.no_grad()
zip(*samples) -> list(zip(*samples))
.data[0] -> .item() . # 2 cases
@Deepakgthomas
Copy link

Hi @jsrimr,

While running the prioritized dqn, I came across this error - TypeError: 'zip' object is not subscriptable

I guess your solution of zip(*samples) -> list(zip(*samples)) works. But the author was able to run his code without any modification and still gets results. Do you know how that was possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants