tflite_metadata

package
v0.23.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnumNamesAssociatedFileType = map[AssociatedFileType]string{
	AssociatedFileTypeUNKNOWN:                       "UNKNOWN",
	AssociatedFileTypeDESCRIPTIONS:                  "DESCRIPTIONS",
	AssociatedFileTypeTENSOR_AXIS_LABELS:            "TENSOR_AXIS_LABELS",
	AssociatedFileTypeTENSOR_VALUE_LABELS:           "TENSOR_VALUE_LABELS",
	AssociatedFileTypeTENSOR_AXIS_SCORE_CALIBRATION: "TENSOR_AXIS_SCORE_CALIBRATION",
	AssociatedFileTypeVOCABULARY:                    "VOCABULARY",
	AssociatedFileTypeSCANN_INDEX_FILE:              "SCANN_INDEX_FILE",
}
View Source
var EnumNamesBoundingBoxType = map[BoundingBoxType]string{
	BoundingBoxTypeUNKNOWN:    "UNKNOWN",
	BoundingBoxTypeBOUNDARIES: "BOUNDARIES",
	BoundingBoxTypeUPPER_LEFT: "UPPER_LEFT",
	BoundingBoxTypeCENTER:     "CENTER",
}
View Source
var EnumNamesColorSpaceType = map[ColorSpaceType]string{
	ColorSpaceTypeUNKNOWN:   "UNKNOWN",
	ColorSpaceTypeRGB:       "RGB",
	ColorSpaceTypeGRAYSCALE: "GRAYSCALE",
}
View Source
var EnumNamesContentProperties = map[ContentProperties]string{
	ContentPropertiesNONE:                  "NONE",
	ContentPropertiesFeatureProperties:     "FeatureProperties",
	ContentPropertiesImageProperties:       "ImageProperties",
	ContentPropertiesBoundingBoxProperties: "BoundingBoxProperties",
	ContentPropertiesAudioProperties:       "AudioProperties",
}
View Source
var EnumNamesCoordinateType = map[CoordinateType]string{
	CoordinateTypeRATIO: "RATIO",
	CoordinateTypePIXEL: "PIXEL",
}
View Source
var EnumNamesProcessUnitOptions = map[ProcessUnitOptions]string{
	ProcessUnitOptionsNONE:                          "NONE",
	ProcessUnitOptionsNormalizationOptions:          "NormalizationOptions",
	ProcessUnitOptionsScoreCalibrationOptions:       "ScoreCalibrationOptions",
	ProcessUnitOptionsScoreThresholdingOptions:      "ScoreThresholdingOptions",
	ProcessUnitOptionsBertTokenizerOptions:          "BertTokenizerOptions",
	ProcessUnitOptionsSentencePieceTokenizerOptions: "SentencePieceTokenizerOptions",
	ProcessUnitOptionsRegexTokenizerOptions:         "RegexTokenizerOptions",
}
View Source
var EnumNamesScoreTransformationType = map[ScoreTransformationType]string{
	ScoreTransformationTypeIDENTITY:         "IDENTITY",
	ScoreTransformationTypeLOG:              "LOG",
	ScoreTransformationTypeINVERSE_LOGISTIC: "INVERSE_LOGISTIC",
}
View Source
var EnumValuesAssociatedFileType = map[string]AssociatedFileType{
	"UNKNOWN":                       AssociatedFileTypeUNKNOWN,
	"DESCRIPTIONS":                  AssociatedFileTypeDESCRIPTIONS,
	"TENSOR_AXIS_LABELS":            AssociatedFileTypeTENSOR_AXIS_LABELS,
	"TENSOR_VALUE_LABELS":           AssociatedFileTypeTENSOR_VALUE_LABELS,
	"TENSOR_AXIS_SCORE_CALIBRATION": AssociatedFileTypeTENSOR_AXIS_SCORE_CALIBRATION,
	"VOCABULARY":                    AssociatedFileTypeVOCABULARY,
	"SCANN_INDEX_FILE":              AssociatedFileTypeSCANN_INDEX_FILE,
}
View Source
var EnumValuesBoundingBoxType = map[string]BoundingBoxType{
	"UNKNOWN":    BoundingBoxTypeUNKNOWN,
	"BOUNDARIES": BoundingBoxTypeBOUNDARIES,
	"UPPER_LEFT": BoundingBoxTypeUPPER_LEFT,
	"CENTER":     BoundingBoxTypeCENTER,
}
View Source
var EnumValuesColorSpaceType = map[string]ColorSpaceType{
	"UNKNOWN":   ColorSpaceTypeUNKNOWN,
	"RGB":       ColorSpaceTypeRGB,
	"GRAYSCALE": ColorSpaceTypeGRAYSCALE,
}
View Source
var EnumValuesContentProperties = map[string]ContentProperties{
	"NONE":                  ContentPropertiesNONE,
	"FeatureProperties":     ContentPropertiesFeatureProperties,
	"ImageProperties":       ContentPropertiesImageProperties,
	"BoundingBoxProperties": ContentPropertiesBoundingBoxProperties,
	"AudioProperties":       ContentPropertiesAudioProperties,
}
View Source
var EnumValuesCoordinateType = map[string]CoordinateType{
	"RATIO": CoordinateTypeRATIO,
	"PIXEL": CoordinateTypePIXEL,
}
View Source
var EnumValuesProcessUnitOptions = map[string]ProcessUnitOptions{
	"NONE":                          ProcessUnitOptionsNONE,
	"NormalizationOptions":          ProcessUnitOptionsNormalizationOptions,
	"ScoreCalibrationOptions":       ProcessUnitOptionsScoreCalibrationOptions,
	"ScoreThresholdingOptions":      ProcessUnitOptionsScoreThresholdingOptions,
	"BertTokenizerOptions":          ProcessUnitOptionsBertTokenizerOptions,
	"SentencePieceTokenizerOptions": ProcessUnitOptionsSentencePieceTokenizerOptions,
	"RegexTokenizerOptions":         ProcessUnitOptionsRegexTokenizerOptions,
}
View Source
var EnumValuesScoreTransformationType = map[string]ScoreTransformationType{
	"IDENTITY":         ScoreTransformationTypeIDENTITY,
	"LOG":              ScoreTransformationTypeLOG,
	"INVERSE_LOGISTIC": ScoreTransformationTypeINVERSE_LOGISTIC,
}

Functions

func AssociatedFileAddDescription

func AssociatedFileAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT)

func AssociatedFileAddLocale

func AssociatedFileAddLocale(builder *flatbuffers.Builder, locale flatbuffers.UOffsetT)

func AssociatedFileAddName

func AssociatedFileAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)

func AssociatedFileAddType

func AssociatedFileAddType(builder *flatbuffers.Builder, type_ AssociatedFileType)

func AssociatedFileEnd

func AssociatedFileEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func AssociatedFileStart

func AssociatedFileStart(builder *flatbuffers.Builder)

func AudioPropertiesAddChannels

func AudioPropertiesAddChannels(builder *flatbuffers.Builder, channels uint32)

func AudioPropertiesAddSampleRate

func AudioPropertiesAddSampleRate(builder *flatbuffers.Builder, sampleRate uint32)

func AudioPropertiesEnd

func AudioPropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func AudioPropertiesStart

func AudioPropertiesStart(builder *flatbuffers.Builder)

func BertTokenizerOptionsAddVocabFile

func BertTokenizerOptionsAddVocabFile(builder *flatbuffers.Builder, vocabFile flatbuffers.UOffsetT)

func BertTokenizerOptionsEnd

func BertTokenizerOptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func BertTokenizerOptionsStart

func BertTokenizerOptionsStart(builder *flatbuffers.Builder)

func BertTokenizerOptionsStartVocabFileVector

func BertTokenizerOptionsStartVocabFileVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func BoundingBoxPropertiesAddCoordinateType

func BoundingBoxPropertiesAddCoordinateType(builder *flatbuffers.Builder, coordinateType CoordinateType)

func BoundingBoxPropertiesAddIndex

func BoundingBoxPropertiesAddIndex(builder *flatbuffers.Builder, index flatbuffers.UOffsetT)

func BoundingBoxPropertiesAddType

func BoundingBoxPropertiesAddType(builder *flatbuffers.Builder, type_ BoundingBoxType)

func BoundingBoxPropertiesEnd

func BoundingBoxPropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func BoundingBoxPropertiesStart

func BoundingBoxPropertiesStart(builder *flatbuffers.Builder)

func BoundingBoxPropertiesStartIndexVector

func BoundingBoxPropertiesStartIndexVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func ContentAddContentProperties

func ContentAddContentProperties(builder *flatbuffers.Builder, contentProperties flatbuffers.UOffsetT)

func ContentAddContentPropertiesType

func ContentAddContentPropertiesType(builder *flatbuffers.Builder, contentPropertiesType ContentProperties)

func ContentAddRange

func ContentAddRange(builder *flatbuffers.Builder, range_ flatbuffers.UOffsetT)

func ContentEnd

func ContentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ContentStart

func ContentStart(builder *flatbuffers.Builder)

func FeaturePropertiesEnd

func FeaturePropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func FeaturePropertiesStart

func FeaturePropertiesStart(builder *flatbuffers.Builder)

func ImagePropertiesAddColorSpace

func ImagePropertiesAddColorSpace(builder *flatbuffers.Builder, colorSpace ColorSpaceType)

func ImagePropertiesAddDefaultSize

func ImagePropertiesAddDefaultSize(builder *flatbuffers.Builder, defaultSize flatbuffers.UOffsetT)

func ImagePropertiesEnd

func ImagePropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ImagePropertiesStart

func ImagePropertiesStart(builder *flatbuffers.Builder)

func ImageSizeAddHeight

func ImageSizeAddHeight(builder *flatbuffers.Builder, height uint32)

func ImageSizeAddWidth

func ImageSizeAddWidth(builder *flatbuffers.Builder, width uint32)

func ImageSizeEnd

func ImageSizeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ImageSizeStart

func ImageSizeStart(builder *flatbuffers.Builder)

func ModelMetadataAddAssociatedFiles

func ModelMetadataAddAssociatedFiles(builder *flatbuffers.Builder, associatedFiles flatbuffers.UOffsetT)

func ModelMetadataAddAuthor

func ModelMetadataAddAuthor(builder *flatbuffers.Builder, author flatbuffers.UOffsetT)

func ModelMetadataAddDescription

func ModelMetadataAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT)

func ModelMetadataAddLicense

func ModelMetadataAddLicense(builder *flatbuffers.Builder, license flatbuffers.UOffsetT)

func ModelMetadataAddMinParserVersion

func ModelMetadataAddMinParserVersion(builder *flatbuffers.Builder, minParserVersion flatbuffers.UOffsetT)

func ModelMetadataAddName

func ModelMetadataAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)

func ModelMetadataAddSubgraphMetadata

func ModelMetadataAddSubgraphMetadata(builder *flatbuffers.Builder, subgraphMetadata flatbuffers.UOffsetT)

func ModelMetadataAddVersion

func ModelMetadataAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT)

func ModelMetadataEnd

func ModelMetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ModelMetadataStart

func ModelMetadataStart(builder *flatbuffers.Builder)

func ModelMetadataStartAssociatedFilesVector

func ModelMetadataStartAssociatedFilesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func ModelMetadataStartSubgraphMetadataVector

func ModelMetadataStartSubgraphMetadataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func NormalizationOptionsAddMean

func NormalizationOptionsAddMean(builder *flatbuffers.Builder, mean flatbuffers.UOffsetT)

func NormalizationOptionsAddStd

func NormalizationOptionsAddStd(builder *flatbuffers.Builder, std flatbuffers.UOffsetT)

func NormalizationOptionsEnd

func NormalizationOptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func NormalizationOptionsStart

func NormalizationOptionsStart(builder *flatbuffers.Builder)

func NormalizationOptionsStartMeanVector

func NormalizationOptionsStartMeanVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func NormalizationOptionsStartStdVector

func NormalizationOptionsStartStdVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func ProcessUnitAddOptions

func ProcessUnitAddOptions(builder *flatbuffers.Builder, options flatbuffers.UOffsetT)

func ProcessUnitAddOptionsType

func ProcessUnitAddOptionsType(builder *flatbuffers.Builder, optionsType ProcessUnitOptions)

func ProcessUnitEnd

func ProcessUnitEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ProcessUnitStart

func ProcessUnitStart(builder *flatbuffers.Builder)

func RegexTokenizerOptionsAddDelimRegexPattern

func RegexTokenizerOptionsAddDelimRegexPattern(builder *flatbuffers.Builder, delimRegexPattern flatbuffers.UOffsetT)

func RegexTokenizerOptionsAddVocabFile

func RegexTokenizerOptionsAddVocabFile(builder *flatbuffers.Builder, vocabFile flatbuffers.UOffsetT)

func RegexTokenizerOptionsEnd

func RegexTokenizerOptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func RegexTokenizerOptionsStart

func RegexTokenizerOptionsStart(builder *flatbuffers.Builder)

func RegexTokenizerOptionsStartVocabFileVector

func RegexTokenizerOptionsStartVocabFileVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func ScoreCalibrationOptionsAddDefaultScore

func ScoreCalibrationOptionsAddDefaultScore(builder *flatbuffers.Builder, defaultScore float32)

func ScoreCalibrationOptionsAddScoreTransformation

func ScoreCalibrationOptionsAddScoreTransformation(builder *flatbuffers.Builder, scoreTransformation ScoreTransformationType)

func ScoreCalibrationOptionsEnd

func ScoreCalibrationOptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ScoreCalibrationOptionsStart

func ScoreCalibrationOptionsStart(builder *flatbuffers.Builder)

func ScoreThresholdingOptionsAddGlobalScoreThreshold

func ScoreThresholdingOptionsAddGlobalScoreThreshold(builder *flatbuffers.Builder, globalScoreThreshold float32)

func ScoreThresholdingOptionsEnd

func ScoreThresholdingOptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ScoreThresholdingOptionsStart

func ScoreThresholdingOptionsStart(builder *flatbuffers.Builder)

func SentencePieceTokenizerOptionsAddSentencePieceModel

func SentencePieceTokenizerOptionsAddSentencePieceModel(builder *flatbuffers.Builder, sentencePieceModel flatbuffers.UOffsetT)

func SentencePieceTokenizerOptionsAddVocabFile

func SentencePieceTokenizerOptionsAddVocabFile(builder *flatbuffers.Builder, vocabFile flatbuffers.UOffsetT)

func SentencePieceTokenizerOptionsEnd

func SentencePieceTokenizerOptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func SentencePieceTokenizerOptionsStart

func SentencePieceTokenizerOptionsStart(builder *flatbuffers.Builder)

func SentencePieceTokenizerOptionsStartSentencePieceModelVector

func SentencePieceTokenizerOptionsStartSentencePieceModelVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SentencePieceTokenizerOptionsStartVocabFileVector

func SentencePieceTokenizerOptionsStartVocabFileVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func StatsAddMax

func StatsAddMax(builder *flatbuffers.Builder, max flatbuffers.UOffsetT)

func StatsAddMin

func StatsAddMin(builder *flatbuffers.Builder, min flatbuffers.UOffsetT)

func StatsEnd

func StatsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func StatsStart

func StatsStart(builder *flatbuffers.Builder)

func StatsStartMaxVector

func StatsStartMaxVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func StatsStartMinVector

func StatsStartMinVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SubGraphMetadataAddAssociatedFiles

func SubGraphMetadataAddAssociatedFiles(builder *flatbuffers.Builder, associatedFiles flatbuffers.UOffsetT)

func SubGraphMetadataAddDescription

func SubGraphMetadataAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT)

func SubGraphMetadataAddInputProcessUnits

func SubGraphMetadataAddInputProcessUnits(builder *flatbuffers.Builder, inputProcessUnits flatbuffers.UOffsetT)

func SubGraphMetadataAddInputTensorGroups

func SubGraphMetadataAddInputTensorGroups(builder *flatbuffers.Builder, inputTensorGroups flatbuffers.UOffsetT)

func SubGraphMetadataAddInputTensorMetadata

func SubGraphMetadataAddInputTensorMetadata(builder *flatbuffers.Builder, inputTensorMetadata flatbuffers.UOffsetT)

func SubGraphMetadataAddName

func SubGraphMetadataAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)

func SubGraphMetadataAddOutputProcessUnits

func SubGraphMetadataAddOutputProcessUnits(builder *flatbuffers.Builder, outputProcessUnits flatbuffers.UOffsetT)

func SubGraphMetadataAddOutputTensorGroups

func SubGraphMetadataAddOutputTensorGroups(builder *flatbuffers.Builder, outputTensorGroups flatbuffers.UOffsetT)

func SubGraphMetadataAddOutputTensorMetadata

func SubGraphMetadataAddOutputTensorMetadata(builder *flatbuffers.Builder, outputTensorMetadata flatbuffers.UOffsetT)

func SubGraphMetadataEnd

func SubGraphMetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func SubGraphMetadataStart

func SubGraphMetadataStart(builder *flatbuffers.Builder)

func SubGraphMetadataStartAssociatedFilesVector

func SubGraphMetadataStartAssociatedFilesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SubGraphMetadataStartInputProcessUnitsVector

func SubGraphMetadataStartInputProcessUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SubGraphMetadataStartInputTensorGroupsVector

func SubGraphMetadataStartInputTensorGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SubGraphMetadataStartInputTensorMetadataVector

func SubGraphMetadataStartInputTensorMetadataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SubGraphMetadataStartOutputProcessUnitsVector

func SubGraphMetadataStartOutputProcessUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SubGraphMetadataStartOutputTensorGroupsVector

func SubGraphMetadataStartOutputTensorGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func SubGraphMetadataStartOutputTensorMetadataVector

func SubGraphMetadataStartOutputTensorMetadataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func TensorGroupAddName

func TensorGroupAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)

func TensorGroupAddTensorNames

func TensorGroupAddTensorNames(builder *flatbuffers.Builder, tensorNames flatbuffers.UOffsetT)

func TensorGroupEnd

func TensorGroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func TensorGroupStart

func TensorGroupStart(builder *flatbuffers.Builder)

func TensorGroupStartTensorNamesVector

func TensorGroupStartTensorNamesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func TensorMetadataAddAssociatedFiles

func TensorMetadataAddAssociatedFiles(builder *flatbuffers.Builder, associatedFiles flatbuffers.UOffsetT)

func TensorMetadataAddContent

func TensorMetadataAddContent(builder *flatbuffers.Builder, content flatbuffers.UOffsetT)

func TensorMetadataAddDescription

func TensorMetadataAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT)

func TensorMetadataAddDimensionNames

func TensorMetadataAddDimensionNames(builder *flatbuffers.Builder, dimensionNames flatbuffers.UOffsetT)

func TensorMetadataAddName

func TensorMetadataAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)

func TensorMetadataAddProcessUnits

func TensorMetadataAddProcessUnits(builder *flatbuffers.Builder, processUnits flatbuffers.UOffsetT)

func TensorMetadataAddStats

func TensorMetadataAddStats(builder *flatbuffers.Builder, stats flatbuffers.UOffsetT)

func TensorMetadataEnd

func TensorMetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func TensorMetadataStart

func TensorMetadataStart(builder *flatbuffers.Builder)

func TensorMetadataStartAssociatedFilesVector

func TensorMetadataStartAssociatedFilesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func TensorMetadataStartDimensionNamesVector

func TensorMetadataStartDimensionNamesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func TensorMetadataStartProcessUnitsVector

func TensorMetadataStartProcessUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func ValueRangeAddMax

func ValueRangeAddMax(builder *flatbuffers.Builder, max int32)

func ValueRangeAddMin

func ValueRangeAddMin(builder *flatbuffers.Builder, min int32)

func ValueRangeEnd

func ValueRangeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func ValueRangeStart

func ValueRangeStart(builder *flatbuffers.Builder)

Types

type AssociatedFile

type AssociatedFile struct {
	// contains filtered or unexported fields
}

func GetRootAsAssociatedFile

func GetRootAsAssociatedFile(buf []byte, offset flatbuffers.UOffsetT) *AssociatedFile

func GetSizePrefixedRootAsAssociatedFile

func GetSizePrefixedRootAsAssociatedFile(buf []byte, offset flatbuffers.UOffsetT) *AssociatedFile

func (*AssociatedFile) Description

func (rcv *AssociatedFile) Description() []byte

func (*AssociatedFile) Init

func (rcv *AssociatedFile) Init(buf []byte, i flatbuffers.UOffsetT)

func (*AssociatedFile) Locale

func (rcv *AssociatedFile) Locale() []byte

func (*AssociatedFile) MutateType

func (rcv *AssociatedFile) MutateType(n AssociatedFileType) bool

func (*AssociatedFile) Name

func (rcv *AssociatedFile) Name() []byte

func (*AssociatedFile) Table

func (rcv *AssociatedFile) Table() flatbuffers.Table

func (*AssociatedFile) Type

func (rcv *AssociatedFile) Type() AssociatedFileType

func (*AssociatedFile) UnPack

func (rcv *AssociatedFile) UnPack() *AssociatedFileT

func (*AssociatedFile) UnPackTo

func (rcv *AssociatedFile) UnPackTo(t *AssociatedFileT)

type AssociatedFileT

type AssociatedFileT struct {
	Name        string
	Description string
	Type        AssociatedFileType
	Locale      string
}

func (*AssociatedFileT) Pack

type AssociatedFileType

type AssociatedFileType int8
const (
	AssociatedFileTypeUNKNOWN                       AssociatedFileType = 0
	AssociatedFileTypeDESCRIPTIONS                  AssociatedFileType = 1
	AssociatedFileTypeTENSOR_AXIS_LABELS            AssociatedFileType = 2
	AssociatedFileTypeTENSOR_VALUE_LABELS           AssociatedFileType = 3
	AssociatedFileTypeTENSOR_AXIS_SCORE_CALIBRATION AssociatedFileType = 4
	AssociatedFileTypeVOCABULARY                    AssociatedFileType = 5
	AssociatedFileTypeSCANN_INDEX_FILE              AssociatedFileType = 6
)

func (AssociatedFileType) String

func (v AssociatedFileType) String() string

type AudioProperties

type AudioProperties struct {
	// contains filtered or unexported fields
}

func GetRootAsAudioProperties

func GetRootAsAudioProperties(buf []byte, offset flatbuffers.UOffsetT) *AudioProperties

func GetSizePrefixedRootAsAudioProperties

func GetSizePrefixedRootAsAudioProperties(buf []byte, offset flatbuffers.UOffsetT) *AudioProperties

func (*AudioProperties) Channels

func (rcv *AudioProperties) Channels() uint32

func (*AudioProperties) Init

func (rcv *AudioProperties) Init(buf []byte, i flatbuffers.UOffsetT)

func (*AudioProperties) MutateChannels

func (rcv *AudioProperties) MutateChannels(n uint32) bool

func (*AudioProperties) MutateSampleRate

func (rcv *AudioProperties) MutateSampleRate(n uint32) bool

func (*AudioProperties) SampleRate

func (rcv *AudioProperties) SampleRate() uint32

func (*AudioProperties) Table

func (rcv *AudioProperties) Table() flatbuffers.Table

func (*AudioProperties) UnPack

func (rcv *AudioProperties) UnPack() *AudioPropertiesT

func (*AudioProperties) UnPackTo

func (rcv *AudioProperties) UnPackTo(t *AudioPropertiesT)

type AudioPropertiesT

type AudioPropertiesT struct {
	SampleRate uint32
	Channels   uint32
}

func (*AudioPropertiesT) Pack

type BertTokenizerOptions

type BertTokenizerOptions struct {
	// contains filtered or unexported fields
}

func GetRootAsBertTokenizerOptions

func GetRootAsBertTokenizerOptions(buf []byte, offset flatbuffers.UOffsetT) *BertTokenizerOptions

func GetSizePrefixedRootAsBertTokenizerOptions

func GetSizePrefixedRootAsBertTokenizerOptions(buf []byte, offset flatbuffers.UOffsetT) *BertTokenizerOptions

func (*BertTokenizerOptions) Init

func (rcv *BertTokenizerOptions) Init(buf []byte, i flatbuffers.UOffsetT)

func (*BertTokenizerOptions) Table

func (rcv *BertTokenizerOptions) Table() flatbuffers.Table

func (*BertTokenizerOptions) UnPack

func (*BertTokenizerOptions) UnPackTo

func (rcv *BertTokenizerOptions) UnPackTo(t *BertTokenizerOptionsT)

func (*BertTokenizerOptions) VocabFile

func (rcv *BertTokenizerOptions) VocabFile(obj *AssociatedFile, j int) bool

func (*BertTokenizerOptions) VocabFileLength

func (rcv *BertTokenizerOptions) VocabFileLength() int

type BertTokenizerOptionsT

type BertTokenizerOptionsT struct {
	VocabFile []*AssociatedFileT
}

func (*BertTokenizerOptionsT) Pack

type BoundingBoxProperties

type BoundingBoxProperties struct {
	// contains filtered or unexported fields
}

func GetRootAsBoundingBoxProperties

func GetRootAsBoundingBoxProperties(buf []byte, offset flatbuffers.UOffsetT) *BoundingBoxProperties

func GetSizePrefixedRootAsBoundingBoxProperties

func GetSizePrefixedRootAsBoundingBoxProperties(buf []byte, offset flatbuffers.UOffsetT) *BoundingBoxProperties

func (*BoundingBoxProperties) CoordinateType

func (rcv *BoundingBoxProperties) CoordinateType() CoordinateType

func (*BoundingBoxProperties) Index

func (rcv *BoundingBoxProperties) Index(j int) uint32

func (*BoundingBoxProperties) IndexLength

func (rcv *BoundingBoxProperties) IndexLength() int

func (*BoundingBoxProperties) Init

func (rcv *BoundingBoxProperties) Init(buf []byte, i flatbuffers.UOffsetT)

func (*BoundingBoxProperties) MutateCoordinateType

func (rcv *BoundingBoxProperties) MutateCoordinateType(n CoordinateType) bool

func (*BoundingBoxProperties) MutateIndex

func (rcv *BoundingBoxProperties) MutateIndex(j int, n uint32) bool

func (*BoundingBoxProperties) MutateType

func (rcv *BoundingBoxProperties) MutateType(n BoundingBoxType) bool

func (*BoundingBoxProperties) Table

func (*BoundingBoxProperties) Type

func (*BoundingBoxProperties) UnPack

func (*BoundingBoxProperties) UnPackTo

type BoundingBoxPropertiesT

type BoundingBoxPropertiesT struct {
	Index          []uint32
	Type           BoundingBoxType
	CoordinateType CoordinateType
}

func (*BoundingBoxPropertiesT) Pack

type BoundingBoxType

type BoundingBoxType int8
const (
	BoundingBoxTypeUNKNOWN    BoundingBoxType = 0
	BoundingBoxTypeBOUNDARIES BoundingBoxType = 1
	BoundingBoxTypeUPPER_LEFT BoundingBoxType = 2
	BoundingBoxTypeCENTER     BoundingBoxType = 3
)

func (BoundingBoxType) String

func (v BoundingBoxType) String() string

type ColorSpaceType

type ColorSpaceType int8
const (
	ColorSpaceTypeUNKNOWN   ColorSpaceType = 0
	ColorSpaceTypeRGB       ColorSpaceType = 1
	ColorSpaceTypeGRAYSCALE ColorSpaceType = 2
)

func (ColorSpaceType) String

func (v ColorSpaceType) String() string

type Content

type Content struct {
	// contains filtered or unexported fields
}

func GetRootAsContent

func GetRootAsContent(buf []byte, offset flatbuffers.UOffsetT) *Content

func GetSizePrefixedRootAsContent

func GetSizePrefixedRootAsContent(buf []byte, offset flatbuffers.UOffsetT) *Content

func (*Content) ContentProperties

func (rcv *Content) ContentProperties(obj *flatbuffers.Table) bool

func (*Content) ContentPropertiesType

func (rcv *Content) ContentPropertiesType() ContentProperties

func (*Content) Init

func (rcv *Content) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Content) MutateContentPropertiesType

func (rcv *Content) MutateContentPropertiesType(n ContentProperties) bool

func (*Content) Range

func (rcv *Content) Range(obj *ValueRange) *ValueRange

func (*Content) Table

func (rcv *Content) Table() flatbuffers.Table

func (*Content) UnPack

func (rcv *Content) UnPack() *ContentT

func (*Content) UnPackTo

func (rcv *Content) UnPackTo(t *ContentT)

type ContentProperties

type ContentProperties byte
const (
	ContentPropertiesNONE                  ContentProperties = 0
	ContentPropertiesFeatureProperties     ContentProperties = 1
	ContentPropertiesImageProperties       ContentProperties = 2
	ContentPropertiesBoundingBoxProperties ContentProperties = 3
	ContentPropertiesAudioProperties       ContentProperties = 4
)

func (ContentProperties) String

func (v ContentProperties) String() string

func (ContentProperties) UnPack

type ContentPropertiesT

type ContentPropertiesT struct {
	Type  ContentProperties
	Value interface{}
}

func (*ContentPropertiesT) Pack

type ContentT

type ContentT struct {
	ContentProperties *ContentPropertiesT
	Range             *ValueRangeT
}

func (*ContentT) Pack

func (t *ContentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT

type CoordinateType

type CoordinateType int8
const (
	CoordinateTypeRATIO CoordinateType = 0
	CoordinateTypePIXEL CoordinateType = 1
)

func (CoordinateType) String

func (v CoordinateType) String() string

type FeatureProperties

type FeatureProperties struct {
	// contains filtered or unexported fields
}

func GetRootAsFeatureProperties

func GetRootAsFeatureProperties(buf []byte, offset flatbuffers.UOffsetT) *FeatureProperties

func GetSizePrefixedRootAsFeatureProperties

func GetSizePrefixedRootAsFeatureProperties(buf []byte, offset flatbuffers.UOffsetT) *FeatureProperties

func (*FeatureProperties) Init

func (rcv *FeatureProperties) Init(buf []byte, i flatbuffers.UOffsetT)

func (*FeatureProperties) Table

func (rcv *FeatureProperties) Table() flatbuffers.Table

func (*FeatureProperties) UnPack

func (rcv *FeatureProperties) UnPack() *FeaturePropertiesT

func (*FeatureProperties) UnPackTo

func (rcv *FeatureProperties) UnPackTo(t *FeaturePropertiesT)

type FeaturePropertiesT

type FeaturePropertiesT struct {
}

func (*FeaturePropertiesT) Pack

type ImageProperties

type ImageProperties struct {
	// contains filtered or unexported fields
}

func GetRootAsImageProperties

func GetRootAsImageProperties(buf []byte, offset flatbuffers.UOffsetT) *ImageProperties

func GetSizePrefixedRootAsImageProperties

func GetSizePrefixedRootAsImageProperties(buf []byte, offset flatbuffers.UOffsetT) *ImageProperties

func (*ImageProperties) ColorSpace

func (rcv *ImageProperties) ColorSpace() ColorSpaceType

func (*ImageProperties) DefaultSize

func (rcv *ImageProperties) DefaultSize(obj *ImageSize) *ImageSize

func (*ImageProperties) Init

func (rcv *ImageProperties) Init(buf []byte, i flatbuffers.UOffsetT)

func (*ImageProperties) MutateColorSpace

func (rcv *ImageProperties) MutateColorSpace(n ColorSpaceType) bool

func (*ImageProperties) Table

func (rcv *ImageProperties) Table() flatbuffers.Table

func (*ImageProperties) UnPack

func (rcv *ImageProperties) UnPack() *ImagePropertiesT

func (*ImageProperties) UnPackTo

func (rcv *ImageProperties) UnPackTo(t *ImagePropertiesT)

type ImagePropertiesT

type ImagePropertiesT struct {
	ColorSpace  ColorSpaceType
	DefaultSize *ImageSizeT
}

func (*ImagePropertiesT) Pack

type ImageSize

type ImageSize struct {
	// contains filtered or unexported fields
}

func GetRootAsImageSize

func GetRootAsImageSize(buf []byte, offset flatbuffers.UOffsetT) *ImageSize

func GetSizePrefixedRootAsImageSize

func GetSizePrefixedRootAsImageSize(buf []byte, offset flatbuffers.UOffsetT) *ImageSize

func (*ImageSize) Height

func (rcv *ImageSize) Height() uint32

func (*ImageSize) Init

func (rcv *ImageSize) Init(buf []byte, i flatbuffers.UOffsetT)

func (*ImageSize) MutateHeight

func (rcv *ImageSize) MutateHeight(n uint32) bool

func (*ImageSize) MutateWidth

func (rcv *ImageSize) MutateWidth(n uint32) bool

func (*ImageSize) Table

func (rcv *ImageSize) Table() flatbuffers.Table

func (*ImageSize) UnPack

func (rcv *ImageSize) UnPack() *ImageSizeT

func (*ImageSize) UnPackTo

func (rcv *ImageSize) UnPackTo(t *ImageSizeT)

func (*ImageSize) Width

func (rcv *ImageSize) Width() uint32

type ImageSizeT

type ImageSizeT struct {
	Width  uint32
	Height uint32
}

func (*ImageSizeT) Pack

type ModelMetadata

type ModelMetadata struct {
	// contains filtered or unexported fields
}

func GetRootAsModelMetadata

func GetRootAsModelMetadata(buf []byte, offset flatbuffers.UOffsetT) *ModelMetadata

func GetSizePrefixedRootAsModelMetadata

func GetSizePrefixedRootAsModelMetadata(buf []byte, offset flatbuffers.UOffsetT) *ModelMetadata

func (*ModelMetadata) AssociatedFiles

func (rcv *ModelMetadata) AssociatedFiles(obj *AssociatedFile, j int) bool

func (*ModelMetadata) AssociatedFilesLength

func (rcv *ModelMetadata) AssociatedFilesLength() int

func (*ModelMetadata) Author

func (rcv *ModelMetadata) Author() []byte

func (*ModelMetadata) Description

func (rcv *ModelMetadata) Description() []byte

func (*ModelMetadata) Init

func (rcv *ModelMetadata) Init(buf []byte, i flatbuffers.UOffsetT)

func (*ModelMetadata) License

func (rcv *ModelMetadata) License() []byte

func (*ModelMetadata) MinParserVersion

func (rcv *ModelMetadata) MinParserVersion() []byte

func (*ModelMetadata) Name

func (rcv *ModelMetadata) Name() []byte

func (*ModelMetadata) SubgraphMetadata

func (rcv *ModelMetadata) SubgraphMetadata(obj *SubGraphMetadata, j int) bool

func (*ModelMetadata) SubgraphMetadataLength

func (rcv *ModelMetadata) SubgraphMetadataLength() int

func (*ModelMetadata) Table

func (rcv *ModelMetadata) Table() flatbuffers.Table

func (*ModelMetadata) UnPack

func (rcv *ModelMetadata) UnPack() *ModelMetadataT

func (*ModelMetadata) UnPackTo

func (rcv *ModelMetadata) UnPackTo(t *ModelMetadataT)

func (*ModelMetadata) Version

func (rcv *ModelMetadata) Version() []byte

type ModelMetadataT

type ModelMetadataT struct {
	Name             string
	Description      string
	Version          string
	SubgraphMetadata []*SubGraphMetadataT
	Author           string
	License          string
	AssociatedFiles  []*AssociatedFileT
	MinParserVersion string
}

func (*ModelMetadataT) Pack

type NormalizationOptions

type NormalizationOptions struct {
	// contains filtered or unexported fields
}

func GetRootAsNormalizationOptions

func GetRootAsNormalizationOptions(buf []byte, offset flatbuffers.UOffsetT) *NormalizationOptions

func GetSizePrefixedRootAsNormalizationOptions

func GetSizePrefixedRootAsNormalizationOptions(buf []byte, offset flatbuffers.UOffsetT) *NormalizationOptions

func (*NormalizationOptions) Init

func (rcv *NormalizationOptions) Init(buf []byte, i flatbuffers.UOffsetT)

func (*NormalizationOptions) Mean

func (rcv *NormalizationOptions) Mean(j int) float32

func (*NormalizationOptions) MeanLength

func (rcv *NormalizationOptions) MeanLength() int

func (*NormalizationOptions) MutateMean

func (rcv *NormalizationOptions) MutateMean(j int, n float32) bool

func (*NormalizationOptions) MutateStd

func (rcv *NormalizationOptions) MutateStd(j int, n float32) bool

func (*NormalizationOptions) Std

func (rcv *NormalizationOptions) Std(j int) float32

func (*NormalizationOptions) StdLength

func (rcv *NormalizationOptions) StdLength() int

func (*NormalizationOptions) Table

func (rcv *NormalizationOptions) Table() flatbuffers.Table

func (*NormalizationOptions) UnPack

func (*NormalizationOptions) UnPackTo

func (rcv *NormalizationOptions) UnPackTo(t *NormalizationOptionsT)

type NormalizationOptionsT

type NormalizationOptionsT struct {
	Mean []float32
	Std  []float32
}

func (*NormalizationOptionsT) Pack

type ProcessUnit

type ProcessUnit struct {
	// contains filtered or unexported fields
}

func GetRootAsProcessUnit

func GetRootAsProcessUnit(buf []byte, offset flatbuffers.UOffsetT) *ProcessUnit

func GetSizePrefixedRootAsProcessUnit

func GetSizePrefixedRootAsProcessUnit(buf []byte, offset flatbuffers.UOffsetT) *ProcessUnit

func (*ProcessUnit) Init

func (rcv *ProcessUnit) Init(buf []byte, i flatbuffers.UOffsetT)

func (*ProcessUnit) MutateOptionsType

func (rcv *ProcessUnit) MutateOptionsType(n ProcessUnitOptions) bool

func (*ProcessUnit) Options

func (rcv *ProcessUnit) Options(obj *flatbuffers.Table) bool

func (*ProcessUnit) OptionsType

func (rcv *ProcessUnit) OptionsType() ProcessUnitOptions

func (*ProcessUnit) Table

func (rcv *ProcessUnit) Table() flatbuffers.Table

func (*ProcessUnit) UnPack

func (rcv *ProcessUnit) UnPack() *ProcessUnitT

func (*ProcessUnit) UnPackTo

func (rcv *ProcessUnit) UnPackTo(t *ProcessUnitT)

type ProcessUnitOptions

type ProcessUnitOptions byte
const (
	ProcessUnitOptionsNONE                          ProcessUnitOptions = 0
	ProcessUnitOptionsNormalizationOptions          ProcessUnitOptions = 1
	ProcessUnitOptionsScoreCalibrationOptions       ProcessUnitOptions = 2
	ProcessUnitOptionsScoreThresholdingOptions      ProcessUnitOptions = 3
	ProcessUnitOptionsBertTokenizerOptions          ProcessUnitOptions = 4
	ProcessUnitOptionsSentencePieceTokenizerOptions ProcessUnitOptions = 5
	ProcessUnitOptionsRegexTokenizerOptions         ProcessUnitOptions = 6
)

func (ProcessUnitOptions) String

func (v ProcessUnitOptions) String() string

func (ProcessUnitOptions) UnPack

type ProcessUnitOptionsT

type ProcessUnitOptionsT struct {
	Type  ProcessUnitOptions
	Value interface{}
}

func (*ProcessUnitOptionsT) Pack

type ProcessUnitT

type ProcessUnitT struct {
	Options *ProcessUnitOptionsT
}

func (*ProcessUnitT) Pack

type RegexTokenizerOptions

type RegexTokenizerOptions struct {
	// contains filtered or unexported fields
}

func GetRootAsRegexTokenizerOptions

func GetRootAsRegexTokenizerOptions(buf []byte, offset flatbuffers.UOffsetT) *RegexTokenizerOptions

func GetSizePrefixedRootAsRegexTokenizerOptions

func GetSizePrefixedRootAsRegexTokenizerOptions(buf []byte, offset flatbuffers.UOffsetT) *RegexTokenizerOptions

func (*RegexTokenizerOptions) DelimRegexPattern

func (rcv *RegexTokenizerOptions) DelimRegexPattern() []byte

func (*RegexTokenizerOptions) Init

func (rcv *RegexTokenizerOptions) Init(buf []byte, i flatbuffers.UOffsetT)

func (*RegexTokenizerOptions) Table

func (*RegexTokenizerOptions) UnPack

func (*RegexTokenizerOptions) UnPackTo

func (*RegexTokenizerOptions) VocabFile

func (rcv *RegexTokenizerOptions) VocabFile(obj *AssociatedFile, j int) bool

func (*RegexTokenizerOptions) VocabFileLength

func (rcv *RegexTokenizerOptions) VocabFileLength() int

type RegexTokenizerOptionsT

type RegexTokenizerOptionsT struct {
	DelimRegexPattern string
	VocabFile         []*AssociatedFileT
}

func (*RegexTokenizerOptionsT) Pack

type ScoreCalibrationOptions

type ScoreCalibrationOptions struct {
	// contains filtered or unexported fields
}

func GetRootAsScoreCalibrationOptions

func GetRootAsScoreCalibrationOptions(buf []byte, offset flatbuffers.UOffsetT) *ScoreCalibrationOptions

func GetSizePrefixedRootAsScoreCalibrationOptions

func GetSizePrefixedRootAsScoreCalibrationOptions(buf []byte, offset flatbuffers.UOffsetT) *ScoreCalibrationOptions

func (*ScoreCalibrationOptions) DefaultScore

func (rcv *ScoreCalibrationOptions) DefaultScore() float32

func (*ScoreCalibrationOptions) Init

func (rcv *ScoreCalibrationOptions) Init(buf []byte, i flatbuffers.UOffsetT)

func (*ScoreCalibrationOptions) MutateDefaultScore

func (rcv *ScoreCalibrationOptions) MutateDefaultScore(n float32) bool

func (*ScoreCalibrationOptions) MutateScoreTransformation

func (rcv *ScoreCalibrationOptions) MutateScoreTransformation(n ScoreTransformationType) bool

func (*ScoreCalibrationOptions) ScoreTransformation

func (rcv *ScoreCalibrationOptions) ScoreTransformation() ScoreTransformationType

func (*ScoreCalibrationOptions) Table

func (*ScoreCalibrationOptions) UnPack

func (*ScoreCalibrationOptions) UnPackTo

type ScoreCalibrationOptionsT

type ScoreCalibrationOptionsT struct {
	ScoreTransformation ScoreTransformationType
	DefaultScore        float32
}

func (*ScoreCalibrationOptionsT) Pack

type ScoreThresholdingOptions

type ScoreThresholdingOptions struct {
	// contains filtered or unexported fields
}

func GetRootAsScoreThresholdingOptions

func GetRootAsScoreThresholdingOptions(buf []byte, offset flatbuffers.UOffsetT) *ScoreThresholdingOptions

func GetSizePrefixedRootAsScoreThresholdingOptions

func GetSizePrefixedRootAsScoreThresholdingOptions(buf []byte, offset flatbuffers.UOffsetT) *ScoreThresholdingOptions

func (*ScoreThresholdingOptions) GlobalScoreThreshold

func (rcv *ScoreThresholdingOptions) GlobalScoreThreshold() float32

func (*ScoreThresholdingOptions) Init

func (rcv *ScoreThresholdingOptions) Init(buf []byte, i flatbuffers.UOffsetT)

func (*ScoreThresholdingOptions) MutateGlobalScoreThreshold

func (rcv *ScoreThresholdingOptions) MutateGlobalScoreThreshold(n float32) bool

func (*ScoreThresholdingOptions) Table

func (*ScoreThresholdingOptions) UnPack

func (*ScoreThresholdingOptions) UnPackTo

type ScoreThresholdingOptionsT

type ScoreThresholdingOptionsT struct {
	GlobalScoreThreshold float32
}

func (*ScoreThresholdingOptionsT) Pack

type ScoreTransformationType

type ScoreTransformationType int8
const (
	ScoreTransformationTypeIDENTITY         ScoreTransformationType = 0
	ScoreTransformationTypeLOG              ScoreTransformationType = 1
	ScoreTransformationTypeINVERSE_LOGISTIC ScoreTransformationType = 2
)

func (ScoreTransformationType) String

func (v ScoreTransformationType) String() string

type SentencePieceTokenizerOptions

type SentencePieceTokenizerOptions struct {
	// contains filtered or unexported fields
}

func GetRootAsSentencePieceTokenizerOptions

func GetRootAsSentencePieceTokenizerOptions(buf []byte, offset flatbuffers.UOffsetT) *SentencePieceTokenizerOptions

func GetSizePrefixedRootAsSentencePieceTokenizerOptions

func GetSizePrefixedRootAsSentencePieceTokenizerOptions(buf []byte, offset flatbuffers.UOffsetT) *SentencePieceTokenizerOptions

func (*SentencePieceTokenizerOptions) Init

func (*SentencePieceTokenizerOptions) SentencePieceModel

func (rcv *SentencePieceTokenizerOptions) SentencePieceModel(obj *AssociatedFile, j int) bool

func (*SentencePieceTokenizerOptions) SentencePieceModelLength

func (rcv *SentencePieceTokenizerOptions) SentencePieceModelLength() int

func (*SentencePieceTokenizerOptions) Table

func (*SentencePieceTokenizerOptions) UnPack

func (*SentencePieceTokenizerOptions) UnPackTo

func (*SentencePieceTokenizerOptions) VocabFile

func (rcv *SentencePieceTokenizerOptions) VocabFile(obj *AssociatedFile, j int) bool

func (*SentencePieceTokenizerOptions) VocabFileLength

func (rcv *SentencePieceTokenizerOptions) VocabFileLength() int

type SentencePieceTokenizerOptionsT

type SentencePieceTokenizerOptionsT struct {
	SentencePieceModel []*AssociatedFileT
	VocabFile          []*AssociatedFileT
}

func (*SentencePieceTokenizerOptionsT) Pack

type Stats

type Stats struct {
	// contains filtered or unexported fields
}

func GetRootAsStats

func GetRootAsStats(buf []byte, offset flatbuffers.UOffsetT) *Stats

func GetSizePrefixedRootAsStats

func GetSizePrefixedRootAsStats(buf []byte, offset flatbuffers.UOffsetT) *Stats

func (*Stats) Init

func (rcv *Stats) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Stats) Max

func (rcv *Stats) Max(j int) float32

func (*Stats) MaxLength

func (rcv *Stats) MaxLength() int

func (*Stats) Min

func (rcv *Stats) Min(j int) float32

func (*Stats) MinLength

func (rcv *Stats) MinLength() int

func (*Stats) MutateMax

func (rcv *Stats) MutateMax(j int, n float32) bool

func (*Stats) MutateMin

func (rcv *Stats) MutateMin(j int, n float32) bool

func (*Stats) Table

func (rcv *Stats) Table() flatbuffers.Table

func (*Stats) UnPack

func (rcv *Stats) UnPack() *StatsT

func (*Stats) UnPackTo

func (rcv *Stats) UnPackTo(t *StatsT)

type StatsT

type StatsT struct {
	Max []float32
	Min []float32
}

func (*StatsT) Pack

func (t *StatsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT

type SubGraphMetadata

type SubGraphMetadata struct {
	// contains filtered or unexported fields
}

func GetRootAsSubGraphMetadata

func GetRootAsSubGraphMetadata(buf []byte, offset flatbuffers.UOffsetT) *SubGraphMetadata

func GetSizePrefixedRootAsSubGraphMetadata

func GetSizePrefixedRootAsSubGraphMetadata(buf []byte, offset flatbuffers.UOffsetT) *SubGraphMetadata

func (*SubGraphMetadata) AssociatedFiles

func (rcv *SubGraphMetadata) AssociatedFiles(obj *AssociatedFile, j int) bool

func (*SubGraphMetadata) AssociatedFilesLength

func (rcv *SubGraphMetadata) AssociatedFilesLength() int

func (*SubGraphMetadata) Description

func (rcv *SubGraphMetadata) Description() []byte

func (*SubGraphMetadata) Init

func (rcv *SubGraphMetadata) Init(buf []byte, i flatbuffers.UOffsetT)

func (*SubGraphMetadata) InputProcessUnits

func (rcv *SubGraphMetadata) InputProcessUnits(obj *ProcessUnit, j int) bool

func (*SubGraphMetadata) InputProcessUnitsLength

func (rcv *SubGraphMetadata) InputProcessUnitsLength() int

func (*SubGraphMetadata) InputTensorGroups

func (rcv *SubGraphMetadata) InputTensorGroups(obj *TensorGroup, j int) bool

func (*SubGraphMetadata) InputTensorGroupsLength

func (rcv *SubGraphMetadata) InputTensorGroupsLength() int

func (*SubGraphMetadata) InputTensorMetadata

func (rcv *SubGraphMetadata) InputTensorMetadata(obj *TensorMetadata, j int) bool

func (*SubGraphMetadata) InputTensorMetadataLength

func (rcv *SubGraphMetadata) InputTensorMetadataLength() int

func (*SubGraphMetadata) Name

func (rcv *SubGraphMetadata) Name() []byte

func (*SubGraphMetadata) OutputProcessUnits

func (rcv *SubGraphMetadata) OutputProcessUnits(obj *ProcessUnit, j int) bool

func (*SubGraphMetadata) OutputProcessUnitsLength

func (rcv *SubGraphMetadata) OutputProcessUnitsLength() int

func (*SubGraphMetadata) OutputTensorGroups

func (rcv *SubGraphMetadata) OutputTensorGroups(obj *TensorGroup, j int) bool

func (*SubGraphMetadata) OutputTensorGroupsLength

func (rcv *SubGraphMetadata) OutputTensorGroupsLength() int

func (*SubGraphMetadata) OutputTensorMetadata

func (rcv *SubGraphMetadata) OutputTensorMetadata(obj *TensorMetadata, j int) bool

func (*SubGraphMetadata) OutputTensorMetadataLength

func (rcv *SubGraphMetadata) OutputTensorMetadataLength() int

func (*SubGraphMetadata) Table

func (rcv *SubGraphMetadata) Table() flatbuffers.Table

func (*SubGraphMetadata) UnPack

func (rcv *SubGraphMetadata) UnPack() *SubGraphMetadataT

func (*SubGraphMetadata) UnPackTo

func (rcv *SubGraphMetadata) UnPackTo(t *SubGraphMetadataT)

type SubGraphMetadataT

type SubGraphMetadataT struct {
	Name                 string
	Description          string
	InputTensorMetadata  []*TensorMetadataT
	OutputTensorMetadata []*TensorMetadataT
	AssociatedFiles      []*AssociatedFileT
	InputProcessUnits    []*ProcessUnitT
	OutputProcessUnits   []*ProcessUnitT
	InputTensorGroups    []*TensorGroupT
	OutputTensorGroups   []*TensorGroupT
}

func (*SubGraphMetadataT) Pack

type TensorGroup

type TensorGroup struct {
	// contains filtered or unexported fields
}

func GetRootAsTensorGroup

func GetRootAsTensorGroup(buf []byte, offset flatbuffers.UOffsetT) *TensorGroup

func GetSizePrefixedRootAsTensorGroup

func GetSizePrefixedRootAsTensorGroup(buf []byte, offset flatbuffers.UOffsetT) *TensorGroup

func (*TensorGroup) Init

func (rcv *TensorGroup) Init(buf []byte, i flatbuffers.UOffsetT)

func (*TensorGroup) Name

func (rcv *TensorGroup) Name() []byte

func (*TensorGroup) Table

func (rcv *TensorGroup) Table() flatbuffers.Table

func (*TensorGroup) TensorNames

func (rcv *TensorGroup) TensorNames(j int) []byte

func (*TensorGroup) TensorNamesLength

func (rcv *TensorGroup) TensorNamesLength() int

func (*TensorGroup) UnPack

func (rcv *TensorGroup) UnPack() *TensorGroupT

func (*TensorGroup) UnPackTo

func (rcv *TensorGroup) UnPackTo(t *TensorGroupT)

type TensorGroupT

type TensorGroupT struct {
	Name        string
	TensorNames []string
}

func (*TensorGroupT) Pack

type TensorMetadata

type TensorMetadata struct {
	// contains filtered or unexported fields
}

func GetRootAsTensorMetadata

func GetRootAsTensorMetadata(buf []byte, offset flatbuffers.UOffsetT) *TensorMetadata

func GetSizePrefixedRootAsTensorMetadata

func GetSizePrefixedRootAsTensorMetadata(buf []byte, offset flatbuffers.UOffsetT) *TensorMetadata

func (*TensorMetadata) AssociatedFiles

func (rcv *TensorMetadata) AssociatedFiles(obj *AssociatedFile, j int) bool

func (*TensorMetadata) AssociatedFilesLength

func (rcv *TensorMetadata) AssociatedFilesLength() int

func (*TensorMetadata) Content

func (rcv *TensorMetadata) Content(obj *Content) *Content

func (*TensorMetadata) Description

func (rcv *TensorMetadata) Description() []byte

func (*TensorMetadata) DimensionNames

func (rcv *TensorMetadata) DimensionNames(j int) []byte

func (*TensorMetadata) DimensionNamesLength

func (rcv *TensorMetadata) DimensionNamesLength() int

func (*TensorMetadata) Init

func (rcv *TensorMetadata) Init(buf []byte, i flatbuffers.UOffsetT)

func (*TensorMetadata) Name

func (rcv *TensorMetadata) Name() []byte

func (*TensorMetadata) ProcessUnits

func (rcv *TensorMetadata) ProcessUnits(obj *ProcessUnit, j int) bool

func (*TensorMetadata) ProcessUnitsLength

func (rcv *TensorMetadata) ProcessUnitsLength() int

func (*TensorMetadata) Stats

func (rcv *TensorMetadata) Stats(obj *Stats) *Stats

func (*TensorMetadata) Table

func (rcv *TensorMetadata) Table() flatbuffers.Table

func (*TensorMetadata) UnPack

func (rcv *TensorMetadata) UnPack() *TensorMetadataT

func (*TensorMetadata) UnPackTo

func (rcv *TensorMetadata) UnPackTo(t *TensorMetadataT)

type TensorMetadataT

type TensorMetadataT struct {
	Name            string
	Description     string
	DimensionNames  []string
	Content         *ContentT
	ProcessUnits    []*ProcessUnitT
	Stats           *StatsT
	AssociatedFiles []*AssociatedFileT
}

func (*TensorMetadataT) Pack

type ValueRange

type ValueRange struct {
	// contains filtered or unexported fields
}

func GetRootAsValueRange

func GetRootAsValueRange(buf []byte, offset flatbuffers.UOffsetT) *ValueRange

func GetSizePrefixedRootAsValueRange

func GetSizePrefixedRootAsValueRange(buf []byte, offset flatbuffers.UOffsetT) *ValueRange

func (*ValueRange) Init

func (rcv *ValueRange) Init(buf []byte, i flatbuffers.UOffsetT)

func (*ValueRange) Max

func (rcv *ValueRange) Max() int32

func (*ValueRange) Min

func (rcv *ValueRange) Min() int32

func (*ValueRange) MutateMax

func (rcv *ValueRange) MutateMax(n int32) bool

func (*ValueRange) MutateMin

func (rcv *ValueRange) MutateMin(n int32) bool

func (*ValueRange) Table

func (rcv *ValueRange) Table() flatbuffers.Table

func (*ValueRange) UnPack

func (rcv *ValueRange) UnPack() *ValueRangeT

func (*ValueRange) UnPackTo

func (rcv *ValueRange) UnPackTo(t *ValueRangeT)

type ValueRangeT

type ValueRangeT struct {
	Min int32
	Max int32
}

func (*ValueRangeT) Pack

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL