Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Golang Frontend expects wrong output size #8510

Closed
Shpionus opened this issue Jul 20, 2021 · 2 comments · Fixed by #8511
Closed

Bug: Golang Frontend expects wrong output size #8510

Shpionus opened this issue Jul 20, 2021 · 2 comments · Fixed by #8511

Comments

@Shpionus
Copy link
Contributor

I tested Golang Frontend for TVM Runtime tutorial (tvm/golang/README.md)
Running of ./complex raise and error:

$ ./complex 
TVM Version   : v0.8.dev0
DLPACK Version: v40

Global Functions:[tvm.graph_executor.create runtime.SystemLib runtime.config_threadpool runtime.DumpTypeTable runtime.ObjectPtrHash runtime.TVMArrayAllocWithScope runtime.module.loadfile_so runtime.ModuleLoadFromFile runtime.GetFFIString runtime.String runtime.ModuleGetImport runtime.MapItems runtime.Tuple runtime.Array runtime.MapCount runtime.ArraySize runtime.GetShapeTupleSize device_api.cpu runtime.GetADTSize runtime.ArrayGetItem runtime.MapSize runtime.ADT runtime.GetADTFields runtime.TVMSetStream runtime.GetDeviceAttr __tvm_set_device runtime.GetADTTag runtime.MapGetItem runtime.Map runtime.LoadParams runtime.ShapeTuple runtime.ModuleSaveToFile runtime.GetShapeTupleElem runtime.RuntimeEnabled runtime.SaveParams runtime.ModuleGetSource runtime.ModuleImportsSize runtime.ModuleGetTypeKey]
Module Imported:0xc000018140
Calling tvm.graph_executor.create
Graph executor Created
Input and Output Arrays allocated
Func load_params:0xc000018138
Module params loaded
Module input is set
Module Executed 
TVMError: 
---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------

  Check failed: data->shape[j] == data_out->shape[j] (1001 vs. 1000) : 
Stack trace:
  File "/mnt/store/Projects/tools/tvm/golang/..//src/runtime/graph_executor/graph_executor.cc", line 189
  [bt] (0) ./complex(tvm::runtime::Backtrace[abi:cxx11]()+0x31) [0x58e688]
  [bt] (1) ./complex(tvm::runtime::detail::LogFatal::Entry::Finalize()+0x46) [0x5b0834]
  [bt] (2) ./complex(tvm::runtime::detail::LogFatal::~LogFatal()+0x32) [0x5b06d4]
  [bt] (3) ./complex(tvm::runtime::GraphExecutor::CopyOutputTo(int, DLTensor*)+0x404) [0x5952c0]
  [bt] (4) ./complex() [0x598c80]
  [bt] (5) ./complex() [0x5a06c1]
  [bt] (6) ./complex(std::function<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const+0x5a) [0x5cb6a6]
  [bt] (7) ./complex(tvm::runtime::PackedFunc::CallPacked(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const+0x30) [0x5ba9c6]
  [bt] (8) ./complex(TVMFuncCall+0x95) [0x586f3f]
@tqchen
Copy link
Member

tqchen commented Jul 20, 2021

Thanks @Shpionus can you confirm if it is because the mobile net number of classes get updated, it is a bit strange to see 1001 classes. cc @srkreddy1238

@Shpionus
Copy link
Contributor Author

@comaniac comaniac linked a pull request Jul 21, 2021 that will close this issue
tqchen pushed a commit that referenced this issue Jul 27, 2021
ylc pushed a commit to ylc/tvm that referenced this issue Sep 29, 2021
ylc pushed a commit to ylc/tvm that referenced this issue Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants