[MLBEDSW-3348] Fix Reshape operator fails with TypeError during deserialization

Fixed Reshape operator fails with TypeError during deserialization
in some cases.

Signed-off-by: Fredrik Svedberg <fredrik.svedberg@arm.com>
Change-Id: Ib34142f64295de4524e52a7a28eb36e503047bc0
diff --git a/ethosu/vela/tflite_mapping.py b/ethosu/vela/tflite_mapping.py
index ea9e8a3..20521e4 100644
--- a/ethosu/vela/tflite_mapping.py
+++ b/ethosu/vela/tflite_mapping.py
@@ -367,8 +367,12 @@
                 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):