Skip to content

Commit 774ac96

Browse files
committed
cleanup
1 parent 1344997 commit 774ac96

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

‎test/transform/test_sink_normalization_past_contraction.py‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# RUN: %PYTHON %s | FileCheck %s
22

3-
"""Tests for `transform_ext.sink_normalization_past_contraction`.
4-
5-
The op rewrites ``contract(A / S, B)`` into ``contract(A, B) / S``, which is legal
6-
because ``S`` does not vary along the reduction axis. It takes the two payload ops
7-
explicitly. Covered here: a `linalg.generic` contraction, the named
8-
``linalg.matmul`` and ``linalg.batch_matmul``, a mixed-precision accumulator, and
9-
two cases the op must reject.
10-
"""
3+
"""Tests for `transform_ext.sink_normalization_past_contraction`."""
114

125
from mlir import ir
136
from mlir.dialects import transform
@@ -113,7 +106,7 @@
113106
)
114107

115108
#: The contraction accumulates in f32 while the numerator and the row scale are
116-
#: bf16, as torch-mlir emits attention. The scale has to be widened to the
109+
#: bf16. The scale has to be widened to the
117110
#: accumulator type when the divide moves after the contraction.
118111
MIXED_PRECISION_SCALE = (
119112
_MAPS

0 commit comments

Comments
 (0)