oft icon indicating copy to clipboard operation
oft copied to clipboard

AttributeError: 'Tensor' object has no attribute 'bool'

Open DasReich opened this issue 5 years ago • 3 comments

Hi,sorry to bother you.The question is that when i try to run the command "python train.py train --gpu 0", an error occured: "AttributeError: 'Tensor' object has no attribute 'bool'",located in encoder.py,line 149 " mask = grid.new_zeros((self.nclass, depth-1, width-1)).bool()".i don't know how to solve this question.Hope you can help me with the error,thank you.

DasReich avatar Oct 30 '19 11:10 DasReich

Hi, Just starting working on this project.

I don't there yet, but did you manage to solve the issue?

ranattias avatar Nov 07 '19 19:11 ranattias

Update your torch to latest stable version i.e. 1.3. That has solved the same problem I had.

Pendu avatar Dec 05 '19 11:12 Pendu

Update your torch to latest stable version i.e. 1.3. That has solved the same problem I had.

Thanks a lot, I'll have a try.

DasReich avatar Dec 08 '19 01:12 DasReich