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 Tensor with more than one value is ambiguous #8

Open
LemonMi opened this issue Jan 4, 2020 · 4 comments

Comments

@LemonMi
Copy link

LemonMi commented Jan 4, 2020

if args not in self.cached_nodes[op]:

RuntimeError: bool value of Tensor with more than one value is ambiguous

This error appeared at every time. This time i run my code until the 16th epoch. Do you have any idea? Thank you very much.

@supriya-gdptl
Copy link

I am also facing the same issue.
Could you please help? @ilblackdragon @nearmax

Thank you

@ilblackdragon
Copy link
Member

@Supriya-Pandhre Sorry, we are not actively maintaining this repo right now as we shifted our work to https://github.com/nearprotocol development.

Probably the error is around the fact that you can not do in with tensors anymore. The solution is to change to not any([arg == x for x in self.cached_nodes[op]]) or something of this sort. I sadly don't even have pytorch installed right now so won't be able to repro. But if you make a PR with the test that fails and a fix I'll review it.

@LemonMi
Copy link
Author

LemonMi commented Feb 28, 2020

@Supriya-Pandhre Have you solved this problem? I'm still troubled with this issue..

@supriya-gdptl
Copy link

supriya-gdptl commented Feb 28, 2020

@LemonMi No, I tried to fix it, but still getting the same error. Looks like I need to write code without torchfold (shouldn't be that difficult, hopefully)

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

3 participants