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 2019/12/13 17:01:54 UTC

[GitHub] [incubator-tvm] SWu opened a new issue #4519: [Relay] VM executor doesn't work with higher order gradient function

SWu opened a new issue #4519: [Relay] VM executor doesn't work with higher order gradient function
URL: https://github.com/apache/incubator-tvm/issues/4519
 
 
   I'm using the 0.6.0 release of TVM, and functions generated by `relay.transform.gradient()` in higher order mode break with the following cryptic message when running in a VM executor:
   
   ```
   tvm._ffi.base.TVMError: Traceback (most recent call last):
     [bt] (8) /usr/tvm/build/libtvm.so(tvm::relay::ExprFunctor<void (tvm::relay::Expr const&)>::VisitExpr(tvm::relay::Expr const&)+0x8a) [0x7f95e58a7d0a]
     [bt] (7) /usr/tvm/build/libtvm.so(tvm::relay::vm::VMFunctionCompiler::VisitExpr_(tvm::relay::LetNode const*)+0x76) [0x7f95e5a27666]
     [bt] (6) /usr/tvm/build/libtvm.so(tvm::relay::ExprFunctor<void (tvm::relay::Expr const&)>::VisitExpr(tvm::relay::Expr const&)+0x8a) [0x7f95e58a7d0a]
     [bt] (5) /usr/tvm/build/libtvm.so(tvm::relay::vm::VMFunctionCompiler::VisitExpr_(tvm::relay::LetNode const*)+0x76) [0x7f95e5a27666]
     [bt] (4) /usr/tvm/build/libtvm.so(tvm::relay::ExprFunctor<void (tvm::relay::Expr const&)>::VisitExpr(tvm::relay::Expr const&)+0x8a) [0x7f95e58a7d0a]
     [bt] (3) /usr/tvm/build/libtvm.so(tvm::relay::vm::VMFunctionCompiler::VisitExpr_(tvm::relay::LetNode const*)+0x26) [0x7f95e5a27616]
     [bt] (2) /usr/tvm/build/libtvm.so(tvm::relay::ExprFunctor<void (tvm::relay::Expr const&)>::VisitExpr(tvm::relay::Expr const&)+0x8a) [0x7f95e58a7d0a]
     [bt] (1) /usr/tvm/build/libtvm.so(tvm::relay::ExprFunctor<void (tvm::relay::Expr const&)>::VisitExprDefault_(tvm::runtime::Object const*)+0x71) [0x7f95e58a61e1]
     [bt] (0) /usr/tvm/build/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x32) [0x7f95e5378a32]
     File "/usr/tvm/include/tvm/relay/expr_functor.h", line 120
   TVMError: Do not have a default for relay.RefCreate
   ```
   
   I'm not sure what exactly is missing in the VM implementation to support this; is there already an issue tracking what is needed for full support of executing Relay functions in the VM? In the meantime, should `relay.transform.gradient` default to `mode="first_order"` to reduce confusion by people trying to run those results in an executor?

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


With regards,
Apache Git Services