Documentation ¶
Index ¶
- Variables
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetDevice() string
- func (x *Resource) GetDeviceInstance() *wrapperspb.UInt32Value
- func (x *Resource) GetKind() string
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type ResourceAllocation
- func (*ResourceAllocation) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceAllocation) GetResourceQuantities() []*ResourceAllocation_Entry
- func (*ResourceAllocation) ProtoMessage()
- func (x *ResourceAllocation) ProtoReflect() protoreflect.Message
- func (x *ResourceAllocation) Reset()
- func (x *ResourceAllocation) String() string
- type ResourceAllocation_Entry
- func (*ResourceAllocation_Entry) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceAllocation_Entry) GetQuantity() uint64
- func (x *ResourceAllocation_Entry) GetResource() *Resource
- func (*ResourceAllocation_Entry) ProtoMessage()
- func (x *ResourceAllocation_Entry) ProtoReflect() protoreflect.Message
- func (x *ResourceAllocation_Entry) Reset()
- func (x *ResourceAllocation_Entry) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_tensorflow_serving_resources_resources_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct { // The type of device on which the resource resides, e.g. CPU or GPU. Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` // A specific instance of the device of type 'device' to which the resources // are bound (instances are assumed to be numbered 0, 1, ...). // // When representing the resources required by a servable that has yet to be // loaded, this field is optional. If not set, it denotes that the servable's // resources are not (yet) bound to a specific instance. DeviceInstance *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=device_instance,json=deviceInstance,proto3" json:"device_instance,omitempty"` // The kind of resource on the device (instance), e.g. RAM or compute share. // // A given type of resource should have a standard unit that represents the // smallest useful quantization. We strongly recommend including the unit // (e.g. bytes or millicores) in this string, as in "ram_bytes". Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
One kind of resource on one device (or type of device).
func (*Resource) Descriptor
deprecated
func (*Resource) GetDeviceInstance ¶
func (x *Resource) GetDeviceInstance() *wrapperspb.UInt32Value
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourceAllocation ¶
type ResourceAllocation struct { ResourceQuantities []*ResourceAllocation_Entry `protobuf:"bytes,1,rep,name=resource_quantities,json=resourceQuantities,proto3" json:"resource_quantities,omitempty"` // contains filtered or unexported fields }
An allocation of one or more kinds of resources, along with the quantity of each. Used to denote the resources that a servable (or collection of servables) will use or is currently using. Also used to denote resources available to the serving system for loading more servables.
func (*ResourceAllocation) Descriptor
deprecated
func (*ResourceAllocation) Descriptor() ([]byte, []int)
Deprecated: Use ResourceAllocation.ProtoReflect.Descriptor instead.
func (*ResourceAllocation) GetResourceQuantities ¶
func (x *ResourceAllocation) GetResourceQuantities() []*ResourceAllocation_Entry
func (*ResourceAllocation) ProtoMessage ¶
func (*ResourceAllocation) ProtoMessage()
func (*ResourceAllocation) ProtoReflect ¶
func (x *ResourceAllocation) ProtoReflect() protoreflect.Message
func (*ResourceAllocation) Reset ¶
func (x *ResourceAllocation) Reset()
func (*ResourceAllocation) String ¶
func (x *ResourceAllocation) String() string
type ResourceAllocation_Entry ¶
type ResourceAllocation_Entry struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Quantity uint64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` // contains filtered or unexported fields }
A collection of resources, each with a quantity. Treated as a resource-> quantity map, i.e. no resource can repeat and the order is immaterial.
func (*ResourceAllocation_Entry) Descriptor
deprecated
func (*ResourceAllocation_Entry) Descriptor() ([]byte, []int)
Deprecated: Use ResourceAllocation_Entry.ProtoReflect.Descriptor instead.
func (*ResourceAllocation_Entry) GetQuantity ¶
func (x *ResourceAllocation_Entry) GetQuantity() uint64
func (*ResourceAllocation_Entry) GetResource ¶
func (x *ResourceAllocation_Entry) GetResource() *Resource
func (*ResourceAllocation_Entry) ProtoMessage ¶
func (*ResourceAllocation_Entry) ProtoMessage()
func (*ResourceAllocation_Entry) ProtoReflect ¶
func (x *ResourceAllocation_Entry) ProtoReflect() protoreflect.Message
func (*ResourceAllocation_Entry) Reset ¶
func (x *ResourceAllocation_Entry) Reset()
func (*ResourceAllocation_Entry) String ¶
func (x *ResourceAllocation_Entry) String() string
Click to show internal directories.
Click to hide internal directories.