torchfold icon indicating copy to clipboard operation
torchfold copied to clipboard

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

Open LemonMi opened this issue 5 years ago • 4 comments

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.

LemonMi avatar Jan 04 '20 06:01 LemonMi

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

Thank you

supriya-gdptl avatar Feb 19 '20 22:02 supriya-gdptl

@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.

ilblackdragon avatar Feb 22 '20 08:02 ilblackdragon

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

LemonMi avatar Feb 28 '20 03:02 LemonMi

@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)

supriya-gdptl avatar Feb 28 '20 18:02 supriya-gdptl