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
ValueError: The value argument to log_prob must be a Tensor #90
Comments
Hi! What version of the code are you using? |
Hi, Could you expand on your question if information here is insufficient? best |
Fair enough. So you cloned the master branch or the DiCE branch? |
yes, i cloned the master branch. |
Alright, can you try the DiCE branch? The master branch is pretty outdated :) (I am going to improve that soonish) |
Sure. I am going to check that branch right away and keep u updated. |
I tried "git clone --branch dice --single-branch https://github.com/HEmile/storchastic.git" However, I still get the same bug. Did i miss any steps? best |
Hi Guanyuan, |
I use python=3.8 and pytorch=1.8.1 and test the example
bernoulli_toy.py
Error happens in the following line in expect.py
log_probs = tensor.distribution.log_prob(tensor)
error is
ValueError: The value argument to log_prob must be a Tensor
Seems .log_prob() wants a tensor object as input.
When I print the 'tensor', it outputs:
Could you offer some solutions? Thank you
The text was updated successfully, but these errors were encountered: