forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRewriterConfig.cs
More file actions
2491 lines (2366 loc) · 112 KB
/
Copy pathRewriterConfig.cs
File metadata and controls
2491 lines (2366 loc) · 112 KB
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
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/rewriter_config.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Tensorflow {
/// <summary>Holder for reflection information generated from tensorflow/core/protobuf/rewriter_config.proto</summary>
public static partial class RewriterConfigReflection {
#region Descriptor
/// <summary>File descriptor for tensorflow/core/protobuf/rewriter_config.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static RewriterConfigReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci50ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvcmV3cml0ZXJfY29uZmlnLnBy",
"b3RvEgp0ZW5zb3JmbG93Gip0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL2F0",
"dHJfdmFsdWUucHJvdG8aLnRlbnNvcmZsb3cvY29yZS9wcm90b2J1Zi92ZXJp",
"Zmllcl9jb25maWcucHJvdG8iOwoTQXV0b1BhcmFsbGVsT3B0aW9ucxIOCgZl",
"bmFibGUYASABKAgSFAoMbnVtX3JlcGxpY2FzGAIgASgFIisKFlNjb3BlZEFs",
"bG9jYXRvck9wdGlvbnMSEQoJZW5hYmxlX29wGAEgAygJIvYVCg5SZXdyaXRl",
"ckNvbmZpZxJDChVjcHVfbGF5b3V0X2NvbnZlcnNpb24YMiABKA4yJC50ZW5z",
"b3JmbG93LlJld3JpdGVyQ29uZmlnLkNwdUxheW91dBI7ChBsYXlvdXRfb3B0",
"aW1pemVyGAEgASgOMiEudGVuc29yZmxvdy5SZXdyaXRlckNvbmZpZy5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gJPThABEgcK",
"A09GRhACEg4KCkFHR1JFU1NJVkUQAxIVChFFWFBFUklNRU5UQUxfTUxJUhAE",
"EhUKEUVYUEVSSU1FTlRBTF9CT1RIEAUiSQoJQ3B1TGF5b3V0EhgKFE5PX0NP",
"TlZFUlNJT05fT05fQ1BVEAASEAoMTkNIV19UT19OSFdDEAESEAoMTkhXQ19U",
"T19OQ0hXEAIiPAoRTnVtSXRlcmF0aW9uc1R5cGUSFQoRREVGQVVMVF9OVU1f",
"SVRFUlMQABIHCgNPTkUQARIHCgNUV08QAiKfAQoKTWVtT3B0VHlwZRITCg9E",
"RUZBVUxUX01FTV9PUFQQABIOCgpOT19NRU1fT1BUEAESCgoGTUFOVUFMEAIS",
"FwoTU1dBUFBJTkdfSEVVUklTVElDUxAEEhwKGFJFQ09NUFVUQVRJT05fSEVV",
"UklTVElDUxAFEhkKFVNDSEVEVUxJTkdfSEVVUklTVElDUxAGEg4KCkhFVVJJ",
"U1RJQ1MQA0KMAQoYb3JnLnRlbnNvcmZsb3cuZnJhbWV3b3JrQhRSZXdyaXRl",
"ckNvbmZpZ1Byb3Rvc1ABWlVnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29y",
"Zmxvdy90ZW5zb3JmbG93L2dvL2NvcmUvcHJvdG9idWYvZm9yX2NvcmVfcHJv",
"dG9zX2dvX3Byb3Rv+AEBYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tensorflow.AttrValueReflection.Descriptor, global::Tensorflow.VerifierConfigReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.AutoParallelOptions), global::Tensorflow.AutoParallelOptions.Parser, new[]{ "Enable", "NumReplicas" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ScopedAllocatorOptions), global::Tensorflow.ScopedAllocatorOptions.Parser, new[]{ "EnableOp" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RewriterConfig), global::Tensorflow.RewriterConfig.Parser, new[]{ "CpuLayoutConversion", "LayoutOptimizer", "ConstantFolding", "ShapeOptimization", "Remapping", "CommonSubgraphElimination", "ArithmeticOptimization", "DependencyOptimization", "LoopOptimization", "FunctionOptimization", "DebugStripper", "DisableModelPruning", "ScopedAllocatorOptimization", "PinToHostOptimization", "ImplementationSelector", "AutoMixedPrecision", "AutoMixedPrecisionMkl", "AutoMixedPrecisionOnednnBfloat16", "AutoMixedPrecisionCpu", "DisableMetaOptimizer", "UsePluginOptimizers", "ExperimentalConditionalCodeMotion", "MetaOptimizerIterations", "MinGraphNodes", "ExperimentalDisableCompressedTensorOptimization", "ExperimentalDisableFoldingQuantizationEmulation", "MemoryOptimization", "MemoryOptimizerTargetNodeNameScope", "MetaOptimizerTimeoutMs", "AutoParallel", "FailOnOptimizerErrors", "ScopedAllocatorOpts", "Optimizers", "CustomOptimizers", "InterOptimizerVerifierConfig", "PostOptimizationVerifierConfig" }, null, new[]{ typeof(global::Tensorflow.RewriterConfig.Types.Toggle), typeof(global::Tensorflow.RewriterConfig.Types.CpuLayout), typeof(global::Tensorflow.RewriterConfig.Types.NumIterationsType), typeof(global::Tensorflow.RewriterConfig.Types.MemOptType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RewriterConfig.Types.CustomGraphOptimizer), global::Tensorflow.RewriterConfig.Types.CustomGraphOptimizer.Parser, new[]{ "Name", "ParameterMap" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })})
}));
}
#endregion
}
#region Messages
public sealed partial class AutoParallelOptions : pb::IMessage<AutoParallelOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<AutoParallelOptions> _parser = new pb::MessageParser<AutoParallelOptions>(() => new AutoParallelOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<AutoParallelOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tensorflow.RewriterConfigReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AutoParallelOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AutoParallelOptions(AutoParallelOptions other) : this() {
enable_ = other.enable_;
numReplicas_ = other.numReplicas_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AutoParallelOptions Clone() {
return new AutoParallelOptions(this);
}
/// <summary>Field number for the "enable" field.</summary>
public const int EnableFieldNumber = 1;
private bool enable_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Enable {
get { return enable_; }
set {
enable_ = value;
}
}
/// <summary>Field number for the "num_replicas" field.</summary>
public const int NumReplicasFieldNumber = 2;
private int numReplicas_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int NumReplicas {
get { return numReplicas_; }
set {
numReplicas_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AutoParallelOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AutoParallelOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Enable != other.Enable) return false;
if (NumReplicas != other.NumReplicas) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Enable != false) hash ^= Enable.GetHashCode();
if (NumReplicas != 0) hash ^= NumReplicas.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Enable != false) {
output.WriteRawTag(8);
output.WriteBool(Enable);
}
if (NumReplicas != 0) {
output.WriteRawTag(16);
output.WriteInt32(NumReplicas);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Enable != false) {
output.WriteRawTag(8);
output.WriteBool(Enable);
}
if (NumReplicas != 0) {
output.WriteRawTag(16);
output.WriteInt32(NumReplicas);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Enable != false) {
size += 1 + 1;
}
if (NumReplicas != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumReplicas);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AutoParallelOptions other) {
if (other == null) {
return;
}
if (other.Enable != false) {
Enable = other.Enable;
}
if (other.NumReplicas != 0) {
NumReplicas = other.NumReplicas;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Enable = input.ReadBool();
break;
}
case 16: {
NumReplicas = input.ReadInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Enable = input.ReadBool();
break;
}
case 16: {
NumReplicas = input.ReadInt32();
break;
}
}
}
}
#endif
}
public sealed partial class ScopedAllocatorOptions : pb::IMessage<ScopedAllocatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ScopedAllocatorOptions> _parser = new pb::MessageParser<ScopedAllocatorOptions>(() => new ScopedAllocatorOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ScopedAllocatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tensorflow.RewriterConfigReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ScopedAllocatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ScopedAllocatorOptions(ScopedAllocatorOptions other) : this() {
enableOp_ = other.enableOp_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ScopedAllocatorOptions Clone() {
return new ScopedAllocatorOptions(this);
}
/// <summary>Field number for the "enable_op" field.</summary>
public const int EnableOpFieldNumber = 1;
private static readonly pb::FieldCodec<string> _repeated_enableOp_codec
= pb::FieldCodec.ForString(10);
private readonly pbc::RepeatedField<string> enableOp_ = new pbc::RepeatedField<string>();
/// <summary>
/// If present, only perform optimization for these ops.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> EnableOp {
get { return enableOp_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ScopedAllocatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ScopedAllocatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!enableOp_.Equals(other.enableOp_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= enableOp_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
enableOp_.WriteTo(output, _repeated_enableOp_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
enableOp_.WriteTo(ref output, _repeated_enableOp_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += enableOp_.CalculateSize(_repeated_enableOp_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ScopedAllocatorOptions other) {
if (other == null) {
return;
}
enableOp_.Add(other.enableOp_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
enableOp_.AddEntriesFrom(input, _repeated_enableOp_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
enableOp_.AddEntriesFrom(ref input, _repeated_enableOp_codec);
break;
}
}
}
}
#endif
}
/// <summary>
/// Graph rewriting is experimental and subject to change, not covered by any
/// API stability guarantees.
/// </summary>
public sealed partial class RewriterConfig : pb::IMessage<RewriterConfig>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<RewriterConfig> _parser = new pb::MessageParser<RewriterConfig>(() => new RewriterConfig());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<RewriterConfig> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tensorflow.RewriterConfigReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RewriterConfig() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RewriterConfig(RewriterConfig other) : this() {
cpuLayoutConversion_ = other.cpuLayoutConversion_;
layoutOptimizer_ = other.layoutOptimizer_;
constantFolding_ = other.constantFolding_;
shapeOptimization_ = other.shapeOptimization_;
remapping_ = other.remapping_;
commonSubgraphElimination_ = other.commonSubgraphElimination_;
arithmeticOptimization_ = other.arithmeticOptimization_;
dependencyOptimization_ = other.dependencyOptimization_;
loopOptimization_ = other.loopOptimization_;
functionOptimization_ = other.functionOptimization_;
debugStripper_ = other.debugStripper_;
disableModelPruning_ = other.disableModelPruning_;
scopedAllocatorOptimization_ = other.scopedAllocatorOptimization_;
pinToHostOptimization_ = other.pinToHostOptimization_;
implementationSelector_ = other.implementationSelector_;
autoMixedPrecision_ = other.autoMixedPrecision_;
autoMixedPrecisionMkl_ = other.autoMixedPrecisionMkl_;
autoMixedPrecisionOnednnBfloat16_ = other.autoMixedPrecisionOnednnBfloat16_;
autoMixedPrecisionCpu_ = other.autoMixedPrecisionCpu_;
disableMetaOptimizer_ = other.disableMetaOptimizer_;
usePluginOptimizers_ = other.usePluginOptimizers_;
experimentalConditionalCodeMotion_ = other.experimentalConditionalCodeMotion_;
metaOptimizerIterations_ = other.metaOptimizerIterations_;
minGraphNodes_ = other.minGraphNodes_;
experimentalDisableCompressedTensorOptimization_ = other.experimentalDisableCompressedTensorOptimization_;
experimentalDisableFoldingQuantizationEmulation_ = other.experimentalDisableFoldingQuantizationEmulation_;
memoryOptimization_ = other.memoryOptimization_;
memoryOptimizerTargetNodeNameScope_ = other.memoryOptimizerTargetNodeNameScope_;
metaOptimizerTimeoutMs_ = other.metaOptimizerTimeoutMs_;
autoParallel_ = other.autoParallel_ != null ? other.autoParallel_.Clone() : null;
failOnOptimizerErrors_ = other.failOnOptimizerErrors_;
scopedAllocatorOpts_ = other.scopedAllocatorOpts_ != null ? other.scopedAllocatorOpts_.Clone() : null;
optimizers_ = other.optimizers_.Clone();
customOptimizers_ = other.customOptimizers_.Clone();
interOptimizerVerifierConfig_ = other.interOptimizerVerifierConfig_ != null ? other.interOptimizerVerifierConfig_.Clone() : null;
postOptimizationVerifierConfig_ = other.postOptimizationVerifierConfig_ != null ? other.postOptimizationVerifierConfig_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RewriterConfig Clone() {
return new RewriterConfig(this);
}
/// <summary>Field number for the "cpu_layout_conversion" field.</summary>
public const int CpuLayoutConversionFieldNumber = 50;
private global::Tensorflow.RewriterConfig.Types.CpuLayout cpuLayoutConversion_ = global::Tensorflow.RewriterConfig.Types.CpuLayout.NoConversionOnCpu;
/// <summary>
/// CPU Conversion settings between NHCW and NCHW.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.CpuLayout CpuLayoutConversion {
get { return cpuLayoutConversion_; }
set {
cpuLayoutConversion_ = value;
}
}
/// <summary>Field number for the "layout_optimizer" field.</summary>
public const int LayoutOptimizerFieldNumber = 1;
private global::Tensorflow.RewriterConfig.Types.Toggle layoutOptimizer_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Optimize tensor layouts (default is ON)
/// e.g. This will try to use NCHW layout on GPU which is faster.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle LayoutOptimizer {
get { return layoutOptimizer_; }
set {
layoutOptimizer_ = value;
}
}
/// <summary>Field number for the "constant_folding" field.</summary>
public const int ConstantFoldingFieldNumber = 3;
private global::Tensorflow.RewriterConfig.Types.Toggle constantFolding_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Fold constants (default is ON)
/// Statically infer the value of tensors when possible, and materialize the
/// result using constants.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle ConstantFolding {
get { return constantFolding_; }
set {
constantFolding_ = value;
}
}
/// <summary>Field number for the "shape_optimization" field.</summary>
public const int ShapeOptimizationFieldNumber = 13;
private global::Tensorflow.RewriterConfig.Types.Toggle shapeOptimization_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Shape optimizations (default is ON)
/// Simplify computations made on shapes.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle ShapeOptimization {
get { return shapeOptimization_; }
set {
shapeOptimization_ = value;
}
}
/// <summary>Field number for the "remapping" field.</summary>
public const int RemappingFieldNumber = 14;
private global::Tensorflow.RewriterConfig.Types.Toggle remapping_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Remapping (default is ON)
/// Remap subgraphs onto more efficient implementations.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle Remapping {
get { return remapping_; }
set {
remapping_ = value;
}
}
/// <summary>Field number for the "common_subgraph_elimination" field.</summary>
public const int CommonSubgraphEliminationFieldNumber = 24;
private global::Tensorflow.RewriterConfig.Types.Toggle commonSubgraphElimination_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Common subgraph elimination (default is ON)
/// e.g. Simplify arithmetic ops; merge ops with same value (like constants).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle CommonSubgraphElimination {
get { return commonSubgraphElimination_; }
set {
commonSubgraphElimination_ = value;
}
}
/// <summary>Field number for the "arithmetic_optimization" field.</summary>
public const int ArithmeticOptimizationFieldNumber = 7;
private global::Tensorflow.RewriterConfig.Types.Toggle arithmeticOptimization_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Arithmetic optimizations (default is ON)
/// e.g. Simplify arithmetic ops; merge ops with same value (like constants).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle ArithmeticOptimization {
get { return arithmeticOptimization_; }
set {
arithmeticOptimization_ = value;
}
}
/// <summary>Field number for the "dependency_optimization" field.</summary>
public const int DependencyOptimizationFieldNumber = 8;
private global::Tensorflow.RewriterConfig.Types.Toggle dependencyOptimization_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Control dependency optimizations (default is ON).
/// Remove redundant control dependencies, which may enable other optimization.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle DependencyOptimization {
get { return dependencyOptimization_; }
set {
dependencyOptimization_ = value;
}
}
/// <summary>Field number for the "loop_optimization" field.</summary>
public const int LoopOptimizationFieldNumber = 9;
private global::Tensorflow.RewriterConfig.Types.Toggle loopOptimization_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Loop optimizations (default is ON).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle LoopOptimization {
get { return loopOptimization_; }
set {
loopOptimization_ = value;
}
}
/// <summary>Field number for the "function_optimization" field.</summary>
public const int FunctionOptimizationFieldNumber = 10;
private global::Tensorflow.RewriterConfig.Types.Toggle functionOptimization_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Function optimizations (default is ON).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle FunctionOptimization {
get { return functionOptimization_; }
set {
functionOptimization_ = value;
}
}
/// <summary>Field number for the "debug_stripper" field.</summary>
public const int DebugStripperFieldNumber = 11;
private global::Tensorflow.RewriterConfig.Types.Toggle debugStripper_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Strips debug-related nodes from the graph (off by default).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle DebugStripper {
get { return debugStripper_; }
set {
debugStripper_ = value;
}
}
/// <summary>Field number for the "disable_model_pruning" field.</summary>
public const int DisableModelPruningFieldNumber = 2;
private bool disableModelPruning_;
/// <summary>
/// If true, don't remove unnecessary ops from the graph
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool DisableModelPruning {
get { return disableModelPruning_; }
set {
disableModelPruning_ = value;
}
}
/// <summary>Field number for the "scoped_allocator_optimization" field.</summary>
public const int ScopedAllocatorOptimizationFieldNumber = 15;
private global::Tensorflow.RewriterConfig.Types.Toggle scopedAllocatorOptimization_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Try to allocate some independent Op outputs contiguously in order to
/// merge or eliminate downstream Ops (off by default).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle ScopedAllocatorOptimization {
get { return scopedAllocatorOptimization_; }
set {
scopedAllocatorOptimization_ = value;
}
}
/// <summary>Field number for the "pin_to_host_optimization" field.</summary>
public const int PinToHostOptimizationFieldNumber = 18;
private global::Tensorflow.RewriterConfig.Types.Toggle pinToHostOptimization_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Force small ops onto the CPU (default is OFF).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle PinToHostOptimization {
get { return pinToHostOptimization_; }
set {
pinToHostOptimization_ = value;
}
}
/// <summary>Field number for the "implementation_selector" field.</summary>
public const int ImplementationSelectorFieldNumber = 22;
private global::Tensorflow.RewriterConfig.Types.Toggle implementationSelector_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Enable the swap of kernel implementations based on the device placement
/// (default is ON).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle ImplementationSelector {
get { return implementationSelector_; }
set {
implementationSelector_ = value;
}
}
/// <summary>Field number for the "auto_mixed_precision" field.</summary>
public const int AutoMixedPrecisionFieldNumber = 23;
private global::Tensorflow.RewriterConfig.Types.Toggle autoMixedPrecision_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Optimize data types for CUDA (default is OFF).
/// This will try to use float16 on GPU which is faster.
/// Note that this can change the numerical stability of the graph and may
/// require the use of loss scaling to maintain model convergence.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle AutoMixedPrecision {
get { return autoMixedPrecision_; }
set {
autoMixedPrecision_ = value;
}
}
/// <summary>Field number for the "auto_mixed_precision_mkl" field.</summary>
public const int AutoMixedPrecisionMklFieldNumber = 25;
private global::Tensorflow.RewriterConfig.Types.Toggle autoMixedPrecisionMkl_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Optimize data types for oneDNN (default is OFF).
/// This will try to use bfloat16 on CPUs, which is faster.
/// Note that this can change the numerical stability of the graph.
/// Note: this is deprecated.
/// It is replaced by auto_mixed_precision_onednn_bfloat16
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle AutoMixedPrecisionMkl {
get { return autoMixedPrecisionMkl_; }
set {
autoMixedPrecisionMkl_ = value;
}
}
/// <summary>Field number for the "auto_mixed_precision_onednn_bfloat16" field.</summary>
public const int AutoMixedPrecisionOnednnBfloat16FieldNumber = 31;
private global::Tensorflow.RewriterConfig.Types.Toggle autoMixedPrecisionOnednnBfloat16_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Optimize data types for oneDNN (default is OFF).
/// This will try to use bfloat16 on CPUs, which is faster.
/// Note that this can change the numerical stability of the graph.
/// Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle AutoMixedPrecisionOnednnBfloat16 {
get { return autoMixedPrecisionOnednnBfloat16_; }
set {
autoMixedPrecisionOnednnBfloat16_ = value;
}
}
/// <summary>Field number for the "auto_mixed_precision_cpu" field.</summary>
public const int AutoMixedPrecisionCpuFieldNumber = 29;
private global::Tensorflow.RewriterConfig.Types.Toggle autoMixedPrecisionCpu_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Emulate a model using data type float16 on CPU (default is OFF).
/// This will try to emulate the float16 inputs and outputs of an operator
/// on CPU to have better correlation with float16 on GPU; however the
/// computation in the operator is based on float32.
/// Note that this can change the numerical stability of the graph.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle AutoMixedPrecisionCpu {
get { return autoMixedPrecisionCpu_; }
set {
autoMixedPrecisionCpu_ = value;
}
}
/// <summary>Field number for the "disable_meta_optimizer" field.</summary>
public const int DisableMetaOptimizerFieldNumber = 19;
private bool disableMetaOptimizer_;
/// <summary>
/// Disable the entire meta optimizer (off by default).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool DisableMetaOptimizer {
get { return disableMetaOptimizer_; }
set {
disableMetaOptimizer_ = value;
}
}
/// <summary>Field number for the "use_plugin_optimizers" field.</summary>
public const int UsePluginOptimizersFieldNumber = 28;
private global::Tensorflow.RewriterConfig.Types.Toggle usePluginOptimizers_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Optimizers registered by plugin (default is ON)
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle UsePluginOptimizers {
get { return usePluginOptimizers_; }
set {
usePluginOptimizers_ = value;
}
}
/// <summary>Field number for the "experimental_conditional_code_motion" field.</summary>
public const int ExperimentalConditionalCodeMotionFieldNumber = 30;
private global::Tensorflow.RewriterConfig.Types.Toggle experimentalConditionalCodeMotion_ = global::Tensorflow.RewriterConfig.Types.Toggle.Default;
/// <summary>
/// Conditional code motion (default is ON).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.Toggle ExperimentalConditionalCodeMotion {
get { return experimentalConditionalCodeMotion_; }
set {
experimentalConditionalCodeMotion_ = value;
}
}
/// <summary>Field number for the "meta_optimizer_iterations" field.</summary>
public const int MetaOptimizerIterationsFieldNumber = 12;
private global::Tensorflow.RewriterConfig.Types.NumIterationsType metaOptimizerIterations_ = global::Tensorflow.RewriterConfig.Types.NumIterationsType.DefaultNumIters;
/// <summary>
/// Controls how many times we run the optimizers in meta optimizer (default
/// is once).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.RewriterConfig.Types.NumIterationsType MetaOptimizerIterations {
get { return metaOptimizerIterations_; }
set {
metaOptimizerIterations_ = value;
}
}
/// <summary>Field number for the "min_graph_nodes" field.</summary>
public const int MinGraphNodesFieldNumber = 17;
private int minGraphNodes_;
/// <summary>
/// The minimum number of nodes in a graph to optimizer. For smaller graphs,
/// optimization is skipped.
/// 0 means the system picks an appropriate number.
/// < 0 means do not skip optimization.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int MinGraphNodes {
get { return minGraphNodes_; }
set {
minGraphNodes_ = value;
}
}
/// <summary>Field number for the "experimental_disable_compressed_tensor_optimization" field.</summary>
public const int ExperimentalDisableCompressedTensorOptimizationFieldNumber = 26;
private bool experimentalDisableCompressedTensorOptimization_;
/// <summary>
/// Disable optimizations that assume compressed tensors. Note that this flag
/// is experimental and may be removed in the future.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool ExperimentalDisableCompressedTensorOptimization {
get { return experimentalDisableCompressedTensorOptimization_; }
set {