aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tensor.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/tensor.py')
-rw-r--r--ethosu/vela/tensor.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/ethosu/vela/tensor.py b/ethosu/vela/tensor.py
index 093e8771..fb877ca8 100644
--- a/ethosu/vela/tensor.py
+++ b/ethosu/vela/tensor.py
@@ -111,15 +111,20 @@ class TensorPurpose(enum.IntFlag):
Weights = 1
FeatureMap = 2
Scratch = 3
- LUT = 4
- FSBias = 5
- Size = 6
+ ScratchFast = 4
+ LUT = 5
+ FSBias = 6
+ Size = 7
def display_name(self) -> str:
- return ("Unknown", "Weights", "FeatureMap", "Scratch", "LUT", "FastStorageBias", "Size")[self.value]
+ return ("Unknown", "Weights", "FeatureMap", "Scratch", "ScratchFast", "LUT", "FastStorageBias", "Size")[
+ self.value
+ ]
def identifier_name(self) -> str:
- return ("unknown", "weights", "feature_map", "scratch", "lut", "fast_storage_bias", "size")[self.value]
+ return ("unknown", "weights", "feature_map", "scratch", "scratch_fast", "lut", "fast_storage_bias", "size")[
+ self.value
+ ]
@staticmethod
def all():