aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tensor.py
diff options
context:
space:
mode:
authorAndreas Nevalainen <andreas.nevalainen@arm.com>2020-10-28 15:42:08 +0100
committerpatrik.gustavsson <patrik.gustavsson@arm.com>2020-11-11 08:34:16 +0000
commit897cc14968e017b1f48f376f7f7cefc515c5fe88 (patch)
tree27d17a59f1529c1ed0b1cc59e60438ee7f5d29d2 /ethosu/vela/tensor.py
parent73320a48dfa711f5938b0e3d8e03b9858558b899 (diff)
downloadethos-u-vela-897cc14968e017b1f48f376f7f7cefc515c5fe88.tar.gz
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 <andreas.nevalainen@arm.com>
Diffstat (limited to 'ethosu/vela/tensor.py')
-rw-r--r--ethosu/vela/tensor.py9
1 files changed, 5 insertions, 4 deletions
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):