tkonolige opened a new pull request, #12084:
URL: https://github.com/apache/tvm/pull/12084

   Variable size allocations like `T.allocate([10 * i])` were incorrectly
   moved up to where they were outside the scope of any variables in their
   size. For example:
   
   ```
   for i in range(8):
       T.allocate([10 * i])
       ...
   ```
   became
   ```
   T.allocate([10 * i])
   for i in range(8):
       ...
   ```
   
   Now variable sized allocations will use the constant upper bound on
   their size. With the above example:
   
   ```
   T.allocate([80])
   for i in range(8):
       ...
   ```
   
   Variable size allocations occur because earlier passes move constant
   size allocations to where the are accessed and update the allocation
   size to match the access size.
   
   @Lunderberg 
   


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