shingjan commented on a change in pull request #9634:
URL: https://github.com/apache/tvm/pull/9634#discussion_r763257688



##########
File path: python/tvm/script/tir/__init__.pyi
##########
@@ -211,8 +211,12 @@ def alloc_buffer(
 special_stmt - Reads/Writes
 """
 
-def reads(read_regions: Union[BufferSlice, List[BufferSlice]]) -> None: ...
-def writes(write_region: Union[BufferSlice, List[BufferSlice]]) -> None: ...
+def reads(
+    read_regions: Union[BufferSlice, List[BufferSlice]], *other_regions: 
BufferSlice
+) -> None: ...
+def writes(
+    write_region: Union[BufferSlice, List[BufferSlice]], *other_regions: 
BufferSlice
+) -> None: ...

Review comment:
       using @overload in TIR script will cause an error as @overload will call 
an anonymous function which is not allowed currently 
[here](https://github.com/apache/tvm/blob/3f1c931aa1414b69103c8c3ca019a9f55b5cb7a7/python/tvm/script/utils.py#L47)
 in TVM.




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