mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-22 06:11:27 +08:00
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:
@ -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:
|
||||
|
Reference in New Issue
Block a user