oss

package
v0.0.0-...-3233e8b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tensorflow_serving_session_bundle_oss_manifest_proto protoreflect.FileDescriptor

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,proto3" 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,proto3" json:"filename,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use AssetFile.ProtoReflect.Descriptor instead.

func (*AssetFile) GetFilename

func (x *AssetFile) GetFilename() string

func (*AssetFile) GetTensorBinding

func (x *AssetFile) GetTensorBinding() *TensorBinding

func (*AssetFile) ProtoMessage

func (*AssetFile) ProtoMessage()

func (*AssetFile) ProtoReflect

func (x *AssetFile) ProtoReflect() protoreflect.Message

func (*AssetFile) Reset

func (x *AssetFile) Reset()

func (*AssetFile) String

func (x *AssetFile) String() string

type ClassificationSignature

type ClassificationSignature struct {
	Input   *TensorBinding `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	Classes *TensorBinding `protobuf:"bytes,2,opt,name=classes,proto3" json:"classes,omitempty"`
	Scores  *TensorBinding `protobuf:"bytes,3,opt,name=scores,proto3" json:"scores,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use ClassificationSignature.ProtoReflect.Descriptor instead.

func (*ClassificationSignature) GetClasses

func (x *ClassificationSignature) GetClasses() *TensorBinding

func (*ClassificationSignature) GetInput

func (x *ClassificationSignature) GetInput() *TensorBinding

func (*ClassificationSignature) GetScores

func (x *ClassificationSignature) GetScores() *TensorBinding

func (*ClassificationSignature) ProtoMessage

func (*ClassificationSignature) ProtoMessage()

func (*ClassificationSignature) ProtoReflect

func (x *ClassificationSignature) ProtoReflect() protoreflect.Message

func (*ClassificationSignature) Reset

func (x *ClassificationSignature) Reset()

func (*ClassificationSignature) String

func (x *ClassificationSignature) String() string

type GenericSignature

type GenericSignature struct {
	Map map[string]*TensorBinding `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use GenericSignature.ProtoReflect.Descriptor instead.

func (*GenericSignature) GetMap

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

func (*GenericSignature) ProtoMessage

func (*GenericSignature) ProtoMessage()

func (*GenericSignature) ProtoReflect

func (x *GenericSignature) ProtoReflect() protoreflect.Message

func (*GenericSignature) Reset

func (x *GenericSignature) Reset()

func (*GenericSignature) String

func (x *GenericSignature) String() string

type RegressionSignature

type RegressionSignature struct {
	Input  *TensorBinding `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	Output *TensorBinding `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

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

func (*RegressionSignature) Descriptor deprecated

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

Deprecated: Use RegressionSignature.ProtoReflect.Descriptor instead.

func (*RegressionSignature) GetInput

func (x *RegressionSignature) GetInput() *TensorBinding

func (*RegressionSignature) GetOutput

func (x *RegressionSignature) GetOutput() *TensorBinding

func (*RegressionSignature) ProtoMessage

func (*RegressionSignature) ProtoMessage()

func (*RegressionSignature) ProtoReflect

func (x *RegressionSignature) ProtoReflect() protoreflect.Message

func (*RegressionSignature) Reset

func (x *RegressionSignature) Reset()

func (*RegressionSignature) String

func (x *RegressionSignature) String() string

type Signature

type Signature struct {

	// Types that are assignable to Type:
	//
	//	*Signature_RegressionSignature
	//	*Signature_ClassificationSignature
	//	*Signature_GenericSignature
	Type isSignature_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

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

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetClassificationSignature

func (x *Signature) GetClassificationSignature() *ClassificationSignature

func (*Signature) GetGenericSignature

func (x *Signature) GetGenericSignature() *GenericSignature

func (*Signature) GetRegressionSignature

func (x *Signature) GetRegressionSignature() *RegressionSignature

func (*Signature) GetType

func (m *Signature) GetType() isSignature_Type

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

func (x *Signature) ProtoReflect() protoreflect.Message

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type Signature_ClassificationSignature

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

type Signature_GenericSignature

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

type Signature_RegressionSignature

type Signature_RegressionSignature struct {
	RegressionSignature *RegressionSignature `protobuf:"bytes,1,opt,name=regression_signature,json=regressionSignature,proto3,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,proto3" json:"default_signature,omitempty"`
	// Named signatures of the graph.
	NamedSignatures map[string]*Signature `` /* 194-byte string literal not displayed */
	// contains filtered or unexported fields
}

Signatures of model export.

func (*Signatures) Descriptor deprecated

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

Deprecated: Use Signatures.ProtoReflect.Descriptor instead.

func (*Signatures) GetDefaultSignature

func (x *Signatures) GetDefaultSignature() *Signature

func (*Signatures) GetNamedSignatures

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

func (*Signatures) ProtoMessage

func (*Signatures) ProtoMessage()

func (*Signatures) ProtoReflect

func (x *Signatures) ProtoReflect() protoreflect.Message

func (*Signatures) Reset

func (x *Signatures) Reset()

func (*Signatures) String

func (x *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,proto3" json:"tensor_name,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use TensorBinding.ProtoReflect.Descriptor instead.

func (*TensorBinding) GetTensorName

func (x *TensorBinding) GetTensorName() string

func (*TensorBinding) ProtoMessage

func (*TensorBinding) ProtoMessage()

func (*TensorBinding) ProtoReflect

func (x *TensorBinding) ProtoReflect() protoreflect.Message

func (*TensorBinding) Reset

func (x *TensorBinding) Reset()

func (*TensorBinding) String

func (x *TensorBinding) String() string

Jump to

Keyboard shortcuts

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