diff options
Diffstat (limited to 'ethosu/vela')
-rw-r--r-- | ethosu/vela/architecture_features.py | 1 | ||||
-rw-r--r-- | ethosu/vela/mark_tensors.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ethosu/vela/architecture_features.py b/ethosu/vela/architecture_features.py index b59122ea..f1cabdd1 100644 --- a/ethosu/vela/architecture_features.py +++ b/ethosu/vela/architecture_features.py @@ -243,6 +243,7 @@ Note the difference between ArchitectureFeatures and CompilerOptions self.tensor_storage_mem_area = { # permanent mem_area + TensorPurpose.Unknown: MemArea.Unknown, TensorPurpose.Weights: self.permanent_storage_mem_area, TensorPurpose.FeatureMap: self.feature_map_storage_mem_area, } diff --git a/ethosu/vela/mark_tensors.py b/ethosu/vela/mark_tensors.py index 5231e860..b557f903 100644 --- a/ethosu/vela/mark_tensors.py +++ b/ethosu/vela/mark_tensors.py @@ -314,6 +314,8 @@ def mark_tensor_format(nng, arch, verbose_tensor_format=False): fmt = arch.default_feature_map_format elif tens.purpose == TensorPurpose.Weights: fmt = arch.default_weight_format + elif tens.purpose == TensorPurpose.Unknown: + fmt = TensorFormat.Unknown else: assert 0, "unknown tensor purpose %s" % (tens.purpose,) return fmt |