forked from rai-project/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsummary.pb.go
2945 lines (2839 loc) · 72.2 KB
/
summary.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: summary.proto
package tensorflow
import (
encoding_binary "encoding/binary"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
// Metadata associated with a series of Summary data
type SummaryDescription struct {
// Hint on how plugins should process the data in this series.
// Supported values include "scalar", "histogram", "image", "audio"
TypeHint string `protobuf:"bytes,1,opt,name=type_hint,json=typeHint,proto3" json:"type_hint,omitempty"`
}
func (m *SummaryDescription) Reset() { *m = SummaryDescription{} }
func (m *SummaryDescription) String() string { return proto.CompactTextString(m) }
func (*SummaryDescription) ProtoMessage() {}
func (*SummaryDescription) Descriptor() ([]byte, []int) {
return fileDescriptor_f7168d0e3f3f5589, []int{0}
}
func (m *SummaryDescription) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SummaryDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SummaryDescription.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SummaryDescription) XXX_Merge(src proto.Message) {
xxx_messageInfo_SummaryDescription.Merge(m, src)
}
func (m *SummaryDescription) XXX_Size() int {
return m.Size()
}
func (m *SummaryDescription) XXX_DiscardUnknown() {
xxx_messageInfo_SummaryDescription.DiscardUnknown(m)
}
var xxx_messageInfo_SummaryDescription proto.InternalMessageInfo
func (m *SummaryDescription) GetTypeHint() string {
if m != nil {
return m.TypeHint
}
return ""
}
// Serialization format for histogram module in
// core/lib/histogram/histogram.h
type HistogramProto struct {
Min float64 `protobuf:"fixed64,1,opt,name=min,proto3" json:"min,omitempty"`
Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"`
Num float64 `protobuf:"fixed64,3,opt,name=num,proto3" json:"num,omitempty"`
Sum float64 `protobuf:"fixed64,4,opt,name=sum,proto3" json:"sum,omitempty"`
SumSquares float64 `protobuf:"fixed64,5,opt,name=sum_squares,json=sumSquares,proto3" json:"sum_squares,omitempty"`
// Parallel arrays encoding the bucket boundaries and the bucket values.
// bucket(i) is the count for the bucket i. The range for
// a bucket is:
// i == 0: -DBL_MAX .. bucket_limit(0)
// i != 0: bucket_limit(i-1) .. bucket_limit(i)
BucketLimit []float64 `protobuf:"fixed64,6,rep,packed,name=bucket_limit,json=bucketLimit,proto3" json:"bucket_limit,omitempty"`
Bucket []float64 `protobuf:"fixed64,7,rep,packed,name=bucket,proto3" json:"bucket,omitempty"`
}
func (m *HistogramProto) Reset() { *m = HistogramProto{} }
func (m *HistogramProto) String() string { return proto.CompactTextString(m) }
func (*HistogramProto) ProtoMessage() {}
func (*HistogramProto) Descriptor() ([]byte, []int) {
return fileDescriptor_f7168d0e3f3f5589, []int{1}
}
func (m *HistogramProto) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HistogramProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HistogramProto.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HistogramProto) XXX_Merge(src proto.Message) {
xxx_messageInfo_HistogramProto.Merge(m, src)
}
func (m *HistogramProto) XXX_Size() int {
return m.Size()
}
func (m *HistogramProto) XXX_DiscardUnknown() {
xxx_messageInfo_HistogramProto.DiscardUnknown(m)
}
var xxx_messageInfo_HistogramProto proto.InternalMessageInfo
func (m *HistogramProto) GetMin() float64 {
if m != nil {
return m.Min
}
return 0
}
func (m *HistogramProto) GetMax() float64 {
if m != nil {
return m.Max
}
return 0
}
func (m *HistogramProto) GetNum() float64 {
if m != nil {
return m.Num
}
return 0
}
func (m *HistogramProto) GetSum() float64 {
if m != nil {
return m.Sum
}
return 0
}
func (m *HistogramProto) GetSumSquares() float64 {
if m != nil {
return m.SumSquares
}
return 0
}
func (m *HistogramProto) GetBucketLimit() []float64 {
if m != nil {
return m.BucketLimit
}
return nil
}
func (m *HistogramProto) GetBucket() []float64 {
if m != nil {
return m.Bucket
}
return nil
}
// A SummaryMetadata encapsulates information on which plugins are able to make
// use of a certain summary value.
type SummaryMetadata struct {
// Data that associates a summary with a certain plugin.
PluginData *SummaryMetadata_PluginData `protobuf:"bytes,1,opt,name=plugin_data,json=pluginData,proto3" json:"plugin_data,omitempty"`
// Display name for viewing in TensorBoard.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Longform readable description of the summary sequence. Markdown supported.
SummaryDescription string `protobuf:"bytes,3,opt,name=summary_description,json=summaryDescription,proto3" json:"summary_description,omitempty"`
}
func (m *SummaryMetadata) Reset() { *m = SummaryMetadata{} }
func (m *SummaryMetadata) String() string { return proto.CompactTextString(m) }
func (*SummaryMetadata) ProtoMessage() {}
func (*SummaryMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_f7168d0e3f3f5589, []int{2}
}
func (m *SummaryMetadata) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SummaryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SummaryMetadata.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SummaryMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_SummaryMetadata.Merge(m, src)
}
func (m *SummaryMetadata) XXX_Size() int {
return m.Size()
}
func (m *SummaryMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_SummaryMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_SummaryMetadata proto.InternalMessageInfo
func (m *SummaryMetadata) GetPluginData() *SummaryMetadata_PluginData {
if m != nil {
return m.PluginData
}
return nil
}
func (m *SummaryMetadata) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *SummaryMetadata) GetSummaryDescription() string {
if m != nil {
return m.SummaryDescription
}
return ""
}
type SummaryMetadata_PluginData struct {
// The name of the plugin this data pertains to.
PluginName string `protobuf:"bytes,1,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"`
// The content to store for the plugin. The best practice is for this to be
// a binary serialized protocol buffer.
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
}
func (m *SummaryMetadata_PluginData) Reset() { *m = SummaryMetadata_PluginData{} }
func (m *SummaryMetadata_PluginData) String() string { return proto.CompactTextString(m) }
func (*SummaryMetadata_PluginData) ProtoMessage() {}
func (*SummaryMetadata_PluginData) Descriptor() ([]byte, []int) {
return fileDescriptor_f7168d0e3f3f5589, []int{2, 0}
}
func (m *SummaryMetadata_PluginData) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SummaryMetadata_PluginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SummaryMetadata_PluginData.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SummaryMetadata_PluginData) XXX_Merge(src proto.Message) {
xxx_messageInfo_SummaryMetadata_PluginData.Merge(m, src)
}
func (m *SummaryMetadata_PluginData) XXX_Size() int {
return m.Size()
}
func (m *SummaryMetadata_PluginData) XXX_DiscardUnknown() {
xxx_messageInfo_SummaryMetadata_PluginData.DiscardUnknown(m)
}
var xxx_messageInfo_SummaryMetadata_PluginData proto.InternalMessageInfo
func (m *SummaryMetadata_PluginData) GetPluginName() string {
if m != nil {
return m.PluginName
}
return ""
}
func (m *SummaryMetadata_PluginData) GetContent() []byte {
if m != nil {
return m.Content
}
return nil
}
// A Summary is a set of named values to be displayed by the
// visualizer.
//
// Summaries are produced regularly during training, as controlled by
// the "summary_interval_secs" attribute of the training operation.
// Summaries are also produced at the end of an evaluation.
type Summary struct {
// Set of values for the summary.
Value []*Summary_Value `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
}
func (m *Summary) Reset() { *m = Summary{} }
func (m *Summary) String() string { return proto.CompactTextString(m) }
func (*Summary) ProtoMessage() {}
func (*Summary) Descriptor() ([]byte, []int) {
return fileDescriptor_f7168d0e3f3f5589, []int{3}
}
func (m *Summary) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Summary.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Summary) XXX_Merge(src proto.Message) {
xxx_messageInfo_Summary.Merge(m, src)
}
func (m *Summary) XXX_Size() int {
return m.Size()
}
func (m *Summary) XXX_DiscardUnknown() {
xxx_messageInfo_Summary.DiscardUnknown(m)
}
var xxx_messageInfo_Summary proto.InternalMessageInfo
func (m *Summary) GetValue() []*Summary_Value {
if m != nil {
return m.Value
}
return nil
}
type Summary_Image struct {
// Dimensions of the image.
Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
// Valid colorspace values are
// 1 - grayscale
// 2 - grayscale + alpha
// 3 - RGB
// 4 - RGBA
// 5 - DIGITAL_YUV
// 6 - BGRA
Colorspace int32 `protobuf:"varint,3,opt,name=colorspace,proto3" json:"colorspace,omitempty"`
// Image data in encoded format. All image formats supported by
// image_codec::CoderUtil can be stored here.
EncodedImageString []byte `protobuf:"bytes,4,opt,name=encoded_image_string,json=encodedImageString,proto3" json:"encoded_image_string,omitempty"`
}
func (m *Summary_Image) Reset() { *m = Summary_Image{} }
func (m *Summary_Image) String() string { return proto.CompactTextString(m) }
func (*Summary_Image) ProtoMessage() {}
func (*Summary_Image) Descriptor() ([]byte, []int) {
return fileDescriptor_f7168d0e3f3f5589, []int{3, 0}
}
func (m *Summary_Image) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Summary_Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Summary_Image.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Summary_Image) XXX_Merge(src proto.Message) {
xxx_messageInfo_Summary_Image.Merge(m, src)
}
func (m *Summary_Image) XXX_Size() int {
return m.Size()
}
func (m *Summary_Image) XXX_DiscardUnknown() {
xxx_messageInfo_Summary_Image.DiscardUnknown(m)
}
var xxx_messageInfo_Summary_Image proto.InternalMessageInfo
func (m *Summary_Image) GetHeight() int32 {
if m != nil {
return m.Height
}
return 0
}
func (m *Summary_Image) GetWidth() int32 {
if m != nil {
return m.Width
}
return 0
}
func (m *Summary_Image) GetColorspace() int32 {
if m != nil {
return m.Colorspace
}
return 0
}
func (m *Summary_Image) GetEncodedImageString() []byte {
if m != nil {
return m.EncodedImageString
}
return nil
}
type Summary_Audio struct {
// Sample rate of the audio in Hz.
SampleRate float32 `protobuf:"fixed32,1,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"`
// Number of channels of audio.
NumChannels int64 `protobuf:"varint,2,opt,name=num_channels,json=numChannels,proto3" json:"num_channels,omitempty"`
// Length of the audio in frames (samples per channel).
LengthFrames int64 `protobuf:"varint,3,opt,name=length_frames,json=lengthFrames,proto3" json:"length_frames,omitempty"`
// Encoded audio data and its associated RFC 2045 content type (e.g.
// "audio/wav").
EncodedAudioString []byte `protobuf:"bytes,4,opt,name=encoded_audio_string,json=encodedAudioString,proto3" json:"encoded_audio_string,omitempty"`
ContentType string `protobuf:"bytes,5,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
}
func (m *Summary_Audio) Reset() { *m = Summary_Audio{} }
func (m *Summary_Audio) String() string { return proto.CompactTextString(m) }
func (*Summary_Audio) ProtoMessage() {}
func (*Summary_Audio) Descriptor() ([]byte, []int) {
return fileDescriptor_f7168d0e3f3f5589, []int{3, 1}
}
func (m *Summary_Audio) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Summary_Audio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Summary_Audio.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Summary_Audio) XXX_Merge(src proto.Message) {
xxx_messageInfo_Summary_Audio.Merge(m, src)
}
func (m *Summary_Audio) XXX_Size() int {
return m.Size()
}
func (m *Summary_Audio) XXX_DiscardUnknown() {
xxx_messageInfo_Summary_Audio.DiscardUnknown(m)
}
var xxx_messageInfo_Summary_Audio proto.InternalMessageInfo
func (m *Summary_Audio) GetSampleRate() float32 {
if m != nil {
return m.SampleRate
}
return 0
}
func (m *Summary_Audio) GetNumChannels() int64 {
if m != nil {
return m.NumChannels
}
return 0
}
func (m *Summary_Audio) GetLengthFrames() int64 {
if m != nil {
return m.LengthFrames
}
return 0
}
func (m *Summary_Audio) GetEncodedAudioString() []byte {
if m != nil {
return m.EncodedAudioString
}
return nil
}
func (m *Summary_Audio) GetContentType() string {
if m != nil {
return m.ContentType
}
return ""
}
type Summary_Value struct {
// This field is deprecated and will not be set.
NodeName string `protobuf:"bytes,7,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
// Tag name for the data. Used by TensorBoard plugins to organize data. Tags
// are often organized by scope (which contains slashes to convey
// hierarchy). For example: foo/bar/0
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
// Contains metadata on the summary value such as which plugins may use it.
// Take note that many summary values may lack a metadata field. This is
// because the FileWriter only keeps a metadata object on the first summary
// value with a certain tag for each tag. TensorBoard then remembers which
// tags are associated with which plugins. This saves space.
Metadata *SummaryMetadata `protobuf:"bytes,9,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Value associated with the tag.
//
// Types that are valid to be assigned to Value:
// *Summary_Value_SimpleValue
// *Summary_Value_ObsoleteOldStyleHistogram
// *Summary_Value_Image
// *Summary_Value_Histo
// *Summary_Value_Audio
// *Summary_Value_Tensor
Value isSummary_Value_Value `protobuf_oneof:"value"`
}
func (m *Summary_Value) Reset() { *m = Summary_Value{} }
func (m *Summary_Value) String() string { return proto.CompactTextString(m) }
func (*Summary_Value) ProtoMessage() {}
func (*Summary_Value) Descriptor() ([]byte, []int) {
return fileDescriptor_f7168d0e3f3f5589, []int{3, 2}
}
func (m *Summary_Value) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Summary_Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Summary_Value.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Summary_Value) XXX_Merge(src proto.Message) {
xxx_messageInfo_Summary_Value.Merge(m, src)
}
func (m *Summary_Value) XXX_Size() int {
return m.Size()
}
func (m *Summary_Value) XXX_DiscardUnknown() {
xxx_messageInfo_Summary_Value.DiscardUnknown(m)
}
var xxx_messageInfo_Summary_Value proto.InternalMessageInfo
type isSummary_Value_Value interface {
isSummary_Value_Value()
MarshalTo([]byte) (int, error)
Size() int
}
type Summary_Value_SimpleValue struct {
SimpleValue float32 `protobuf:"fixed32,2,opt,name=simple_value,json=simpleValue,proto3,oneof"`
}
type Summary_Value_ObsoleteOldStyleHistogram struct {
ObsoleteOldStyleHistogram []byte `protobuf:"bytes,3,opt,name=obsolete_old_style_histogram,json=obsoleteOldStyleHistogram,proto3,oneof"`
}
type Summary_Value_Image struct {
Image *Summary_Image `protobuf:"bytes,4,opt,name=image,proto3,oneof"`
}
type Summary_Value_Histo struct {
Histo *HistogramProto `protobuf:"bytes,5,opt,name=histo,proto3,oneof"`
}
type Summary_Value_Audio struct {
Audio *Summary_Audio `protobuf:"bytes,6,opt,name=audio,proto3,oneof"`
}
type Summary_Value_Tensor struct {
Tensor *TensorProto `protobuf:"bytes,8,opt,name=tensor,proto3,oneof"`
}
func (*Summary_Value_SimpleValue) isSummary_Value_Value() {}
func (*Summary_Value_ObsoleteOldStyleHistogram) isSummary_Value_Value() {}
func (*Summary_Value_Image) isSummary_Value_Value() {}
func (*Summary_Value_Histo) isSummary_Value_Value() {}
func (*Summary_Value_Audio) isSummary_Value_Value() {}
func (*Summary_Value_Tensor) isSummary_Value_Value() {}
func (m *Summary_Value) GetValue() isSummary_Value_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *Summary_Value) GetNodeName() string {
if m != nil {
return m.NodeName
}
return ""
}
func (m *Summary_Value) GetTag() string {
if m != nil {
return m.Tag
}
return ""
}
func (m *Summary_Value) GetMetadata() *SummaryMetadata {
if m != nil {
return m.Metadata
}
return nil
}
func (m *Summary_Value) GetSimpleValue() float32 {
if x, ok := m.GetValue().(*Summary_Value_SimpleValue); ok {
return x.SimpleValue
}
return 0
}
func (m *Summary_Value) GetObsoleteOldStyleHistogram() []byte {
if x, ok := m.GetValue().(*Summary_Value_ObsoleteOldStyleHistogram); ok {
return x.ObsoleteOldStyleHistogram
}
return nil
}
func (m *Summary_Value) GetImage() *Summary_Image {
if x, ok := m.GetValue().(*Summary_Value_Image); ok {
return x.Image
}
return nil
}
func (m *Summary_Value) GetHisto() *HistogramProto {
if x, ok := m.GetValue().(*Summary_Value_Histo); ok {
return x.Histo
}
return nil
}
func (m *Summary_Value) GetAudio() *Summary_Audio {
if x, ok := m.GetValue().(*Summary_Value_Audio); ok {
return x.Audio
}
return nil
}
func (m *Summary_Value) GetTensor() *TensorProto {
if x, ok := m.GetValue().(*Summary_Value_Tensor); ok {
return x.Tensor
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Summary_Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Summary_Value_OneofMarshaler, _Summary_Value_OneofUnmarshaler, _Summary_Value_OneofSizer, []interface{}{
(*Summary_Value_SimpleValue)(nil),
(*Summary_Value_ObsoleteOldStyleHistogram)(nil),
(*Summary_Value_Image)(nil),
(*Summary_Value_Histo)(nil),
(*Summary_Value_Audio)(nil),
(*Summary_Value_Tensor)(nil),
}
}
func _Summary_Value_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Summary_Value)
// value
switch x := m.Value.(type) {
case *Summary_Value_SimpleValue:
_ = b.EncodeVarint(2<<3 | proto.WireFixed32)
_ = b.EncodeFixed32(uint64(math.Float32bits(x.SimpleValue)))
case *Summary_Value_ObsoleteOldStyleHistogram:
_ = b.EncodeVarint(3<<3 | proto.WireBytes)
_ = b.EncodeRawBytes(x.ObsoleteOldStyleHistogram)
case *Summary_Value_Image:
_ = b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Image); err != nil {
return err
}
case *Summary_Value_Histo:
_ = b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Histo); err != nil {
return err
}
case *Summary_Value_Audio:
_ = b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Audio); err != nil {
return err
}
case *Summary_Value_Tensor:
_ = b.EncodeVarint(8<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Tensor); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Summary_Value.Value has unexpected type %T", x)
}
return nil
}
func _Summary_Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Summary_Value)
switch tag {
case 2: // value.simple_value
if wire != proto.WireFixed32 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed32()
m.Value = &Summary_Value_SimpleValue{math.Float32frombits(uint32(x))}
return true, err
case 3: // value.obsolete_old_style_histogram
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Value = &Summary_Value_ObsoleteOldStyleHistogram{x}
return true, err
case 4: // value.image
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Summary_Image)
err := b.DecodeMessage(msg)
m.Value = &Summary_Value_Image{msg}
return true, err
case 5: // value.histo
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(HistogramProto)
err := b.DecodeMessage(msg)
m.Value = &Summary_Value_Histo{msg}
return true, err
case 6: // value.audio
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Summary_Audio)
err := b.DecodeMessage(msg)
m.Value = &Summary_Value_Audio{msg}
return true, err
case 8: // value.tensor
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TensorProto)
err := b.DecodeMessage(msg)
m.Value = &Summary_Value_Tensor{msg}
return true, err
default:
return false, nil
}
}
func _Summary_Value_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Summary_Value)
// value
switch x := m.Value.(type) {
case *Summary_Value_SimpleValue:
n += 1 // tag and wire
n += 4
case *Summary_Value_ObsoleteOldStyleHistogram:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.ObsoleteOldStyleHistogram)))
n += len(x.ObsoleteOldStyleHistogram)
case *Summary_Value_Image:
s := proto.Size(x.Image)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Summary_Value_Histo:
s := proto.Size(x.Histo)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Summary_Value_Audio:
s := proto.Size(x.Audio)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Summary_Value_Tensor:
s := proto.Size(x.Tensor)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*SummaryDescription)(nil), "tensorflow.SummaryDescription")
proto.RegisterType((*HistogramProto)(nil), "tensorflow.HistogramProto")
proto.RegisterType((*SummaryMetadata)(nil), "tensorflow.SummaryMetadata")
proto.RegisterType((*SummaryMetadata_PluginData)(nil), "tensorflow.SummaryMetadata.PluginData")
proto.RegisterType((*Summary)(nil), "tensorflow.Summary")
proto.RegisterType((*Summary_Image)(nil), "tensorflow.Summary.Image")
proto.RegisterType((*Summary_Audio)(nil), "tensorflow.Summary.Audio")
proto.RegisterType((*Summary_Value)(nil), "tensorflow.Summary.Value")
}
func init() { proto.RegisterFile("summary.proto", fileDescriptor_f7168d0e3f3f5589) }
var fileDescriptor_f7168d0e3f3f5589 = []byte{
// 793 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xcd, 0x72, 0x1c, 0x35,
0x10, 0xde, 0xf1, 0x30, 0xbb, 0xde, 0x9e, 0x31, 0xb8, 0x44, 0x0a, 0x26, 0x1b, 0x6a, 0x49, 0x9c,
0x82, 0xf2, 0x85, 0x35, 0x36, 0x07, 0xce, 0x31, 0x29, 0xb2, 0x54, 0xf1, 0xe3, 0xd2, 0xa6, 0x38,
0x70, 0x99, 0xd2, 0xce, 0x28, 0xb3, 0x22, 0x23, 0x69, 0x18, 0x69, 0x70, 0xf6, 0x09, 0xb8, 0xf2,
0x22, 0xbc, 0x41, 0xae, 0x54, 0x71, 0xcc, 0x91, 0x23, 0x65, 0x3f, 0x04, 0x1c, 0x29, 0xb5, 0xe4,
0xdd, 0x05, 0x62, 0x6e, 0xd2, 0xa7, 0xaf, 0xd5, 0xdd, 0xdf, 0xd7, 0x12, 0x1c, 0x98, 0x5e, 0x4a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0x1d, 0x9d, 0x0f, 0xa8, 0x67, 0x92, 0x33,
0x48, 0x30, 0x05, 0x0a, 0x95, 0x9e, 0x4d, 0x76, 0x43, 0xfe, 0xf9, 0xd9, 0xb8, 0x18, 0xa4, 0xba,
0x34, 0xe8, 0x46, 0x3e, 0xbc, 0x3d, 0x0d, 0x7a, 0xe2, 0x42, 0x90, 0x49, 0x4e, 0x61, 0xe8, 0x49,
0xf9, 0x3e, 0xc6, 0xbc, 0xbb, 0x1b, 0xf3, 0x14, 0x97, 0x37, 0x49, 0x02, 0xf1, 0x7c, 0x14, 0x5e,
0xca, 0xb9, 0xf8, 0xed, 0x6a, 0x1a, 0xbd, 0xba, 0x9a, 0x46, 0x7f, 0x5c, 0x4d, 0xa3, 0x9f, 0xaf,
0xa7, 0x83, 0x57, 0xd7, 0xd3, 0xc1, 0xef, 0xd7, 0xd3, 0x01, 0xe4, 0xba, 0xab, 0x77, 0x2f, 0xc2,
0x49, 0xba, 0xd4, 0xdd, 0xf3, 0xf3, 0x83, 0x50, 0x07, 0x5e, 0x6a, 0x2e, 0xa2, 0xef, 0x1e, 0xd4,
0xc2, 0xae, 0xfa, 0xe5, 0xac, 0xd4, 0xf2, 0xa4, 0x63, 0xe2, 0xa3, 0xb6, 0xd3, 0xdf, 0xf3, 0xd2,
0x9e, 0x6c, 0xa3, 0xff, 0x8a, 0xa2, 0xe5, 0x10, 0x3f, 0xe7, 0x4f, 0xfe, 0x0e, 0x00, 0x00, 0xff,
0xff, 0xa4, 0x4f, 0x7a, 0x27, 0xc7, 0x05, 0x00, 0x00,
}
func (m *SummaryDescription) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *SummaryDescription) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.TypeHint) > 0 {
dAtA[i] = 0xa
i++
i = encodeVarintSummary(dAtA, i, uint64(len(m.TypeHint)))
i += copy(dAtA[i:], m.TypeHint)
}
return i, nil
}
func (m *HistogramProto) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *HistogramProto) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Min != 0 {
dAtA[i] = 0x9
i++
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Min))))
i += 8
}
if m.Max != 0 {
dAtA[i] = 0x11
i++
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Max))))
i += 8
}
if m.Num != 0 {
dAtA[i] = 0x19
i++
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Num))))
i += 8
}
if m.Sum != 0 {
dAtA[i] = 0x21
i++
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Sum))))
i += 8
}
if m.SumSquares != 0 {
dAtA[i] = 0x29
i++
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.SumSquares))))
i += 8
}
if len(m.BucketLimit) > 0 {
dAtA[i] = 0x32
i++
i = encodeVarintSummary(dAtA, i, uint64(len(m.BucketLimit)*8))
for _, num := range m.BucketLimit {
f1 := math.Float64bits(float64(num))
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(f1))
i += 8
}
}
if len(m.Bucket) > 0 {
dAtA[i] = 0x3a
i++
i = encodeVarintSummary(dAtA, i, uint64(len(m.Bucket)*8))
for _, num := range m.Bucket {
f2 := math.Float64bits(float64(num))
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(f2))
i += 8
}
}
return i, nil
}
func (m *SummaryMetadata) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *SummaryMetadata) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.PluginData != nil {
dAtA[i] = 0xa
i++
i = encodeVarintSummary(dAtA, i, uint64(m.PluginData.Size()))
n3, err3 := m.PluginData.MarshalTo(dAtA[i:])
if err3 != nil {
return 0, err3
}
i += n3
}
if len(m.DisplayName) > 0 {
dAtA[i] = 0x12
i++
i = encodeVarintSummary(dAtA, i, uint64(len(m.DisplayName)))
i += copy(dAtA[i:], m.DisplayName)
}
if len(m.SummaryDescription) > 0 {
dAtA[i] = 0x1a
i++
i = encodeVarintSummary(dAtA, i, uint64(len(m.SummaryDescription)))
i += copy(dAtA[i:], m.SummaryDescription)
}
return i, nil
}