Skip to content

int / long tensors are summing to float #251

@glample

Description

@glample

Somehow, torch.IntTensor(3).random_(10).sum() returns a float instead of an int. It's not a huge problem, but this is weird and it requires to call int where it's not really expected.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions