@areusch
I tried to reduce the model size, however I am getting this error
SessionTerminatedError Traceback (most recent call last) in 6 7 # Set the model parameters using the lowered parameters produced by
relay.build. ----> 8 graph_mod.set_input(**c_params) 9 10 #~/tvm/python/tvm/contrib/graph_runtime.py in set_input(self, key, value, **params) 192 val = self._get_input(k) 193 if val: → 194 self._get_input(k).copyfrom(params[k]) 195 196 def run(self, **input_dict):
~/tvm/python/tvm/runtime/ndarray.py in copyfrom(self, source_array) 123 “”" 124 if isinstance(source_array, NDArrayBase): → 125 source_array.copyto(self) 126 return self 127
~/tvm/python/tvm/runtime/ndarray.py in copyto(self, target) 193 “”" 194 if isinstance(target, NDArrayBase): → 195 return self._copyto(target) 196 if isinstance(target, TVMContext): 197 res = empty(self.shape, self.dtype, target)
~/tvm/python/tvm/_ffi/_ctypes/ndarray.py in _copyto(self, target_nd) 88 def _copyto(self, target_nd): 89 “”“Internal function that implements copy to target ndarray.”“” —> 90 check_call(_LIB.TVMArrayCopyFromTo(self.handle, target_nd.handle, None)) 91 return target_nd 92
~/tvm/python/tvm/_ffi/base.py in check_call(ret) 342 “”" 343 if ret != 0: → 344 raise get_last_ffi_error()
SessionTerminatedError: Traceback (most recent call last): [bt] (8) /tvm/build/libtvm.so(tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::function<void (tvm::runtime::TVMArgs)>)+0x2ff) [0x7f860a65ef6f] [bt] (7) /tvm/buil/libtvm.so(tvm::runtime::micro_rpc::MicroTransportChannel::Recv(void*, unsigned long)+0x2e6) [0x7f860a6a84f6] [bt] (6) /tvm/build/libtvm.so(tvm::runtime::micro_rpc::MicroTransportChannel::ReceiveUntil(tvm::runtime::TypedPackedFunc<bool ()>, std::chrono::duration<long, std::ratio<1l, 1000000l> >)+0x361) [0x7f860a6a6c81] [bt] (5)/tvm/build/libtvm.so(tvm::runtime::micro_rpc::Unframer::Write(unsigned char const, unsigned long, unsigned long*)+0xa3) [0x7f860a6d315d] [bt] (4) /tvm/build/libtvm.so(tvm::runtime::micro_rpc::Unframer::FindCrcEnd()+0x8d) [0x7f860a6d38b3] [bt] (3) /tvm/build/libtvm.so(tvm::runtime::micro_rpc::Session::SessionReceiver::PacketDone(bool)+0x101) [0x7f860a6d44c7] [bt] (2) /tvm/build/libtvm.so(tvm::runtime::micro_rpc::Session::OnSessionTerminatedMessage()+0x2b) [0x7f860a6d4a49] [bt] (1) /tvm/build/libtvm.so(tvm::runtime::micro_rpc::MicroTransportChannel::HandleMessageReceived(tvm::runtime::micro_rpc::MessageType, tvm::runtime::micro_rpc::FrameBuffer*)+0x332) [0x7f860a6a6612] [bt] (0) /tvm/build/libtvm.so(+0x13fdd02) [0x7f860a6a4d02] File “/tvm/src/runtime/micro/micro_session.cc”, line 347 SessionTerminatedError: remote device terminated connection
This seems to be some different error from earlier.