diff options
author | Patrik Gustavsson <patrik.gustavsson@arm.com> | 2020-04-30 08:57:23 +0200 |
---|---|---|
committer | Tim Hall <tim.hall@arm.com> | 2020-06-18 17:53:52 +0100 |
commit | cf72890e5dd89dada3189816a61d174b984086bd (patch) | |
tree | 5693bf04ed8a1d5084ff521163b54a2730ef3917 /ethosu/vela/compiler_driver.py | |
parent | 0538a77dfe65b66efedc4e4b92d851a5aeb46ea4 (diff) | |
download | ethos-u-vela-cf72890e5dd89dada3189816a61d174b984086bd.tar.gz |
MLBEDSW-1998: Add support for new_axis_mask
-Added support for new_axis_mask
-Added support for more than 1 bit set in new/shrink_axis mask
-Added checks for strided slice in supported operator check
-Added assert if nothing has been put on NPU
Change-Id: I66e2d04784f14d7ad82371f5d649a455d576a818
Signed-off-by: Patrik Gustavsson <patrik.gustavsson@arm.com>
Diffstat (limited to 'ethosu/vela/compiler_driver.py')
-rw-r--r-- | ethosu/vela/compiler_driver.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethosu/vela/compiler_driver.py b/ethosu/vela/compiler_driver.py index 7f8c4ca4..db669ac7 100644 --- a/ethosu/vela/compiler_driver.py +++ b/ethosu/vela/compiler_driver.py @@ -141,6 +141,8 @@ def compiler_driver(nng, arch, options, scheduler_options): sg, permanent_storage, ignore_subgraph_input_output_tensors=True, lr_graph=lr_graph_flash ) + assert len(nng.subgraphs) > 1, "Error: No operators can be hardware accelerated; cancelling compilation" + # Allocate all Npu constant tensors to the first Npu subgraph since it is # processed first during serialization into tensors first_npu_sg = nng.subgraphs[1] |