Atcold / pytorch-CortexNet

PyTorch implementation of the CortexNet predictive model

Home Page:http://tinyurl.com/CortexNet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

J14032016 opened this issue · comments

While running your code:“DiscriminativeCell.py",, I encountered this error:
line 35, in forward
input_projection = self.first and bottom_up or f.relu(f.max_pool2d(self.from_bottom(bottom_up), POOL, POOL))
RuntimeError: bool value of Tensor with more than one value is ambiguous。

Can you give me any hint to solve?
Thank you very much.

You can see how to fix it here -> #8
If you do fix it, please, send a PR. Thanks!