aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ethosu/vela/tflite_mapping.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ethosu/vela/tflite_mapping.py b/ethosu/vela/tflite_mapping.py
index ea9e8a36..20521e41 100644
--- a/ethosu/vela/tflite_mapping.py
+++ b/ethosu/vela/tflite_mapping.py
@@ -367,8 +367,12 @@ class OptionsSerializer:
if is_vector:
fun += "AsNumpy"
- a = deserialize(getattr(tfattrs, fun)())
- attrs[underscore_mem] = a
+ attr = getattr(tfattrs, fun)()
+ try:
+ attrs[underscore_mem] = deserialize(attr)
+ except TypeError:
+ print("Warning: {0} could not read attribute '{1}'.".format(self.name, underscore_mem))
+
return attrs
def serialize(self, builder, attrs):