junrushao1994 commented on pull request #5585:
URL: https://github.com/apache/incubator-tvm/pull/5585#issuecomment-631147088


   Given the fact that `dmlc::LogMessageFatal` causes significant amount of 
increase in stack size, we investigated into dmlc-core. The initial results 
shows that we can directly reduce (upper bound of) the stack frame size from 
4720 to 560, if we change `dmlc::LogMessageFatal` to 
`std::unique_ptr<dmlc::LogMessageFatal>`.
   
   ```
   # master
   virtual tvm::relay::Expr 
tvm::relay::CommonSubexprEliminator::VisitExpr_(const tvm::relay::CallNode*)    
    1072    static
   # before patch dmlc-core
   virtual tvm::relay::Expr 
tvm::relay::CommonSubexprEliminator::VisitExpr_(const tvm::relay::CallNode*)    
    4720    dynamic,bounded
   # after patch dmlc-core
   virtual tvm::relay::Expr 
tvm::relay::CommonSubexprEliminator::VisitExpr_(const tvm::relay::CallNode*)    
    560     dynamic,bounded
   ```


----------------------------------------------------------------
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:
[email protected]


Reply via email to