You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/05/24 03:44:11 UTC

[GitHub] [tvm] Beya2019 opened a new pull request #8116: [Hybrid Script]Fix some syntax errors

Beya2019 opened a new pull request #8116:
URL: https://github.com/apache/tvm/pull/8116


   Fixed some syntax errors in the hybrid_script document.
   ```
   for i in range(5):
       s = 0 # declaration, this s will be a 1-array in lowered IR
       for j in range(5):
          s += a[i, j] # do something with sum
       b[i] = sum # you can still use sum in this level
   a[0] = s # you CANNOT use s here, even though it is allowed in conventional Python
   ```
   
   @tqchen @merrymercy @kevinthesun Would you please have a look at this? Thanks very much.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi merged pull request #8116: [Hybrid Script]Fix some syntax errors

Posted by GitBox <gi...@apache.org>.
masahi merged pull request #8116:
URL: https://github.com/apache/tvm/pull/8116


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org