Skip to content

Commit 0ced85f

Browse files
committed
rename vnni.py to x86.py
1 parent 38a5aca commit 0ced85f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

python/tvm/tir/tensor_intrin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# under the License.
1717
# pylint: disable=unused-import
1818
"""Intrinsics for tensorization."""
19-
from . import vnni
19+
from . import x86

python/tvm/tir/tensor_intrin/vnni.py renamed to python/tvm/tir/tensor_intrin/x86.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
@T.prim_func
26-
def dot_product_desc(a: T.handle, b: T.handle, c: T.handle) -> None:
26+
def dot_product_16x4_desc(a: T.handle, b: T.handle, c: T.handle) -> None:
2727
A = T.match_buffer(a, (4,), "uint8", offset_factor=1)
2828
B = T.match_buffer(b, (16, 4), "int8", offset_factor=1)
2929
C = T.match_buffer(c, (16,), "int32", offset_factor=1)
@@ -41,7 +41,7 @@ def dot_product_desc(a: T.handle, b: T.handle, c: T.handle) -> None:
4141

4242

4343
@T.prim_func
44-
def dot_product_intrin(a: T.handle, b: T.handle, c: T.handle) -> None:
44+
def dot_product_16x4_vnni_impl(a: T.handle, b: T.handle, c: T.handle) -> None:
4545
A = T.match_buffer(a, (4,), "uint8", offset_factor=1)
4646
B = T.match_buffer(b, (16, 4), "int8", offset_factor=1)
4747
C = T.match_buffer(c, (16,), "int32", offset_factor=1)
@@ -66,6 +66,6 @@ def dot_product_intrin(a: T.handle, b: T.handle, c: T.handle) -> None:
6666
)
6767

6868

69-
INTRIN_NAME = "dot_16x1x16_uint8_int8_int32_cascadelake"
69+
VNNI_INTRIN = "dot_16x4_vnni"
7070

71-
TensorIntrin.register(INTRIN_NAME, dot_product_desc, dot_product_intrin)
71+
TensorIntrin.register(VNNI_INTRIN, dot_product_16x4_desc, dot_product_16x4_vnni_impl)

tests/python/unittest/test_meta_schedule_tune_relay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
from tvm.target.target import Target
4343
from tvm.tir.schedule import BlockRV, Schedule
4444
from tvm.tir.schedule.trace import Trace
45-
from tvm.tir.tensor_intrin.vnni import INTRIN_NAME as VNNI_INTRIN
45+
from tvm.tir.tensor_intrin.x86 import VNNI_INTRIN
4646

4747

4848
logging.basicConfig()

tests/python/unittest/test_tir_schedule_tensorize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from tvm import tir, te
2323
from tvm.script import tir as T
2424
from tvm.tir.schedule.testing import verify_trace_roundtrip
25-
from tvm.tir.tensor_intrin.vnni import INTRIN_NAME as VNNI_INTRIN
25+
from tvm.tir.tensor_intrin.x86 import VNNI_INTRIN
2626

2727
# fmt: off
2828
# pylint: disable=no-member,invalid-name,unused-variable,line-too-long,redefined-outer-name,unexpected-keyword-arg,too-many-nested-blocks

0 commit comments

Comments
 (0)