aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite_mapping.py
diff options
context:
space:
mode:
authorAyaan Masood <Ayaan.Masood@arm.com>2022-06-29 11:30:57 +0100
committerAyaan Masood <Ayaan.Masood@arm.com>2022-06-29 11:30:57 +0100
commit4965faee41300393cd8d74da4b399fa4c4ee9030 (patch)
tree1054d6f89be70ec471007132dec97d325ecc0067 /ethosu/vela/tflite_mapping.py
parent68b8f2f9457d56df3211be5318e3682332bcefbf (diff)
downloadethos-u-vela-4965faee41300393cd8d74da4b399fa4c4ee9030.tar.gz
MLBEDSW-6313 Static optimisation for Shape OP
*Shape OP value is available at compile time hence it can be optimised *Disconnected shape OP at compile time from parent tensor *Transformed shape OP tensor into constant Change-Id: I0a024269e2b592c6146dd72e62d7a41951fb727a Signed-off-by: Ayaan Masood <Ayaan.Masood@arm.com>
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 7b487ae4..bf155b9c 100644
--- a/ethosu/vela/tflite_mapping.py
+++ b/ethosu/vela/tflite_mapping.py
@@ -767,7 +767,7 @@ builtin_operator_map = {
BuiltinOperator.SHAPE: (
Op.Shape,
OptionsSerializer("ShapeOptions", (("out_type", datatype_deserialize, datatype_serialize),)),
- TFLITE_NO_INDICES,
+ TFLITE_IFM_INDICES,
),
BuiltinOperator.POW: (Op.Pow, OptionsSerializer("PowOptions"), TFLITE_NO_INDICES),
BuiltinOperator.ARG_MIN: (