Skip to content

Unable to print half tensors #14344

@vishwakftw

Description

@vishwakftw

🐛 Bug

Earlier, a bug was reported (#12093) about not being able to print large half Tensors. Now, half Tensors cannot be printed at all.

To Reproduce

>>> import torch
>>> a = torch.randn(1)
>>> print(a.half())
RuntimeError: s__th_eq is not implemented for type torch.HalfTensor

Expected behavior

Tensors should be printed, at least small ones.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions