Lunderberg commented on code in PR #13429:
URL: https://github.com/apache/tvm/pull/13429#discussion_r1033604282


##########
tests/python/unittest/test_tir_schedule_transform_layout.py:
##########
@@ -533,6 +533,21 @@ def before():
     expected = tvm.tir.schedule.schedule.ScheduleError
 
 
+class TestErrorOnNonMatchingTypes(BasePaddingCompare):
+    """The padding must have the same dtype as the buffer"""
+
+    pad_value = tvm.testing.parameter(0)
+
+    def before():
+        A = T.alloc_buffer(14, "float32")
+        for i in T.serial(14):
+            with T.block("block"):
+                vi = T.axis.remap("S", [i])
+                A[vi] = 0
+
+    expected = TypeError

Review Comment:
   Ah, got it.  A test of usage error where an entirely incompatible type is 
being passed, rather than just a test that requires a different Python to TIR 
conversion.  Thank you!



-- 
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]

Reply via email to