Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchao/float8/float8_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def amax_history_to_scale_stack(

@torch.no_grad()
def tensor_to_amax(x: torch.Tensor, reduce_amax: bool = False) -> torch.Tensor:
amax = torch.max(torch.abs(x))
amax = torch.linalg.vector_norm(x, ord=float("inf"))

# If the user asked for distributed reduction, do it.
# If the user did not ask for it, assume that it will
Expand Down
Loading