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

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

Open
DasReich opened this issue Oct 30, 2019 · 3 comments
Open

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

DasReich opened this issue Oct 30, 2019 · 3 comments

Comments

@DasReich
Copy link

DasReich commented Oct 30, 2019

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.

@ranattias
Copy link

Hi,
Just starting working on this project.

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

@Pendu
Copy link

Pendu commented Dec 5, 2019

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

@DasReich
Copy link
Author

DasReich commented Dec 8, 2019

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.

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