example

package
v0.0.0-...-d1695c4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package example is a generated protocol buffer package.

It is generated from these files:

tensorflow/core/example/example.proto
tensorflow/core/example/example_parser_configuration.proto
tensorflow/core/example/feature.proto

It has these top-level messages:

Example
SequenceExample
VarLenFeatureProto
FixedLenFeatureProto
FeatureConfiguration
ExampleParserConfiguration
BytesList
FloatList
Int64List
Feature
Features
FeatureList
FeatureLists

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BytesList

type BytesList struct {
	Value [][]byte `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
}

Containers to hold repeated fundamental values.

func (*BytesList) Descriptor

func (*BytesList) Descriptor() ([]byte, []int)

func (*BytesList) GetValue

func (m *BytesList) GetValue() [][]byte

func (*BytesList) ProtoMessage

func (*BytesList) ProtoMessage()

func (*BytesList) Reset

func (m *BytesList) Reset()

func (*BytesList) String

func (m *BytesList) String() string

type Example

type Example struct {
	Features *Features `protobuf:"bytes,1,opt,name=features" json:"features,omitempty"`
}

func (*Example) Descriptor

func (*Example) Descriptor() ([]byte, []int)

func (*Example) GetFeatures

func (m *Example) GetFeatures() *Features

func (*Example) ProtoMessage

func (*Example) ProtoMessage()

func (*Example) Reset

func (m *Example) Reset()

func (*Example) String

func (m *Example) String() string

type ExampleParserConfiguration

type ExampleParserConfiguration struct {
	FeatureMap map[string]*FeatureConfiguration `` /* 158-byte string literal not displayed */
}

func (*ExampleParserConfiguration) Descriptor

func (*ExampleParserConfiguration) Descriptor() ([]byte, []int)

func (*ExampleParserConfiguration) GetFeatureMap

func (m *ExampleParserConfiguration) GetFeatureMap() map[string]*FeatureConfiguration

func (*ExampleParserConfiguration) ProtoMessage

func (*ExampleParserConfiguration) ProtoMessage()

func (*ExampleParserConfiguration) Reset

func (m *ExampleParserConfiguration) Reset()

func (*ExampleParserConfiguration) String

func (m *ExampleParserConfiguration) String() string

type Feature

type Feature struct {
	// Each feature can be exactly one kind.
	//
	// Types that are valid to be assigned to Kind:
	//	*Feature_BytesList
	//	*Feature_FloatList
	//	*Feature_Int64List
	Kind isFeature_Kind `protobuf_oneof:"kind"`
}

Containers for non-sequential data.

func (*Feature) Descriptor

func (*Feature) Descriptor() ([]byte, []int)

func (*Feature) GetBytesList

func (m *Feature) GetBytesList() *BytesList

func (*Feature) GetFloatList

func (m *Feature) GetFloatList() *FloatList

func (*Feature) GetInt64List

func (m *Feature) GetInt64List() *Int64List

func (*Feature) GetKind

func (m *Feature) GetKind() isFeature_Kind

func (*Feature) ProtoMessage

func (*Feature) ProtoMessage()

func (*Feature) Reset

func (m *Feature) Reset()

func (*Feature) String

func (m *Feature) String() string

func (*Feature) XXX_OneofFuncs

func (*Feature) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type FeatureConfiguration

type FeatureConfiguration struct {
	// Types that are valid to be assigned to Config:
	//	*FeatureConfiguration_FixedLenFeature
	//	*FeatureConfiguration_VarLenFeature
	Config isFeatureConfiguration_Config `protobuf_oneof:"config"`
}

func (*FeatureConfiguration) Descriptor

func (*FeatureConfiguration) Descriptor() ([]byte, []int)

func (*FeatureConfiguration) GetConfig

func (m *FeatureConfiguration) GetConfig() isFeatureConfiguration_Config

func (*FeatureConfiguration) GetFixedLenFeature

func (m *FeatureConfiguration) GetFixedLenFeature() *FixedLenFeatureProto

func (*FeatureConfiguration) GetVarLenFeature

func (m *FeatureConfiguration) GetVarLenFeature() *VarLenFeatureProto

func (*FeatureConfiguration) ProtoMessage

func (*FeatureConfiguration) ProtoMessage()

func (*FeatureConfiguration) Reset

func (m *FeatureConfiguration) Reset()

func (*FeatureConfiguration) String

func (m *FeatureConfiguration) String() string

func (*FeatureConfiguration) XXX_OneofFuncs

func (*FeatureConfiguration) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type FeatureConfiguration_FixedLenFeature

type FeatureConfiguration_FixedLenFeature struct {
	FixedLenFeature *FixedLenFeatureProto `protobuf:"bytes,1,opt,name=fixed_len_feature,json=fixedLenFeature,oneof"`
}

type FeatureConfiguration_VarLenFeature

type FeatureConfiguration_VarLenFeature struct {
	VarLenFeature *VarLenFeatureProto `protobuf:"bytes,2,opt,name=var_len_feature,json=varLenFeature,oneof"`
}

type FeatureList

type FeatureList struct {
	Feature []*Feature `protobuf:"bytes,1,rep,name=feature" json:"feature,omitempty"`
}

Containers for sequential data.

A FeatureList contains lists of Features. These may hold zero or more Feature values.

FeatureLists are organized into categories by name. The FeatureLists message contains the mapping from name to FeatureList.

func (*FeatureList) Descriptor

func (*FeatureList) Descriptor() ([]byte, []int)

func (*FeatureList) GetFeature

func (m *FeatureList) GetFeature() []*Feature

func (*FeatureList) ProtoMessage

func (*FeatureList) ProtoMessage()

func (*FeatureList) Reset

func (m *FeatureList) Reset()

func (*FeatureList) String

func (m *FeatureList) String() string

type FeatureLists

type FeatureLists struct {
	// Map from feature name to feature list.
	FeatureList map[string]*FeatureList `` /* 161-byte string literal not displayed */
}

func (*FeatureLists) Descriptor

func (*FeatureLists) Descriptor() ([]byte, []int)

func (*FeatureLists) GetFeatureList

func (m *FeatureLists) GetFeatureList() map[string]*FeatureList

func (*FeatureLists) ProtoMessage

func (*FeatureLists) ProtoMessage()

func (*FeatureLists) Reset

func (m *FeatureLists) Reset()

func (*FeatureLists) String

func (m *FeatureLists) String() string

type Feature_BytesList

type Feature_BytesList struct {
	BytesList *BytesList `protobuf:"bytes,1,opt,name=bytes_list,json=bytesList,oneof"`
}

type Feature_FloatList

type Feature_FloatList struct {
	FloatList *FloatList `protobuf:"bytes,2,opt,name=float_list,json=floatList,oneof"`
}

type Feature_Int64List

type Feature_Int64List struct {
	Int64List *Int64List `protobuf:"bytes,3,opt,name=int64_list,json=int64List,oneof"`
}

type Features

type Features struct {
	// Map from feature name to feature.
	Feature map[string]*Feature `` /* 134-byte string literal not displayed */
}

func (*Features) Descriptor

func (*Features) Descriptor() ([]byte, []int)

func (*Features) GetFeature

func (m *Features) GetFeature() map[string]*Feature

func (*Features) ProtoMessage

func (*Features) ProtoMessage()

func (*Features) Reset

func (m *Features) Reset()

func (*Features) String

func (m *Features) String() string

type FixedLenFeatureProto

type FixedLenFeatureProto struct {
	Dtype                  tensorflow2.DataType         `protobuf:"varint,1,opt,name=dtype,enum=tensorflow.DataType" json:"dtype,omitempty"`
	Shape                  *tensorflow.TensorShapeProto `protobuf:"bytes,2,opt,name=shape" json:"shape,omitempty"`
	DefaultValue           *tensorflow3.TensorProto     `protobuf:"bytes,3,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"`
	ValuesOutputTensorName string                       `protobuf:"bytes,4,opt,name=values_output_tensor_name,json=valuesOutputTensorName" json:"values_output_tensor_name,omitempty"`
}

func (*FixedLenFeatureProto) Descriptor

func (*FixedLenFeatureProto) Descriptor() ([]byte, []int)

func (*FixedLenFeatureProto) GetDefaultValue

func (m *FixedLenFeatureProto) GetDefaultValue() *tensorflow3.TensorProto

func (*FixedLenFeatureProto) GetDtype

func (*FixedLenFeatureProto) GetShape

func (*FixedLenFeatureProto) GetValuesOutputTensorName

func (m *FixedLenFeatureProto) GetValuesOutputTensorName() string

func (*FixedLenFeatureProto) ProtoMessage

func (*FixedLenFeatureProto) ProtoMessage()

func (*FixedLenFeatureProto) Reset

func (m *FixedLenFeatureProto) Reset()

func (*FixedLenFeatureProto) String

func (m *FixedLenFeatureProto) String() string

type FloatList

type FloatList struct {
	Value []float32 `protobuf:"fixed32,1,rep,packed,name=value" json:"value,omitempty"`
}

func (*FloatList) Descriptor

func (*FloatList) Descriptor() ([]byte, []int)

func (*FloatList) GetValue

func (m *FloatList) GetValue() []float32

func (*FloatList) ProtoMessage

func (*FloatList) ProtoMessage()

func (*FloatList) Reset

func (m *FloatList) Reset()

func (*FloatList) String

func (m *FloatList) String() string

type Int64List

type Int64List struct {
	Value []int64 `protobuf:"varint,1,rep,packed,name=value" json:"value,omitempty"`
}

func (*Int64List) Descriptor

func (*Int64List) Descriptor() ([]byte, []int)

func (*Int64List) GetValue

func (m *Int64List) GetValue() []int64

func (*Int64List) ProtoMessage

func (*Int64List) ProtoMessage()

func (*Int64List) Reset

func (m *Int64List) Reset()

func (*Int64List) String

func (m *Int64List) String() string

type SequenceExample

type SequenceExample struct {
	Context      *Features     `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"`
	FeatureLists *FeatureLists `protobuf:"bytes,2,opt,name=feature_lists,json=featureLists" json:"feature_lists,omitempty"`
}

func (*SequenceExample) Descriptor

func (*SequenceExample) Descriptor() ([]byte, []int)

func (*SequenceExample) GetContext

func (m *SequenceExample) GetContext() *Features

func (*SequenceExample) GetFeatureLists

func (m *SequenceExample) GetFeatureLists() *FeatureLists

func (*SequenceExample) ProtoMessage

func (*SequenceExample) ProtoMessage()

func (*SequenceExample) Reset

func (m *SequenceExample) Reset()

func (*SequenceExample) String

func (m *SequenceExample) String() string

type VarLenFeatureProto

type VarLenFeatureProto struct {
	Dtype                   tensorflow2.DataType `protobuf:"varint,1,opt,name=dtype,enum=tensorflow.DataType" json:"dtype,omitempty"`
	ValuesOutputTensorName  string               `protobuf:"bytes,2,opt,name=values_output_tensor_name,json=valuesOutputTensorName" json:"values_output_tensor_name,omitempty"`
	IndicesOutputTensorName string               `` /* 127-byte string literal not displayed */
	ShapesOutputTensorName  string               `protobuf:"bytes,4,opt,name=shapes_output_tensor_name,json=shapesOutputTensorName" json:"shapes_output_tensor_name,omitempty"`
}

func (*VarLenFeatureProto) Descriptor

func (*VarLenFeatureProto) Descriptor() ([]byte, []int)

func (*VarLenFeatureProto) GetDtype

func (m *VarLenFeatureProto) GetDtype() tensorflow2.DataType

func (*VarLenFeatureProto) GetIndicesOutputTensorName

func (m *VarLenFeatureProto) GetIndicesOutputTensorName() string

func (*VarLenFeatureProto) GetShapesOutputTensorName

func (m *VarLenFeatureProto) GetShapesOutputTensorName() string

func (*VarLenFeatureProto) GetValuesOutputTensorName

func (m *VarLenFeatureProto) GetValuesOutputTensorName() string

func (*VarLenFeatureProto) ProtoMessage

func (*VarLenFeatureProto) ProtoMessage()

func (*VarLenFeatureProto) Reset

func (m *VarLenFeatureProto) Reset()

func (*VarLenFeatureProto) String

func (m *VarLenFeatureProto) String() string

Jump to

Keyboard shortcuts

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