diff options
Diffstat (limited to 'ethosu/vela/tflite/ResizeBilinearOptions.py')
-rw-r--r-- | ethosu/vela/tflite/ResizeBilinearOptions.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ethosu/vela/tflite/ResizeBilinearOptions.py b/ethosu/vela/tflite/ResizeBilinearOptions.py index d974adb..c481a8a 100644 --- a/ethosu/vela/tflite/ResizeBilinearOptions.py +++ b/ethosu/vela/tflite/ResizeBilinearOptions.py @@ -10,13 +10,17 @@ class ResizeBilinearOptions(object): __slots__ = ['_tab'] @classmethod - def GetRootAsResizeBilinearOptions(cls, buf, offset): + def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = ResizeBilinearOptions() x.Init(buf, n + offset) return x @classmethod + def GetRootAsResizeBilinearOptions(cls, buf, offset=0): + """This method is deprecated. Please switch to GetRootAs.""" + return cls.GetRootAs(buf, offset) + @classmethod def ResizeBilinearOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) @@ -39,6 +43,14 @@ class ResizeBilinearOptions(object): return False def ResizeBilinearOptionsStart(builder): builder.StartObject(4) +def Start(builder): + return ResizeBilinearOptionsStart(builder) def ResizeBilinearOptionsAddAlignCorners(builder, alignCorners): builder.PrependBoolSlot(2, alignCorners, 0) +def AddAlignCorners(builder, alignCorners): + return ResizeBilinearOptionsAddAlignCorners(builder, alignCorners) def ResizeBilinearOptionsAddHalfPixelCenters(builder, halfPixelCenters): builder.PrependBoolSlot(3, halfPixelCenters, 0) +def AddHalfPixelCenters(builder, halfPixelCenters): + return ResizeBilinearOptionsAddHalfPixelCenters(builder, halfPixelCenters) def ResizeBilinearOptionsEnd(builder): return builder.EndObject() +def End(builder): + return ResizeBilinearOptionsEnd(builder)
\ No newline at end of file |