File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments