SKKU-ESLAB / Auto-Compression

Automatic DNN compression tool with various model compression and neural architecture search techniques
MIT License
20 stars 20 forks source link

[uTVM] basic example is not woking #31

Open asdfrv100 opened 1 year ago

asdfrv100 commented 1 year ago

hi. thank you for your effort.

I have trouble in testing example code.

//////////////////////////(envireonments) microtvm 0.9.0 (in VirtualBox) Ubuntu 18.04.06 LTS Board nucleo_f746zg

//////////////////////////(error code) this code is not workng

https://tvm.apache.org/docs/how_to/work_with_microtvm/micro_aot.html#sphx-glr-how-to-work-with-microtvm-micro-aot-py

In this code, I just changed

from use_physical_hw = bool(os.getenv("TVM_MICRO_USE_HW"))

to use_physical_hw = True

other graph executer code is working well(next link code) https://tvm.apache.org/docs/how_to/work_with_microtvm/micro_tflite.html#sphx-glr-how-to-work-with-microtvm-micro-tflite-py

//////////////////////////(error message)

[ 92%] Built target zephyr_pre0 Consolidate compiler generated dependencies of target linker_zephyr_prebuilt_script_target [ 93%] Built target linker_zephyr_prebuilt_script_target Consolidate compiler generated dependencies of target zephyr_pre1 [ 96%] Built target zephyr_pre1 Consolidate compiler generated dependencies of target linker_zephyr_final_script_target [ 96%] Built target linker_zephyr_final_script_target Consolidate compiler generated dependencies of target zephyr_final [100%] Built target zephyr_final -- west flash: using runner openocd -- runners.openocd: Flashing file: /tmp/tmpu6q8dv9c/project/build/zephyr/zephyr.hex Open On-Chip Debugger 0.11.0+dev-00244-g7e3dbbbe2 (2021-11-18-07:14) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : DEPRECATED target event trace-config Info : clock speed 2000 kHz Info : STLINK V2J40M27 (API v2) VID:PID 0483:374B Info : Target voltage: 3.249376 Warn : Silicon bug: single stepping may enter pending exception handler! Info : stm32f7x.cpu: hardware has 8 breakpoints, 4 watchpoints Info : starting gdb server for stm32f7x.cpu on 3333 Info : Listening on port 3333 for gdb connections TargetName Type Endian TapName State

0* stm32f7x.cpu hla_target little stm32f7x.cpu running

Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x08003224 msp: 0x20010f80 Info : device id = 0x10016449 Info : flash size = 1024 kbytes auto erase enabled wrote 131072 bytes from file /tmp/tmpu6q8dv9c/project/build/zephyr/zephyr.hex in 5.061849s (25.287 KiB/s)

Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x08003224 msp: 0x20010f80 verified 119768 bytes in 0.761735s (153.545 KiB/s)

Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz shutdown command invoked Built target flash [07:36:43] /home/minusjet/tvm/src/runtime/micro/micro_session.cc:368: remote: DumpMetadata: [07:36:43] /home/minusjet/tvm/src/runtime/micro/micro_session.cc:368: remote: mod_name=tvmgen_default [07:36:43] /home/minusjet/tvm/src/runtime/micro/micro_session.cc:368: remote: version=1 [07:36:43] /home/minusjet/tvm/src/runtime/micro/micro_session.cc:368: remote: num_inputs=1 [07:36:43] /home/minusjet/tvm/src/runtime/micro/micro_session.cc:368: remote: num_outputs=1 [07:36:43] /home/minusjet/tvm/src/runtime/micro/micro_session.cc:368: remote: num_workspace_pools=0 [07:36:43] /home/minusjet/tvm/src/runtime/micro/micro_session.cc:368: remote: num_constant_pools=0

Traceback (most recent call last): File "oyjhostaot.py", line 142, in aot_executor.run() File "/home/minusjet/tvm/python/tvm/runtime/executor/aot_executor.py", line 113, in run self._run() File "/home/minusjet/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 237, in call raise get_last_ffi_error() tvm._ffi.base.TVMError: MicroSessionTimeoutError: failed to read reply message after timeout 5s

Please help me.

Thank you.