areusch commented on PR #14665:
URL: https://github.com/apache/tvm/pull/14665#issuecomment-1527949780

   @yelite ah gotcha. the purpose here is to be able to map the results of the 
profiler to the frontend layers that are computed in a given PackedFunc. there 
are some other reasons you also might want this mapping, such as the TVM 
Explorer RFC. 
   
   > Just for my own understanding, how does the MultiSpan approach ensure the 
span being passed along during transformation? Does it rely on the pass to copy 
span when creating a new function out of the old one?
   
   Right--the main thing is that if a Span isn't propagated, at this level the 
solution is either to simply copy the span (if mutating `main()` and 
replacing/updating the CallNode or drop it if doing that doesn't make sense). 
So there's a clear set of rules that everyone in the repo can follow and those 
follow the IR. If tracking things out-of-band, then it kind of brings up the 
question of why a particular pass should have to care about the out-of-band 
tracking info.


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