tfserving

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DataType_name = map[int32]string{
		0:   "DT_INVALID",
		1:   "DT_FLOAT",
		2:   "DT_DOUBLE",
		3:   "DT_INT32",
		4:   "DT_UINT8",
		5:   "DT_INT16",
		6:   "DT_INT8",
		7:   "DT_STRING",
		8:   "DT_COMPLEX64",
		9:   "DT_INT64",
		10:  "DT_BOOL",
		11:  "DT_QINT8",
		12:  "DT_QUINT8",
		13:  "DT_QINT32",
		14:  "DT_BFLOAT16",
		15:  "DT_QINT16",
		16:  "DT_QUINT16",
		17:  "DT_UINT16",
		18:  "DT_COMPLEX128",
		19:  "DT_HALF",
		20:  "DT_RESOURCE",
		21:  "DT_VARIANT",
		22:  "DT_UINT32",
		23:  "DT_UINT64",
		24:  "DT_FLOAT8_E5M2",
		25:  "DT_FLOAT8_E4M3FN",
		101: "DT_FLOAT_REF",
		102: "DT_DOUBLE_REF",
		103: "DT_INT32_REF",
		104: "DT_UINT8_REF",
		105: "DT_INT16_REF",
		106: "DT_INT8_REF",
		107: "DT_STRING_REF",
		108: "DT_COMPLEX64_REF",
		109: "DT_INT64_REF",
		110: "DT_BOOL_REF",
		111: "DT_QINT8_REF",
		112: "DT_QUINT8_REF",
		113: "DT_QINT32_REF",
		114: "DT_BFLOAT16_REF",
		115: "DT_QINT16_REF",
		116: "DT_QUINT16_REF",
		117: "DT_UINT16_REF",
		118: "DT_COMPLEX128_REF",
		119: "DT_HALF_REF",
		120: "DT_RESOURCE_REF",
		121: "DT_VARIANT_REF",
		122: "DT_UINT32_REF",
		123: "DT_UINT64_REF",
		124: "DT_FLOAT8_E5M2_REF",
		125: "DT_FLOAT8_E4M3FN_REF",
	}
	DataType_value = map[string]int32{
		"DT_INVALID":           0,
		"DT_FLOAT":             1,
		"DT_DOUBLE":            2,
		"DT_INT32":             3,
		"DT_UINT8":             4,
		"DT_INT16":             5,
		"DT_INT8":              6,
		"DT_STRING":            7,
		"DT_COMPLEX64":         8,
		"DT_INT64":             9,
		"DT_BOOL":              10,
		"DT_QINT8":             11,
		"DT_QUINT8":            12,
		"DT_QINT32":            13,
		"DT_BFLOAT16":          14,
		"DT_QINT16":            15,
		"DT_QUINT16":           16,
		"DT_UINT16":            17,
		"DT_COMPLEX128":        18,
		"DT_HALF":              19,
		"DT_RESOURCE":          20,
		"DT_VARIANT":           21,
		"DT_UINT32":            22,
		"DT_UINT64":            23,
		"DT_FLOAT8_E5M2":       24,
		"DT_FLOAT8_E4M3FN":     25,
		"DT_FLOAT_REF":         101,
		"DT_DOUBLE_REF":        102,
		"DT_INT32_REF":         103,
		"DT_UINT8_REF":         104,
		"DT_INT16_REF":         105,
		"DT_INT8_REF":          106,
		"DT_STRING_REF":        107,
		"DT_COMPLEX64_REF":     108,
		"DT_INT64_REF":         109,
		"DT_BOOL_REF":          110,
		"DT_QINT8_REF":         111,
		"DT_QUINT8_REF":        112,
		"DT_QINT32_REF":        113,
		"DT_BFLOAT16_REF":      114,
		"DT_QINT16_REF":        115,
		"DT_QUINT16_REF":       116,
		"DT_UINT16_REF":        117,
		"DT_COMPLEX128_REF":    118,
		"DT_HALF_REF":          119,
		"DT_RESOURCE_REF":      120,
		"DT_VARIANT_REF":       121,
		"DT_UINT32_REF":        122,
		"DT_UINT64_REF":        123,
		"DT_FLOAT8_E5M2_REF":   124,
		"DT_FLOAT8_E4M3FN_REF": 125,
	}
)

Enum value maps for DataType.

View Source
var File_pkg_apis_tfserving_v1_model_proto protoreflect.FileDescriptor
View Source
var File_pkg_apis_tfserving_v1_predict_proto protoreflect.FileDescriptor
View Source
var File_pkg_apis_tfserving_v1_prediction_service_proto protoreflect.FileDescriptor
View Source
var File_pkg_apis_tfserving_v1_resource_handle_proto protoreflect.FileDescriptor
View Source
var File_pkg_apis_tfserving_v1_tensor_proto protoreflect.FileDescriptor
View Source
var File_pkg_apis_tfserving_v1_tensor_shape_proto protoreflect.FileDescriptor
View Source
var File_pkg_apis_tfserving_v1_types_proto protoreflect.FileDescriptor
View Source
var PredictionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tfserving.v1.PredictionService",
	HandlerType: (*PredictionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Predict",
			Handler:    _PredictionService_Predict_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/apis/tfserving/v1/prediction_service.proto",
}

PredictionService_ServiceDesc is the grpc.ServiceDesc for PredictionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPredictionServiceServer

func RegisterPredictionServiceServer(s grpc.ServiceRegistrar, srv PredictionServiceServer)

Types

type DataType

type DataType int32

(== suppress_warning documentation-presence ==) LINT.IfChange

const (
	// Not a legal value for DataType.  Used to indicate a DataType field
	// has not been set.
	DataType_DT_INVALID DataType = 0
	// Data types that all computation devices are expected to be
	// capable to support.
	DataType_DT_FLOAT         DataType = 1
	DataType_DT_DOUBLE        DataType = 2
	DataType_DT_INT32         DataType = 3
	DataType_DT_UINT8         DataType = 4
	DataType_DT_INT16         DataType = 5
	DataType_DT_INT8          DataType = 6
	DataType_DT_STRING        DataType = 7
	DataType_DT_COMPLEX64     DataType = 8 // Single-precision complex
	DataType_DT_INT64         DataType = 9
	DataType_DT_BOOL          DataType = 10
	DataType_DT_QINT8         DataType = 11 // Quantized int8
	DataType_DT_QUINT8        DataType = 12 // Quantized uint8
	DataType_DT_QINT32        DataType = 13 // Quantized int32
	DataType_DT_BFLOAT16      DataType = 14 // Float32 truncated to 16 bits.
	DataType_DT_QINT16        DataType = 15 // Quantized int16
	DataType_DT_QUINT16       DataType = 16 // Quantized uint16
	DataType_DT_UINT16        DataType = 17
	DataType_DT_COMPLEX128    DataType = 18 // Double-precision complex
	DataType_DT_HALF          DataType = 19
	DataType_DT_RESOURCE      DataType = 20
	DataType_DT_VARIANT       DataType = 21 // Arbitrary C++ data types
	DataType_DT_UINT32        DataType = 22
	DataType_DT_UINT64        DataType = 23
	DataType_DT_FLOAT8_E5M2   DataType = 24 // 5 exponent bits, 2 mantissa bits.
	DataType_DT_FLOAT8_E4M3FN DataType = 25 // 4 exponent bits, 3 mantissa bits, finite-only, with
	// Do not use!  These are only for parameters.  Every enum above
	// should have a corresponding value below (verified by types_test).
	DataType_DT_FLOAT_REF         DataType = 101
	DataType_DT_DOUBLE_REF        DataType = 102
	DataType_DT_INT32_REF         DataType = 103
	DataType_DT_UINT8_REF         DataType = 104
	DataType_DT_INT16_REF         DataType = 105
	DataType_DT_INT8_REF          DataType = 106
	DataType_DT_STRING_REF        DataType = 107
	DataType_DT_COMPLEX64_REF     DataType = 108
	DataType_DT_INT64_REF         DataType = 109
	DataType_DT_BOOL_REF          DataType = 110
	DataType_DT_QINT8_REF         DataType = 111
	DataType_DT_QUINT8_REF        DataType = 112
	DataType_DT_QINT32_REF        DataType = 113
	DataType_DT_BFLOAT16_REF      DataType = 114
	DataType_DT_QINT16_REF        DataType = 115
	DataType_DT_QUINT16_REF       DataType = 116
	DataType_DT_UINT16_REF        DataType = 117
	DataType_DT_COMPLEX128_REF    DataType = 118
	DataType_DT_HALF_REF          DataType = 119
	DataType_DT_RESOURCE_REF      DataType = 120
	DataType_DT_VARIANT_REF       DataType = 121
	DataType_DT_UINT32_REF        DataType = 122
	DataType_DT_UINT64_REF        DataType = 123
	DataType_DT_FLOAT8_E5M2_REF   DataType = 124
	DataType_DT_FLOAT8_E4M3FN_REF DataType = 125
)

func (DataType) Descriptor

func (DataType) Descriptor() protoreflect.EnumDescriptor

func (DataType) Enum

func (x DataType) Enum() *DataType

func (DataType) EnumDescriptor deprecated

func (DataType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataType.Descriptor instead.

func (DataType) Number

func (x DataType) Number() protoreflect.EnumNumber

func (DataType) String

func (x DataType) String() string

func (DataType) Type

type ModelSpec

type ModelSpec struct {

	// Required servable name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional choice of which version of the model to use.
	//
	// Recommended to be left unset in the common case. Should be specified only
	// when there is a strong version consistency requirement.
	//
	// When left unspecified, the system will serve the best available version.
	// This is typically the latest version, though during version transitions,
	// notably when serving on a fleet of instances, may be either the previous or
	// new version.
	//
	// Types that are assignable to VersionChoice:
	//
	//	*ModelSpec_Version
	//	*ModelSpec_VersionLabel
	VersionChoice isModelSpec_VersionChoice `protobuf_oneof:"version_choice"`
	// A named signature to evaluate. If unspecified, the default signature will
	// be used.
	SignatureName string `protobuf:"bytes,3,opt,name=signature_name,json=signatureName,proto3" json:"signature_name,omitempty"`
	// contains filtered or unexported fields
}

Metadata for an inference request such as the model name and version.

func (*ModelSpec) Descriptor deprecated

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

Deprecated: Use ModelSpec.ProtoReflect.Descriptor instead.

func (*ModelSpec) GetName

func (x *ModelSpec) GetName() string

func (*ModelSpec) GetSignatureName

func (x *ModelSpec) GetSignatureName() string

func (*ModelSpec) GetVersion

func (x *ModelSpec) GetVersion() *wrapperspb.Int64Value

func (*ModelSpec) GetVersionChoice

func (m *ModelSpec) GetVersionChoice() isModelSpec_VersionChoice

func (*ModelSpec) GetVersionLabel

func (x *ModelSpec) GetVersionLabel() string

func (*ModelSpec) ProtoMessage

func (*ModelSpec) ProtoMessage()

func (*ModelSpec) ProtoReflect

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

func (*ModelSpec) Reset

func (x *ModelSpec) Reset()

func (*ModelSpec) String

func (x *ModelSpec) String() string

func (*ModelSpec) Validate

func (m *ModelSpec) Validate() error

Validate checks the field values on ModelSpec with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ModelSpec) ValidateAll

func (m *ModelSpec) ValidateAll() error

ValidateAll checks the field values on ModelSpec with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ModelSpecMultiError, or nil if none found.

type ModelSpecMultiError

type ModelSpecMultiError []error

ModelSpecMultiError is an error wrapping multiple validation errors returned by ModelSpec.ValidateAll() if the designated constraints aren't met.

func (ModelSpecMultiError) AllErrors

func (m ModelSpecMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ModelSpecMultiError) Error

func (m ModelSpecMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ModelSpecValidationError

type ModelSpecValidationError struct {
	// contains filtered or unexported fields
}

ModelSpecValidationError is the validation error returned by ModelSpec.Validate if the designated constraints aren't met.

func (ModelSpecValidationError) Cause

func (e ModelSpecValidationError) Cause() error

Cause function returns cause value.

func (ModelSpecValidationError) Error

func (e ModelSpecValidationError) Error() string

Error satisfies the builtin error interface

func (ModelSpecValidationError) ErrorName

func (e ModelSpecValidationError) ErrorName() string

ErrorName returns error name.

func (ModelSpecValidationError) Field

func (e ModelSpecValidationError) Field() string

Field function returns field value.

func (ModelSpecValidationError) Key

Key function returns key value.

func (ModelSpecValidationError) Reason

func (e ModelSpecValidationError) Reason() string

Reason function returns reason value.

type ModelSpec_Version

type ModelSpec_Version struct {
	// Use this specific version number.
	Version *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=version,proto3,oneof"`
}

type ModelSpec_VersionLabel

type ModelSpec_VersionLabel struct {
	// Use the version associated with the given label.
	VersionLabel string `protobuf:"bytes,4,opt,name=version_label,json=versionLabel,proto3,oneof"`
}

type PredictRequest

type PredictRequest struct {

	// Model Specification. If version is not specified, will use the latest
	// (numerical) version.
	ModelSpec *ModelSpec `protobuf:"bytes,1,opt,name=model_spec,json=modelSpec,proto3" json:"model_spec,omitempty"`
	// Input tensors.
	// Names of input tensor are alias names. The mapping from aliases to real
	// input tensor names is stored in the SavedModel export as a prediction
	// SignatureDef under the 'inputs' field.
	Inputs map[string]*TensorProto `` /* 153-byte string literal not displayed */
	// Output filter.
	// Names specified are alias names. The mapping from aliases to real output
	// tensor names is stored in the SavedModel export as a prediction
	// SignatureDef under the 'outputs' field.
	// Only tensors specified here will be run/fetched and returned, with the
	// exception that when none is specified, all tensors specified in the
	// named signature will be run/fetched and returned.
	OutputFilter []string `protobuf:"bytes,3,rep,name=output_filter,json=outputFilter,proto3" json:"output_filter,omitempty"`
	// contains filtered or unexported fields
}

PredictRequest specifies which TensorFlow model to run, as well as how inputs are mapped to tensors and how outputs are filtered before returning to user.

func (*PredictRequest) Descriptor deprecated

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

Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.

func (*PredictRequest) GetInputs

func (x *PredictRequest) GetInputs() map[string]*TensorProto

func (*PredictRequest) GetModelSpec

func (x *PredictRequest) GetModelSpec() *ModelSpec

func (*PredictRequest) GetOutputFilter

func (x *PredictRequest) GetOutputFilter() []string

func (*PredictRequest) ProtoMessage

func (*PredictRequest) ProtoMessage()

func (*PredictRequest) ProtoReflect

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

func (*PredictRequest) Reset

func (x *PredictRequest) Reset()

func (*PredictRequest) String

func (x *PredictRequest) String() string

func (*PredictRequest) Validate

func (m *PredictRequest) Validate() error

Validate checks the field values on PredictRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PredictRequest) ValidateAll

func (m *PredictRequest) ValidateAll() error

ValidateAll checks the field values on PredictRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PredictRequestMultiError, or nil if none found.

type PredictRequestMultiError

type PredictRequestMultiError []error

PredictRequestMultiError is an error wrapping multiple validation errors returned by PredictRequest.ValidateAll() if the designated constraints aren't met.

func (PredictRequestMultiError) AllErrors

func (m PredictRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PredictRequestMultiError) Error

func (m PredictRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PredictRequestValidationError

type PredictRequestValidationError struct {
	// contains filtered or unexported fields
}

PredictRequestValidationError is the validation error returned by PredictRequest.Validate if the designated constraints aren't met.

func (PredictRequestValidationError) Cause

Cause function returns cause value.

func (PredictRequestValidationError) Error

Error satisfies the builtin error interface

func (PredictRequestValidationError) ErrorName

func (e PredictRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PredictRequestValidationError) Field

Field function returns field value.

func (PredictRequestValidationError) Key

Key function returns key value.

func (PredictRequestValidationError) Reason

Reason function returns reason value.

type PredictResponse

type PredictResponse struct {

	// Effective Model Specification used to process PredictRequest.
	ModelSpec *ModelSpec `protobuf:"bytes,2,opt,name=model_spec,json=modelSpec,proto3" json:"model_spec,omitempty"`
	// Output tensors.
	Outputs map[string]*TensorProto `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response for PredictRequest on successful run.

func (*PredictResponse) Descriptor deprecated

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

Deprecated: Use PredictResponse.ProtoReflect.Descriptor instead.

func (*PredictResponse) GetModelSpec

func (x *PredictResponse) GetModelSpec() *ModelSpec

func (*PredictResponse) GetOutputs

func (x *PredictResponse) GetOutputs() map[string]*TensorProto

func (*PredictResponse) ProtoMessage

func (*PredictResponse) ProtoMessage()

func (*PredictResponse) ProtoReflect

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

func (*PredictResponse) Reset

func (x *PredictResponse) Reset()

func (*PredictResponse) String

func (x *PredictResponse) String() string

func (*PredictResponse) Validate

func (m *PredictResponse) Validate() error

Validate checks the field values on PredictResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PredictResponse) ValidateAll

func (m *PredictResponse) ValidateAll() error

ValidateAll checks the field values on PredictResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PredictResponseMultiError, or nil if none found.

type PredictResponseMultiError

type PredictResponseMultiError []error

PredictResponseMultiError is an error wrapping multiple validation errors returned by PredictResponse.ValidateAll() if the designated constraints aren't met.

func (PredictResponseMultiError) AllErrors

func (m PredictResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PredictResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PredictResponseValidationError

type PredictResponseValidationError struct {
	// contains filtered or unexported fields
}

PredictResponseValidationError is the validation error returned by PredictResponse.Validate if the designated constraints aren't met.

func (PredictResponseValidationError) Cause

Cause function returns cause value.

func (PredictResponseValidationError) Error

Error satisfies the builtin error interface

func (PredictResponseValidationError) ErrorName

func (e PredictResponseValidationError) ErrorName() string

ErrorName returns error name.

func (PredictResponseValidationError) Field

Field function returns field value.

func (PredictResponseValidationError) Key

Key function returns key value.

func (PredictResponseValidationError) Reason

Reason function returns reason value.

type PredictionServiceClient

type PredictionServiceClient interface {
	// Predict -- provides access to loaded TensorFlow model.
	Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error)
}

PredictionServiceClient is the client API for PredictionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PredictionServiceServer

type PredictionServiceServer interface {
	// Predict -- provides access to loaded TensorFlow model.
	Predict(context.Context, *PredictRequest) (*PredictResponse, error)
}

PredictionServiceServer is the server API for PredictionService service. All implementations should embed UnimplementedPredictionServiceServer for forward compatibility

type ResourceHandleProto

type ResourceHandleProto struct {

	// Unique name for the device containing the resource.
	Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// Container in which this resource is placed.
	Container string `protobuf:"bytes,2,opt,name=container,proto3" json:"container,omitempty"`
	// Unique name of this resource.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Hash code for the type of the resource. Is only valid in the same device
	// and in the same execution.
	HashCode uint64 `protobuf:"varint,4,opt,name=hash_code,json=hashCode,proto3" json:"hash_code,omitempty"`
	// For debug-only, the name of the type pointed to by this handle, if
	// available.
	MaybeTypeName string `protobuf:"bytes,5,opt,name=maybe_type_name,json=maybeTypeName,proto3" json:"maybe_type_name,omitempty"`
	// Data types and shapes for the underlying resource.
	DtypesAndShapes []*ResourceHandleProto_DtypeAndShape `protobuf:"bytes,6,rep,name=dtypes_and_shapes,json=dtypesAndShapes,proto3" json:"dtypes_and_shapes,omitempty"`
	// contains filtered or unexported fields
}

Protocol buffer representing a handle to a tensorflow resource. Handles are not valid across executions, but can be serialized back and forth from within a single run.

func (*ResourceHandleProto) Descriptor deprecated

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

Deprecated: Use ResourceHandleProto.ProtoReflect.Descriptor instead.

func (*ResourceHandleProto) GetContainer

func (x *ResourceHandleProto) GetContainer() string

func (*ResourceHandleProto) GetDevice

func (x *ResourceHandleProto) GetDevice() string

func (*ResourceHandleProto) GetDtypesAndShapes

func (x *ResourceHandleProto) GetDtypesAndShapes() []*ResourceHandleProto_DtypeAndShape

func (*ResourceHandleProto) GetHashCode

func (x *ResourceHandleProto) GetHashCode() uint64

func (*ResourceHandleProto) GetMaybeTypeName

func (x *ResourceHandleProto) GetMaybeTypeName() string

func (*ResourceHandleProto) GetName

func (x *ResourceHandleProto) GetName() string

func (*ResourceHandleProto) ProtoMessage

func (*ResourceHandleProto) ProtoMessage()

func (*ResourceHandleProto) ProtoReflect

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

func (*ResourceHandleProto) Reset

func (x *ResourceHandleProto) Reset()

func (*ResourceHandleProto) String

func (x *ResourceHandleProto) String() string

func (*ResourceHandleProto) Validate

func (m *ResourceHandleProto) Validate() error

Validate checks the field values on ResourceHandleProto with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResourceHandleProto) ValidateAll

func (m *ResourceHandleProto) ValidateAll() error

ValidateAll checks the field values on ResourceHandleProto with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourceHandleProtoMultiError, or nil if none found.

type ResourceHandleProtoMultiError

type ResourceHandleProtoMultiError []error

ResourceHandleProtoMultiError is an error wrapping multiple validation errors returned by ResourceHandleProto.ValidateAll() if the designated constraints aren't met.

func (ResourceHandleProtoMultiError) AllErrors

func (m ResourceHandleProtoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourceHandleProtoMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResourceHandleProtoValidationError

type ResourceHandleProtoValidationError struct {
	// contains filtered or unexported fields
}

ResourceHandleProtoValidationError is the validation error returned by ResourceHandleProto.Validate if the designated constraints aren't met.

func (ResourceHandleProtoValidationError) Cause

Cause function returns cause value.

func (ResourceHandleProtoValidationError) Error

Error satisfies the builtin error interface

func (ResourceHandleProtoValidationError) ErrorName

ErrorName returns error name.

func (ResourceHandleProtoValidationError) Field

Field function returns field value.

func (ResourceHandleProtoValidationError) Key

Key function returns key value.

func (ResourceHandleProtoValidationError) Reason

Reason function returns reason value.

type ResourceHandleProto_DtypeAndShape

type ResourceHandleProto_DtypeAndShape struct {
	Dtype DataType          `protobuf:"varint,1,opt,name=dtype,proto3,enum=tfserving.v1.DataType" json:"dtype,omitempty"`
	Shape *TensorShapeProto `protobuf:"bytes,2,opt,name=shape,proto3" json:"shape,omitempty"`
	// contains filtered or unexported fields
}

Protocol buffer representing a pair of (data type, tensor shape).

func (*ResourceHandleProto_DtypeAndShape) Descriptor deprecated

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

Deprecated: Use ResourceHandleProto_DtypeAndShape.ProtoReflect.Descriptor instead.

func (*ResourceHandleProto_DtypeAndShape) GetDtype

func (*ResourceHandleProto_DtypeAndShape) GetShape

func (*ResourceHandleProto_DtypeAndShape) ProtoMessage

func (*ResourceHandleProto_DtypeAndShape) ProtoMessage()

func (*ResourceHandleProto_DtypeAndShape) ProtoReflect

func (*ResourceHandleProto_DtypeAndShape) Reset

func (*ResourceHandleProto_DtypeAndShape) String

func (*ResourceHandleProto_DtypeAndShape) Validate

Validate checks the field values on ResourceHandleProto_DtypeAndShape with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResourceHandleProto_DtypeAndShape) ValidateAll

func (m *ResourceHandleProto_DtypeAndShape) ValidateAll() error

ValidateAll checks the field values on ResourceHandleProto_DtypeAndShape with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourceHandleProto_DtypeAndShapeMultiError, or nil if none found.

type ResourceHandleProto_DtypeAndShapeMultiError

type ResourceHandleProto_DtypeAndShapeMultiError []error

ResourceHandleProto_DtypeAndShapeMultiError is an error wrapping multiple validation errors returned by ResourceHandleProto_DtypeAndShape.ValidateAll() if the designated constraints aren't met.

func (ResourceHandleProto_DtypeAndShapeMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ResourceHandleProto_DtypeAndShapeMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResourceHandleProto_DtypeAndShapeValidationError

type ResourceHandleProto_DtypeAndShapeValidationError struct {
	// contains filtered or unexported fields
}

ResourceHandleProto_DtypeAndShapeValidationError is the validation error returned by ResourceHandleProto_DtypeAndShape.Validate if the designated constraints aren't met.

func (ResourceHandleProto_DtypeAndShapeValidationError) Cause

Cause function returns cause value.

func (ResourceHandleProto_DtypeAndShapeValidationError) Error

Error satisfies the builtin error interface

func (ResourceHandleProto_DtypeAndShapeValidationError) ErrorName

ErrorName returns error name.

func (ResourceHandleProto_DtypeAndShapeValidationError) Field

Field function returns field value.

func (ResourceHandleProto_DtypeAndShapeValidationError) Key

Key function returns key value.

func (ResourceHandleProto_DtypeAndShapeValidationError) Reason

Reason function returns reason value.

type SerializedDType

type SerializedDType struct {
	Datatype DataType `protobuf:"varint,1,opt,name=datatype,proto3,enum=tfserving.v1.DataType" json:"datatype,omitempty"`
	// contains filtered or unexported fields
}

Represents a serialized tf.dtypes.Dtype

func (*SerializedDType) Descriptor deprecated

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

Deprecated: Use SerializedDType.ProtoReflect.Descriptor instead.

func (*SerializedDType) GetDatatype

func (x *SerializedDType) GetDatatype() DataType

func (*SerializedDType) ProtoMessage

func (*SerializedDType) ProtoMessage()

func (*SerializedDType) ProtoReflect

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

func (*SerializedDType) Reset

func (x *SerializedDType) Reset()

func (*SerializedDType) String

func (x *SerializedDType) String() string

func (*SerializedDType) Validate

func (m *SerializedDType) Validate() error

Validate checks the field values on SerializedDType with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SerializedDType) ValidateAll

func (m *SerializedDType) ValidateAll() error

ValidateAll checks the field values on SerializedDType with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SerializedDTypeMultiError, or nil if none found.

type SerializedDTypeMultiError

type SerializedDTypeMultiError []error

SerializedDTypeMultiError is an error wrapping multiple validation errors returned by SerializedDType.ValidateAll() if the designated constraints aren't met.

func (SerializedDTypeMultiError) AllErrors

func (m SerializedDTypeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SerializedDTypeMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SerializedDTypeValidationError

type SerializedDTypeValidationError struct {
	// contains filtered or unexported fields
}

SerializedDTypeValidationError is the validation error returned by SerializedDType.Validate if the designated constraints aren't met.

func (SerializedDTypeValidationError) Cause

Cause function returns cause value.

func (SerializedDTypeValidationError) Error

Error satisfies the builtin error interface

func (SerializedDTypeValidationError) ErrorName

func (e SerializedDTypeValidationError) ErrorName() string

ErrorName returns error name.

func (SerializedDTypeValidationError) Field

Field function returns field value.

func (SerializedDTypeValidationError) Key

Key function returns key value.

func (SerializedDTypeValidationError) Reason

Reason function returns reason value.

type TensorProto

type TensorProto struct {
	Dtype DataType `protobuf:"varint,1,opt,name=dtype,proto3,enum=tfserving.v1.DataType" json:"dtype,omitempty"`
	// Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
	TensorShape *TensorShapeProto `protobuf:"bytes,2,opt,name=tensor_shape,json=tensorShape,proto3" json:"tensor_shape,omitempty"`
	// Version number.
	//
	// In version 0, if the "repeated xxx" representations contain only one
	// element, that element is repeated to fill the shape.  This makes it easy
	// to represent a constant Tensor with a single value.
	VersionNumber int32 `protobuf:"varint,3,opt,name=version_number,json=versionNumber,proto3" json:"version_number,omitempty"`
	// Serialized raw tensor content from either Tensor::AsProtoTensorContent or
	// memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
	// can be used for all tensor types. The purpose of this representation is to
	// reduce serialization overhead during RPC call by avoiding serialization of
	// many repeated small items.
	TensorContent []byte `protobuf:"bytes,4,opt,name=tensor_content,json=tensorContent,proto3" json:"tensor_content,omitempty"`
	// DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
	// have some pointless zero padding for each value here.
	HalfVal []int32 `protobuf:"varint,13,rep,packed,name=half_val,json=halfVal,proto3" json:"half_val,omitempty"`
	// DT_FLOAT.
	FloatVal []float32 `protobuf:"fixed32,5,rep,packed,name=float_val,json=floatVal,proto3" json:"float_val,omitempty"`
	// DT_DOUBLE.
	DoubleVal []float64 `protobuf:"fixed64,6,rep,packed,name=double_val,json=doubleVal,proto3" json:"double_val,omitempty"`
	// DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
	IntVal []int32 `protobuf:"varint,7,rep,packed,name=int_val,json=intVal,proto3" json:"int_val,omitempty"`
	// DT_STRING
	StringVal [][]byte `protobuf:"bytes,8,rep,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"`
	// DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
	// and imaginary parts of i-th single precision complex.
	ScomplexVal []float32 `protobuf:"fixed32,9,rep,packed,name=scomplex_val,json=scomplexVal,proto3" json:"scomplex_val,omitempty"`
	// DT_INT64
	Int64Val []int64 `protobuf:"varint,10,rep,packed,name=int64_val,json=int64Val,proto3" json:"int64_val,omitempty"`
	// DT_BOOL
	BoolVal []bool `protobuf:"varint,11,rep,packed,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"`
	// DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
	// and imaginary parts of i-th double precision complex.
	DcomplexVal []float64 `protobuf:"fixed64,12,rep,packed,name=dcomplex_val,json=dcomplexVal,proto3" json:"dcomplex_val,omitempty"`
	// DT_RESOURCE
	ResourceHandleVal []*ResourceHandleProto `protobuf:"bytes,14,rep,name=resource_handle_val,json=resourceHandleVal,proto3" json:"resource_handle_val,omitempty"`
	// DT_VARIANT
	VariantVal []*VariantTensorDataProto `protobuf:"bytes,15,rep,name=variant_val,json=variantVal,proto3" json:"variant_val,omitempty"`
	// DT_UINT32
	Uint32Val []uint32 `protobuf:"varint,16,rep,packed,name=uint32_val,json=uint32Val,proto3" json:"uint32_val,omitempty"`
	// DT_UINT64
	Uint64Val []uint64 `protobuf:"varint,17,rep,packed,name=uint64_val,json=uint64Val,proto3" json:"uint64_val,omitempty"`
	// DT_FLOAT8_*, use variable-sized set of bytes
	// (i.e. the equivalent of repeated uint8, if such a thing existed).
	Float8Val []byte `protobuf:"bytes,18,opt,name=float8_val,json=float8Val,proto3" json:"float8_val,omitempty"`
	// contains filtered or unexported fields
}

Protocol buffer representing a tensor.

func (*TensorProto) Descriptor deprecated

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

Deprecated: Use TensorProto.ProtoReflect.Descriptor instead.

func (*TensorProto) GetBoolVal

func (x *TensorProto) GetBoolVal() []bool

func (*TensorProto) GetDcomplexVal

func (x *TensorProto) GetDcomplexVal() []float64

func (*TensorProto) GetDoubleVal

func (x *TensorProto) GetDoubleVal() []float64

func (*TensorProto) GetDtype

func (x *TensorProto) GetDtype() DataType

func (*TensorProto) GetFloat8Val

func (x *TensorProto) GetFloat8Val() []byte

func (*TensorProto) GetFloatVal

func (x *TensorProto) GetFloatVal() []float32

func (*TensorProto) GetHalfVal

func (x *TensorProto) GetHalfVal() []int32

func (*TensorProto) GetInt64Val

func (x *TensorProto) GetInt64Val() []int64

func (*TensorProto) GetIntVal

func (x *TensorProto) GetIntVal() []int32

func (*TensorProto) GetResourceHandleVal

func (x *TensorProto) GetResourceHandleVal() []*ResourceHandleProto

func (*TensorProto) GetScomplexVal

func (x *TensorProto) GetScomplexVal() []float32

func (*TensorProto) GetStringVal

func (x *TensorProto) GetStringVal() [][]byte

func (*TensorProto) GetTensorContent

func (x *TensorProto) GetTensorContent() []byte

func (*TensorProto) GetTensorShape

func (x *TensorProto) GetTensorShape() *TensorShapeProto

func (*TensorProto) GetUint32Val

func (x *TensorProto) GetUint32Val() []uint32

func (*TensorProto) GetUint64Val

func (x *TensorProto) GetUint64Val() []uint64

func (*TensorProto) GetVariantVal

func (x *TensorProto) GetVariantVal() []*VariantTensorDataProto

func (*TensorProto) GetVersionNumber

func (x *TensorProto) GetVersionNumber() int32

func (*TensorProto) ProtoMessage

func (*TensorProto) ProtoMessage()

func (*TensorProto) ProtoReflect

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

func (*TensorProto) Reset

func (x *TensorProto) Reset()

func (*TensorProto) String

func (x *TensorProto) String() string

func (*TensorProto) Validate

func (m *TensorProto) Validate() error

Validate checks the field values on TensorProto with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TensorProto) ValidateAll

func (m *TensorProto) ValidateAll() error

ValidateAll checks the field values on TensorProto with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TensorProtoMultiError, or nil if none found.

type TensorProtoMultiError

type TensorProtoMultiError []error

TensorProtoMultiError is an error wrapping multiple validation errors returned by TensorProto.ValidateAll() if the designated constraints aren't met.

func (TensorProtoMultiError) AllErrors

func (m TensorProtoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TensorProtoMultiError) Error

func (m TensorProtoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TensorProtoValidationError

type TensorProtoValidationError struct {
	// contains filtered or unexported fields
}

TensorProtoValidationError is the validation error returned by TensorProto.Validate if the designated constraints aren't met.

func (TensorProtoValidationError) Cause

Cause function returns cause value.

func (TensorProtoValidationError) Error

Error satisfies the builtin error interface

func (TensorProtoValidationError) ErrorName

func (e TensorProtoValidationError) ErrorName() string

ErrorName returns error name.

func (TensorProtoValidationError) Field

Field function returns field value.

func (TensorProtoValidationError) Key

Key function returns key value.

func (TensorProtoValidationError) Reason

Reason function returns reason value.

type TensorShapeProto

type TensorShapeProto struct {

	// Dimensions of the tensor, such as {"input", 30}, {"output", 40}
	// for a 30 x 40 2D tensor.  If an entry has size -1, this
	// corresponds to a dimension of unknown size. The names are
	// optional.
	//
	// The order of entries in "dim" matters: It indicates the layout of the
	// values in the tensor in-memory representation.
	//
	// The first entry in "dim" is the outermost dimension used to layout the
	// values, the last entry is the innermost dimension.  This matches the
	// in-memory layout of RowMajor Eigen tensors.
	//
	// If "dim.size()" > 0, "unknown_rank" must be false.
	Dim []*TensorShapeProto_Dim `protobuf:"bytes,2,rep,name=dim,proto3" json:"dim,omitempty"`
	// If true, the number of dimensions in the shape is unknown.
	//
	// If true, "dim.size()" must be 0.
	UnknownRank bool `protobuf:"varint,3,opt,name=unknown_rank,json=unknownRank,proto3" json:"unknown_rank,omitempty"`
	// contains filtered or unexported fields
}

Dimensions of a tensor.

func (*TensorShapeProto) Descriptor deprecated

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

Deprecated: Use TensorShapeProto.ProtoReflect.Descriptor instead.

func (*TensorShapeProto) GetDim

func (x *TensorShapeProto) GetDim() []*TensorShapeProto_Dim

func (*TensorShapeProto) GetUnknownRank

func (x *TensorShapeProto) GetUnknownRank() bool

func (*TensorShapeProto) ProtoMessage

func (*TensorShapeProto) ProtoMessage()

func (*TensorShapeProto) ProtoReflect

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

func (*TensorShapeProto) Reset

func (x *TensorShapeProto) Reset()

func (*TensorShapeProto) String

func (x *TensorShapeProto) String() string

func (*TensorShapeProto) Validate

func (m *TensorShapeProto) Validate() error

Validate checks the field values on TensorShapeProto with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TensorShapeProto) ValidateAll

func (m *TensorShapeProto) ValidateAll() error

ValidateAll checks the field values on TensorShapeProto with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TensorShapeProtoMultiError, or nil if none found.

type TensorShapeProtoMultiError

type TensorShapeProtoMultiError []error

TensorShapeProtoMultiError is an error wrapping multiple validation errors returned by TensorShapeProto.ValidateAll() if the designated constraints aren't met.

func (TensorShapeProtoMultiError) AllErrors

func (m TensorShapeProtoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TensorShapeProtoMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TensorShapeProtoValidationError

type TensorShapeProtoValidationError struct {
	// contains filtered or unexported fields
}

TensorShapeProtoValidationError is the validation error returned by TensorShapeProto.Validate if the designated constraints aren't met.

func (TensorShapeProtoValidationError) Cause

Cause function returns cause value.

func (TensorShapeProtoValidationError) Error

Error satisfies the builtin error interface

func (TensorShapeProtoValidationError) ErrorName

ErrorName returns error name.

func (TensorShapeProtoValidationError) Field

Field function returns field value.

func (TensorShapeProtoValidationError) Key

Key function returns key value.

func (TensorShapeProtoValidationError) Reason

Reason function returns reason value.

type TensorShapeProto_Dim

type TensorShapeProto_Dim struct {

	// Size of the tensor in that dimension.
	// This value must be >= -1, but values of -1 are reserved for "unknown"
	// shapes (values of -1 mean "unknown" dimension).  Certain wrappers
	// that work with TensorShapeProto may fail at runtime when deserializing
	// a TensorShapeProto containing a dim value of -1.
	Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	// Optional name of the tensor dimension.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

One dimension of the tensor.

func (*TensorShapeProto_Dim) Descriptor deprecated

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

Deprecated: Use TensorShapeProto_Dim.ProtoReflect.Descriptor instead.

func (*TensorShapeProto_Dim) GetName

func (x *TensorShapeProto_Dim) GetName() string

func (*TensorShapeProto_Dim) GetSize

func (x *TensorShapeProto_Dim) GetSize() int64

func (*TensorShapeProto_Dim) ProtoMessage

func (*TensorShapeProto_Dim) ProtoMessage()

func (*TensorShapeProto_Dim) ProtoReflect

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

func (*TensorShapeProto_Dim) Reset

func (x *TensorShapeProto_Dim) Reset()

func (*TensorShapeProto_Dim) String

func (x *TensorShapeProto_Dim) String() string

func (*TensorShapeProto_Dim) Validate

func (m *TensorShapeProto_Dim) Validate() error

Validate checks the field values on TensorShapeProto_Dim with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TensorShapeProto_Dim) ValidateAll

func (m *TensorShapeProto_Dim) ValidateAll() error

ValidateAll checks the field values on TensorShapeProto_Dim with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TensorShapeProto_DimMultiError, or nil if none found.

type TensorShapeProto_DimMultiError

type TensorShapeProto_DimMultiError []error

TensorShapeProto_DimMultiError is an error wrapping multiple validation errors returned by TensorShapeProto_Dim.ValidateAll() if the designated constraints aren't met.

func (TensorShapeProto_DimMultiError) AllErrors

func (m TensorShapeProto_DimMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TensorShapeProto_DimMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TensorShapeProto_DimValidationError

type TensorShapeProto_DimValidationError struct {
	// contains filtered or unexported fields
}

TensorShapeProto_DimValidationError is the validation error returned by TensorShapeProto_Dim.Validate if the designated constraints aren't met.

func (TensorShapeProto_DimValidationError) Cause

Cause function returns cause value.

func (TensorShapeProto_DimValidationError) Error

Error satisfies the builtin error interface

func (TensorShapeProto_DimValidationError) ErrorName

ErrorName returns error name.

func (TensorShapeProto_DimValidationError) Field

Field function returns field value.

func (TensorShapeProto_DimValidationError) Key

Key function returns key value.

func (TensorShapeProto_DimValidationError) Reason

Reason function returns reason value.

type UnimplementedPredictionServiceServer

type UnimplementedPredictionServiceServer struct {
}

UnimplementedPredictionServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedPredictionServiceServer) Predict

type UnsafePredictionServiceServer

type UnsafePredictionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePredictionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PredictionServiceServer will result in compilation errors.

type VariantTensorDataProto

type VariantTensorDataProto struct {

	// Name of the type of objects being serialized.
	TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
	// Portions of the object that are not Tensors.
	Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Tensors contained within objects being serialized.
	Tensors []*TensorProto `protobuf:"bytes,3,rep,name=tensors,proto3" json:"tensors,omitempty"`
	// contains filtered or unexported fields
}

Protocol buffer representing the serialization format of DT_VARIANT tensors.

func (*VariantTensorDataProto) Descriptor deprecated

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

Deprecated: Use VariantTensorDataProto.ProtoReflect.Descriptor instead.

func (*VariantTensorDataProto) GetMetadata

func (x *VariantTensorDataProto) GetMetadata() []byte

func (*VariantTensorDataProto) GetTensors

func (x *VariantTensorDataProto) GetTensors() []*TensorProto

func (*VariantTensorDataProto) GetTypeName

func (x *VariantTensorDataProto) GetTypeName() string

func (*VariantTensorDataProto) ProtoMessage

func (*VariantTensorDataProto) ProtoMessage()

func (*VariantTensorDataProto) ProtoReflect

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

func (*VariantTensorDataProto) Reset

func (x *VariantTensorDataProto) Reset()

func (*VariantTensorDataProto) String

func (x *VariantTensorDataProto) String() string

func (*VariantTensorDataProto) Validate

func (m *VariantTensorDataProto) Validate() error

Validate checks the field values on VariantTensorDataProto with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VariantTensorDataProto) ValidateAll

func (m *VariantTensorDataProto) ValidateAll() error

ValidateAll checks the field values on VariantTensorDataProto with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VariantTensorDataProtoMultiError, or nil if none found.

type VariantTensorDataProtoMultiError

type VariantTensorDataProtoMultiError []error

VariantTensorDataProtoMultiError is an error wrapping multiple validation errors returned by VariantTensorDataProto.ValidateAll() if the designated constraints aren't met.

func (VariantTensorDataProtoMultiError) AllErrors

func (m VariantTensorDataProtoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VariantTensorDataProtoMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VariantTensorDataProtoValidationError

type VariantTensorDataProtoValidationError struct {
	// contains filtered or unexported fields
}

VariantTensorDataProtoValidationError is the validation error returned by VariantTensorDataProto.Validate if the designated constraints aren't met.

func (VariantTensorDataProtoValidationError) Cause

Cause function returns cause value.

func (VariantTensorDataProtoValidationError) Error

Error satisfies the builtin error interface

func (VariantTensorDataProtoValidationError) ErrorName

ErrorName returns error name.

func (VariantTensorDataProtoValidationError) Field

Field function returns field value.

func (VariantTensorDataProtoValidationError) Key

Key function returns key value.

func (VariantTensorDataProtoValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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