junrushao commented on code in PR #12786:
URL: https://github.com/apache/tvm/pull/12786#discussion_r972280122


##########
python/tvm/script/ir_builder/tir/frame.py:
##########
@@ -34,3 +36,10 @@ class PrimFuncFrame(TIRFrame):
 @_register_object("script.ir_builder.tir.BlockFrame")
 class BlockFrame(TIRFrame):
     ...
+
+
+@_register_object("script.ir_builder.tir.ForFrame")
+class ForFrame(TIRFrame):
+    def __enter__(self) -> List[Var]:

Review Comment:
   ```suggestion
       def __enter__(self) -> Union[Var, List[Var]]:
   ```



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