aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite_mapping.py
diff options
context:
space:
mode:
authorRickard Bolin <rickard.bolin@arm.com>2022-12-19 12:56:17 +0000
committerRickard Bolin <rickard.bolin@arm.com>2022-12-22 10:24:40 +0000
commit5fdcf1753fc803a6baeb8eb1fc97c7df5a6e95ac (patch)
tree77aed7342fdb198b480b16fbd6355cd2d4ba8df3 /ethosu/vela/tflite_mapping.py
parentaf1d443159ce12cc03a5721a5db0150ec39d8489 (diff)
downloadethos-u-vela-5fdcf1753fc803a6baeb8eb1fc97c7df5a6e95ac.tar.gz
MLBEDSW-7203: Data type alias deprecations
Deprecation of some data type aliases in NumPy version 1.24.0 caused Vela to crash when using Python version 3.8 or above. Replaced the deprecated aliases. Signed-off-by: Rickard Bolin <rickard.bolin@arm.com> Change-Id: Ide167ee864a340194ec5e69537c8718192c78ace
Diffstat (limited to 'ethosu/vela/tflite_mapping.py')
-rw-r--r--ethosu/vela/tflite_mapping.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/tflite_mapping.py b/ethosu/vela/tflite_mapping.py
index dd52a3ac..8ec01737 100644
--- a/ethosu/vela/tflite_mapping.py
+++ b/ethosu/vela/tflite_mapping.py
@@ -201,7 +201,7 @@ datatype_map_numpy = {
TensorType.FLOAT16: np.float16,
TensorType.FLOAT32: np.float32,
TensorType.FLOAT64: np.float64,
- TensorType.BOOL: np.bool,
+ TensorType.BOOL: bool,
TensorType.COMPLEX64: np.complex64,
TensorType.COMPLEX128: np.complex128,
TensorType.STRING: np.uint8,