tensorflow_serving_client/
node_def.rs1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![cfg_attr(rustfmt, rustfmt_skip)]
9
10#![allow(box_pointers)]
11#![allow(dead_code)]
12#![allow(missing_docs)]
13#![allow(non_camel_case_types)]
14#![allow(non_snake_case)]
15#![allow(non_upper_case_globals)]
16#![allow(trivial_casts)]
17#![allow(unsafe_code)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20use protobuf::Message as Message_imported_for_functions;
23use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
24
25#[derive(PartialEq,Clone,Default)]
30pub struct NodeDef {
31 pub name: ::std::string::String,
33 pub op: ::std::string::String,
34 pub input: ::protobuf::RepeatedField<::std::string::String>,
35 pub device: ::std::string::String,
36 pub attr: ::std::collections::HashMap<::std::string::String, super::attr_value::AttrValue>,
37 pub experimental_debug_info: ::protobuf::SingularPtrField<NodeDef_ExperimentalDebugInfo>,
38 pub unknown_fields: ::protobuf::UnknownFields,
40 pub cached_size: ::protobuf::CachedSize,
41}
42
43impl<'a> ::std::default::Default for &'a NodeDef {
44 fn default() -> &'a NodeDef {
45 <NodeDef as ::protobuf::Message>::default_instance()
46 }
47}
48
49impl NodeDef {
50 pub fn new() -> NodeDef {
51 ::std::default::Default::default()
52 }
53
54 pub fn get_name(&self) -> &str {
58 &self.name
59 }
60 pub fn clear_name(&mut self) {
61 self.name.clear();
62 }
63
64 pub fn set_name(&mut self, v: ::std::string::String) {
66 self.name = v;
67 }
68
69 pub fn mut_name(&mut self) -> &mut ::std::string::String {
72 &mut self.name
73 }
74
75 pub fn take_name(&mut self) -> ::std::string::String {
77 ::std::mem::replace(&mut self.name, ::std::string::String::new())
78 }
79
80 pub fn get_op(&self) -> &str {
84 &self.op
85 }
86 pub fn clear_op(&mut self) {
87 self.op.clear();
88 }
89
90 pub fn set_op(&mut self, v: ::std::string::String) {
92 self.op = v;
93 }
94
95 pub fn mut_op(&mut self) -> &mut ::std::string::String {
98 &mut self.op
99 }
100
101 pub fn take_op(&mut self) -> ::std::string::String {
103 ::std::mem::replace(&mut self.op, ::std::string::String::new())
104 }
105
106 pub fn get_input(&self) -> &[::std::string::String] {
110 &self.input
111 }
112 pub fn clear_input(&mut self) {
113 self.input.clear();
114 }
115
116 pub fn set_input(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
118 self.input = v;
119 }
120
121 pub fn mut_input(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
123 &mut self.input
124 }
125
126 pub fn take_input(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
128 ::std::mem::replace(&mut self.input, ::protobuf::RepeatedField::new())
129 }
130
131 pub fn get_device(&self) -> &str {
135 &self.device
136 }
137 pub fn clear_device(&mut self) {
138 self.device.clear();
139 }
140
141 pub fn set_device(&mut self, v: ::std::string::String) {
143 self.device = v;
144 }
145
146 pub fn mut_device(&mut self) -> &mut ::std::string::String {
149 &mut self.device
150 }
151
152 pub fn take_device(&mut self) -> ::std::string::String {
154 ::std::mem::replace(&mut self.device, ::std::string::String::new())
155 }
156
157 pub fn get_attr(&self) -> &::std::collections::HashMap<::std::string::String, super::attr_value::AttrValue> {
161 &self.attr
162 }
163 pub fn clear_attr(&mut self) {
164 self.attr.clear();
165 }
166
167 pub fn set_attr(&mut self, v: ::std::collections::HashMap<::std::string::String, super::attr_value::AttrValue>) {
169 self.attr = v;
170 }
171
172 pub fn mut_attr(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, super::attr_value::AttrValue> {
174 &mut self.attr
175 }
176
177 pub fn take_attr(&mut self) -> ::std::collections::HashMap<::std::string::String, super::attr_value::AttrValue> {
179 ::std::mem::replace(&mut self.attr, ::std::collections::HashMap::new())
180 }
181
182 pub fn get_experimental_debug_info(&self) -> &NodeDef_ExperimentalDebugInfo {
186 self.experimental_debug_info.as_ref().unwrap_or_else(|| NodeDef_ExperimentalDebugInfo::default_instance())
187 }
188 pub fn clear_experimental_debug_info(&mut self) {
189 self.experimental_debug_info.clear();
190 }
191
192 pub fn has_experimental_debug_info(&self) -> bool {
193 self.experimental_debug_info.is_some()
194 }
195
196 pub fn set_experimental_debug_info(&mut self, v: NodeDef_ExperimentalDebugInfo) {
198 self.experimental_debug_info = ::protobuf::SingularPtrField::some(v);
199 }
200
201 pub fn mut_experimental_debug_info(&mut self) -> &mut NodeDef_ExperimentalDebugInfo {
204 if self.experimental_debug_info.is_none() {
205 self.experimental_debug_info.set_default();
206 }
207 self.experimental_debug_info.as_mut().unwrap()
208 }
209
210 pub fn take_experimental_debug_info(&mut self) -> NodeDef_ExperimentalDebugInfo {
212 self.experimental_debug_info.take().unwrap_or_else(|| NodeDef_ExperimentalDebugInfo::new())
213 }
214}
215
216impl ::protobuf::Message for NodeDef {
217 fn is_initialized(&self) -> bool {
218 for v in &self.experimental_debug_info {
219 if !v.is_initialized() {
220 return false;
221 }
222 };
223 true
224 }
225
226 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
227 while !is.eof()? {
228 let (field_number, wire_type) = is.read_tag_unpack()?;
229 match field_number {
230 1 => {
231 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
232 },
233 2 => {
234 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.op)?;
235 },
236 3 => {
237 ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.input)?;
238 },
239 4 => {
240 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.device)?;
241 },
242 5 => {
243 ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<super::attr_value::AttrValue>>(wire_type, is, &mut self.attr)?;
244 },
245 6 => {
246 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.experimental_debug_info)?;
247 },
248 _ => {
249 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
250 },
251 };
252 }
253 ::std::result::Result::Ok(())
254 }
255
256 #[allow(unused_variables)]
258 fn compute_size(&self) -> u32 {
259 let mut my_size = 0;
260 if !self.name.is_empty() {
261 my_size += ::protobuf::rt::string_size(1, &self.name);
262 }
263 if !self.op.is_empty() {
264 my_size += ::protobuf::rt::string_size(2, &self.op);
265 }
266 for value in &self.input {
267 my_size += ::protobuf::rt::string_size(3, &value);
268 };
269 if !self.device.is_empty() {
270 my_size += ::protobuf::rt::string_size(4, &self.device);
271 }
272 my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<super::attr_value::AttrValue>>(5, &self.attr);
273 if let Some(ref v) = self.experimental_debug_info.as_ref() {
274 let len = v.compute_size();
275 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
276 }
277 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
278 self.cached_size.set(my_size);
279 my_size
280 }
281
282 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
283 if !self.name.is_empty() {
284 os.write_string(1, &self.name)?;
285 }
286 if !self.op.is_empty() {
287 os.write_string(2, &self.op)?;
288 }
289 for v in &self.input {
290 os.write_string(3, &v)?;
291 };
292 if !self.device.is_empty() {
293 os.write_string(4, &self.device)?;
294 }
295 ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<super::attr_value::AttrValue>>(5, &self.attr, os)?;
296 if let Some(ref v) = self.experimental_debug_info.as_ref() {
297 os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
298 os.write_raw_varint32(v.get_cached_size())?;
299 v.write_to_with_cached_sizes(os)?;
300 }
301 os.write_unknown_fields(self.get_unknown_fields())?;
302 ::std::result::Result::Ok(())
303 }
304
305 fn get_cached_size(&self) -> u32 {
306 self.cached_size.get()
307 }
308
309 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
310 &self.unknown_fields
311 }
312
313 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
314 &mut self.unknown_fields
315 }
316
317 fn as_any(&self) -> &dyn (::std::any::Any) {
318 self as &dyn (::std::any::Any)
319 }
320 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
321 self as &mut dyn (::std::any::Any)
322 }
323 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
324 self
325 }
326
327 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
328 Self::descriptor_static()
329 }
330
331 fn new() -> NodeDef {
332 NodeDef::new()
333 }
334
335 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
336 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
337 unsafe {
338 descriptor.get(|| {
339 let mut fields = ::std::vec::Vec::new();
340 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
341 "name",
342 |m: &NodeDef| { &m.name },
343 |m: &mut NodeDef| { &mut m.name },
344 ));
345 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
346 "op",
347 |m: &NodeDef| { &m.op },
348 |m: &mut NodeDef| { &mut m.op },
349 ));
350 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
351 "input",
352 |m: &NodeDef| { &m.input },
353 |m: &mut NodeDef| { &mut m.input },
354 ));
355 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
356 "device",
357 |m: &NodeDef| { &m.device },
358 |m: &mut NodeDef| { &mut m.device },
359 ));
360 fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage<super::attr_value::AttrValue>>(
361 "attr",
362 |m: &NodeDef| { &m.attr },
363 |m: &mut NodeDef| { &mut m.attr },
364 ));
365 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<NodeDef_ExperimentalDebugInfo>>(
366 "experimental_debug_info",
367 |m: &NodeDef| { &m.experimental_debug_info },
368 |m: &mut NodeDef| { &mut m.experimental_debug_info },
369 ));
370 ::protobuf::reflect::MessageDescriptor::new_pb_name::<NodeDef>(
371 "NodeDef",
372 fields,
373 file_descriptor_proto()
374 )
375 })
376 }
377 }
378
379 fn default_instance() -> &'static NodeDef {
380 static mut instance: ::protobuf::lazy::Lazy<NodeDef> = ::protobuf::lazy::Lazy::INIT;
381 unsafe {
382 instance.get(NodeDef::new)
383 }
384 }
385}
386
387impl ::protobuf::Clear for NodeDef {
388 fn clear(&mut self) {
389 self.name.clear();
390 self.op.clear();
391 self.input.clear();
392 self.device.clear();
393 self.attr.clear();
394 self.experimental_debug_info.clear();
395 self.unknown_fields.clear();
396 }
397}
398
399impl ::std::fmt::Debug for NodeDef {
400 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
401 ::protobuf::text_format::fmt(self, f)
402 }
403}
404
405impl ::protobuf::reflect::ProtobufValue for NodeDef {
406 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
407 ::protobuf::reflect::ReflectValueRef::Message(self)
408 }
409}
410
411#[derive(PartialEq,Clone,Default)]
412pub struct NodeDef_ExperimentalDebugInfo {
413 pub original_node_names: ::protobuf::RepeatedField<::std::string::String>,
415 pub original_func_names: ::protobuf::RepeatedField<::std::string::String>,
416 pub unknown_fields: ::protobuf::UnknownFields,
418 pub cached_size: ::protobuf::CachedSize,
419}
420
421impl<'a> ::std::default::Default for &'a NodeDef_ExperimentalDebugInfo {
422 fn default() -> &'a NodeDef_ExperimentalDebugInfo {
423 <NodeDef_ExperimentalDebugInfo as ::protobuf::Message>::default_instance()
424 }
425}
426
427impl NodeDef_ExperimentalDebugInfo {
428 pub fn new() -> NodeDef_ExperimentalDebugInfo {
429 ::std::default::Default::default()
430 }
431
432 pub fn get_original_node_names(&self) -> &[::std::string::String] {
436 &self.original_node_names
437 }
438 pub fn clear_original_node_names(&mut self) {
439 self.original_node_names.clear();
440 }
441
442 pub fn set_original_node_names(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
444 self.original_node_names = v;
445 }
446
447 pub fn mut_original_node_names(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
449 &mut self.original_node_names
450 }
451
452 pub fn take_original_node_names(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
454 ::std::mem::replace(&mut self.original_node_names, ::protobuf::RepeatedField::new())
455 }
456
457 pub fn get_original_func_names(&self) -> &[::std::string::String] {
461 &self.original_func_names
462 }
463 pub fn clear_original_func_names(&mut self) {
464 self.original_func_names.clear();
465 }
466
467 pub fn set_original_func_names(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
469 self.original_func_names = v;
470 }
471
472 pub fn mut_original_func_names(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
474 &mut self.original_func_names
475 }
476
477 pub fn take_original_func_names(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
479 ::std::mem::replace(&mut self.original_func_names, ::protobuf::RepeatedField::new())
480 }
481}
482
483impl ::protobuf::Message for NodeDef_ExperimentalDebugInfo {
484 fn is_initialized(&self) -> bool {
485 true
486 }
487
488 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
489 while !is.eof()? {
490 let (field_number, wire_type) = is.read_tag_unpack()?;
491 match field_number {
492 1 => {
493 ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.original_node_names)?;
494 },
495 2 => {
496 ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.original_func_names)?;
497 },
498 _ => {
499 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
500 },
501 };
502 }
503 ::std::result::Result::Ok(())
504 }
505
506 #[allow(unused_variables)]
508 fn compute_size(&self) -> u32 {
509 let mut my_size = 0;
510 for value in &self.original_node_names {
511 my_size += ::protobuf::rt::string_size(1, &value);
512 };
513 for value in &self.original_func_names {
514 my_size += ::protobuf::rt::string_size(2, &value);
515 };
516 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
517 self.cached_size.set(my_size);
518 my_size
519 }
520
521 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
522 for v in &self.original_node_names {
523 os.write_string(1, &v)?;
524 };
525 for v in &self.original_func_names {
526 os.write_string(2, &v)?;
527 };
528 os.write_unknown_fields(self.get_unknown_fields())?;
529 ::std::result::Result::Ok(())
530 }
531
532 fn get_cached_size(&self) -> u32 {
533 self.cached_size.get()
534 }
535
536 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
537 &self.unknown_fields
538 }
539
540 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
541 &mut self.unknown_fields
542 }
543
544 fn as_any(&self) -> &dyn (::std::any::Any) {
545 self as &dyn (::std::any::Any)
546 }
547 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
548 self as &mut dyn (::std::any::Any)
549 }
550 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
551 self
552 }
553
554 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
555 Self::descriptor_static()
556 }
557
558 fn new() -> NodeDef_ExperimentalDebugInfo {
559 NodeDef_ExperimentalDebugInfo::new()
560 }
561
562 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
563 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
564 unsafe {
565 descriptor.get(|| {
566 let mut fields = ::std::vec::Vec::new();
567 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
568 "original_node_names",
569 |m: &NodeDef_ExperimentalDebugInfo| { &m.original_node_names },
570 |m: &mut NodeDef_ExperimentalDebugInfo| { &mut m.original_node_names },
571 ));
572 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
573 "original_func_names",
574 |m: &NodeDef_ExperimentalDebugInfo| { &m.original_func_names },
575 |m: &mut NodeDef_ExperimentalDebugInfo| { &mut m.original_func_names },
576 ));
577 ::protobuf::reflect::MessageDescriptor::new_pb_name::<NodeDef_ExperimentalDebugInfo>(
578 "NodeDef.ExperimentalDebugInfo",
579 fields,
580 file_descriptor_proto()
581 )
582 })
583 }
584 }
585
586 fn default_instance() -> &'static NodeDef_ExperimentalDebugInfo {
587 static mut instance: ::protobuf::lazy::Lazy<NodeDef_ExperimentalDebugInfo> = ::protobuf::lazy::Lazy::INIT;
588 unsafe {
589 instance.get(NodeDef_ExperimentalDebugInfo::new)
590 }
591 }
592}
593
594impl ::protobuf::Clear for NodeDef_ExperimentalDebugInfo {
595 fn clear(&mut self) {
596 self.original_node_names.clear();
597 self.original_func_names.clear();
598 self.unknown_fields.clear();
599 }
600}
601
602impl ::std::fmt::Debug for NodeDef_ExperimentalDebugInfo {
603 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
604 ::protobuf::text_format::fmt(self, f)
605 }
606}
607
608impl ::protobuf::reflect::ProtobufValue for NodeDef_ExperimentalDebugInfo {
609 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
610 ::protobuf::reflect::ReflectValueRef::Message(self)
611 }
612}
613
614static file_descriptor_proto_data: &'static [u8] = b"\
615 \n(tensorflow/core/framework/node_def.proto\x12\ntensorflow\x1a*tensorfl\
616 ow/core/framework/attr_value.proto\"\xba\x03\n\x07NodeDef\x12\x12\n\x04n\
617 ame\x18\x01\x20\x01(\tR\x04name\x12\x0e\n\x02op\x18\x02\x20\x01(\tR\x02o\
618 p\x12\x14\n\x05input\x18\x03\x20\x03(\tR\x05input\x12\x16\n\x06device\
619 \x18\x04\x20\x01(\tR\x06device\x121\n\x04attr\x18\x05\x20\x03(\x0b2\x1d.\
620 tensorflow.NodeDef.AttrEntryR\x04attr\x12a\n\x17experimental_debug_info\
621 \x18\x06\x20\x01(\x0b2).tensorflow.NodeDef.ExperimentalDebugInfoR\x15exp\
622 erimentalDebugInfo\x1aN\n\tAttrEntry\x12\x10\n\x03key\x18\x01\x20\x01(\t\
623 R\x03key\x12+\n\x05value\x18\x02\x20\x01(\x0b2\x15.tensorflow.AttrValueR\
624 \x05value:\x028\x01\x1aw\n\x15ExperimentalDebugInfo\x12.\n\x13original_n\
625 ode_names\x18\x01\x20\x03(\tR\x11originalNodeNames\x12.\n\x13original_fu\
626 nc_names\x18\x02\x20\x03(\tR\x11originalFuncNamesB{\n\x18org.tensorflow.\
627 frameworkB\tNodeProtoP\x01ZOgithub.com/tensorflow/tensorflow/tensorflow/\
628 go/core/framework/node_def_go_proto\xf8\x01\x01J\xe7\x1c\n\x06\x12\x04\0\
629 \0W\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\x02\0\
630 \x13\n\t\n\x02\x03\0\x12\x03\x04\04\n\x08\n\x01\x08\x12\x03\x06\0\x1f\n\
631 \t\n\x02\x08\x1f\x12\x03\x06\0\x1f\n\x08\n\x01\x08\x12\x03\x07\0*\n\t\n\
632 \x02\x08\x08\x12\x03\x07\0*\n\x08\n\x01\x08\x12\x03\x08\0\"\n\t\n\x02\
633 \x08\n\x12\x03\x08\0\"\n\x08\n\x01\x08\x12\x03\t\01\n\t\n\x02\x08\x01\
634 \x12\x03\t\01\n\x08\n\x01\x08\x12\x03\n\0f\n\t\n\x02\x08\x0b\x12\x03\n\0\
635 f\n\n\n\x02\x04\0\x12\x04\x0c\0W\x01\n\n\n\x03\x04\0\x01\x12\x03\x0c\x08\
636 \x0f\n\xbf\x01\n\x04\x04\0\x02\0\x12\x03\x10\x02\x12\x1a\xb1\x01\x20The\
637 \x20name\x20given\x20to\x20this\x20operator.\x20Used\x20for\x20naming\
638 \x20inputs,\n\x20logging,\x20visualization,\x20etc.\x20\x20Unique\x20wit\
639 hin\x20a\x20single\x20GraphDef.\n\x20Must\x20match\x20the\x20regexp\x20\
640 \"[A-Za-z0-9.][A-Za-z0-9_>./]*\".\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\
641 \x10\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x10\t\r\n\x0c\n\x05\x04\
642 \0\x02\0\x03\x12\x03\x10\x10\x11\n\x92\x01\n\x04\x04\0\x02\x01\x12\x03\
643 \x14\x02\x10\x1a\x84\x01\x20The\x20operation\x20name.\x20\x20There\x20ma\
644 y\x20be\x20custom\x20parameters\x20in\x20attrs.\n\x20Op\x20names\x20star\
645 ting\x20with\x20an\x20underscore\x20are\x20reserved\x20for\x20internal\
646 \x20use.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x14\x02\x08\n\x0c\n\x05\
647 \x04\0\x02\x01\x01\x12\x03\x14\t\x0b\n\x0c\n\x05\x04\0\x02\x01\x03\x12\
648 \x03\x14\x0e\x0f\n\xa7\x02\n\x04\x04\0\x02\x02\x12\x03\x1b\x02\x1c\x1a\
649 \x99\x02\x20Each\x20input\x20is\x20\"node:src_output\"\x20with\x20\"node\
650 \"\x20being\x20a\x20string\x20name\x20and\n\x20\"src_output\"\x20indicat\
651 ing\x20which\x20output\x20tensor\x20to\x20use\x20from\x20\"node\".\x20If\
652 \n\x20\"src_output\"\x20is\x200\x20the\x20\":0\"\x20suffix\x20can\x20be\
653 \x20omitted.\x20\x20Regular\x20inputs\n\x20may\x20optionally\x20be\x20fo\
654 llowed\x20by\x20control\x20inputs\x20that\x20have\x20the\x20format\n\x20\
655 \"^node\".\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03\x1b\x02\n\n\x0c\n\x05\
656 \x04\0\x02\x02\x05\x12\x03\x1b\x0b\x11\n\x0c\n\x05\x04\0\x02\x02\x01\x12\
657 \x03\x1b\x12\x17\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x1b\x1a\x1b\n\xa1\
658 \x06\n\x04\x04\0\x02\x03\x12\x031\x02\x14\x1a\x93\x06\x20A\x20(possibly\
659 \x20partial)\x20specification\x20for\x20the\x20device\x20on\x20which\x20\
660 this\n\x20node\x20should\x20be\x20placed.\n\x20The\x20expected\x20syntax\
661 \x20for\x20this\x20string\x20is\x20as\x20follows:\n\n\x20DEVICE_SPEC\x20\
662 ::=\x20PARTIAL_SPEC\n\n\x20PARTIAL_SPEC\x20::=\x20(\"/\"\x20CONSTRAINT)\
663 \x20*\n\x20CONSTRAINT\x20::=\x20(\"job:\"\x20JOB_NAME)\n\x20\x20\x20\x20\
664 \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20(\"replica:\"\x20[1-9][0-9]\
665 *)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20(\"task\
666 :\"\x20[1-9][0-9]*)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
667 \x20\x20|\x20(\"device:\"\x20[A-Za-z]*\x20\":\"\x20([1-9][0-9]*\x20|\x20\
668 \"*\")\x20)\n\n\x20Valid\x20values\x20for\x20this\x20string\x20include:\
669 \n\x20*\x20\"/job:worker/replica:0/task:1/device:GPU:3\"\x20\x20(full\
670 \x20specification)\n\x20*\x20\"/job:worker/device:GPU:3\"\x20\x20\x20\
671 \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(partial\
672 \x20specification)\n\x20*\x20\"\"\x20\x20\x20\x20\x20\x20\x20\x20\x20\
673 \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
674 \x20\x20\x20\x20\x20\x20\x20\x20\x20(no\x20specification)\n\n\x20If\x20t\
675 he\x20constraints\x20do\x20not\x20resolve\x20to\x20a\x20single\x20device\
676 \x20(or\x20if\x20this\n\x20field\x20is\x20empty\x20or\x20not\x20present)\
677 ,\x20the\x20runtime\x20will\x20attempt\x20to\n\x20choose\x20a\x20device\
678 \x20automatically.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x031\x02\x08\n\
679 \x0c\n\x05\x04\0\x02\x03\x01\x12\x031\t\x0f\n\x0c\n\x05\x04\0\x02\x03\
680 \x03\x12\x031\x12\x13\n\x94\x05\n\x04\x04\0\x02\x04\x12\x03?\x02\"\x1a\
681 \x86\x05\x20Operation-specific\x20graph-construction-time\x20configurati\
682 on.\n\x20Note\x20that\x20this\x20should\x20include\x20all\x20attrs\x20de\
683 fined\x20in\x20the\n\x20corresponding\x20OpDef,\x20including\x20those\
684 \x20with\x20a\x20value\x20matching\n\x20the\x20default\x20--\x20this\x20\
685 allows\x20the\x20default\x20to\x20change\x20and\x20makes\n\x20NodeDefs\
686 \x20easier\x20to\x20interpret\x20on\x20their\x20own.\x20\x20However,\x20\
687 if\n\x20an\x20attr\x20with\x20a\x20default\x20is\x20not\x20specified\x20\
688 in\x20this\x20list,\x20the\n\x20default\x20will\x20be\x20used.\n\x20The\
689 \x20\"names\"\x20(keys)\x20must\x20match\x20the\x20regexp\x20\"[a-z][a-z\
690 0-9_]+\"\x20(and\n\x20one\x20of\x20the\x20names\x20from\x20the\x20corres\
691 ponding\x20OpDef's\x20attr\x20field).\n\x20The\x20values\x20must\x20have\
692 \x20a\x20type\x20matching\x20the\x20corresponding\x20OpDef\n\x20attr's\
693 \x20type\x20field.\n\x20TODO(josh11b):\x20Add\x20some\x20examples\x20her\
694 e\x20showing\x20best\x20practices.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\
695 \x03?\x02\x18\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03?\x19\x1d\n\x0c\n\x05\
696 \x04\0\x02\x04\x03\x12\x03?\x20!\n\x0c\n\x04\x04\0\x03\x01\x12\x04A\x02S\
697 \x03\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x03A\n\x1f\n\xa3\x03\n\x06\x04\0\
698 \x03\x01\x02\0\x12\x03I\x04,\x1a\x93\x03\x20Opaque\x20string\x20inserted\
699 \x20into\x20error\x20messages\x20created\x20by\x20the\x20runtime.\n\n\
700 \x20This\x20is\x20intended\x20to\x20store\x20the\x20list\x20of\x20names\
701 \x20of\x20the\x20nodes\x20from\x20the\n\x20original\x20graph\x20that\x20\
702 this\x20node\x20was\x20derived.\x20For\x20example\x20if\x20this\x20node,\
703 \x20say\n\x20C,\x20was\x20result\x20of\x20a\x20fusion\x20of\x202\x20node\
704 s\x20A\x20and\x20B,\x20then\x20'original_node'\x20would\n\x20be\x20{A,\
705 \x20B}.\x20This\x20information\x20can\x20be\x20used\x20to\x20map\x20erro\
706 rs\x20originating\x20at\x20the\n\x20current\x20node\x20to\x20some\x20top\
707 \x20level\x20source\x20code.\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x04\x12\
708 \x03I\x04\x0c\n\x0e\n\x07\x04\0\x03\x01\x02\0\x05\x12\x03I\r\x13\n\x0e\n\
709 \x07\x04\0\x03\x01\x02\0\x01\x12\x03I\x14'\n\x0e\n\x07\x04\0\x03\x01\x02\
710 \0\x03\x12\x03I*+\n\xec\x03\n\x06\x04\0\x03\x01\x02\x01\x12\x03R\x04,\
711 \x1a\xdc\x03\x20This\x20is\x20intended\x20to\x20store\x20the\x20list\x20\
712 of\x20names\x20of\x20the\x20functions\x20from\x20the\n\x20original\x20gr\
713 aph\x20that\x20this\x20node\x20was\x20derived.\x20For\x20example\x20if\
714 \x20this\x20node,\x20say\n\x20C,\x20was\x20result\x20of\x20a\x20fusion\
715 \x20of\x20node\x20A\x20in\x20function\x20FA\x20and\x20node\x20B\x20in\
716 \x20function\n\x20FB,\x20then\x20`original_funcs`\x20would\x20be\x20{FA,\
717 \x20FB}.\x20If\x20the\x20node\x20is\x20in\x20the\x20top\n\x20level\x20gr\
718 aph,\x20the\x20`original_func`\x20is\x20empty.\x20This\x20information,\
719 \x20with\x20the\n\x20`original_node_names`\x20can\x20be\x20used\x20to\
720 \x20map\x20errors\x20originating\x20at\x20the\n\x20current\x20ndoe\x20to\
721 \x20some\x20top\x20level\x20source\x20code.\n\n\x0e\n\x07\x04\0\x03\x01\
722 \x02\x01\x04\x12\x03R\x04\x0c\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x05\x12\
723 \x03R\r\x13\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x03R\x14'\n\x0e\n\
724 \x07\x04\0\x03\x01\x02\x01\x03\x12\x03R*+\nF\n\x04\x04\0\x02\x05\x12\x03\
725 V\x024\x1a9\x20This\x20stores\x20debug\x20information\x20associated\x20w\
726 ith\x20the\x20node.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03V\x02\x17\n\
727 \x0c\n\x05\x04\0\x02\x05\x01\x12\x03V\x18/\n\x0c\n\x05\x04\0\x02\x05\x03\
728 \x12\x03V23b\x06proto3\
729";
730
731static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT;
732
733fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
734 ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
735}
736
737pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
738 unsafe {
739 file_descriptor_proto_lazy.get(|| {
740 parse_descriptor_proto()
741 })
742 }
743}