diff options
author | Fredrik Svedberg <fredrik.svedberg@arm.com> | 2021-01-27 16:53:41 +0100 |
---|---|---|
committer | patrik.gustavsson <patrik.gustavsson@arm.com> | 2021-01-28 09:08:43 +0000 |
commit | e22ba8cb3090886b2d80a2df0e599dbf4cd7f483 (patch) | |
tree | c980972830ec15613ab291c7731968ae1a010609 /ethosu/vela/architecture_features.py | |
parent | 60232140a2927865d1f6f9bc48871df3b2bb135b (diff) | |
download | ethos-u-vela-e22ba8cb3090886b2d80a2df0e599dbf4cd7f483.tar.gz |
[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 <fredrik.svedberg@arm.com>
Change-Id: I275ec9187ffead1e96f2522ecbd658328fa4ef69
Diffstat (limited to 'ethosu/vela/architecture_features.py')
-rw-r--r-- | ethosu/vela/architecture_features.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 = { |