Documentation ¶
Overview ¶
Package tensorflow_serving is a generated protocol buffer package.
It is generated from these files:
input.proto
It has these top-level messages:
ExampleList ExampleListWithContext Input
Index ¶
- type ExampleList
- type ExampleListWithContext
- func (*ExampleListWithContext) Descriptor() ([]byte, []int)
- func (m *ExampleListWithContext) GetContext() *tensorflow1.Example
- func (m *ExampleListWithContext) GetExamples() []*tensorflow1.Example
- func (*ExampleListWithContext) ProtoMessage()
- func (m *ExampleListWithContext) Reset()
- func (m *ExampleListWithContext) String() string
- type Input
- func (*Input) Descriptor() ([]byte, []int)
- func (m *Input) GetExampleList() *ExampleList
- func (m *Input) GetExampleListWithContext() *ExampleListWithContext
- func (m *Input) GetKind() isInput_Kind
- func (*Input) ProtoMessage()
- func (m *Input) Reset()
- func (m *Input) String() string
- func (*Input) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Input_ExampleList
- type Input_ExampleListWithContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExampleList ¶
type ExampleList struct {
Examples []*tensorflow1.Example `protobuf:"bytes,1,rep,name=examples" json:"examples,omitempty"`
}
Specifies one or more fully independent input Examples. See examples at:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/example/example.proto
func (*ExampleList) Descriptor ¶
func (*ExampleList) Descriptor() ([]byte, []int)
func (*ExampleList) GetExamples ¶
func (m *ExampleList) GetExamples() []*tensorflow1.Example
func (*ExampleList) ProtoMessage ¶
func (*ExampleList) ProtoMessage()
func (*ExampleList) Reset ¶
func (m *ExampleList) Reset()
func (*ExampleList) String ¶
func (m *ExampleList) String() string
type ExampleListWithContext ¶
type ExampleListWithContext struct { Examples []*tensorflow1.Example `protobuf:"bytes,1,rep,name=examples" json:"examples,omitempty"` Context *tensorflow1.Example `protobuf:"bytes,2,opt,name=context" json:"context,omitempty"` }
Specifies one or more independent input Examples, with a common context Example.
The common use case for context is to cleanly and optimally specify some features that are common across multiple examples.
See example below with a search query as the context and multiple restaurants to perform some inference on.
context: { feature: { key : "query" value: { bytes_list: { value: [ "pizza" ] } } } }
examples: { feature: { key : "cuisine" value: { bytes_list: { value: [ "Pizzeria" ] } } } }
examples: { feature: { key : "cuisine" value: { bytes_list: { value: [ "Taqueria" ] } } } }
Implementations of ExampleListWithContext merge the context Example into each of the Examples. Note that feature keys must not be duplicated between the Examples and context Example, or the behavior is undefined.
See also:
tensorflow/core/example/example.proto https://developers.google.com/protocol-buffers/docs/proto3#maps
func (*ExampleListWithContext) Descriptor ¶
func (*ExampleListWithContext) Descriptor() ([]byte, []int)
func (*ExampleListWithContext) GetContext ¶
func (m *ExampleListWithContext) GetContext() *tensorflow1.Example
func (*ExampleListWithContext) GetExamples ¶
func (m *ExampleListWithContext) GetExamples() []*tensorflow1.Example
func (*ExampleListWithContext) ProtoMessage ¶
func (*ExampleListWithContext) ProtoMessage()
func (*ExampleListWithContext) Reset ¶
func (m *ExampleListWithContext) Reset()
func (*ExampleListWithContext) String ¶
func (m *ExampleListWithContext) String() string
type Input ¶
type Input struct { // Types that are valid to be assigned to Kind: // *Input_ExampleList // *Input_ExampleListWithContext Kind isInput_Kind `protobuf_oneof:"kind"` }
func (*Input) Descriptor ¶
func (*Input) GetExampleList ¶
func (m *Input) GetExampleList() *ExampleList
func (*Input) GetExampleListWithContext ¶
func (m *Input) GetExampleListWithContext() *ExampleListWithContext
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
type Input_ExampleList ¶
type Input_ExampleList struct {
ExampleList *ExampleList `protobuf:"bytes,1,opt,name=example_list,json=exampleList,oneof"`
}
type Input_ExampleListWithContext ¶
type Input_ExampleListWithContext struct {
ExampleListWithContext *ExampleListWithContext `protobuf:"bytes,2,opt,name=example_list_with_context,json=exampleListWithContext,oneof"`
}
Directories ¶
Path | Synopsis |
---|---|
tensorflow
|
|
core/example
Package tensorflow is a generated protocol buffer package.
|
Package tensorflow is a generated protocol buffer package. |
core/framework
Package tensorflow is a generated protocol buffer package.
|
Package tensorflow is a generated protocol buffer package. |
core/protobuf
Package tensorflow is a generated protocol buffer package.
|
Package tensorflow is a generated protocol buffer package. |