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/ShapeOptions.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'ethosu/vela/tflite/ShapeOptions.py') diff --git a/ethosu/vela/tflite/ShapeOptions.py b/ethosu/vela/tflite/ShapeOptions.py index 6a9d6f90..92079352 100644 --- a/ethosu/vela/tflite/ShapeOptions.py +++ b/ethosu/vela/tflite/ShapeOptions.py @@ -35,12 +35,15 @@ class ShapeOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def ShapeOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return ShapeOptionsStart(builder) -def ShapeOptionsAddOutType(builder, outType): builder.PrependInt8Slot(0, outType, 0) -def AddOutType(builder, outType): - return ShapeOptionsAddOutType(builder, outType) -def ShapeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ShapeOptionsEnd(builder) \ No newline at end of file +def Start(builder): builder.StartObject(1) +def ShapeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddOutType(builder, outType): builder.PrependInt8Slot(0, outType, 0) +def ShapeOptionsAddOutType(builder, outType): + """This method is deprecated. Please switch to AddOutType.""" + return AddOutType(builder, outType) +def End(builder): return builder.EndObject() +def ShapeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder) \ No newline at end of file -- cgit v1.2.1