Revert "Add torch.float8_e5m2 and torch.float8_e4m3 data types (#104242)"

This reverts commit a9804130e5a9a982d82934fa9702abd08d6903ce.

Reverted https://github.com/pytorch/pytorch/pull/104242 on behalf of https://github.com/PaliC due to breaks lint (run lintrunner and remerge) ([comment](https://github.com/pytorch/pytorch/pull/104242#issuecomment-1644150284))
This commit is contained in:
PyTorch MergeBot
2023-07-20 15:37:53 +00:00
parent 02cd971e95
commit f2b15772ff
36 changed files with 98 additions and 1626 deletions

View File

@ -330,12 +330,7 @@ def _tensor_str(self, indent):
if self.is_neg():
self = self.resolve_neg()
if self.dtype in [
torch.float16,
torch.bfloat16,
torch.float8_e5m2,
torch.float8_e4m3fn,
]:
if self.dtype is torch.float16 or self.dtype is torch.bfloat16:
self = self.float()
if self.dtype is torch.complex32: