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


##########
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:
   Does the behavior here differ from 
[TestErrorOnWrongPaddingType](https://github.com/apache/tvm/blob/main/tests/python/unittest/test_tir_schedule_transform_layout.py#L521)?
  Other than the type of error thrown, it looks like they are testing the same 
behavior.



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