diff options
author | Tim Hall <tim.hall@arm.com> | 2020-06-17 14:53:11 +0100 |
---|---|---|
committer | Tim Hall <tim.hall@arm.com> | 2020-06-18 17:53:52 +0100 |
commit | c8310b1432f7a77df3c95e8ecf8248c8a953b411 (patch) | |
tree | eaddfe6ae80db3c85ddca824e0fc70739d05a9d5 /ethosu/vela/weight_compressor.py | |
parent | 10a6618784aae35de389e0291fd2d78cbfa03bb7 (diff) | |
download | ethos-u-vela-c8310b1432f7a77df3c95e8ecf8248c8a953b411.tar.gz |
MLBEDSW-2528: MLCE-219: Custom operator pass through
- Fixed custom operator pass through
- Added error printing functions for operators and tensor
- Minor cleanup of custom exception handling
Signed-off-by: Tim Hall <tim.hall@arm.com>
Change-Id: Idf295df1e4c544381dc480244d880c32fb285e38
Diffstat (limited to 'ethosu/vela/weight_compressor.py')
-rw-r--r-- | ethosu/vela/weight_compressor.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ethosu/vela/weight_compressor.py b/ethosu/vela/weight_compressor.py index c5f4ce10..77220a93 100644 --- a/ethosu/vela/weight_compressor.py +++ b/ethosu/vela/weight_compressor.py @@ -381,15 +381,6 @@ def calc_scales_and_pack_biases(tens, arch, oc_quantum, rescale_for_faf=False): def update_pass_weight_and_scale_tensors(nng, arch): - def find_npu_usage_of_tensor(tens): - # TODO: This function is identical to the one in mark_tensors.py. A common version should be used. - for op in tens.consumers(): - if op.type == "DMA": - return find_npu_usage_of_tensor(op.outputs[0]) - if "npu_block_type" in op.attrs: - return op.attrs["npu_block_type"] - return NpuBlockType.Default - for sg in nng.subgraphs: for ps in sg.passes: tens = ps.weight_tensor |