Skip to content

Commit 7365341

Browse files
committed
linter
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 6cfbe7d commit 7365341

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchao/float8/float8_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def amax_history_to_scale_stack(
9999

100100
@torch.no_grad()
101101
def tensor_to_amax(
102-
x: torch.Tensor, reduce_amax: bool = False, device_mesh = None
102+
x: torch.Tensor, reduce_amax: bool = False, device_mesh=None
103103
) -> torch.Tensor:
104104
amax = torch.max(torch.abs(x))
105105

@@ -118,7 +118,7 @@ def tensor_to_scale(
118118
x: torch.Tensor,
119119
float8_dtype: torch.dtype,
120120
reduce_amax: bool = False,
121-
device_mesh = None,
121+
device_mesh=None,
122122
) -> torch.Tensor:
123123
amax = tensor_to_amax(x, reduce_amax=reduce_amax, device_mesh=device_mesh)
124124
return amax_to_scale(amax, float8_dtype, x.dtype)

0 commit comments

Comments
 (0)