Skip to content

Commit 5105a01

Browse files
committed
Address CR comments
Signed-off-by: Erik Lundell <[email protected]> Change-Id: If733617374683765bf1d49ff8f64e4c7ab9bc42d
1 parent d5dcc26 commit 5105a01

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

backends/arm/arm_backend.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@ def preprocess( # noqa: C901
284284
# any checking of compatibility.
285285
dbg_fail(node, tosa_graph, artifact_path)
286286

287+
if len(input_order) > 0:
288+
if input_count != len(input_order):
289+
raise RuntimeError(
290+
"The rank of the input order is not equal to amount of input tensors"
291+
)
292+
287293
if artifact_path:
288294
tag = _get_first_delegation_tag(graph_module)
289295
dbg_tosa_dump(

backends/arm/test/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_tosa_compile_spec_unbuilt(
7676
if not custom_path:
7777
custom_path = maybe_get_tosa_collate_path()
7878

79-
if custom_path is not None and not os.path.exists(custom_path):
79+
if custom_path is not None:
8080
os.makedirs(custom_path, exist_ok=True)
8181
compile_spec_builder = (
8282
ArmCompileSpecBuilder()

examples/arm/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function setup_tosa_reference_model() {
226226

227227
# reference_model flatbuffers version clashes with Vela.
228228
# go with Vela's since it newer.
229-
# Could cause issues down the line, beware..
229+
# Vela's flatbuffer requirement is expected to loosen, then remove this. MLETORCH-565
230230
pip install tosa-tools@git+${tosa_reference_model_url}@${tosa_reference_model_rev} --no-dependencies flatbuffers
231231

232232
}

0 commit comments

Comments
 (0)