Skip to content

Commit 9a3e508

Browse files
committed
simplify import
1 parent d8e43ec commit 9a3e508

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

python/tvm/tir/tensor_intrin/__init__.py

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

tests/python/unittest/test_tir_schedule_tensorize.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
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.x86 import VNNI_DOT_16x4_INTRIN as VNNI_INTRIN
26-
from tvm.tir.tensor_intrin.arm_cpu import ARM_DOT_4x4_i8_NEON_INTRIN, ARM_DOT_4x4_i8_SDOT_INTRIN
25+
from tvm.tir.tensor_intrin import (
26+
VNNI_DOT_16x4_INTRIN,
27+
ARM_DOT_4x4_i8_NEON_INTRIN,
28+
ARM_DOT_4x4_i8_SDOT_INTRIN,
29+
)
2730

2831
# fmt: off
2932
# pylint: disable=no-member,invalid-name,unused-variable,line-too-long,redefined-outer-name,unexpected-keyword-arg,too-many-nested-blocks
@@ -567,7 +570,7 @@ def test_tensorize_vnni():
567570
sch.reorder(ko, ji, ki)
568571

569572
sch.decompose_reduction(block, ko)
570-
sch.tensorize(ji, VNNI_INTRIN)
573+
sch.tensorize(ji, VNNI_DOT_16x4_INTRIN)
571574

572575
verify_trace_roundtrip(sch=sch, mod=func)
573576

0 commit comments

Comments
 (0)