junrushao commented on code in PR #12797:
URL: https://github.com/apache/tvm/pull/12797#discussion_r972469002
##########
tests/python/unittest/test_tir_schedule_analysis.py:
##########
@@ -101,6 +101,53 @@ def test_suggest_index_map_bijective():
assert index_map.is_equivalent_to(expected_index_map)
+def test_suggest_index_map_winograd():
+ """use case in winograd conv where the indices are complicated"""
+ i0_0_i1_0_i2_0_i3_0_i0_1_i1_1_i2_1_i3_1_fused, i3_3_fused, i4_0, i4_1 =
_make_vars(
+ "i0_0_i1_0_i2_0_i3_0_i0_1_i1_1_i2_1_i3_1_fused", "i3_3_fused", "i4_0",
"i4_1"
+ )
+ eps = floordiv(i0_0_i1_0_i2_0_i3_0_i0_1_i1_1_i2_1_i3_1_fused, 336) * 2 +
floordiv(
+ floormod(i0_0_i1_0_i2_0_i3_0_i0_1_i1_1_i2_1_i3_1_fused, 16), 8
+ )
+ nu = floordiv(floormod(i0_0_i1_0_i2_0_i3_0_i0_1_i1_1_i2_1_i3_1_fused,
336), 112) * 2 + floordiv(
+ floormod(i0_0_i1_0_i2_0_i3_0_i0_1_i1_1_i2_1_i3_1_fused, 8), 4
+ )
+ co = floormod(i0_0_i1_0_i2_0_i3_0_i0_1_i1_1_i2_1_i3_1_fused, 4) * 32 +
i3_3_fused
Review Comment:
😂 shall we somehow use a less cryptic name?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]