@juierror Thank you so much for the code.
With this code I got the following error: terminate called after throwing an instance of 'dmlc::Error' what(): [13:30:24] /home/sara/tvm/src/runtime/graph/graph_runtime.cc:181: --------------------------------------------------------------- An internal invariant was violated during the execution of TVM. Please read TVM's error reporting guidelines. More details can be found here: https://discuss.tvm.ai/t/error-reporting/7793. --------------------------------------------------------------- Check failed: data->ndim == data_out->ndim (2 vs. 3) : Stack trace: [bt] (0) /usr/local/lib/libtvm_runtime.so(+0xd8822) [0x7fb4042c1822] [bt] (1) /usr/local/lib/libtvm_runtime.so(tvm::runtime::GraphRuntime::CopyOutputTo(int, DLTensor*)+0x22f) [0x7fb4042c49cf] [bt] (2) /usr/local/lib/libtvm_runtime.so(+0xdbf41) [0x7fb4042c4f41] [bt] (3) ./lstm(+0x477a) [0x5588e761e77a] [bt] (4) /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7fb4033f2bf7] [bt] (5) ./lstm(+0x4f5a) [0x5588e761ef5a] Aborted (core dumped) So I changed it to: > int out_ndim = 2;\ > int64_t out_shape[2] = {100, 6}; and now it works. --- [Visit Topic](https://discuss.tvm.apache.org/t/tvm-deploy-a-c-example/9027/3) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/8e100d7a2e4f033a077e581d2c370dae7584fcea820be4ddbba21d9a6bfd4de6).