1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: tensorflow/core/protobuf/worker.proto 3 4 module tensorflow.worker; 5 6 import google.protobuf; 7 import google.protobuf.any; 8 import tensorflow.cost_graph; 9 import tensorflow.device_attributes; 10 import tensorflow.graph; 11 import tensorflow.step_stats; 12 import tensorflow.tensor; 13 import tensorflow.tensor_shape; 14 import tensorflow.types; 15 import tensorflow.config; 16 import tensorflow.debug_; 17 import tensorflow.error.error_codes; 18 import tensorflow.named_tensor; 19 import tensorflow.tensorflow_server; 20 21 enum protocVersion = 3012004; 22 23 class GetStatusRequest 24 { 25 } 26 27 class GetStatusResponse 28 { 29 @Proto(1) DeviceAttributes[] deviceAttributes = protoDefaultValue!(DeviceAttributes[]); 30 } 31 32 class CreateWorkerSessionRequest 33 { 34 @Proto(1) string sessionHandle = protoDefaultValue!(string); 35 @Proto(2) ServerDef serverDef = protoDefaultValue!(ServerDef); 36 @Proto(3) bool isolateSessionState = protoDefaultValue!(bool); 37 @Proto(4) DeviceAttributes[] clusterDeviceAttributes = protoDefaultValue!(DeviceAttributes[]); 38 } 39 40 class CreateWorkerSessionResponse 41 { 42 } 43 44 class DeleteWorkerSessionRequest 45 { 46 @Proto(1) string sessionHandle = protoDefaultValue!(string); 47 } 48 49 class DeleteWorkerSessionResponse 50 { 51 } 52 53 class RegisterGraphRequest 54 { 55 @Proto(1) string sessionHandle = protoDefaultValue!(string); 56 @Proto(2) GraphDef graphDef = protoDefaultValue!(GraphDef); 57 @Proto(3) bool hasControlFlow = protoDefaultValue!(bool); 58 @Proto(4) GraphOptions graphOptions = protoDefaultValue!(GraphOptions); 59 @Proto(5) DebugOptions debugOptions = protoDefaultValue!(DebugOptions); 60 @Proto(6) bool createWorkerSessionCalled = protoDefaultValue!(bool); 61 @Proto(7) long collectiveGraphKey = protoDefaultValue!(long); 62 @Proto(8) ConfigProto configProto = protoDefaultValue!(ConfigProto); 63 } 64 65 class RegisterGraphResponse 66 { 67 @Proto(1) string graphHandle = protoDefaultValue!(string); 68 } 69 70 class DeregisterGraphRequest 71 { 72 @Proto(1) string graphHandle = protoDefaultValue!(string); 73 @Proto(2) string sessionHandle = protoDefaultValue!(string); 74 @Proto(3) bool createWorkerSessionCalled = protoDefaultValue!(bool); 75 } 76 77 class DeregisterGraphResponse 78 { 79 } 80 81 class CleanupAllRequest 82 { 83 @Proto(1) string[] container = protoDefaultValue!(string[]); 84 } 85 86 class CleanupAllResponse 87 { 88 } 89 90 class ExecutorOpts 91 { 92 @Proto(1) bool recordCosts = protoDefaultValue!(bool); 93 @Proto(3) bool recordTimeline = protoDefaultValue!(bool); 94 @Proto(4) bool recordPartitionGraphs = protoDefaultValue!(bool); 95 @Proto(5) bool reportTensorAllocationsUponOom = protoDefaultValue!(bool); 96 } 97 98 class RunGraphRequest 99 { 100 @Proto(1) string graphHandle = protoDefaultValue!(string); 101 @Proto(2) long stepId = protoDefaultValue!(long); 102 @Proto(3) NamedTensorProto[] send = protoDefaultValue!(NamedTensorProto[]); 103 @Proto(4) string[] recvKey = protoDefaultValue!(string[]); 104 @Proto(5) ExecutorOpts execOpts = protoDefaultValue!(ExecutorOpts); 105 @Proto(6) bool isPartial = protoDefaultValue!(bool); 106 @Proto(7) bool isLastPartialRun = protoDefaultValue!(bool); 107 @Proto(8) string sessionHandle = protoDefaultValue!(string); 108 @Proto(9) bool storeErrorsInResponseBody = protoDefaultValue!(bool); 109 @Proto(10) bool createWorkerSessionCalled = protoDefaultValue!(bool); 110 @Proto(11) long requestId = protoDefaultValue!(long); 111 } 112 113 class RunGraphResponse 114 { 115 @Proto(1) NamedTensorProto[] recv = protoDefaultValue!(NamedTensorProto[]); 116 @Proto(2) StepStats stepStats = protoDefaultValue!(StepStats); 117 @Proto(3) CostGraphDef costGraph = protoDefaultValue!(CostGraphDef); 118 @Proto(4) GraphDef[] partitionGraph = protoDefaultValue!(GraphDef[]); 119 @Proto(5) Code statusCode = protoDefaultValue!(Code); 120 @Proto(6) string statusErrorMessage = protoDefaultValue!(string); 121 } 122 123 class CleanupGraphRequest 124 { 125 @Proto(1) long stepId = protoDefaultValue!(long); 126 } 127 128 class CleanupGraphResponse 129 { 130 } 131 132 class RecvTensorRequest 133 { 134 @Proto(1) long stepId = protoDefaultValue!(long); 135 @Proto(2) string rendezvousKey = protoDefaultValue!(string); 136 @Proto(3) bool dmaOk = protoDefaultValue!(bool); 137 @Proto(4) DeviceLocality clientLocality = protoDefaultValue!(DeviceLocality); 138 @Proto(5) DeviceLocality serverLocality = protoDefaultValue!(DeviceLocality); 139 @Proto(6) Any transportOptions = protoDefaultValue!(Any); 140 @Proto(7) long requestId = protoDefaultValue!(long); 141 } 142 143 class RecvTensorResponse 144 { 145 @Proto(1) TensorProto tensor = protoDefaultValue!(TensorProto); 146 @Proto(2) bool isDead = protoDefaultValue!(bool); 147 @Proto(3) long sendStartMicros = protoDefaultValue!(long); 148 @Proto(4) Any transportOptions = protoDefaultValue!(Any); 149 @Proto(5) bool requireAck = protoDefaultValue!(bool); 150 } 151 152 class MarkRecvFinishedRequest 153 { 154 @Proto(1) long requestId = protoDefaultValue!(long); 155 } 156 157 class MarkRecvFinishedResponse 158 { 159 } 160 161 class LoggingRequest 162 { 163 @Proto(1) bool enableRpcLogging = protoDefaultValue!(bool); 164 @Proto(2) bool clear = protoDefaultValue!(bool); 165 @Proto(3, Wire.none, Yes.packed) long[] fetchStepId = protoDefaultValue!(long[]); 166 @Proto(4) bool disableRpcLogging = protoDefaultValue!(bool); 167 } 168 169 class LabeledStepStats 170 { 171 @Proto(1) long stepId = protoDefaultValue!(long); 172 @Proto(2) StepStats stepStats = protoDefaultValue!(StepStats); 173 } 174 175 class LoggingResponse 176 { 177 @Proto(1) LabeledStepStats[] step = protoDefaultValue!(LabeledStepStats[]); 178 } 179 180 class TraceOpts 181 { 182 @Proto(1) double duration = protoDefaultValue!(double); 183 @Proto(2) bool useStepProfiler = protoDefaultValue!(bool); 184 @Proto(3) bool useKernelProfiler = protoDefaultValue!(bool); 185 @Proto(4) bool useExtendedProfiler = protoDefaultValue!(bool); 186 @Proto(5) bool useGpuProfiler = protoDefaultValue!(bool); 187 @Proto(6) bool useSampleProfiler = protoDefaultValue!(bool); 188 } 189 190 class TracingRequest 191 { 192 @Proto(1) TraceOpts options = protoDefaultValue!(TraceOpts); 193 } 194 195 class TracingResponse 196 { 197 } 198 199 class RecvBufRequest 200 { 201 @Proto(1) long stepId = protoDefaultValue!(long); 202 @Proto(2) string bufRendezvousKey = protoDefaultValue!(string); 203 @Proto(3) long numBytes = protoDefaultValue!(long); 204 @Proto(4, Wire.fixed) ulong bufPtr = protoDefaultValue!(ulong); 205 @Proto(5) DeviceLocality clientLocality = protoDefaultValue!(DeviceLocality); 206 @Proto(6) DeviceLocality serverLocality = protoDefaultValue!(DeviceLocality); 207 @Proto(7) Any transportOptions = protoDefaultValue!(Any); 208 @Proto(8) string srcDevice = protoDefaultValue!(string); 209 @Proto(9) string dstDevice = protoDefaultValue!(string); 210 @Proto(10) long requestId = protoDefaultValue!(long); 211 @Proto(11) ulong srcIncarnation = protoDefaultValue!(ulong); 212 } 213 214 class RecvBufResponse 215 { 216 @Proto(1, Wire.fixed) ulong bufPtr = protoDefaultValue!(ulong); 217 @Proto(2) long numBytes = protoDefaultValue!(long); 218 @Proto(3) bool isDead = protoDefaultValue!(bool); 219 @Proto(4) Any transportOptions = protoDefaultValue!(Any); 220 @Proto(5) long sendStartMicros = protoDefaultValue!(long); 221 @Proto(6) bool requireAck = protoDefaultValue!(bool); 222 } 223 224 class CompleteGroupRequest 225 { 226 @Proto(1) int groupKey = protoDefaultValue!(int); 227 @Proto(2) int groupSize = protoDefaultValue!(int); 228 @Proto(3) string deviceType = protoDefaultValue!(string); 229 @Proto(4) string[] deviceName = protoDefaultValue!(string[]); 230 @Proto(5) int collectiveType = protoDefaultValue!(int); 231 } 232 233 class CompleteGroupResponse 234 { 235 @Proto(1) int groupKey = protoDefaultValue!(int); 236 @Proto(2) int groupSize = protoDefaultValue!(int); 237 @Proto(3) string deviceType = protoDefaultValue!(string); 238 @Proto(4) int numTasks = protoDefaultValue!(int); 239 @Proto(5) string[] deviceName = protoDefaultValue!(string[]); 240 @Proto(6) string[] taskName = protoDefaultValue!(string[]); 241 @Proto(7) bytes communicatorKey = protoDefaultValue!(bytes); 242 } 243 244 class CompleteInstanceRequest 245 { 246 @Proto(1) string name = protoDefaultValue!(string); 247 @Proto(2) int type = protoDefaultValue!(int); 248 @Proto(3) DataType dataType = protoDefaultValue!(DataType); 249 @Proto(4) TensorShapeProto shape = protoDefaultValue!(TensorShapeProto); 250 @Proto(5) int groupKey = protoDefaultValue!(int); 251 @Proto(6) int groupSize = protoDefaultValue!(int); 252 @Proto(7) int instanceKey = protoDefaultValue!(int); 253 @Proto(8) string deviceType = protoDefaultValue!(string); 254 @Proto(9, Wire.none, Yes.packed) int[] subdivOffset = protoDefaultValue!(int[]); 255 @Proto(10) string device = protoDefaultValue!(string); 256 @Proto(11) bool isSource = protoDefaultValue!(bool); 257 } 258 259 class CompleteInstanceResponse 260 { 261 @Proto(1) int instanceKey = protoDefaultValue!(int); 262 @Proto(2) int sourceRank = protoDefaultValue!(int); 263 } 264 265 class GetStepSequenceRequest 266 { 267 @Proto(1, Wire.none, Yes.packed) long[] graphKey = protoDefaultValue!(long[]); 268 } 269 270 class StepSequence 271 { 272 @Proto(1) long graphKey = protoDefaultValue!(long); 273 @Proto(2) long nextStepId = protoDefaultValue!(long); 274 } 275 276 class GetStepSequenceResponse 277 { 278 @Proto(1) StepSequence[] stepSequence = protoDefaultValue!(StepSequence[]); 279 }