Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh committed May 19, 2021
1 parent 961a279 commit 5570e0b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion apps/microtvm/zephyr/demo_runtime/zephyr_aot/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ void main(void) {
TVMPlatformAbort(kTvmErrorPlatformCheckFailure);
}

// int8_t* results = (int8_t*)(&output_data);
size_t max_ind = -1;
float max_val = -FLT_MAX;
for (size_t i = 0; i < output_data_len; i++) {
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/micro/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_standalone_crt_lib(name: str) -> str:


def get_runtime_libs(runtime: str) -> str:
"""Return abspath to all CRT directories in link order which contain
"""Return abspath to all CRT directories in link order which contain
source (i.e. not header) files.
"""
if runtime == "host-driven":
Expand Down
5 changes: 3 additions & 2 deletions tests/micro/zephyr/test_zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ def _make_session(model, target, zephyr_board, west_cmd, mod):
parent_dir = os.path.dirname(__file__)
filename = os.path.splitext(os.path.basename(__file__))[0]
prev_build = f"{os.path.join(parent_dir, 'archive')}_{filename}_{zephyr_board}_last_build.micro"
workspace_root = (
os.path.join(f"{os.path.join(parent_dir, 'workspace')}_{filename}_{zephyr_board}", datetime.datetime.now().strftime("%Y-%m-%dT%H-%M-%S"))
workspace_root = os.path.join(
f"{os.path.join(parent_dir, 'workspace')}_{filename}_{zephyr_board}",
datetime.datetime.now().strftime("%Y-%m-%dT%H-%M-%S"),
)
workspace_parent = os.path.dirname(workspace_root)
if not os.path.exists(workspace_parent):
Expand Down
5 changes: 3 additions & 2 deletions tests/micro/zephyr/test_zephyr_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def _build_session_kw(model, target, zephyr_board, west_cmd, mod, runtime_path):
parent_dir = os.path.dirname(__file__)
filename = os.path.splitext(os.path.basename(__file__))[0]
prev_build = f"{os.path.join(parent_dir, 'archive')}_{filename}_{zephyr_board}_last_build.micro"
workspace_root = (
os.path.join(f"{os.path.join(parent_dir, 'workspace')}_{filename}_{zephyr_board}", datetime.datetime.now().strftime("%Y-%m-%dT%H-%M-%S"))
workspace_root = os.path.join(
f"{os.path.join(parent_dir, 'workspace')}_{filename}_{zephyr_board}",
datetime.datetime.now().strftime("%Y-%m-%dT%H-%M-%S"),
)
workspace_parent = os.path.dirname(workspace_root)
if not os.path.exists(workspace_parent):
Expand Down

0 comments on commit 5570e0b

Please sign in to comment.