Thank you, @hht . It seems my target isn't constructed appropriately. But why 
it doesn't complain anything in the run before?

```
  File "relay_linearnet.py", line 32, in <module>
    print(tvm.target.Target.current(allow_none=False))

  File "/work/git_repo/tvm/python/tvm/target/target.py", line 103, in current
    return _ffi_api.GetCurrentTarget(allow_none)

  File "tvm/_ffi/_cython/./packed_func.pxi", line 308, in 
tvm._ffi._cy3.core.PackedFuncBase.__call__

  File "tvm/_ffi/_cython/./packed_func.pxi", line 243, in 
tvm._ffi._cy3.core.FuncCall

  File "tvm/_ffi/_cython/./packed_func.pxi", line 232, in 
tvm._ffi._cy3.core.FuncCall3

  File "tvm/_ffi/_cython/./base.pxi", line 159, in tvm._ffi._cy3.core.CALL

tvm._ffi.base.TVMError: Traceback (most recent call last):
  [bt] (6) /work/git_repo/tvm/build/libtvm.so(TVMFuncCall+0x95) [0x7f39251155b6]
  [bt] (5) 
/work/git_repo/tvm/build/libtvm.so(tvm::runtime::PackedFunc::CallPacked(tvm::runtime::TVMArgs,
 tvm::runtime::TVMRetValue*) const+0x30) [0x7f39246d655e]
  [bt] (4) /work/git_repo/tvm/build/libtvm.so(std::function<void 
(tvm::runtime::TVMArgs, 
tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs, 
tvm::runtime::TVMRetValue*) const+0x5a) [0x7f39246d6baa]
  [bt] (3) /work/git_repo/tvm/build/libtvm.so(+0x31a7fd4) [0x7f3924ac3fd4]
  [bt] (2) /work/git_repo/tvm/build/libtvm.so(+0x31a5f5d) [0x7f3924ac1f5d]
  [bt] (1) /work/git_repo/tvm/build/libtvm.so(tvm::Target::Current(bool)+0xec) 
[0x7f3924ac1eb2]
  [bt] (0) 
/work/git_repo/tvm/build/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x4a)
 [0x7f3924575370]
  File "/work/git_repo/tvm/src/target/target.cc", line 269
TVMError: Check failed: allow_not_defined: Target context required. Please set 
it by constructing a TargetContext
```





---
[Visit 
Topic](https://discuss.tvm.ai/t/schedule-not-registered-for-mytarget/6675/3) to 
respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/1da4e5757fff4befb8db4aa227622e16ab082ef332b26ce0449d2d00ef312ee7).

Reply via email to