Skip to content

max of cuda variable not working #186

@glample

Description

@glample
x = Variable(torch.FloatTensor(5).normal_()).cuda() * 10
print(x.max())

This code returns an error:
`AttributeError: 'ByteTensor' object has no attribute 'nonzero'``
but is working fine on CPU

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions