Skip to content

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