Skip to content

Commit 025b6ce

Browse files
authored
Fix lint related to welford and also local_cache (#646)
1 parent 30f319f commit 025b6ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/welford.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def eager_layer_norm(
8080
weight: torch.Tensor, bias: torch.Tensor, x: torch.Tensor, eps: float = 1e-05
8181
) -> torch.Tensor:
8282
return torch.nn.functional.layer_norm(
83-
x, normalized_shape=(x.shape[-1],), weight=weight, bias=bias, eps=eps
83+
x, normalized_shape=[x.shape[-1]], weight=weight, bias=bias, eps=eps
8484
)
8585

8686

helion/autotuner/local_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _generate_key(self) -> LooseAutotuneCacheKey:
5757
device_properties = torch.cuda.get_device_properties(arg.device)
5858
if torch.version.cuda is not None: # pyright: ignore[reportAttributeAccessIssue]
5959
hardware = device_properties.name
60-
runtime_name = torch.version.cuda # pyright: ignore[reportAttributeAccessIssue]
60+
runtime_name = str(torch.version.cuda)
6161
else:
6262
hardware = device_properties.gcnArchName
6363
runtime_name = torch.version.hip # pyright: ignore[reportAttributeAccessIssue]

0 commit comments

Comments
 (0)