From 897cc14968e017b1f48f376f7f7cefc515c5fe88 Mon Sep 17 00:00:00 2001 From: Andreas Nevalainen Date: Wed, 28 Oct 2020 15:42:08 +0100 Subject: MLBEDSW-3222: Bias tensors in fast storage For IFM streamed cascades bias tensors are read several times. Moves these tensors to fast storage and add DMA commands. Change-Id: I630f6275986c1b5e3f126c925b11e22500fb1128 Signed-off-by: Andreas Nevalainen --- ethosu/vela/tensor.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ethosu/vela/tensor.py') diff --git a/ethosu/vela/tensor.py b/ethosu/vela/tensor.py index 49f93cd9..45518b4e 100644 --- a/ethosu/vela/tensor.py +++ b/ethosu/vela/tensor.py @@ -81,16 +81,17 @@ class TensorPurpose(enum.IntFlag): FeatureMap = 2 Scratch = 3 LUT = 4 - Size = 5 + FSBias = 5 + Size = 6 def display_name(self): - return ("Unknown", "Weights", "FeatureMap", "Scratch", "LUT", "Size")[self.value] + return ("Unknown", "Weights", "FeatureMap", "Scratch", "LUT", "FastStorageBias", "Size")[self.value] def identifier_name(self): - return ("unknown", "weights", "feature_map", "scratch", "lut", "size")[self.value] + return ("unknown", "weights", "feature_map", "scratch", "lut", "fast_storage_bias", "size")[self.value] def all(): - return (TensorPurpose.Weights, TensorPurpose.FeatureMap) + return (TensorPurpose.Weights, TensorPurpose.FeatureMap, TensorPurpose.FSBias) class TensorSubPurpose(enum.Enum): -- cgit v1.2.1