tensorflow_serving

package
v0.5.2-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Input) GetExampleList

func (m *Input) GetExampleList() *ExampleList

func (*Input) GetExampleListWithContext

func (m *Input) GetExampleListWithContext() *ExampleListWithContext

func (*Input) GetKind

func (m *Input) GetKind() isInput_Kind

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) Reset

func (m *Input) Reset()

func (*Input) String

func (m *Input) String() string

func (*Input) XXX_OneofFuncs

func (*Input) 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 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.

Jump to

Keyboard shortcuts

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