tensorflow_serving_client/
tensor.rs

1// This file is generated by rust-protobuf 2.14.0. Do not edit
2// @generated
3
4// https://github.com/rust-lang/rust-clippy/issues/702
5#![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)]
20//! Generated file from `tensorflow/core/framework/tensor.proto`
21
22use protobuf::Message as Message_imported_for_functions;
23use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
24
25/// Generated files are compatible only with the same version
26/// of protobuf runtime.
27// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0;
28
29#[derive(PartialEq,Clone,Default)]
30pub struct TensorProto {
31    // message fields
32    pub dtype: super::types::DataType,
33    pub tensor_shape: ::protobuf::SingularPtrField<super::tensor_shape::TensorShapeProto>,
34    pub version_number: i32,
35    pub tensor_content: ::std::vec::Vec<u8>,
36    pub half_val: ::std::vec::Vec<i32>,
37    pub float_val: ::std::vec::Vec<f32>,
38    pub double_val: ::std::vec::Vec<f64>,
39    pub int_val: ::std::vec::Vec<i32>,
40    pub string_val: ::protobuf::RepeatedField<::std::vec::Vec<u8>>,
41    pub scomplex_val: ::std::vec::Vec<f32>,
42    pub int64_val: ::std::vec::Vec<i64>,
43    pub bool_val: ::std::vec::Vec<bool>,
44    pub dcomplex_val: ::std::vec::Vec<f64>,
45    pub resource_handle_val: ::protobuf::RepeatedField<super::resource_handle::ResourceHandleProto>,
46    pub variant_val: ::protobuf::RepeatedField<VariantTensorDataProto>,
47    pub uint32_val: ::std::vec::Vec<u32>,
48    pub uint64_val: ::std::vec::Vec<u64>,
49    // special fields
50    pub unknown_fields: ::protobuf::UnknownFields,
51    pub cached_size: ::protobuf::CachedSize,
52}
53
54impl<'a> ::std::default::Default for &'a TensorProto {
55    fn default() -> &'a TensorProto {
56        <TensorProto as ::protobuf::Message>::default_instance()
57    }
58}
59
60impl TensorProto {
61    pub fn new() -> TensorProto {
62        ::std::default::Default::default()
63    }
64
65    // .tensorflow.DataType dtype = 1;
66
67
68    pub fn get_dtype(&self) -> super::types::DataType {
69        self.dtype
70    }
71    pub fn clear_dtype(&mut self) {
72        self.dtype = super::types::DataType::DT_INVALID;
73    }
74
75    // Param is passed by value, moved
76    pub fn set_dtype(&mut self, v: super::types::DataType) {
77        self.dtype = v;
78    }
79
80    // .tensorflow.TensorShapeProto tensor_shape = 2;
81
82
83    pub fn get_tensor_shape(&self) -> &super::tensor_shape::TensorShapeProto {
84        self.tensor_shape.as_ref().unwrap_or_else(|| super::tensor_shape::TensorShapeProto::default_instance())
85    }
86    pub fn clear_tensor_shape(&mut self) {
87        self.tensor_shape.clear();
88    }
89
90    pub fn has_tensor_shape(&self) -> bool {
91        self.tensor_shape.is_some()
92    }
93
94    // Param is passed by value, moved
95    pub fn set_tensor_shape(&mut self, v: super::tensor_shape::TensorShapeProto) {
96        self.tensor_shape = ::protobuf::SingularPtrField::some(v);
97    }
98
99    // Mutable pointer to the field.
100    // If field is not initialized, it is initialized with default value first.
101    pub fn mut_tensor_shape(&mut self) -> &mut super::tensor_shape::TensorShapeProto {
102        if self.tensor_shape.is_none() {
103            self.tensor_shape.set_default();
104        }
105        self.tensor_shape.as_mut().unwrap()
106    }
107
108    // Take field
109    pub fn take_tensor_shape(&mut self) -> super::tensor_shape::TensorShapeProto {
110        self.tensor_shape.take().unwrap_or_else(|| super::tensor_shape::TensorShapeProto::new())
111    }
112
113    // int32 version_number = 3;
114
115
116    pub fn get_version_number(&self) -> i32 {
117        self.version_number
118    }
119    pub fn clear_version_number(&mut self) {
120        self.version_number = 0;
121    }
122
123    // Param is passed by value, moved
124    pub fn set_version_number(&mut self, v: i32) {
125        self.version_number = v;
126    }
127
128    // bytes tensor_content = 4;
129
130
131    pub fn get_tensor_content(&self) -> &[u8] {
132        &self.tensor_content
133    }
134    pub fn clear_tensor_content(&mut self) {
135        self.tensor_content.clear();
136    }
137
138    // Param is passed by value, moved
139    pub fn set_tensor_content(&mut self, v: ::std::vec::Vec<u8>) {
140        self.tensor_content = v;
141    }
142
143    // Mutable pointer to the field.
144    // If field is not initialized, it is initialized with default value first.
145    pub fn mut_tensor_content(&mut self) -> &mut ::std::vec::Vec<u8> {
146        &mut self.tensor_content
147    }
148
149    // Take field
150    pub fn take_tensor_content(&mut self) -> ::std::vec::Vec<u8> {
151        ::std::mem::replace(&mut self.tensor_content, ::std::vec::Vec::new())
152    }
153
154    // repeated int32 half_val = 13;
155
156
157    pub fn get_half_val(&self) -> &[i32] {
158        &self.half_val
159    }
160    pub fn clear_half_val(&mut self) {
161        self.half_val.clear();
162    }
163
164    // Param is passed by value, moved
165    pub fn set_half_val(&mut self, v: ::std::vec::Vec<i32>) {
166        self.half_val = v;
167    }
168
169    // Mutable pointer to the field.
170    pub fn mut_half_val(&mut self) -> &mut ::std::vec::Vec<i32> {
171        &mut self.half_val
172    }
173
174    // Take field
175    pub fn take_half_val(&mut self) -> ::std::vec::Vec<i32> {
176        ::std::mem::replace(&mut self.half_val, ::std::vec::Vec::new())
177    }
178
179    // repeated float float_val = 5;
180
181
182    pub fn get_float_val(&self) -> &[f32] {
183        &self.float_val
184    }
185    pub fn clear_float_val(&mut self) {
186        self.float_val.clear();
187    }
188
189    // Param is passed by value, moved
190    pub fn set_float_val(&mut self, v: ::std::vec::Vec<f32>) {
191        self.float_val = v;
192    }
193
194    // Mutable pointer to the field.
195    pub fn mut_float_val(&mut self) -> &mut ::std::vec::Vec<f32> {
196        &mut self.float_val
197    }
198
199    // Take field
200    pub fn take_float_val(&mut self) -> ::std::vec::Vec<f32> {
201        ::std::mem::replace(&mut self.float_val, ::std::vec::Vec::new())
202    }
203
204    // repeated double double_val = 6;
205
206
207    pub fn get_double_val(&self) -> &[f64] {
208        &self.double_val
209    }
210    pub fn clear_double_val(&mut self) {
211        self.double_val.clear();
212    }
213
214    // Param is passed by value, moved
215    pub fn set_double_val(&mut self, v: ::std::vec::Vec<f64>) {
216        self.double_val = v;
217    }
218
219    // Mutable pointer to the field.
220    pub fn mut_double_val(&mut self) -> &mut ::std::vec::Vec<f64> {
221        &mut self.double_val
222    }
223
224    // Take field
225    pub fn take_double_val(&mut self) -> ::std::vec::Vec<f64> {
226        ::std::mem::replace(&mut self.double_val, ::std::vec::Vec::new())
227    }
228
229    // repeated int32 int_val = 7;
230
231
232    pub fn get_int_val(&self) -> &[i32] {
233        &self.int_val
234    }
235    pub fn clear_int_val(&mut self) {
236        self.int_val.clear();
237    }
238
239    // Param is passed by value, moved
240    pub fn set_int_val(&mut self, v: ::std::vec::Vec<i32>) {
241        self.int_val = v;
242    }
243
244    // Mutable pointer to the field.
245    pub fn mut_int_val(&mut self) -> &mut ::std::vec::Vec<i32> {
246        &mut self.int_val
247    }
248
249    // Take field
250    pub fn take_int_val(&mut self) -> ::std::vec::Vec<i32> {
251        ::std::mem::replace(&mut self.int_val, ::std::vec::Vec::new())
252    }
253
254    // repeated bytes string_val = 8;
255
256
257    pub fn get_string_val(&self) -> &[::std::vec::Vec<u8>] {
258        &self.string_val
259    }
260    pub fn clear_string_val(&mut self) {
261        self.string_val.clear();
262    }
263
264    // Param is passed by value, moved
265    pub fn set_string_val(&mut self, v: ::protobuf::RepeatedField<::std::vec::Vec<u8>>) {
266        self.string_val = v;
267    }
268
269    // Mutable pointer to the field.
270    pub fn mut_string_val(&mut self) -> &mut ::protobuf::RepeatedField<::std::vec::Vec<u8>> {
271        &mut self.string_val
272    }
273
274    // Take field
275    pub fn take_string_val(&mut self) -> ::protobuf::RepeatedField<::std::vec::Vec<u8>> {
276        ::std::mem::replace(&mut self.string_val, ::protobuf::RepeatedField::new())
277    }
278
279    // repeated float scomplex_val = 9;
280
281
282    pub fn get_scomplex_val(&self) -> &[f32] {
283        &self.scomplex_val
284    }
285    pub fn clear_scomplex_val(&mut self) {
286        self.scomplex_val.clear();
287    }
288
289    // Param is passed by value, moved
290    pub fn set_scomplex_val(&mut self, v: ::std::vec::Vec<f32>) {
291        self.scomplex_val = v;
292    }
293
294    // Mutable pointer to the field.
295    pub fn mut_scomplex_val(&mut self) -> &mut ::std::vec::Vec<f32> {
296        &mut self.scomplex_val
297    }
298
299    // Take field
300    pub fn take_scomplex_val(&mut self) -> ::std::vec::Vec<f32> {
301        ::std::mem::replace(&mut self.scomplex_val, ::std::vec::Vec::new())
302    }
303
304    // repeated int64 int64_val = 10;
305
306
307    pub fn get_int64_val(&self) -> &[i64] {
308        &self.int64_val
309    }
310    pub fn clear_int64_val(&mut self) {
311        self.int64_val.clear();
312    }
313
314    // Param is passed by value, moved
315    pub fn set_int64_val(&mut self, v: ::std::vec::Vec<i64>) {
316        self.int64_val = v;
317    }
318
319    // Mutable pointer to the field.
320    pub fn mut_int64_val(&mut self) -> &mut ::std::vec::Vec<i64> {
321        &mut self.int64_val
322    }
323
324    // Take field
325    pub fn take_int64_val(&mut self) -> ::std::vec::Vec<i64> {
326        ::std::mem::replace(&mut self.int64_val, ::std::vec::Vec::new())
327    }
328
329    // repeated bool bool_val = 11;
330
331
332    pub fn get_bool_val(&self) -> &[bool] {
333        &self.bool_val
334    }
335    pub fn clear_bool_val(&mut self) {
336        self.bool_val.clear();
337    }
338
339    // Param is passed by value, moved
340    pub fn set_bool_val(&mut self, v: ::std::vec::Vec<bool>) {
341        self.bool_val = v;
342    }
343
344    // Mutable pointer to the field.
345    pub fn mut_bool_val(&mut self) -> &mut ::std::vec::Vec<bool> {
346        &mut self.bool_val
347    }
348
349    // Take field
350    pub fn take_bool_val(&mut self) -> ::std::vec::Vec<bool> {
351        ::std::mem::replace(&mut self.bool_val, ::std::vec::Vec::new())
352    }
353
354    // repeated double dcomplex_val = 12;
355
356
357    pub fn get_dcomplex_val(&self) -> &[f64] {
358        &self.dcomplex_val
359    }
360    pub fn clear_dcomplex_val(&mut self) {
361        self.dcomplex_val.clear();
362    }
363
364    // Param is passed by value, moved
365    pub fn set_dcomplex_val(&mut self, v: ::std::vec::Vec<f64>) {
366        self.dcomplex_val = v;
367    }
368
369    // Mutable pointer to the field.
370    pub fn mut_dcomplex_val(&mut self) -> &mut ::std::vec::Vec<f64> {
371        &mut self.dcomplex_val
372    }
373
374    // Take field
375    pub fn take_dcomplex_val(&mut self) -> ::std::vec::Vec<f64> {
376        ::std::mem::replace(&mut self.dcomplex_val, ::std::vec::Vec::new())
377    }
378
379    // repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
380
381
382    pub fn get_resource_handle_val(&self) -> &[super::resource_handle::ResourceHandleProto] {
383        &self.resource_handle_val
384    }
385    pub fn clear_resource_handle_val(&mut self) {
386        self.resource_handle_val.clear();
387    }
388
389    // Param is passed by value, moved
390    pub fn set_resource_handle_val(&mut self, v: ::protobuf::RepeatedField<super::resource_handle::ResourceHandleProto>) {
391        self.resource_handle_val = v;
392    }
393
394    // Mutable pointer to the field.
395    pub fn mut_resource_handle_val(&mut self) -> &mut ::protobuf::RepeatedField<super::resource_handle::ResourceHandleProto> {
396        &mut self.resource_handle_val
397    }
398
399    // Take field
400    pub fn take_resource_handle_val(&mut self) -> ::protobuf::RepeatedField<super::resource_handle::ResourceHandleProto> {
401        ::std::mem::replace(&mut self.resource_handle_val, ::protobuf::RepeatedField::new())
402    }
403
404    // repeated .tensorflow.VariantTensorDataProto variant_val = 15;
405
406
407    pub fn get_variant_val(&self) -> &[VariantTensorDataProto] {
408        &self.variant_val
409    }
410    pub fn clear_variant_val(&mut self) {
411        self.variant_val.clear();
412    }
413
414    // Param is passed by value, moved
415    pub fn set_variant_val(&mut self, v: ::protobuf::RepeatedField<VariantTensorDataProto>) {
416        self.variant_val = v;
417    }
418
419    // Mutable pointer to the field.
420    pub fn mut_variant_val(&mut self) -> &mut ::protobuf::RepeatedField<VariantTensorDataProto> {
421        &mut self.variant_val
422    }
423
424    // Take field
425    pub fn take_variant_val(&mut self) -> ::protobuf::RepeatedField<VariantTensorDataProto> {
426        ::std::mem::replace(&mut self.variant_val, ::protobuf::RepeatedField::new())
427    }
428
429    // repeated uint32 uint32_val = 16;
430
431
432    pub fn get_uint32_val(&self) -> &[u32] {
433        &self.uint32_val
434    }
435    pub fn clear_uint32_val(&mut self) {
436        self.uint32_val.clear();
437    }
438
439    // Param is passed by value, moved
440    pub fn set_uint32_val(&mut self, v: ::std::vec::Vec<u32>) {
441        self.uint32_val = v;
442    }
443
444    // Mutable pointer to the field.
445    pub fn mut_uint32_val(&mut self) -> &mut ::std::vec::Vec<u32> {
446        &mut self.uint32_val
447    }
448
449    // Take field
450    pub fn take_uint32_val(&mut self) -> ::std::vec::Vec<u32> {
451        ::std::mem::replace(&mut self.uint32_val, ::std::vec::Vec::new())
452    }
453
454    // repeated uint64 uint64_val = 17;
455
456
457    pub fn get_uint64_val(&self) -> &[u64] {
458        &self.uint64_val
459    }
460    pub fn clear_uint64_val(&mut self) {
461        self.uint64_val.clear();
462    }
463
464    // Param is passed by value, moved
465    pub fn set_uint64_val(&mut self, v: ::std::vec::Vec<u64>) {
466        self.uint64_val = v;
467    }
468
469    // Mutable pointer to the field.
470    pub fn mut_uint64_val(&mut self) -> &mut ::std::vec::Vec<u64> {
471        &mut self.uint64_val
472    }
473
474    // Take field
475    pub fn take_uint64_val(&mut self) -> ::std::vec::Vec<u64> {
476        ::std::mem::replace(&mut self.uint64_val, ::std::vec::Vec::new())
477    }
478}
479
480impl ::protobuf::Message for TensorProto {
481    fn is_initialized(&self) -> bool {
482        for v in &self.tensor_shape {
483            if !v.is_initialized() {
484                return false;
485            }
486        };
487        for v in &self.resource_handle_val {
488            if !v.is_initialized() {
489                return false;
490            }
491        };
492        for v in &self.variant_val {
493            if !v.is_initialized() {
494                return false;
495            }
496        };
497        true
498    }
499
500    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
501        while !is.eof()? {
502            let (field_number, wire_type) = is.read_tag_unpack()?;
503            match field_number {
504                1 => {
505                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.dtype, 1, &mut self.unknown_fields)?
506                },
507                2 => {
508                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.tensor_shape)?;
509                },
510                3 => {
511                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
512                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
513                    }
514                    let tmp = is.read_int32()?;
515                    self.version_number = tmp;
516                },
517                4 => {
518                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.tensor_content)?;
519                },
520                13 => {
521                    ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.half_val)?;
522                },
523                5 => {
524                    ::protobuf::rt::read_repeated_float_into(wire_type, is, &mut self.float_val)?;
525                },
526                6 => {
527                    ::protobuf::rt::read_repeated_double_into(wire_type, is, &mut self.double_val)?;
528                },
529                7 => {
530                    ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.int_val)?;
531                },
532                8 => {
533                    ::protobuf::rt::read_repeated_bytes_into(wire_type, is, &mut self.string_val)?;
534                },
535                9 => {
536                    ::protobuf::rt::read_repeated_float_into(wire_type, is, &mut self.scomplex_val)?;
537                },
538                10 => {
539                    ::protobuf::rt::read_repeated_int64_into(wire_type, is, &mut self.int64_val)?;
540                },
541                11 => {
542                    ::protobuf::rt::read_repeated_bool_into(wire_type, is, &mut self.bool_val)?;
543                },
544                12 => {
545                    ::protobuf::rt::read_repeated_double_into(wire_type, is, &mut self.dcomplex_val)?;
546                },
547                14 => {
548                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resource_handle_val)?;
549                },
550                15 => {
551                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.variant_val)?;
552                },
553                16 => {
554                    ::protobuf::rt::read_repeated_uint32_into(wire_type, is, &mut self.uint32_val)?;
555                },
556                17 => {
557                    ::protobuf::rt::read_repeated_uint64_into(wire_type, is, &mut self.uint64_val)?;
558                },
559                _ => {
560                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
561                },
562            };
563        }
564        ::std::result::Result::Ok(())
565    }
566
567    // Compute sizes of nested messages
568    #[allow(unused_variables)]
569    fn compute_size(&self) -> u32 {
570        let mut my_size = 0;
571        if self.dtype != super::types::DataType::DT_INVALID {
572            my_size += ::protobuf::rt::enum_size(1, self.dtype);
573        }
574        if let Some(ref v) = self.tensor_shape.as_ref() {
575            let len = v.compute_size();
576            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
577        }
578        if self.version_number != 0 {
579            my_size += ::protobuf::rt::value_size(3, self.version_number, ::protobuf::wire_format::WireTypeVarint);
580        }
581        if !self.tensor_content.is_empty() {
582            my_size += ::protobuf::rt::bytes_size(4, &self.tensor_content);
583        }
584        if !self.half_val.is_empty() {
585            my_size += ::protobuf::rt::vec_packed_varint_size(13, &self.half_val);
586        }
587        if !self.float_val.is_empty() {
588            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size((self.float_val.len() * 4) as u32) + (self.float_val.len() * 4) as u32;
589        }
590        if !self.double_val.is_empty() {
591            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size((self.double_val.len() * 8) as u32) + (self.double_val.len() * 8) as u32;
592        }
593        if !self.int_val.is_empty() {
594            my_size += ::protobuf::rt::vec_packed_varint_size(7, &self.int_val);
595        }
596        for value in &self.string_val {
597            my_size += ::protobuf::rt::bytes_size(8, &value);
598        };
599        if !self.scomplex_val.is_empty() {
600            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size((self.scomplex_val.len() * 4) as u32) + (self.scomplex_val.len() * 4) as u32;
601        }
602        if !self.int64_val.is_empty() {
603            my_size += ::protobuf::rt::vec_packed_varint_size(10, &self.int64_val);
604        }
605        if !self.bool_val.is_empty() {
606            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size((self.bool_val.len() * 1) as u32) + (self.bool_val.len() * 1) as u32;
607        }
608        if !self.dcomplex_val.is_empty() {
609            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size((self.dcomplex_val.len() * 8) as u32) + (self.dcomplex_val.len() * 8) as u32;
610        }
611        for value in &self.resource_handle_val {
612            let len = value.compute_size();
613            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
614        };
615        for value in &self.variant_val {
616            let len = value.compute_size();
617            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
618        };
619        if !self.uint32_val.is_empty() {
620            my_size += ::protobuf::rt::vec_packed_varint_size(16, &self.uint32_val);
621        }
622        if !self.uint64_val.is_empty() {
623            my_size += ::protobuf::rt::vec_packed_varint_size(17, &self.uint64_val);
624        }
625        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
626        self.cached_size.set(my_size);
627        my_size
628    }
629
630    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
631        if self.dtype != super::types::DataType::DT_INVALID {
632            os.write_enum(1, self.dtype.value())?;
633        }
634        if let Some(ref v) = self.tensor_shape.as_ref() {
635            os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
636            os.write_raw_varint32(v.get_cached_size())?;
637            v.write_to_with_cached_sizes(os)?;
638        }
639        if self.version_number != 0 {
640            os.write_int32(3, self.version_number)?;
641        }
642        if !self.tensor_content.is_empty() {
643            os.write_bytes(4, &self.tensor_content)?;
644        }
645        if !self.half_val.is_empty() {
646            os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited)?;
647            // TODO: Data size is computed again, it should be cached
648            os.write_raw_varint32(::protobuf::rt::vec_packed_varint_data_size(&self.half_val))?;
649            for v in &self.half_val {
650                os.write_int32_no_tag(*v)?;
651            };
652        }
653        if !self.float_val.is_empty() {
654            os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
655            // TODO: Data size is computed again, it should be cached
656            os.write_raw_varint32((self.float_val.len() * 4) as u32)?;
657            for v in &self.float_val {
658                os.write_float_no_tag(*v)?;
659            };
660        }
661        if !self.double_val.is_empty() {
662            os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
663            // TODO: Data size is computed again, it should be cached
664            os.write_raw_varint32((self.double_val.len() * 8) as u32)?;
665            for v in &self.double_val {
666                os.write_double_no_tag(*v)?;
667            };
668        }
669        if !self.int_val.is_empty() {
670            os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
671            // TODO: Data size is computed again, it should be cached
672            os.write_raw_varint32(::protobuf::rt::vec_packed_varint_data_size(&self.int_val))?;
673            for v in &self.int_val {
674                os.write_int32_no_tag(*v)?;
675            };
676        }
677        for v in &self.string_val {
678            os.write_bytes(8, &v)?;
679        };
680        if !self.scomplex_val.is_empty() {
681            os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?;
682            // TODO: Data size is computed again, it should be cached
683            os.write_raw_varint32((self.scomplex_val.len() * 4) as u32)?;
684            for v in &self.scomplex_val {
685                os.write_float_no_tag(*v)?;
686            };
687        }
688        if !self.int64_val.is_empty() {
689            os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
690            // TODO: Data size is computed again, it should be cached
691            os.write_raw_varint32(::protobuf::rt::vec_packed_varint_data_size(&self.int64_val))?;
692            for v in &self.int64_val {
693                os.write_int64_no_tag(*v)?;
694            };
695        }
696        if !self.bool_val.is_empty() {
697            os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?;
698            // TODO: Data size is computed again, it should be cached
699            os.write_raw_varint32((self.bool_val.len() * 1) as u32)?;
700            for v in &self.bool_val {
701                os.write_bool_no_tag(*v)?;
702            };
703        }
704        if !self.dcomplex_val.is_empty() {
705            os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?;
706            // TODO: Data size is computed again, it should be cached
707            os.write_raw_varint32((self.dcomplex_val.len() * 8) as u32)?;
708            for v in &self.dcomplex_val {
709                os.write_double_no_tag(*v)?;
710            };
711        }
712        for v in &self.resource_handle_val {
713            os.write_tag(14, ::protobuf::wire_format::WireTypeLengthDelimited)?;
714            os.write_raw_varint32(v.get_cached_size())?;
715            v.write_to_with_cached_sizes(os)?;
716        };
717        for v in &self.variant_val {
718            os.write_tag(15, ::protobuf::wire_format::WireTypeLengthDelimited)?;
719            os.write_raw_varint32(v.get_cached_size())?;
720            v.write_to_with_cached_sizes(os)?;
721        };
722        if !self.uint32_val.is_empty() {
723            os.write_tag(16, ::protobuf::wire_format::WireTypeLengthDelimited)?;
724            // TODO: Data size is computed again, it should be cached
725            os.write_raw_varint32(::protobuf::rt::vec_packed_varint_data_size(&self.uint32_val))?;
726            for v in &self.uint32_val {
727                os.write_uint32_no_tag(*v)?;
728            };
729        }
730        if !self.uint64_val.is_empty() {
731            os.write_tag(17, ::protobuf::wire_format::WireTypeLengthDelimited)?;
732            // TODO: Data size is computed again, it should be cached
733            os.write_raw_varint32(::protobuf::rt::vec_packed_varint_data_size(&self.uint64_val))?;
734            for v in &self.uint64_val {
735                os.write_uint64_no_tag(*v)?;
736            };
737        }
738        os.write_unknown_fields(self.get_unknown_fields())?;
739        ::std::result::Result::Ok(())
740    }
741
742    fn get_cached_size(&self) -> u32 {
743        self.cached_size.get()
744    }
745
746    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
747        &self.unknown_fields
748    }
749
750    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
751        &mut self.unknown_fields
752    }
753
754    fn as_any(&self) -> &dyn (::std::any::Any) {
755        self as &dyn (::std::any::Any)
756    }
757    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
758        self as &mut dyn (::std::any::Any)
759    }
760    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
761        self
762    }
763
764    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
765        Self::descriptor_static()
766    }
767
768    fn new() -> TensorProto {
769        TensorProto::new()
770    }
771
772    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
773        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
774        unsafe {
775            descriptor.get(|| {
776                let mut fields = ::std::vec::Vec::new();
777                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<super::types::DataType>>(
778                    "dtype",
779                    |m: &TensorProto| { &m.dtype },
780                    |m: &mut TensorProto| { &mut m.dtype },
781                ));
782                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::tensor_shape::TensorShapeProto>>(
783                    "tensor_shape",
784                    |m: &TensorProto| { &m.tensor_shape },
785                    |m: &mut TensorProto| { &mut m.tensor_shape },
786                ));
787                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
788                    "version_number",
789                    |m: &TensorProto| { &m.version_number },
790                    |m: &mut TensorProto| { &mut m.version_number },
791                ));
792                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
793                    "tensor_content",
794                    |m: &TensorProto| { &m.tensor_content },
795                    |m: &mut TensorProto| { &mut m.tensor_content },
796                ));
797                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
798                    "half_val",
799                    |m: &TensorProto| { &m.half_val },
800                    |m: &mut TensorProto| { &mut m.half_val },
801                ));
802                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
803                    "float_val",
804                    |m: &TensorProto| { &m.float_val },
805                    |m: &mut TensorProto| { &mut m.float_val },
806                ));
807                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeDouble>(
808                    "double_val",
809                    |m: &TensorProto| { &m.double_val },
810                    |m: &mut TensorProto| { &mut m.double_val },
811                ));
812                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
813                    "int_val",
814                    |m: &TensorProto| { &m.int_val },
815                    |m: &mut TensorProto| { &mut m.int_val },
816                ));
817                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
818                    "string_val",
819                    |m: &TensorProto| { &m.string_val },
820                    |m: &mut TensorProto| { &mut m.string_val },
821                ));
822                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
823                    "scomplex_val",
824                    |m: &TensorProto| { &m.scomplex_val },
825                    |m: &mut TensorProto| { &mut m.scomplex_val },
826                ));
827                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
828                    "int64_val",
829                    |m: &TensorProto| { &m.int64_val },
830                    |m: &mut TensorProto| { &mut m.int64_val },
831                ));
832                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
833                    "bool_val",
834                    |m: &TensorProto| { &m.bool_val },
835                    |m: &mut TensorProto| { &mut m.bool_val },
836                ));
837                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeDouble>(
838                    "dcomplex_val",
839                    |m: &TensorProto| { &m.dcomplex_val },
840                    |m: &mut TensorProto| { &mut m.dcomplex_val },
841                ));
842                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::resource_handle::ResourceHandleProto>>(
843                    "resource_handle_val",
844                    |m: &TensorProto| { &m.resource_handle_val },
845                    |m: &mut TensorProto| { &mut m.resource_handle_val },
846                ));
847                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<VariantTensorDataProto>>(
848                    "variant_val",
849                    |m: &TensorProto| { &m.variant_val },
850                    |m: &mut TensorProto| { &mut m.variant_val },
851                ));
852                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
853                    "uint32_val",
854                    |m: &TensorProto| { &m.uint32_val },
855                    |m: &mut TensorProto| { &mut m.uint32_val },
856                ));
857                fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
858                    "uint64_val",
859                    |m: &TensorProto| { &m.uint64_val },
860                    |m: &mut TensorProto| { &mut m.uint64_val },
861                ));
862                ::protobuf::reflect::MessageDescriptor::new_pb_name::<TensorProto>(
863                    "TensorProto",
864                    fields,
865                    file_descriptor_proto()
866                )
867            })
868        }
869    }
870
871    fn default_instance() -> &'static TensorProto {
872        static mut instance: ::protobuf::lazy::Lazy<TensorProto> = ::protobuf::lazy::Lazy::INIT;
873        unsafe {
874            instance.get(TensorProto::new)
875        }
876    }
877}
878
879impl ::protobuf::Clear for TensorProto {
880    fn clear(&mut self) {
881        self.dtype = super::types::DataType::DT_INVALID;
882        self.tensor_shape.clear();
883        self.version_number = 0;
884        self.tensor_content.clear();
885        self.half_val.clear();
886        self.float_val.clear();
887        self.double_val.clear();
888        self.int_val.clear();
889        self.string_val.clear();
890        self.scomplex_val.clear();
891        self.int64_val.clear();
892        self.bool_val.clear();
893        self.dcomplex_val.clear();
894        self.resource_handle_val.clear();
895        self.variant_val.clear();
896        self.uint32_val.clear();
897        self.uint64_val.clear();
898        self.unknown_fields.clear();
899    }
900}
901
902impl ::std::fmt::Debug for TensorProto {
903    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
904        ::protobuf::text_format::fmt(self, f)
905    }
906}
907
908impl ::protobuf::reflect::ProtobufValue for TensorProto {
909    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
910        ::protobuf::reflect::ReflectValueRef::Message(self)
911    }
912}
913
914#[derive(PartialEq,Clone,Default)]
915pub struct VariantTensorDataProto {
916    // message fields
917    pub type_name: ::std::string::String,
918    pub metadata: ::std::vec::Vec<u8>,
919    pub tensors: ::protobuf::RepeatedField<TensorProto>,
920    // special fields
921    pub unknown_fields: ::protobuf::UnknownFields,
922    pub cached_size: ::protobuf::CachedSize,
923}
924
925impl<'a> ::std::default::Default for &'a VariantTensorDataProto {
926    fn default() -> &'a VariantTensorDataProto {
927        <VariantTensorDataProto as ::protobuf::Message>::default_instance()
928    }
929}
930
931impl VariantTensorDataProto {
932    pub fn new() -> VariantTensorDataProto {
933        ::std::default::Default::default()
934    }
935
936    // string type_name = 1;
937
938
939    pub fn get_type_name(&self) -> &str {
940        &self.type_name
941    }
942    pub fn clear_type_name(&mut self) {
943        self.type_name.clear();
944    }
945
946    // Param is passed by value, moved
947    pub fn set_type_name(&mut self, v: ::std::string::String) {
948        self.type_name = v;
949    }
950
951    // Mutable pointer to the field.
952    // If field is not initialized, it is initialized with default value first.
953    pub fn mut_type_name(&mut self) -> &mut ::std::string::String {
954        &mut self.type_name
955    }
956
957    // Take field
958    pub fn take_type_name(&mut self) -> ::std::string::String {
959        ::std::mem::replace(&mut self.type_name, ::std::string::String::new())
960    }
961
962    // bytes metadata = 2;
963
964
965    pub fn get_metadata(&self) -> &[u8] {
966        &self.metadata
967    }
968    pub fn clear_metadata(&mut self) {
969        self.metadata.clear();
970    }
971
972    // Param is passed by value, moved
973    pub fn set_metadata(&mut self, v: ::std::vec::Vec<u8>) {
974        self.metadata = v;
975    }
976
977    // Mutable pointer to the field.
978    // If field is not initialized, it is initialized with default value first.
979    pub fn mut_metadata(&mut self) -> &mut ::std::vec::Vec<u8> {
980        &mut self.metadata
981    }
982
983    // Take field
984    pub fn take_metadata(&mut self) -> ::std::vec::Vec<u8> {
985        ::std::mem::replace(&mut self.metadata, ::std::vec::Vec::new())
986    }
987
988    // repeated .tensorflow.TensorProto tensors = 3;
989
990
991    pub fn get_tensors(&self) -> &[TensorProto] {
992        &self.tensors
993    }
994    pub fn clear_tensors(&mut self) {
995        self.tensors.clear();
996    }
997
998    // Param is passed by value, moved
999    pub fn set_tensors(&mut self, v: ::protobuf::RepeatedField<TensorProto>) {
1000        self.tensors = v;
1001    }
1002
1003    // Mutable pointer to the field.
1004    pub fn mut_tensors(&mut self) -> &mut ::protobuf::RepeatedField<TensorProto> {
1005        &mut self.tensors
1006    }
1007
1008    // Take field
1009    pub fn take_tensors(&mut self) -> ::protobuf::RepeatedField<TensorProto> {
1010        ::std::mem::replace(&mut self.tensors, ::protobuf::RepeatedField::new())
1011    }
1012}
1013
1014impl ::protobuf::Message for VariantTensorDataProto {
1015    fn is_initialized(&self) -> bool {
1016        for v in &self.tensors {
1017            if !v.is_initialized() {
1018                return false;
1019            }
1020        };
1021        true
1022    }
1023
1024    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1025        while !is.eof()? {
1026            let (field_number, wire_type) = is.read_tag_unpack()?;
1027            match field_number {
1028                1 => {
1029                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.type_name)?;
1030                },
1031                2 => {
1032                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.metadata)?;
1033                },
1034                3 => {
1035                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.tensors)?;
1036                },
1037                _ => {
1038                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1039                },
1040            };
1041        }
1042        ::std::result::Result::Ok(())
1043    }
1044
1045    // Compute sizes of nested messages
1046    #[allow(unused_variables)]
1047    fn compute_size(&self) -> u32 {
1048        let mut my_size = 0;
1049        if !self.type_name.is_empty() {
1050            my_size += ::protobuf::rt::string_size(1, &self.type_name);
1051        }
1052        if !self.metadata.is_empty() {
1053            my_size += ::protobuf::rt::bytes_size(2, &self.metadata);
1054        }
1055        for value in &self.tensors {
1056            let len = value.compute_size();
1057            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1058        };
1059        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1060        self.cached_size.set(my_size);
1061        my_size
1062    }
1063
1064    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1065        if !self.type_name.is_empty() {
1066            os.write_string(1, &self.type_name)?;
1067        }
1068        if !self.metadata.is_empty() {
1069            os.write_bytes(2, &self.metadata)?;
1070        }
1071        for v in &self.tensors {
1072            os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1073            os.write_raw_varint32(v.get_cached_size())?;
1074            v.write_to_with_cached_sizes(os)?;
1075        };
1076        os.write_unknown_fields(self.get_unknown_fields())?;
1077        ::std::result::Result::Ok(())
1078    }
1079
1080    fn get_cached_size(&self) -> u32 {
1081        self.cached_size.get()
1082    }
1083
1084    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1085        &self.unknown_fields
1086    }
1087
1088    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1089        &mut self.unknown_fields
1090    }
1091
1092    fn as_any(&self) -> &dyn (::std::any::Any) {
1093        self as &dyn (::std::any::Any)
1094    }
1095    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1096        self as &mut dyn (::std::any::Any)
1097    }
1098    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1099        self
1100    }
1101
1102    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1103        Self::descriptor_static()
1104    }
1105
1106    fn new() -> VariantTensorDataProto {
1107        VariantTensorDataProto::new()
1108    }
1109
1110    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1111        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
1112        unsafe {
1113            descriptor.get(|| {
1114                let mut fields = ::std::vec::Vec::new();
1115                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1116                    "type_name",
1117                    |m: &VariantTensorDataProto| { &m.type_name },
1118                    |m: &mut VariantTensorDataProto| { &mut m.type_name },
1119                ));
1120                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1121                    "metadata",
1122                    |m: &VariantTensorDataProto| { &m.metadata },
1123                    |m: &mut VariantTensorDataProto| { &mut m.metadata },
1124                ));
1125                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<TensorProto>>(
1126                    "tensors",
1127                    |m: &VariantTensorDataProto| { &m.tensors },
1128                    |m: &mut VariantTensorDataProto| { &mut m.tensors },
1129                ));
1130                ::protobuf::reflect::MessageDescriptor::new_pb_name::<VariantTensorDataProto>(
1131                    "VariantTensorDataProto",
1132                    fields,
1133                    file_descriptor_proto()
1134                )
1135            })
1136        }
1137    }
1138
1139    fn default_instance() -> &'static VariantTensorDataProto {
1140        static mut instance: ::protobuf::lazy::Lazy<VariantTensorDataProto> = ::protobuf::lazy::Lazy::INIT;
1141        unsafe {
1142            instance.get(VariantTensorDataProto::new)
1143        }
1144    }
1145}
1146
1147impl ::protobuf::Clear for VariantTensorDataProto {
1148    fn clear(&mut self) {
1149        self.type_name.clear();
1150        self.metadata.clear();
1151        self.tensors.clear();
1152        self.unknown_fields.clear();
1153    }
1154}
1155
1156impl ::std::fmt::Debug for VariantTensorDataProto {
1157    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1158        ::protobuf::text_format::fmt(self, f)
1159    }
1160}
1161
1162impl ::protobuf::reflect::ProtobufValue for VariantTensorDataProto {
1163    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1164        ::protobuf::reflect::ReflectValueRef::Message(self)
1165    }
1166}
1167
1168static file_descriptor_proto_data: &'static [u8] = b"\
1169    \n&tensorflow/core/framework/tensor.proto\x12\ntensorflow\x1a/tensorflow\
1170    /core/framework/resource_handle.proto\x1a,tensorflow/core/framework/tens\
1171    or_shape.proto\x1a%tensorflow/core/framework/types.proto\"\xd1\x05\n\x0b\
1172    TensorProto\x12*\n\x05dtype\x18\x01\x20\x01(\x0e2\x14.tensorflow.DataTyp\
1173    eR\x05dtype\x12?\n\x0ctensor_shape\x18\x02\x20\x01(\x0b2\x1c.tensorflow.\
1174    TensorShapeProtoR\x0btensorShape\x12%\n\x0eversion_number\x18\x03\x20\
1175    \x01(\x05R\rversionNumber\x12%\n\x0etensor_content\x18\x04\x20\x01(\x0cR\
1176    \rtensorContent\x12\x1d\n\x08half_val\x18\r\x20\x03(\x05R\x07halfValB\
1177    \x02\x10\x01\x12\x1f\n\tfloat_val\x18\x05\x20\x03(\x02R\x08floatValB\x02\
1178    \x10\x01\x12!\n\ndouble_val\x18\x06\x20\x03(\x01R\tdoubleValB\x02\x10\
1179    \x01\x12\x1b\n\x07int_val\x18\x07\x20\x03(\x05R\x06intValB\x02\x10\x01\
1180    \x12\x1d\n\nstring_val\x18\x08\x20\x03(\x0cR\tstringVal\x12%\n\x0cscompl\
1181    ex_val\x18\t\x20\x03(\x02R\x0bscomplexValB\x02\x10\x01\x12\x1f\n\tint64_\
1182    val\x18\n\x20\x03(\x03R\x08int64ValB\x02\x10\x01\x12\x1d\n\x08bool_val\
1183    \x18\x0b\x20\x03(\x08R\x07boolValB\x02\x10\x01\x12%\n\x0cdcomplex_val\
1184    \x18\x0c\x20\x03(\x01R\x0bdcomplexValB\x02\x10\x01\x12O\n\x13resource_ha\
1185    ndle_val\x18\x0e\x20\x03(\x0b2\x1f.tensorflow.ResourceHandleProtoR\x11re\
1186    sourceHandleVal\x12C\n\x0bvariant_val\x18\x0f\x20\x03(\x0b2\".tensorflow\
1187    .VariantTensorDataProtoR\nvariantVal\x12!\n\nuint32_val\x18\x10\x20\x03(\
1188    \rR\tuint32ValB\x02\x10\x01\x12!\n\nuint64_val\x18\x11\x20\x03(\x04R\tui\
1189    nt64ValB\x02\x10\x01\"\x84\x01\n\x16VariantTensorDataProto\x12\x1b\n\tty\
1190    pe_name\x18\x01\x20\x01(\tR\x08typeName\x12\x1a\n\x08metadata\x18\x02\
1191    \x20\x01(\x0cR\x08metadata\x121\n\x07tensors\x18\x03\x20\x03(\x0b2\x17.t\
1192    ensorflow.TensorProtoR\x07tensorsB|\n\x18org.tensorflow.frameworkB\x0cTe\
1193    nsorProtosP\x01ZMgithub.com/tensorflow/tensorflow/tensorflow/go/core/fra\
1194    mework/tensor_go_proto\xf8\x01\x01J\xf4\x1c\n\x06\x12\x04\0\0_\x01\n\x08\
1195    \n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\x02\0\x13\n\t\n\x02\
1196    \x03\0\x12\x03\x04\09\n\t\n\x02\x03\x01\x12\x03\x05\06\n\t\n\x02\x03\x02\
1197    \x12\x03\x06\0/\n\x08\n\x01\x08\x12\x03\x08\0\x1f\n\t\n\x02\x08\x1f\x12\
1198    \x03\x08\0\x1f\n\x08\n\x01\x08\x12\x03\t\0-\n\t\n\x02\x08\x08\x12\x03\t\
1199    \0-\n\x08\n\x01\x08\x12\x03\n\0\"\n\t\n\x02\x08\n\x12\x03\n\0\"\n\x08\n\
1200    \x01\x08\x12\x03\x0b\01\n\t\n\x02\x08\x01\x12\x03\x0b\01\n\x08\n\x01\x08\
1201    \x12\x03\x0c\0d\n\t\n\x02\x08\x0b\x12\x03\x0c\0d\n4\n\x02\x04\0\x12\x04\
1202    \x0f\0U\x01\x1a(\x20Protocol\x20buffer\x20representing\x20a\x20tensor.\n\
1203    \n\n\n\x03\x04\0\x01\x12\x03\x0f\x08\x13\n\x0b\n\x04\x04\0\x02\0\x12\x03\
1204    \x10\x02\x15\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x10\x02\n\n\x0c\n\x05\
1205    \x04\0\x02\0\x01\x12\x03\x10\x0b\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\
1206    \x10\x13\x14\nM\n\x04\x04\0\x02\x01\x12\x03\x13\x02$\x1a@\x20Shape\x20of\
1207    \x20the\x20tensor.\x20\x20TODO(touts):\x20sort\x20out\x20the\x200-rank\
1208    \x20issues.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\x13\x02\x12\n\x0c\n\
1209    \x05\x04\0\x02\x01\x01\x12\x03\x13\x13\x1f\n\x0c\n\x05\x04\0\x02\x01\x03\
1210    \x12\x03\x13\"#\n\xc9\x03\n\x04\x04\0\x02\x02\x12\x03\x1e\x02\x1b\x1a\
1211    \xd7\x01\x20Version\x20number.\n\n\x20In\x20version\x200,\x20if\x20the\
1212    \x20\"repeated\x20xxx\"\x20representations\x20contain\x20only\x20one\n\
1213    \x20element,\x20that\x20element\x20is\x20repeated\x20to\x20fill\x20the\
1214    \x20shape.\x20\x20This\x20makes\x20it\x20easy\n\x20to\x20represent\x20a\
1215    \x20constant\x20Tensor\x20with\x20a\x20single\x20value.\n2\xe1\x01\x20On\
1216    ly\x20one\x20of\x20the\x20representations\x20below\x20is\x20set,\x20one\
1217    \x20of\x20\"tensor_contents\"\x20and\n\x20the\x20\"xxx_val\"\x20attribut\
1218    es.\x20\x20We\x20are\x20not\x20using\x20oneof\x20because\x20as\x20oneofs\
1219    \x20cannot\n\x20contain\x20repeated\x20fields\x20it\x20would\x20require\
1220    \x20another\x20extra\x20set\x20of\x20messages.\n\n\x0c\n\x05\x04\0\x02\
1221    \x02\x05\x12\x03\x1e\x02\x07\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x1e\
1222    \x08\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x1e\x19\x1a\n\xd8\x02\n\
1223    \x04\x04\0\x02\x03\x12\x03%\x02\x1b\x1a\xca\x02\x20Serialized\x20raw\x20\
1224    tensor\x20content\x20from\x20either\x20Tensor::AsProtoTensorContent\x20o\
1225    r\n\x20memcpy\x20in\x20tensorflow::grpc::EncodeTensorToByteBuffer.\x20Th\
1226    is\x20representation\n\x20can\x20be\x20used\x20for\x20all\x20tensor\x20t\
1227    ypes.\x20The\x20purpose\x20of\x20this\x20representation\x20is\x20to\n\
1228    \x20reduce\x20serialization\x20overhead\x20during\x20RPC\x20call\x20by\
1229    \x20avoiding\x20serialization\x20of\n\x20many\x20repeated\x20small\x20it\
1230    ems.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03%\x02\x07\n\x0c\n\x05\x04\0\
1231    \x02\x03\x01\x12\x03%\x08\x16\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03%\x19\
1232    \x1a\n\xfd\x02\n\x04\x04\0\x02\x04\x12\x03.\x02/\x1a\x80\x01\x20DT_HALF,\
1233    \x20DT_BFLOAT16.\x20Note\x20that\x20since\x20protobuf\x20has\x20no\x20in\
1234    t16\x20type,\x20we'll\n\x20have\x20some\x20pointless\x20zero\x20padding\
1235    \x20for\x20each\x20value\x20here.\n2\xec\x01\x20Type\x20specific\x20repr\
1236    esentations\x20that\x20make\x20it\x20easy\x20to\x20create\x20tensor\x20p\
1237    rotos\x20in\n\x20all\x20languages.\x20\x20Only\x20the\x20representation\
1238    \x20corresponding\x20to\x20\"dtype\"\x20can\n\x20be\x20set.\x20\x20The\
1239    \x20values\x20hold\x20the\x20flattened\x20representation\x20of\x20the\
1240    \x20tensor\x20in\n\x20row\x20major\x20order.\n\n\x0c\n\x05\x04\0\x02\x04\
1241    \x04\x12\x03.\x02\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03.\x0b\x10\n\x0c\
1242    \n\x05\x04\0\x02\x04\x01\x12\x03.\x11\x19\n\x0c\n\x05\x04\0\x02\x04\x03\
1243    \x12\x03.\x1c\x1e\n\x0c\n\x05\x04\0\x02\x04\x08\x12\x03.\x1f.\n\r\n\x06\
1244    \x04\0\x02\x04\x08\x02\x12\x03.\x20-\n\x18\n\x04\x04\0\x02\x05\x12\x031\
1245    \x02/\x1a\x0b\x20DT_FLOAT.\n\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x031\x02\
1246    \n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x031\x0b\x10\n\x0c\n\x05\x04\0\x02\
1247    \x05\x01\x12\x031\x11\x1a\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x031\x1d\x1e\
1248    \n\x0c\n\x05\x04\0\x02\x05\x08\x12\x031\x1f.\n\r\n\x06\x04\0\x02\x05\x08\
1249    \x02\x12\x031\x20-\n\x19\n\x04\x04\0\x02\x06\x12\x034\x021\x1a\x0c\x20DT\
1250    _DOUBLE.\n\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x034\x02\n\n\x0c\n\x05\x04\
1251    \0\x02\x06\x05\x12\x034\x0b\x11\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x034\
1252    \x12\x1c\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x034\x1f\x20\n\x0c\n\x05\x04\
1253    \0\x02\x06\x08\x12\x034!0\n\r\n\x06\x04\0\x02\x06\x08\x02\x12\x034\"/\n5\
1254    \n\x04\x04\0\x02\x07\x12\x037\x02-\x1a(\x20DT_INT32,\x20DT_INT16,\x20DT_\
1255    INT8,\x20DT_UINT8.\n\n\x0c\n\x05\x04\0\x02\x07\x04\x12\x037\x02\n\n\x0c\
1256    \n\x05\x04\0\x02\x07\x05\x12\x037\x0b\x10\n\x0c\n\x05\x04\0\x02\x07\x01\
1257    \x12\x037\x11\x18\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x037\x1b\x1c\n\x0c\n\
1258    \x05\x04\0\x02\x07\x08\x12\x037\x1d,\n\r\n\x06\x04\0\x02\x07\x08\x02\x12\
1259    \x037\x1e+\n\x18\n\x04\x04\0\x02\x08\x12\x03:\x02\x20\x1a\x0b\x20DT_STRI\
1260    NG\n\n\x0c\n\x05\x04\0\x02\x08\x04\x12\x03:\x02\n\n\x0c\n\x05\x04\0\x02\
1261    \x08\x05\x12\x03:\x0b\x10\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03:\x11\x1b\
1262    \n\x0c\n\x05\x04\0\x02\x08\x03\x12\x03:\x1e\x1f\n\x86\x01\n\x04\x04\0\
1263    \x02\t\x12\x03>\x022\x1ay\x20DT_COMPLEX64.\x20scomplex_val(2*i)\x20and\
1264    \x20scomplex_val(2*i+1)\x20are\x20real\n\x20and\x20imaginary\x20parts\
1265    \x20of\x20i-th\x20single\x20precision\x20complex.\n\n\x0c\n\x05\x04\0\
1266    \x02\t\x04\x12\x03>\x02\n\n\x0c\n\x05\x04\0\x02\t\x05\x12\x03>\x0b\x10\n\
1267    \x0c\n\x05\x04\0\x02\t\x01\x12\x03>\x11\x1d\n\x0c\n\x05\x04\0\x02\t\x03\
1268    \x12\x03>\x20!\n\x0c\n\x05\x04\0\x02\t\x08\x12\x03>\"1\n\r\n\x06\x04\0\
1269    \x02\t\x08\x02\x12\x03>#0\n\x17\n\x04\x04\0\x02\n\x12\x03A\x020\x1a\n\
1270    \x20DT_INT64\n\n\x0c\n\x05\x04\0\x02\n\x04\x12\x03A\x02\n\n\x0c\n\x05\
1271    \x04\0\x02\n\x05\x12\x03A\x0b\x10\n\x0c\n\x05\x04\0\x02\n\x01\x12\x03A\
1272    \x11\x1a\n\x0c\n\x05\x04\0\x02\n\x03\x12\x03A\x1d\x1f\n\x0c\n\x05\x04\0\
1273    \x02\n\x08\x12\x03A\x20/\n\r\n\x06\x04\0\x02\n\x08\x02\x12\x03A!.\n\x16\
1274    \n\x04\x04\0\x02\x0b\x12\x03D\x02.\x1a\t\x20DT_BOOL\n\n\x0c\n\x05\x04\0\
1275    \x02\x0b\x04\x12\x03D\x02\n\n\x0c\n\x05\x04\0\x02\x0b\x05\x12\x03D\x0b\
1276    \x0f\n\x0c\n\x05\x04\0\x02\x0b\x01\x12\x03D\x10\x18\n\x0c\n\x05\x04\0\
1277    \x02\x0b\x03\x12\x03D\x1b\x1d\n\x0c\n\x05\x04\0\x02\x0b\x08\x12\x03D\x1e\
1278    -\n\r\n\x06\x04\0\x02\x0b\x08\x02\x12\x03D\x1f,\n\x87\x01\n\x04\x04\0\
1279    \x02\x0c\x12\x03H\x024\x1az\x20DT_COMPLEX128.\x20dcomplex_val(2*i)\x20an\
1280    d\x20dcomplex_val(2*i+1)\x20are\x20real\n\x20and\x20imaginary\x20parts\
1281    \x20of\x20i-th\x20double\x20precision\x20complex.\n\n\x0c\n\x05\x04\0\
1282    \x02\x0c\x04\x12\x03H\x02\n\n\x0c\n\x05\x04\0\x02\x0c\x05\x12\x03H\x0b\
1283    \x11\n\x0c\n\x05\x04\0\x02\x0c\x01\x12\x03H\x12\x1e\n\x0c\n\x05\x04\0\
1284    \x02\x0c\x03\x12\x03H!#\n\x0c\n\x05\x04\0\x02\x0c\x08\x12\x03H$3\n\r\n\
1285    \x06\x04\0\x02\x0c\x08\x02\x12\x03H%2\n\x1a\n\x04\x04\0\x02\r\x12\x03K\
1286    \x028\x1a\r\x20DT_RESOURCE\n\n\x0c\n\x05\x04\0\x02\r\x04\x12\x03K\x02\n\
1287    \n\x0c\n\x05\x04\0\x02\r\x06\x12\x03K\x0b\x1e\n\x0c\n\x05\x04\0\x02\r\
1288    \x01\x12\x03K\x1f2\n\x0c\n\x05\x04\0\x02\r\x03\x12\x03K57\n\x19\n\x04\
1289    \x04\0\x02\x0e\x12\x03N\x023\x1a\x0c\x20DT_VARIANT\n\n\x0c\n\x05\x04\0\
1290    \x02\x0e\x04\x12\x03N\x02\n\n\x0c\n\x05\x04\0\x02\x0e\x06\x12\x03N\x0b!\
1291    \n\x0c\n\x05\x04\0\x02\x0e\x01\x12\x03N\"-\n\x0c\n\x05\x04\0\x02\x0e\x03\
1292    \x12\x03N02\n\x18\n\x04\x04\0\x02\x0f\x12\x03Q\x022\x1a\x0b\x20DT_UINT32\
1293    \n\n\x0c\n\x05\x04\0\x02\x0f\x04\x12\x03Q\x02\n\n\x0c\n\x05\x04\0\x02\
1294    \x0f\x05\x12\x03Q\x0b\x11\n\x0c\n\x05\x04\0\x02\x0f\x01\x12\x03Q\x12\x1c\
1295    \n\x0c\n\x05\x04\0\x02\x0f\x03\x12\x03Q\x1f!\n\x0c\n\x05\x04\0\x02\x0f\
1296    \x08\x12\x03Q\"1\n\r\n\x06\x04\0\x02\x0f\x08\x02\x12\x03Q#0\n\x18\n\x04\
1297    \x04\0\x02\x10\x12\x03T\x022\x1a\x0b\x20DT_UINT64\n\n\x0c\n\x05\x04\0\
1298    \x02\x10\x04\x12\x03T\x02\n\n\x0c\n\x05\x04\0\x02\x10\x05\x12\x03T\x0b\
1299    \x11\n\x0c\n\x05\x04\0\x02\x10\x01\x12\x03T\x12\x1c\n\x0c\n\x05\x04\0\
1300    \x02\x10\x03\x12\x03T\x1f!\n\x0c\n\x05\x04\0\x02\x10\x08\x12\x03T\"1\n\r\
1301    \n\x06\x04\0\x02\x10\x08\x02\x12\x03T#0\nZ\n\x02\x04\x01\x12\x04X\0_\x01\
1302    \x1aN\x20Protocol\x20buffer\x20representing\x20the\x20serialization\x20f\
1303    ormat\x20of\x20DT_VARIANT\x20tensors.\n\n\n\n\x03\x04\x01\x01\x12\x03X\
1304    \x08\x1e\n<\n\x04\x04\x01\x02\0\x12\x03Z\x02\x17\x1a/\x20Name\x20of\x20t\
1305    he\x20type\x20of\x20objects\x20being\x20serialized.\n\n\x0c\n\x05\x04\
1306    \x01\x02\0\x05\x12\x03Z\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03Z\t\
1307    \x12\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03Z\x15\x16\n;\n\x04\x04\x01\x02\
1308    \x01\x12\x03\\\x02\x15\x1a.\x20Portions\x20of\x20the\x20object\x20that\
1309    \x20are\x20not\x20Tensors.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03\\\
1310    \x02\x07\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03\\\x08\x10\n\x0c\n\x05\
1311    \x04\x01\x02\x01\x03\x12\x03\\\x13\x14\nA\n\x04\x04\x01\x02\x02\x12\x03^\
1312    \x02#\x1a4\x20Tensors\x20contained\x20within\x20objects\x20being\x20seri\
1313    alized.\n\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03^\x02\n\n\x0c\n\x05\x04\
1314    \x01\x02\x02\x06\x12\x03^\x0b\x16\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\
1315    \x03^\x17\x1e\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03^!\"b\x06proto3\
1316";
1317
1318static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT;
1319
1320fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1321    ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
1322}
1323
1324pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1325    unsafe {
1326        file_descriptor_proto_lazy.get(|| {
1327            parse_descriptor_proto()
1328        })
1329    }
1330}