Skip to content

wrong comparison of Variable scalar with python objects #538

@glample

Description

@glample

This code returns False, and I don't think it should:

a = Variable(torch.FloatTensor(3, 4).fill_(3))
print(a[1, 0] == 3)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions