From aeef0ca64b3a6debd26f67ef05fbce10d1a9e9e0 Mon Sep 17 00:00:00 2001 From: Mehrdad Hessar Date: Mon, 2 Aug 2021 14:11:52 -0700 Subject: [PATCH 1/4] add hex indicator to message --- apps/microtvm/zephyr/host_driven/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/microtvm/zephyr/host_driven/src/main.c b/apps/microtvm/zephyr/host_driven/src/main.c index 5b93d647eb00..43064e804193 100644 --- a/apps/microtvm/zephyr/host_driven/src/main.c +++ b/apps/microtvm/zephyr/host_driven/src/main.c @@ -100,7 +100,7 @@ size_t TVMPlatformFormatMessage(char* out_buf, size_t out_buf_size_bytes, const // Called by TVM when an internal invariant is violated, and execution cannot continue. void TVMPlatformAbort(tvm_crt_error_t error) { - TVMLogf("TVMError: %x", error); + TVMLogf("TVMError: 0x%x", error); sys_reboot(SYS_REBOOT_COLD); #ifdef CONFIG_LED gpio_pin_set(led0_pin, LED0_PIN, 1); From d576c1056df76abb0904ce24eba796e7e70accab Mon Sep 17 00:00:00 2001 From: Mehrdad Hessar Date: Mon, 2 Aug 2021 18:22:02 -0700 Subject: [PATCH 2/4] add pytest skip --- tests/micro/zephyr/test_zephyr_aot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/micro/zephyr/test_zephyr_aot.py b/tests/micro/zephyr/test_zephyr_aot.py index 48bdc5d3a283..0b013b88dae6 100644 --- a/tests/micro/zephyr/test_zephyr_aot.py +++ b/tests/micro/zephyr/test_zephyr_aot.py @@ -155,6 +155,9 @@ def _get_message(fd, expr: str): @tvm.testing.requires_micro def test_tflite(platform, west_cmd, skip_build, tvm_debug): + if platform not in ["host", "mps2_an521", "nrf5340dk", "stm32l4r5zi_nucleo", "zynq_mp_r5"]: + pytest.skip(msg="Model does not fit.") + """Testing a TFLite model.""" model, zephyr_board = PLATFORMS[platform] input_shape = (1, 32, 32, 3) From c4d5080373ad3912aab05a5d0ffc14b35077dc22 Mon Sep 17 00:00:00 2001 From: Mehrdad Hessar Date: Tue, 3 Aug 2021 09:58:35 -0700 Subject: [PATCH 3/4] trigger From 96133109f43dbe1081a1fa97afba40e3b3b733f5 Mon Sep 17 00:00:00 2001 From: Mehrdad Hessar Date: Wed, 4 Aug 2021 09:20:27 -0700 Subject: [PATCH 4/4] trigger