forked from recogni/tfutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device_attributes.pb.go
124 lines (107 loc) · 5.01 KB
/
device_attributes.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/device_attributes.proto
package tensorflow
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type DeviceLocality struct {
// Optional bus locality of device. Default value of 0 means
// no specific locality. Specific localities are indexed from 1.
BusId int32 `protobuf:"varint,1,opt,name=bus_id,json=busId" json:"bus_id,omitempty"`
}
func (m *DeviceLocality) Reset() { *m = DeviceLocality{} }
func (m *DeviceLocality) String() string { return proto.CompactTextString(m) }
func (*DeviceLocality) ProtoMessage() {}
func (*DeviceLocality) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
func (m *DeviceLocality) GetBusId() int32 {
if m != nil {
return m.BusId
}
return 0
}
type DeviceAttributes struct {
// Fully specified name of the device within a cluster.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// String representation of device_type.
DeviceType string `protobuf:"bytes,2,opt,name=device_type,json=deviceType" json:"device_type,omitempty"`
// Memory capacity of device in bytes.
MemoryLimit int64 `protobuf:"varint,4,opt,name=memory_limit,json=memoryLimit" json:"memory_limit,omitempty"`
// Platform-specific data about device that may be useful
// for supporting efficient data transfers.
Locality *DeviceLocality `protobuf:"bytes,5,opt,name=locality" json:"locality,omitempty"`
// A device is assigned a global unique number each time it is
// initialized. "incarnation" should never be 0.
Incarnation uint64 `protobuf:"fixed64,6,opt,name=incarnation" json:"incarnation,omitempty"`
// String representation of the physical device that this device maps to.
PhysicalDeviceDesc string `protobuf:"bytes,7,opt,name=physical_device_desc,json=physicalDeviceDesc" json:"physical_device_desc,omitempty"`
}
func (m *DeviceAttributes) Reset() { *m = DeviceAttributes{} }
func (m *DeviceAttributes) String() string { return proto.CompactTextString(m) }
func (*DeviceAttributes) ProtoMessage() {}
func (*DeviceAttributes) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
func (m *DeviceAttributes) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *DeviceAttributes) GetDeviceType() string {
if m != nil {
return m.DeviceType
}
return ""
}
func (m *DeviceAttributes) GetMemoryLimit() int64 {
if m != nil {
return m.MemoryLimit
}
return 0
}
func (m *DeviceAttributes) GetLocality() *DeviceLocality {
if m != nil {
return m.Locality
}
return nil
}
func (m *DeviceAttributes) GetIncarnation() uint64 {
if m != nil {
return m.Incarnation
}
return 0
}
func (m *DeviceAttributes) GetPhysicalDeviceDesc() string {
if m != nil {
return m.PhysicalDeviceDesc
}
return ""
}
func init() {
proto.RegisterType((*DeviceLocality)(nil), "tensorflow.DeviceLocality")
proto.RegisterType((*DeviceAttributes)(nil), "tensorflow.DeviceAttributes")
}
func init() { proto.RegisterFile("tensorflow/core/framework/device_attributes.proto", fileDescriptor4) }
var fileDescriptor4 = []byte{
// 285 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x4f, 0x4b, 0xc4, 0x30,
0x14, 0xc4, 0x89, 0x6e, 0xab, 0xbe, 0x8a, 0x48, 0x50, 0x09, 0x5e, 0xac, 0x7b, 0xb1, 0xa7, 0xd6,
0x3f, 0xa0, 0x67, 0x97, 0xbd, 0x08, 0x7b, 0x58, 0x8a, 0xf7, 0x92, 0x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