Documentation ¶
Index ¶
- Variables
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetBrand() string
- func (x *Device) GetId() int32
- func (x *Device) GetType() Type
- func (x *Device) GetUuid() string
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "TYPE_CPU", 2: "TYPE_CUDA", 3: "TYPE_ROCM", } Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "TYPE_CPU": 1, "TYPE_CUDA": 2, "TYPE_ROCM": 3, } )
Enum value maps for Type.
View Source
var File_determined_device_v1_device_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { // The index of the device. Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The brand name of the device. Brand string `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"` // The unique UUID of the device. Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"` // The type of the Device. Type Type `protobuf:"varint,4,opt,name=type,proto3,enum=determined.device.v1.Type" json:"type,omitempty"` // contains filtered or unexported fields }
Device represents a single computational device on an agent.
func (*Device) Descriptor
deprecated
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
The type of the Device.
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.