Skip to content

Commit 9af2a45

Browse files
[lint] reformat swizzle ops (#2097)
lint swizzle file
1 parent 2266451 commit 9af2a45

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

torchao/swizzle/swizzle_ops.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ def swizzle_mm(aten_op, args, kwargs=None):
3030
a = args[0]
3131
b = args[1]
3232

33-
if torch.is_floating_point(a) and torch.is_floating_point(b) and a.ndim == 2 and b.ndim == 2:
33+
if (
34+
torch.is_floating_point(a)
35+
and torch.is_floating_point(b)
36+
and a.ndim == 2
37+
and b.ndim == 2
38+
):
3439
a_is_swizzled = False
3540
b_is_swizzled = False
3641
if isinstance(a, SwizzleTensor):

0 commit comments

Comments
 (0)