From e22ba8cb3090886b2d80a2df0e599dbf4cd7f483 Mon Sep 17 00:00:00 2001 From: Fredrik Svedberg Date: Wed, 27 Jan 2021 16:53:41 +0100 Subject: [MLBEDSW-3891] Fix reading back in an ethos-u custom op Fixed assertion when reading back in an ethos-u custom op. Signed-off-by: Fredrik Svedberg Change-Id: I275ec9187ffead1e96f2522ecbd658328fa4ef69 --- ethosu/vela/architecture_features.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ethosu/vela/architecture_features.py') diff --git a/ethosu/vela/architecture_features.py b/ethosu/vela/architecture_features.py index 33e7adda..f7d5fd6a 100644 --- a/ethosu/vela/architecture_features.py +++ b/ethosu/vela/architecture_features.py @@ -275,6 +275,8 @@ class ArchitectureFeatures: TensorPurpose.Weights: self.permanent_storage_mem_area, TensorPurpose.FeatureMap: self.feature_map_storage_mem_area, TensorPurpose.LUT: self.permanent_storage_mem_area, + TensorPurpose.Scratch: self.feature_map_storage_mem_area, + TensorPurpose.ScratchFast: self.fast_storage_mem_area, } self.tensor_storage_mem_type = { @@ -282,6 +284,8 @@ class ArchitectureFeatures: TensorPurpose.Weights: MemType.Permanent_NPU, TensorPurpose.FeatureMap: MemType.Scratch, TensorPurpose.LUT: MemType.Scratch, + TensorPurpose.Scratch: MemType.Scratch, + TensorPurpose.ScratchFast: MemType.Scratch_fast, } self.min_block_sizes = { -- cgit v1.2.1