lightzhan-intellif opened a new pull request, #13640:
URL: https://github.com/apache/tvm/pull/13640

   This PR try to fix the following bug:
   ```python
   def test_var_capturing_order():
       b = 2
   
       @T.prim_func
       def test_case():
           k: T.int32 = b
   
   
   if __name__ == "__main__":
       b = 1
   ```
   In the prim func `test_case`, the vaule of b should be 2, rather than 1. The 
parser wrongly uses global vars to shadow the value of nonlocal vars, which 
should be reversed.


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