Skip to content

Commit

Permalink
[microTVM] Fix Stack Size Issue for Zephyr AOT Demo on Physical Hardw…
Browse files Browse the repository at this point in the history
…are (apache#8453)

* increase size

* add --unpacked-api=1 option

* format
  • Loading branch information
mehrdadh authored and ylc committed Sep 29, 2021
1 parent 74baf1c commit ee49bd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/micro/zephyr/test_zephyr_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ def test_tflite(platform, west_cmd, skip_build, tvm_debug):
tflite_model, shape_dict={"input_1": input_shape}, dtype_dict={"input_1 ": "float32"}
)

target = tvm.target.target.micro(model, options=["-link-params=1", "--executor=aot"])
target = tvm.target.target.micro(
model, options=["-link-params=1", "--executor=aot", "--unpacked-api=1"]
)
with tvm.transform.PassContext(opt_level=3, config={"tir.disable_vectorize": True}):
lowered = relay.build(relay_mod, target, params=params)

Expand Down

0 comments on commit ee49bd0

Please sign in to comment.