aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/npu_serialisation.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/npu_serialisation.py')
-rw-r--r--ethosu/vela/npu_serialisation.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/ethosu/vela/npu_serialisation.py b/ethosu/vela/npu_serialisation.py
index a11907b2..fc6b96b7 100644
--- a/ethosu/vela/npu_serialisation.py
+++ b/ethosu/vela/npu_serialisation.py
@@ -72,16 +72,6 @@ def serialise_npu_subgraph_into_tensors(nng, sg, arch, scratch_tens, scratch_fas
command_stream_size_bytes = len(payload_bytes)
- # Adjust the bits per element calculation to exclude metadata generated by Vela
- nng.total_size[flash_area] = nng.total_size.get(flash_area, 0) - flash_size - command_stream_size_bytes
- nng.total_elements[flash_area] = nng.total_elements.get(flash_area, 0) - flash_size - command_stream_size_bytes
- nng.total_size[scratch_area] = nng.total_size.get(scratch_area, 0) - scratch_size
- nng.total_elements[scratch_area] = nng.total_elements.get(scratch_area, 0) - scratch_size
-
- if scratch_area != scratch_fast_area:
- nng.total_size[scratch_fast_area] = nng.total_size.get(scratch_fast_area, 0)
- nng.total_elements[scratch_fast_area] = nng.total_elements.get(scratch_fast_area, 0)
-
if flash_tens == scratch_tens is None:
# First Npu subgraph, create scratch and flash tensors
sg.scratch_tensor = make_memory_tensor(