session_bundle

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: 3 Imported by: 0

Documentation

Overview

Package session_bundle is a generated protocol buffer package.

It is generated from these files:

tensorflow/contrib/session_bundle/manifest.proto

It has these top-level messages:

Signatures
TensorBinding
AssetFile
Signature
RegressionSignature
ClassificationSignature
GenericSignature

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetFile

type AssetFile struct {
	// The tensor to bind the asset filename to.
	TensorBinding *TensorBinding `protobuf:"bytes,1,opt,name=tensor_binding,json=tensorBinding" json:"tensor_binding,omitempty"`
	// The filename within the assets directory. Note: does not include the base
	// path or asset directory prefix. Base paths can and will change when models
	// are deployed for serving.
	Filename string `protobuf:"bytes,2,opt,name=filename" json:"filename,omitempty"`
}

An asset file or set of sharded files with the same name that will be bound to a tensor at init / session_bundle load time.

func (*AssetFile) Descriptor

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

func (*AssetFile) GetFilename

func (m *AssetFile) GetFilename() string

func (*AssetFile) GetTensorBinding

func (m *AssetFile) GetTensorBinding() *TensorBinding

func (*AssetFile) ProtoMessage

func (*AssetFile) ProtoMessage()

func (*AssetFile) Reset

func (m *AssetFile) Reset()

func (*AssetFile) String

func (m *AssetFile) String() string

type ClassificationSignature

type ClassificationSignature struct {
	Input   *TensorBinding `protobuf:"bytes,1,opt,name=input" json:"input,omitempty"`
	Classes *TensorBinding `protobuf:"bytes,2,opt,name=classes" json:"classes,omitempty"`
	Scores  *TensorBinding `protobuf:"bytes,3,opt,name=scores" json:"scores,omitempty"`
}

ClassificationSignature specifies a graph that takes an input and returns classes and their scores. WARNING(break-tutorial-inline-code): The following code snippet is in-lined in tutorials, please update tutorial documents accordingly whenever code changes.

func (*ClassificationSignature) Descriptor

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

func (*ClassificationSignature) GetClasses

func (m *ClassificationSignature) GetClasses() *TensorBinding

func (*ClassificationSignature) GetInput

func (m *ClassificationSignature) GetInput() *TensorBinding

func (*ClassificationSignature) GetScores

func (m *ClassificationSignature) GetScores() *TensorBinding

func (*ClassificationSignature) ProtoMessage

func (*ClassificationSignature) ProtoMessage()

func (*ClassificationSignature) Reset

func (m *ClassificationSignature) Reset()

func (*ClassificationSignature) String

func (m *ClassificationSignature) String() string

type GenericSignature

type GenericSignature struct {
	Map map[string]*TensorBinding `` /* 126-byte string literal not displayed */
}

GenericSignature specifies a map from logical name to Tensor name. Typical application of GenericSignature is to use a single GenericSignature that includes all of the Tensor nodes and target names that may be useful at serving, analysis or debugging time. The recommended name for this signature in the ModelManifest is "generic_bindings".

func (*GenericSignature) Descriptor

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

func (*GenericSignature) GetMap

func (m *GenericSignature) GetMap() map[string]*TensorBinding

func (*GenericSignature) ProtoMessage

func (*GenericSignature) ProtoMessage()

func (*GenericSignature) Reset

func (m *GenericSignature) Reset()

func (*GenericSignature) String

func (m *GenericSignature) String() string

type RegressionSignature

type RegressionSignature struct {
	Input  *TensorBinding `protobuf:"bytes,1,opt,name=input" json:"input,omitempty"`
	Output *TensorBinding `protobuf:"bytes,2,opt,name=output" json:"output,omitempty"`
}

RegressionSignature specifies a graph that takes an input and returns an output.

func (*RegressionSignature) Descriptor

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

func (*RegressionSignature) GetInput

func (m *RegressionSignature) GetInput() *TensorBinding

func (*RegressionSignature) GetOutput

func (m *RegressionSignature) GetOutput() *TensorBinding

func (*RegressionSignature) ProtoMessage

func (*RegressionSignature) ProtoMessage()

func (*RegressionSignature) Reset

func (m *RegressionSignature) Reset()

func (*RegressionSignature) String

func (m *RegressionSignature) String() string

type Signature

type Signature struct {
	// Types that are valid to be assigned to Type:
	//	*Signature_RegressionSignature
	//	*Signature_ClassificationSignature
	//	*Signature_GenericSignature
	Type isSignature_Type `protobuf_oneof:"type"`
}

A Signature specifies the inputs and outputs of commonly used graphs.

func (*Signature) Descriptor

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

func (*Signature) GetClassificationSignature

func (m *Signature) GetClassificationSignature() *ClassificationSignature

func (*Signature) GetGenericSignature

func (m *Signature) GetGenericSignature() *GenericSignature

func (*Signature) GetRegressionSignature

func (m *Signature) GetRegressionSignature() *RegressionSignature

func (*Signature) GetType

func (m *Signature) GetType() isSignature_Type

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) String

func (m *Signature) String() string

func (*Signature) XXX_OneofFuncs

func (*Signature) 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 Signature_ClassificationSignature

type Signature_ClassificationSignature struct {
	ClassificationSignature *ClassificationSignature `protobuf:"bytes,2,opt,name=classification_signature,json=classificationSignature,oneof"`
}

type Signature_GenericSignature

type Signature_GenericSignature struct {
	GenericSignature *GenericSignature `protobuf:"bytes,3,opt,name=generic_signature,json=genericSignature,oneof"`
}

type Signature_RegressionSignature

type Signature_RegressionSignature struct {
	RegressionSignature *RegressionSignature `protobuf:"bytes,1,opt,name=regression_signature,json=regressionSignature,oneof"`
}

type Signatures

type Signatures struct {
	// Default signature of the graph.
	// WARNING(break-tutorial-inline-code): The following code snippet is
	// in-lined in tutorials, please update tutorial documents accordingly
	// whenever code changes.
	DefaultSignature *Signature `protobuf:"bytes,1,opt,name=default_signature,json=defaultSignature" json:"default_signature,omitempty"`
	// Named signatures of the graph.
	NamedSignatures map[string]*Signature `` /* 173-byte string literal not displayed */
}

Signatures of model export.

func (*Signatures) Descriptor

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

func (*Signatures) GetDefaultSignature

func (m *Signatures) GetDefaultSignature() *Signature

func (*Signatures) GetNamedSignatures

func (m *Signatures) GetNamedSignatures() map[string]*Signature

func (*Signatures) ProtoMessage

func (*Signatures) ProtoMessage()

func (*Signatures) Reset

func (m *Signatures) Reset()

func (*Signatures) String

func (m *Signatures) String() string

type TensorBinding

type TensorBinding struct {
	// The name of the tensor to bind to.
	TensorName string `protobuf:"bytes,1,opt,name=tensor_name,json=tensorName" json:"tensor_name,omitempty"`
}

A binding to a tensor including the name and, possibly in the future, type or other metadata. For example, this may specify whether a tensor supports batch vs single inference.

func (*TensorBinding) Descriptor

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

func (*TensorBinding) GetTensorName

func (m *TensorBinding) GetTensorName() string

func (*TensorBinding) ProtoMessage

func (*TensorBinding) ProtoMessage()

func (*TensorBinding) Reset

func (m *TensorBinding) Reset()

func (*TensorBinding) String

func (m *TensorBinding) String() string

Jump to

Keyboard shortcuts

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