We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thank you for sharing this code.
When I run this code, I got the error
In DQNAgentWithHER.py, Line 106 q_pred = self.q_eval.forward(concat_state_goal)[batches, action]
IndexError: tensors used as indices must be long, byte or bool tensors
I already checked dtype and shape then I got it
print(concat_state_goal.dtype) torch.float32 print(batches.dtype) int64 print(action.dtype) torch.float32 print(concat_state_goal.shape) torch.Size([64, 16]) print(batches.shape) (64,) print(action.shape) torch.Size([64, 8])
Could you provide me which is the problem? (what is the difference between your output and mine..)
Thank you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Thank you for sharing this code.
When I run this code, I got the error
In DQNAgentWithHER.py, Line 106
q_pred = self.q_eval.forward(concat_state_goal)[batches, action]
IndexError: tensors used as indices must be long, byte or bool tensors
I already checked dtype and shape then I got it
Could you provide me which is the problem? (what is the difference between your output and mine..)
Thank you.
The text was updated successfully, but these errors were encountered: