Documentation ¶
Index ¶
- Variables
- type AssetFile
- func (*AssetFile) Descriptor() ([]byte, []int)deprecated
- func (x *AssetFile) GetFilename() string
- func (x *AssetFile) GetTensorBinding() *TensorBinding
- func (*AssetFile) ProtoMessage()
- func (x *AssetFile) ProtoReflect() protoreflect.Message
- func (x *AssetFile) Reset()
- func (x *AssetFile) String() string
- type ClassificationSignature
- func (*ClassificationSignature) Descriptor() ([]byte, []int)deprecated
- func (x *ClassificationSignature) GetClasses() *TensorBinding
- func (x *ClassificationSignature) GetInput() *TensorBinding
- func (x *ClassificationSignature) GetScores() *TensorBinding
- func (*ClassificationSignature) ProtoMessage()
- func (x *ClassificationSignature) ProtoReflect() protoreflect.Message
- func (x *ClassificationSignature) Reset()
- func (x *ClassificationSignature) String() string
- type GenericSignature
- func (*GenericSignature) Descriptor() ([]byte, []int)deprecated
- func (x *GenericSignature) GetMap() map[string]*TensorBinding
- func (*GenericSignature) ProtoMessage()
- func (x *GenericSignature) ProtoReflect() protoreflect.Message
- func (x *GenericSignature) Reset()
- func (x *GenericSignature) String() string
- type RegressionSignature
- func (*RegressionSignature) Descriptor() ([]byte, []int)deprecated
- func (x *RegressionSignature) GetInput() *TensorBinding
- func (x *RegressionSignature) GetOutput() *TensorBinding
- func (*RegressionSignature) ProtoMessage()
- func (x *RegressionSignature) ProtoReflect() protoreflect.Message
- func (x *RegressionSignature) Reset()
- func (x *RegressionSignature) String() string
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)deprecated
- func (x *Signature) GetClassificationSignature() *ClassificationSignature
- func (x *Signature) GetGenericSignature() *GenericSignature
- func (x *Signature) GetRegressionSignature() *RegressionSignature
- func (m *Signature) GetType() isSignature_Type
- func (*Signature) ProtoMessage()
- func (x *Signature) ProtoReflect() protoreflect.Message
- func (x *Signature) Reset()
- func (x *Signature) String() string
- type Signature_ClassificationSignature
- type Signature_GenericSignature
- type Signature_RegressionSignature
- type Signatures
- func (*Signatures) Descriptor() ([]byte, []int)deprecated
- func (x *Signatures) GetDefaultSignature() *Signature
- func (x *Signatures) GetNamedSignatures() map[string]*Signature
- func (*Signatures) ProtoMessage()
- func (x *Signatures) ProtoReflect() protoreflect.Message
- func (x *Signatures) Reset()
- func (x *Signatures) String() string
- type TensorBinding
Constants ¶
This section is empty.
Variables ¶
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) GetFilename ¶
func (*AssetFile) GetTensorBinding ¶
func (x *AssetFile) GetTensorBinding() *TensorBinding
func (*AssetFile) ProtoMessage ¶
func (*AssetFile) ProtoMessage()
func (*AssetFile) ProtoReflect ¶
func (x *AssetFile) ProtoReflect() protoreflect.Message
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) GetClassificationSignature ¶
func (x *Signature) GetClassificationSignature() *ClassificationSignature
func (*Signature) GetGenericSignature ¶
func (x *Signature) GetGenericSignature() *GenericSignature
func (*Signature) GetRegressionSignature ¶
func (x *Signature) GetRegressionSignature() *RegressionSignature
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶
func (x *Signature) ProtoReflect() protoreflect.Message
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