example

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: ISC Imports: 4 Imported by: 0

Documentation

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*BytesList) XXX_DiscardUnknown

func (m *BytesList) XXX_DiscardUnknown()

func (*BytesList) XXX_Marshal

func (m *BytesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BytesList) XXX_Merge

func (dst *BytesList) XXX_Merge(src proto.Message)

func (*BytesList) XXX_Size

func (m *BytesList) XXX_Size() int

func (*BytesList) XXX_Unmarshal

func (m *BytesList) XXX_Unmarshal(b []byte) error

type Example

type Example struct {
	Features             *Features `protobuf:"bytes,1,opt,name=features,proto3" json:"features,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

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

func (*Example) XXX_DiscardUnknown

func (m *Example) XXX_DiscardUnknown()

func (*Example) XXX_Marshal

func (m *Example) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Example) XXX_Merge

func (dst *Example) XXX_Merge(src proto.Message)

func (*Example) XXX_Size

func (m *Example) XXX_Size() int

func (*Example) XXX_Unmarshal

func (m *Example) XXX_Unmarshal(b []byte) error

type ExampleParserConfiguration

type ExampleParserConfiguration struct {
	FeatureMap           map[string]*FeatureConfiguration `` /* 179-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

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

func (*ExampleParserConfiguration) XXX_DiscardUnknown

func (m *ExampleParserConfiguration) XXX_DiscardUnknown()

func (*ExampleParserConfiguration) XXX_Marshal

func (m *ExampleParserConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExampleParserConfiguration) XXX_Merge

func (dst *ExampleParserConfiguration) XXX_Merge(src proto.Message)

func (*ExampleParserConfiguration) XXX_Size

func (m *ExampleParserConfiguration) XXX_Size() int

func (*ExampleParserConfiguration) XXX_Unmarshal

func (m *ExampleParserConfiguration) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

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_DiscardUnknown

func (m *Feature) XXX_DiscardUnknown()

func (*Feature) XXX_Marshal

func (m *Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Feature) XXX_Merge

func (dst *Feature) XXX_Merge(src proto.Message)

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.

func (*Feature) XXX_Size

func (m *Feature) XXX_Size() int

func (*Feature) XXX_Unmarshal

func (m *Feature) XXX_Unmarshal(b []byte) error

type FeatureConfiguration

type FeatureConfiguration struct {
	// Types that are valid to be assigned to Config:
	//	*FeatureConfiguration_FixedLenFeature
	//	*FeatureConfiguration_VarLenFeature
	Config               isFeatureConfiguration_Config `protobuf_oneof:"config"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

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_DiscardUnknown

func (m *FeatureConfiguration) XXX_DiscardUnknown()

func (*FeatureConfiguration) XXX_Marshal

func (m *FeatureConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeatureConfiguration) XXX_Merge

func (dst *FeatureConfiguration) XXX_Merge(src proto.Message)

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.

func (*FeatureConfiguration) XXX_Size

func (m *FeatureConfiguration) XXX_Size() int

func (*FeatureConfiguration) XXX_Unmarshal

func (m *FeatureConfiguration) XXX_Unmarshal(b []byte) error

type FeatureConfiguration_FixedLenFeature

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

type FeatureConfiguration_VarLenFeature

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

type FeatureList

type FeatureList struct {
	Feature              []*Feature `protobuf:"bytes,1,rep,name=feature,proto3" json:"feature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

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

func (*FeatureList) XXX_DiscardUnknown

func (m *FeatureList) XXX_DiscardUnknown()

func (*FeatureList) XXX_Marshal

func (m *FeatureList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeatureList) XXX_Merge

func (dst *FeatureList) XXX_Merge(src proto.Message)

func (*FeatureList) XXX_Size

func (m *FeatureList) XXX_Size() int

func (*FeatureList) XXX_Unmarshal

func (m *FeatureList) XXX_Unmarshal(b []byte) error

type FeatureLists

type FeatureLists struct {
	// Map from feature name to feature list.
	FeatureList          map[string]*FeatureList `` /* 182-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

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

func (*FeatureLists) XXX_DiscardUnknown

func (m *FeatureLists) XXX_DiscardUnknown()

func (*FeatureLists) XXX_Marshal

func (m *FeatureLists) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeatureLists) XXX_Merge

func (dst *FeatureLists) XXX_Merge(src proto.Message)

func (*FeatureLists) XXX_Size

func (m *FeatureLists) XXX_Size() int

func (*FeatureLists) XXX_Unmarshal

func (m *FeatureLists) XXX_Unmarshal(b []byte) error

type Feature_BytesList

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

type Feature_FloatList

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

type Feature_Int64List

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

type Features

type Features struct {
	// Map from feature name to feature.
	Feature              map[string]*Feature `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

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

func (*Features) XXX_DiscardUnknown

func (m *Features) XXX_DiscardUnknown()

func (*Features) XXX_Marshal

func (m *Features) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features) XXX_Merge

func (dst *Features) XXX_Merge(src proto.Message)

func (*Features) XXX_Size

func (m *Features) XXX_Size() int

func (*Features) XXX_Unmarshal

func (m *Features) XXX_Unmarshal(b []byte) error

type FixedLenFeatureProto

type FixedLenFeatureProto struct {
	Dtype                  framework.DataType          `protobuf:"varint,1,opt,name=dtype,proto3,enum=tensorflow.DataType" json:"dtype,omitempty"`
	Shape                  *framework.TensorShapeProto `protobuf:"bytes,2,opt,name=shape,proto3" json:"shape,omitempty"`
	DefaultValue           *framework.TensorProto      `protobuf:"bytes,3,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	ValuesOutputTensorName string                      `` /* 131-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}                    `json:"-"`
	XXX_unrecognized       []byte                      `json:"-"`
	XXX_sizecache          int32                       `json:"-"`
}

func (*FixedLenFeatureProto) Descriptor

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

func (*FixedLenFeatureProto) GetDefaultValue

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

func (*FixedLenFeatureProto) GetDtype

func (m *FixedLenFeatureProto) GetDtype() framework.DataType

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

func (*FixedLenFeatureProto) XXX_DiscardUnknown

func (m *FixedLenFeatureProto) XXX_DiscardUnknown()

func (*FixedLenFeatureProto) XXX_Marshal

func (m *FixedLenFeatureProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FixedLenFeatureProto) XXX_Merge

func (dst *FixedLenFeatureProto) XXX_Merge(src proto.Message)

func (*FixedLenFeatureProto) XXX_Size

func (m *FixedLenFeatureProto) XXX_Size() int

func (*FixedLenFeatureProto) XXX_Unmarshal

func (m *FixedLenFeatureProto) XXX_Unmarshal(b []byte) error

type FloatList

type FloatList struct {
	Value                []float32 `protobuf:"fixed32,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

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

func (*FloatList) XXX_DiscardUnknown

func (m *FloatList) XXX_DiscardUnknown()

func (*FloatList) XXX_Marshal

func (m *FloatList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FloatList) XXX_Merge

func (dst *FloatList) XXX_Merge(src proto.Message)

func (*FloatList) XXX_Size

func (m *FloatList) XXX_Size() int

func (*FloatList) XXX_Unmarshal

func (m *FloatList) XXX_Unmarshal(b []byte) error

type Int64List

type Int64List struct {
	Value                []int64  `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*Int64List) XXX_DiscardUnknown

func (m *Int64List) XXX_DiscardUnknown()

func (*Int64List) XXX_Marshal

func (m *Int64List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int64List) XXX_Merge

func (dst *Int64List) XXX_Merge(src proto.Message)

func (*Int64List) XXX_Size

func (m *Int64List) XXX_Size() int

func (*Int64List) XXX_Unmarshal

func (m *Int64List) XXX_Unmarshal(b []byte) error

type SequenceExample

type SequenceExample struct {
	Context              *Features     `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	FeatureLists         *FeatureLists `protobuf:"bytes,2,opt,name=feature_lists,json=featureLists,proto3" json:"feature_lists,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

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

func (*SequenceExample) XXX_DiscardUnknown

func (m *SequenceExample) XXX_DiscardUnknown()

func (*SequenceExample) XXX_Marshal

func (m *SequenceExample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SequenceExample) XXX_Merge

func (dst *SequenceExample) XXX_Merge(src proto.Message)

func (*SequenceExample) XXX_Size

func (m *SequenceExample) XXX_Size() int

func (*SequenceExample) XXX_Unmarshal

func (m *SequenceExample) XXX_Unmarshal(b []byte) error

type VarLenFeatureProto

type VarLenFeatureProto struct {
	Dtype                   framework.DataType `protobuf:"varint,1,opt,name=dtype,proto3,enum=tensorflow.DataType" json:"dtype,omitempty"`
	ValuesOutputTensorName  string             `` /* 131-byte string literal not displayed */
	IndicesOutputTensorName string             `` /* 134-byte string literal not displayed */
	ShapesOutputTensorName  string             `` /* 131-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{}           `json:"-"`
	XXX_unrecognized        []byte             `json:"-"`
	XXX_sizecache           int32              `json:"-"`
}

func (*VarLenFeatureProto) Descriptor

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

func (*VarLenFeatureProto) GetDtype

func (m *VarLenFeatureProto) GetDtype() framework.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

func (*VarLenFeatureProto) XXX_DiscardUnknown

func (m *VarLenFeatureProto) XXX_DiscardUnknown()

func (*VarLenFeatureProto) XXX_Marshal

func (m *VarLenFeatureProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VarLenFeatureProto) XXX_Merge

func (dst *VarLenFeatureProto) XXX_Merge(src proto.Message)

func (*VarLenFeatureProto) XXX_Size

func (m *VarLenFeatureProto) XXX_Size() int

func (*VarLenFeatureProto) XXX_Unmarshal

func (m *VarLenFeatureProto) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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