Top

tflite.TopKV2Options module

# automatically generated by the FlatBuffers compiler, do not modify

# namespace: tflite

import flatbuffers

class TopKV2Options(object):
    __slots__ = ['_tab']

    @classmethod
    def GetRootAsTopKV2Options(cls, buf, offset):
        n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
        x = TopKV2Options()
        x.Init(buf, n + offset)
        return x

    # TopKV2Options
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

def TopKV2OptionsStart(builder): builder.StartObject(0)
def TopKV2OptionsEnd(builder): return builder.EndObject()

Functions

def TopKV2OptionsEnd(

builder)

def TopKV2OptionsEnd(builder): return builder.EndObject()

def TopKV2OptionsStart(

builder)

def TopKV2OptionsStart(builder): builder.StartObject(0)

Classes

class TopKV2Options

class TopKV2Options(object):
    __slots__ = ['_tab']

    @classmethod
    def GetRootAsTopKV2Options(cls, buf, offset):
        n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
        x = TopKV2Options()
        x.Init(buf, n + offset)
        return x

    # TopKV2Options
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

Ancestors (in MRO)

Static methods

def Init(

self, buf, pos)

def Init(self, buf, pos):
    self._tab = flatbuffers.table.Table(buf, pos)

Methods

def GetRootAsTopKV2Options(

cls, buf, offset)

@classmethod
def GetRootAsTopKV2Options(cls, buf, offset):
    n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
    x = TopKV2Options()
    x.Init(buf, n + offset)
    return x