Skip to content

Commit 7c21a9f

Browse files
committed
function doc string not supported by tvmscript
1 parent 40f9742 commit 7c21a9f

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

python/tvm/tir/tensor_intrin/arm_cpu.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
# pylint: disable=invalid-name
17+
# pylint: disable=invalid-name,missing-function-docstring
1818
"""Intrinsics for ARM tensorization."""
1919
from tvm.script import tir as T
2020
from .. import TensorIntrin
@@ -30,9 +30,6 @@ def dot_product_4x4_i8i8i32_desc(
3030
B: T.Buffer((4, 4), "int8", offset_factor=1),
3131
C: T.Buffer((4,), "int32", offset_factor=1),
3232
) -> None:
33-
"""
34-
A description for 4x4 dot product.
35-
"""
3633
with T.block("root"):
3734
T.reads(C[0:4], A[0:4], B[0:4, 0:4])
3835
T.writes(C[0:4])
@@ -51,9 +48,6 @@ def dot_product_4x4_i8i8i32_neon(
5148
B: T.Buffer((4, 4), "int8", offset_factor=1),
5249
C: T.Buffer((4,), "int32", offset_factor=1),
5350
) -> None:
54-
"""
55-
A implementation for 4x4 dot product, applicable for any ARM CPUs supporting NEON.
56-
"""
5751
with T.block("root"):
5852
T.reads(C[0:4], A[0:4], B[0:4, 0:4])
5953
T.writes(C[0:4])
@@ -115,9 +109,6 @@ def dot_product_4x4_i8i8i32_sdot(
115109
B: T.Buffer((4, 4), "int8", offset_factor=1),
116110
C: T.Buffer((4,), "int32", offset_factor=1),
117111
) -> None:
118-
"""
119-
A implementation for 4x4 dot product, applicable for ARM CPUs supporting sdot.
120-
"""
121112
with T.block("root"):
122113
T.reads(C[0:4], A[0:4], B[0:4, 0:4])
123114
T.writes(C[0:4])

python/tvm/tir/tensor_intrin/x86.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
# pylint: disable=invalid-name
17+
# pylint: disable=invalid-name,missing-function-docstring
1818
"""Intrinsics for x86 tensorization."""
1919
from tvm.script import tir as T
2020
from .. import TensorIntrin
@@ -30,9 +30,6 @@ def dot_product_16x4_u8i8i32_desc(
3030
B: T.Buffer((16, 4), "int8", offset_factor=1),
3131
C: T.Buffer((16,), "int32", offset_factor=1),
3232
) -> None:
33-
"""
34-
A description for 16x4 dot product.
35-
"""
3633
with T.block("root"):
3734
T.reads(C[0:16], A[0:4], B[0:16, 0:4])
3835
T.writes(C[0:16])
@@ -51,9 +48,6 @@ def dot_product_16x4_u8i8i32_vnni(
5148
B: T.Buffer((16, 4), "int8", offset_factor=1),
5249
C: T.Buffer((16,), "int32", offset_factor=1),
5350
) -> None:
54-
"""
55-
A VNNI-specific implmementation for 16x4 dot product.
56-
"""
5751
with T.block("root"):
5852
T.reads(C[0:16], A[0:4], B[0:16, 0:4])
5953
T.writes(C[0:16])

0 commit comments

Comments
 (0)