Skip to content

Constructing torch.cuda.FloatTensor from np.ndarray is very slow #158

@szagoruyko

Description

@szagoruyko

torch.cuda.FloatTensor(im) is really slow compared to torch.FloatTensor(im).cuda(), there should probably be either guards against that or some special case that doesn't do a for loop.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions