Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh committed Aug 10, 2021
1 parent f6bb1e1 commit 506f9ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
12 changes: 3 additions & 9 deletions tests/micro/zephyr/test_zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ def test_relay(temp_dir, platform, west_cmd, tvm_debug):
with tvm.transform.PassContext(opt_level=3, config={"tir.disable_vectorize": True}):
mod = tvm.relay.build(func, target=target)

with _make_session(
temp_dir, zephyr_board, west_cmd, mod, build_config
) as session:
with _make_session(temp_dir, zephyr_board, west_cmd, mod, build_config) as session:
graph_mod = tvm.micro.create_local_graph_executor(
mod.get_graph_json(), session.get_system_lib(), session.device
)
Expand Down Expand Up @@ -255,9 +253,7 @@ def test_onnx(temp_dir, platform, west_cmd, tvm_debug):
lowered = relay.build(relay_mod, target, params=params)
graph = lowered.get_graph_json()

with _make_session(
temp_dir, zephyr_board, west_cmd, lowered, build_config
) as session:
with _make_session(temp_dir, zephyr_board, west_cmd, lowered, build_config) as session:
graph_mod = tvm.micro.create_local_graph_executor(
graph, session.get_system_lib(), session.device
)
Expand All @@ -284,9 +280,7 @@ def check_result(
with tvm.transform.PassContext(opt_level=3, config={"tir.disable_vectorize": True}):
mod = tvm.relay.build(relay_mod, target=target)

with _make_session(
temp_dir, zephyr_board, west_cmd, mod, build_config
) as session:
with _make_session(temp_dir, zephyr_board, west_cmd, mod, build_config) as session:
rt_mod = tvm.micro.create_local_graph_executor(
mod.get_graph_json(), session.get_system_lib(), session.device
)
Expand Down
4 changes: 1 addition & 3 deletions tests/micro/zephyr/test_zephyr_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
PLATFORMS = conftest.PLATFORMS


def _build_project(
temp_dir, zephyr_board, west_cmd, mod, build_config, extra_files_tar=None
):
def _build_project(temp_dir, zephyr_board, west_cmd, mod, build_config, extra_files_tar=None):
template_project_dir = (
pathlib.Path(__file__).parent
/ ".."
Expand Down

0 comments on commit 506f9ba

Please sign in to comment.