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/01/27 10:16:53 UTC

[GitHub] [tvm] marxin commented on issue #6832: TVM 0.7.0 - Tests fail with `Check failed: reg != nullptr: AttributeError: Operator reshape is not registered`

marxin commented on issue #6832:
URL: https://github.com/apache/tvm/issues/6832#issuecomment-768182846


   Well I think the problem is Static Initialization Order Fiasco:
   https://en.cppreference.com/w/cpp/language/siof
   
   which is only exposed by LTO.
   
   ```
   static const Op& with_funcid_op = Op::Get("annotation.with_funcid"); 
   ```
   
   is called before `OpRegistry::Global()` is initialized if I see correctly.
   Note that without LTO optimization, you are lucky based on the order of `.o` files provided on the linker command line.


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