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

[microTVM][Zephyr] Add skip for AOT test #8628

Merged
merged 6 commits into from
Aug 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/microtvm/zephyr/host_driven/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions tests/micro/zephyr/test_zephyr_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,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)
Expand Down