Skip to content

Commit 605392b

Browse files
vkuzopytorchmergebot
authored andcommitted
add float8 types to LoggingTensor (pytorch#141385)
Summary: float8 dtypes were missing from this map, adding Test Plan: CI, and unbreaks debugging in torchao If there is an existing test I can add this to - lmk Reviewers: Subscribers: Tasks: Tags: Fixes #ISSUE_NUMBER Pull Request resolved: pytorch#141385 Approved by: https://github.com/soulitzer
1 parent 5b0b16c commit 605392b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

torch/testing/_internal/logging_tensor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
torch.int64: "i64",
2828
torch.bool: "b8",
2929
torch.uint8: "u8",
30+
torch.float8_e4m3fn: "f8e4m3fn",
31+
torch.float8_e5m2: "f8e5m2",
32+
torch.float8_e4m3fnuz: "f8e4m3fnuz",
33+
torch.float8_e5m2fnuz: "f8e5m2fnuz",
3034
}
3135

3236
# How the chain of calls works for LoggingTensor:

0 commit comments

Comments
 (0)