ekalda commented on PR #13428:
URL: https://github.com/apache/tvm/pull/13428#issuecomment-1326569004

   > I suppose checking for the equality of `allocated_size` and 
`workspace_size` in test_networks.py is incorrect as when using cascader with 
enabled striping a proposal is selected with condition `proposal.memory_usage < 
workspace_size`, `allocated_size` and `proposal.memory_usage` are calculated 
differently (unified static memory planning is used to calculate 
`allocated_size` and `proposal.memory_usage` is calculated as the sum of all 
tensors, taking into account striping for intermediate tensors)
   
   Yes, I think you are right, thinking about it, we can't really check for the 
equality of `allocated_size` and `workspace_size`. I suppose when we test for 
`allocated_size < workspace_size` we are checking that the Proposal we chose 
(based on `workspace_size`) still fits into the `workspace_size` once we have 
done memory planning on the resulting graph.


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