From d66f80170e3dc46e6962970b71886010559b1b75 Mon Sep 17 00:00:00 2001 From: Rickard Bolin Date: Thu, 21 Apr 2022 07:36:55 +0000 Subject: MLBEDSW-6425: Update to TensorFlow 2.8 Update the flatbuffers generated code to comply with TensorFlow 2.8 Signed-off-by: Rickard Bolin Change-Id: Ia65325b88745e49dbafa803a38c0ea0e7d0478ba --- ethosu/vela/tflite/UniqueOptions.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'ethosu/vela/tflite/UniqueOptions.py') diff --git a/ethosu/vela/tflite/UniqueOptions.py b/ethosu/vela/tflite/UniqueOptions.py index 7b21d095..3d0612f9 100644 --- a/ethosu/vela/tflite/UniqueOptions.py +++ b/ethosu/vela/tflite/UniqueOptions.py @@ -35,12 +35,15 @@ class UniqueOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 2 -def UniqueOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return UniqueOptionsStart(builder) -def UniqueOptionsAddIdxOutType(builder, idxOutType): builder.PrependInt8Slot(0, idxOutType, 2) -def AddIdxOutType(builder, idxOutType): - return UniqueOptionsAddIdxOutType(builder, idxOutType) -def UniqueOptionsEnd(builder): return builder.EndObject() -def End(builder): - return UniqueOptionsEnd(builder) \ No newline at end of file +def Start(builder): builder.StartObject(1) +def UniqueOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddIdxOutType(builder, idxOutType): builder.PrependInt8Slot(0, idxOutType, 2) +def UniqueOptionsAddIdxOutType(builder, idxOutType): + """This method is deprecated. Please switch to AddIdxOutType.""" + return AddIdxOutType(builder, idxOutType) +def End(builder): return builder.EndObject() +def UniqueOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder) \ No newline at end of file -- cgit v1.2.1