Skip to content

Commit

Permalink
[microTVM][Tutorial] Fix micro_aot and micro_autotune tutorials (#13513)
Browse files Browse the repository at this point in the history
Added config_main_stack_size to autotune since running graph debugger requires more workspace. Also added to micro_aot because of KWS model.
Also removed west_cmd option in tutorial because of #13377
  • Loading branch information
mehrdadh authored Nov 29, 2022
1 parent b9f89a2 commit b587e33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion gallery/how_to/work_with_microtvm/micro_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@

if use_physical_hw:
template_project_path = pathlib.Path(tvm.micro.get_microtvm_template_projects("zephyr"))
project_options = {"project_type": "host_driven", "board": BOARD, "serial_number": SERIAL}
project_options = {
"project_type": "host_driven",
"board": BOARD,
"serial_number": SERIAL,
"config_main_stack_size": 4096,
}

temp_dir = tvm.contrib.utils.tempdir()
generated_project_dir = temp_dir / "project"
Expand Down
5 changes: 2 additions & 3 deletions gallery/how_to/work_with_microtvm/micro_autotune.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
template_project_dir=pathlib.Path(tvm.micro.get_microtvm_template_projects("zephyr")),
project_options={
"board": BOARD,
"west_cmd": "west",
"verbose": False,
"project_type": "host_driven",
"serial_number": SERIAL,
Expand Down Expand Up @@ -222,10 +221,10 @@
temp_dir / "project",
{
"board": BOARD,
"west_cmd": "west",
"verbose": False,
"project_type": "host_driven",
"serial_number": SERIAL,
"config_main_stack_size": 4096,
},
)

Expand Down Expand Up @@ -266,10 +265,10 @@
temp_dir / "project",
{
"board": BOARD,
"west_cmd": "west",
"verbose": False,
"project_type": "host_driven",
"serial_number": SERIAL,
"config_main_stack_size": 4096,
},
)

Expand Down

0 comments on commit b587e33

Please sign in to comment.