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

RuntimeError: bool value of Variable objects containing non-empty torch.cuda.FloatTensor is ambiguous #1

Open
Zhanchenhaha opened this issue Apr 12, 2018 · 0 comments

Comments

@Zhanchenhaha
Copy link

Traceback (most recent call last):
File "main.py", line 150, in
val_loss, val_rae, val_corr = evaluate(Data, Data.valid[0], Data.valid[1], model, evaluateL2, evaluateL1, args.batch_size);
File "main.py", line 24, in evaluate
if not predict:
File "/usr/lib64/python2.7/site-packages/torch/autograd/variable.py", line 125, in bool
torch.typename(self.data) + " is ambiguous")
how to deal it

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

No branches or pull requests

1 participant