shingjan commented on a change in pull request #9620:
URL: https://github.com/apache/tvm/pull/9620#discussion_r763359829
##########
File path: python/tvm/script/tir/__init__.pyi
##########
@@ -316,36 +316,72 @@ def Assert(condition: Union[PrimExpr, builtins.bool],
message: str) -> PrimExpr:
"""
Scope handler - Loops
"""
-
+@overload
def serial(
begin: Union[PrimExpr, int],
- end: Union[PrimExpr, int] = None,
+ end: Union[PrimExpr, int],
annotations: Optional[Mapping[str, Object]] = None,
) -> Iterable[IterVar]: ...
+@overload
+def serial(
+ end: Union[PrimExpr, int],
+ annotations: Optional[Mapping[str, Object]] = None,
+) -> Iterable[IterVar]: ...
+@overload
def parallel(
begin: Union[PrimExpr, int],
- end: Union[PrimExpr, int] = None,
+ end: Union[PrimExpr, int],
+ annotations: Optional[Mapping[str, Object]] = None,
+) -> Iterable[IterVar]: ...
+@overload
+def parallel(
+ end: Union[PrimExpr, int],
annotations: Optional[Mapping[str, Object]] = None,
) -> Iterable[IterVar]: ...
+@overload
def vectorized(
begin: Union[PrimExpr, int],
- end: Union[PrimExpr, int] = None,
+ end: Union[PrimExpr, int],
+ annotations: Optional[Mapping[str, Object]] = None,
+) -> Iterable[IterVar]: ...
+@overload
+def vectorized(
+ end: Union[PrimExpr, int],
annotations: Optional[Mapping[str, Object]] = None,
) -> Iterable[IterVar]: ...
+@overload
def unroll(
begin: Union[PrimExpr, int],
- end: Union[PrimExpr, int] = None,
+ end: Union[PrimExpr, int],
annotations: Optional[Mapping[str, Object]] = None,
) -> Iterable[IterVar]: ...
+@overload
+def unroll(
+ end: Union[PrimExpr, int],
+ annotations: Optional[Mapping[str, Object]] = None,
+) -> Iterable[IterVar]: ...
+@overload
def thread_binding(
begin: Union[PrimExpr, int],
- end: Union[PrimExpr, int] = None,
+ end: Union[PrimExpr, int],
+ thread: str = None,
Review comment:
done
##########
File path: python/tvm/script/tir/__init__.pyi
##########
@@ -319,28 +319,28 @@ Scope handler - Loops
def serial(
begin: Union[PrimExpr, int],
- end: Union[PrimExpr, int],
+ end: Union[PrimExpr, int] = None,
Review comment:
done
--
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]