forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHlo.cs
More file actions
11996 lines (11267 loc) · 461 KB
/
Hlo.cs
File metadata and controls
11996 lines (11267 loc) · 461 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/compiler/xla/service/hlo.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 Xla {
/// <summary>Holder for reflection information generated from tensorflow/compiler/xla/service/hlo.proto</summary>
public static partial class HloReflection {
#region Descriptor
/// <summary>File descriptor for tensorflow/compiler/xla/service/hlo.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static HloReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cil0ZW5zb3JmbG93L2NvbXBpbGVyL3hsYS9zZXJ2aWNlL2hsby5wcm90bxID",
"eGxhGiZ0ZW5zb3JmbG93L2NvbXBpbGVyL3hsYS94bGFfZGF0YS5wcm90byKV",
"FQoTSGxvSW5zdHJ1Y3Rpb25Qcm90bxIMCgRuYW1lGAEgASgJEg4KBm9wY29k",
"ZRgCIAEoCRIeCgVzaGFwZRgDIAEoCzIPLnhsYS5TaGFwZVByb3RvEiEKCG1l",
"dGFkYXRhGAcgASgLMg8ueGxhLk9wTWV0YWRhdGESIgoHbGl0ZXJhbBgIIAEo",
"CzIRLnhsYS5MaXRlcmFsUHJvdG8SGAoQcGFyYW1ldGVyX251bWJlchgJIAEo",
"AxITCgtmdXNpb25fa2luZBgLIAEoCRITCgt0dXBsZV9pbmRleBgNIAEoAxIS",
"CgpkaW1lbnNpb25zGA4gAygDEhsKBndpbmRvdxgPIAEoCzILLnhsYS5XaW5k",
"b3cSRwodY29udm9sdXRpb25fZGltZW5zaW9uX251bWJlcnMYECABKAsyIC54",
"bGEuQ29udm9sdXRpb25EaW1l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1dGFibGVQ",
"cm90bxItChBobG9fbW9kdWxlX3Byb3RvGAEgASgLMhMueGxhLkhsb01vZHVs",
"ZVByb3RvEjYKEGVudHJ5X2Z1bmNfYXR0cnMYAiABKAsyHC54bGEuRW50cnlG",
"dW5jdGlvbkF0dHJpYnV0ZXMSEAoIb2JqX2ZpbGUYAyABKAwSEwoLbWxpcl9t",
"b2R1bGUYBCABKAkqUwoSQ3VzdG9tQ2FsbFNjaGVkdWxlEhEKDVNDSEVEVUxF",
"X05PTkUQABITCg9TQ0hFRFVMRV9MQVRFU1QQARIVChFTQ0hFRFVMRV9FQVJM",
"SUVTVBACKpkBChRDdXN0b21DYWxsQXBpVmVyc2lvbhIbChdBUElfVkVSU0lP",
"Tl9VTlNQRUNJRklFRBAAEhgKFEFQSV9WRVJTSU9OX09SSUdJTkFMEAESIAoc",
"QVBJX1ZFUlNJT05fU1RBVFVTX1JFVFVSTklORxACEigKJEFQSV9WRVJTSU9O",
"X1NUQVRVU19SRVRVUk5JTkdfVU5JRklFRBADKjoKBEtpbmQSEwoPVU5ERUZJ",
"TkVEX0FMSUFTEAASDQoJTUFZX0FMSUFTEAESDgoKTVVTVF9BTElBUxACQgP4",
"AQFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Xla.XlaDataReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Xla.CustomCallSchedule), typeof(global::Xla.CustomCallApiVersion), typeof(global::Xla.Kind), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloInstructionProto), global::Xla.HloInstructionProto.Parser, new[]{ "Name", "Opcode", "Shape", "Metadata", "Literal", "ParameterNumber", "FusionKind", "TupleIndex", "Dimensions", "Window", "ConvolutionDimensionNumbers", "FeatureGroupCount", "BatchGroupCount", "SliceDimensions", "ExponentBits", "MantissaBits", "DynamicSliceSizes", "PaddingConfig", "OutfeedConfig", "Distribution", "Epsilon", "FeatureIndex", "ChannelId", "InfeedConfig", "CustomCallTarget", "OutfeedShape", "DotDimensionNumbers", "FftType", "FftLength", "ComparisonDirection", "GatherDimensionNumbers", "GatherSliceSizes", "Id", "OperandIds", "ControlPredecessorIds", "CalledComputationIds", "Sharding", "BackendConfig", "ReplicaGroups", "AllReduceId", "UseGlobalDeviceIds", "IsHostTransfer", "IsStable", "ScatterDimensionNumbers", "PrecisionConfig", "SourceTargetPairs", "DomainEntrySharding", "DomainExitSharding", "ConstrainLayout", "OperandShapesWithLayout", "TriangularSolveOptions", "CholeskyOptions", "ParameterReplication", "CustomCallHasSideEffect", "CustomCallOutputOperandAliasing", "CustomCallSchedule", "Delta", "IndicesAreSorted", "FrontendAttributes", "UniqueIndices", "RngAlgorithm", "ComparisonType", "IsCrossProgramPrefetch", "PaddingType", "CustomCallApiVersion", "AsyncGroupId", "AsyncExecutionThread" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloInstructionProto.Types.SliceDimensions), global::Xla.HloInstructionProto.Types.SliceDimensions.Parser, new[]{ "Start", "Limit", "Stride" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloComputationProto), global::Xla.HloComputationProto.Parser, new[]{ "Name", "Instructions", "ProgramShape", "Id", "RootId", "IsFusionComputation", "ExecutionThread" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloScheduleProto), global::Xla.HloScheduleProto.Parser, new[]{ "Sequences" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloScheduleProto.Types.InstructionSequence), global::Xla.HloScheduleProto.Types.InstructionSequence.Parser, new[]{ "InstructionIds" }, null, null, null, null),
null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloInputOutputAliasProto), global::Xla.HloInputOutputAliasProto.Parser, new[]{ "Entries" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloInputOutputAliasProto.Types.AliasEntryProto), global::Xla.HloInputOutputAliasProto.Types.AliasEntryProto.Parser, new[]{ "OutputShapeIndex", "ParameterNumber", "ParameterShapeIndex", "Kind" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.DynamicParameterBindingProto), global::Xla.DynamicParameterBindingProto.Parser, new[]{ "Entries" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.DynamicParameterBindingProto.Types.Binding), global::Xla.DynamicParameterBindingProto.Types.Binding.Parser, new[]{ "DynamicParamNum", "DynamicParamIndex", "TargetParamNum", "TargetParamIndex", "TargetParamDimNum" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.CrossProgramPrefetch), global::Xla.CrossProgramPrefetch.Parser, new[]{ "Parameter", "Index" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloModuleProto), global::Xla.HloModuleProto.Parser, new[]{ "Name", "EntryComputationName", "EntryComputationId", "Computations", "HostProgramShape", "Id", "Schedule", "InputOutputAlias", "DynamicParameterBinding", "CrossProgramPrefetches", "IsDynamic", "SpmdOutputSharding", "SpmdParametersShardings", "UseAutoSpmdPartitioning", "ProfileInfo", "DeviceAssignment" }, null, new[]{ typeof(global::Xla.HloModuleProto.Types.ProfileType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloModuleProto.Types.ProfileInfo), global::Xla.HloModuleProto.Types.ProfileInfo.Parser, new[]{ "ProfileType", "RelativeSpeedup", "ProfileSource", "CompilationEvent" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.LogicalBufferProto), global::Xla.LogicalBufferProto.Parser, new[]{ "Id", "Size", "DefinedAt", "Color" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.LogicalBufferProto.Types.Location), global::Xla.LogicalBufferProto.Types.Location.Parser, new[]{ "ComputationName", "InstructionName", "InstructionId", "ShapeIndex" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.BufferAllocationProto), global::Xla.BufferAllocationProto.Parser, new[]{ "Index", "Size", "IsThreadLocal", "IsTuple", "IsEntryComputationParameter", "IsConstant", "ParameterNumber", "ParameterShapeIndex", "MaybeLiveOut", "Color", "Assigned" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.BufferAllocationProto.Types.Assigned), global::Xla.BufferAllocationProto.Types.Assigned.Parser, new[]{ "LogicalBufferId", "Offset", "Size" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HeapSimulatorTrace), global::Xla.HeapSimulatorTrace.Parser, new[]{ "Events", "WholeModuleSimulation", "BufferAllocationIndex" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HeapSimulatorTrace.Types.Event), global::Xla.HeapSimulatorTrace.Types.Event.Parser, new[]{ "Kind", "BufferId", "ComputationName", "InstructionName", "ShareWithCanonicalId" }, null, new[]{ typeof(global::Xla.HeapSimulatorTrace.Types.Event.Types.Kind) }, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloModuleGroupProto), global::Xla.HloModuleGroupProto.Parser, new[]{ "Name", "HloModules" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.BufferAssignmentProto), global::Xla.BufferAssignmentProto.Parser, new[]{ "LogicalBuffers", "BufferAliases", "BufferAllocations", "HeapSimulatorTraces" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.BufferAssignmentProto.Types.BufferAlias), global::Xla.BufferAssignmentProto.Types.BufferAlias.Parser, new[]{ "SourceBufferId", "Location" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloProto), global::Xla.HloProto.Parser, new[]{ "HloModule", "BufferAssignment" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloSnapshot), global::Xla.HloSnapshot.Parser, new[]{ "Hlo", "Arguments", "Result", "ExecutionPlatform" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloModuleMetadataProto), global::Xla.HloModuleMetadataProto.Parser, new[]{ "CanonicalModuleId", "ModuleGroupName", "OriginalModuleId", "PartitionedModuleIds", "PassMetadata" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.HloPassMetadata), global::Xla.HloPassMetadata.Parser, new[]{ "PassId", "PassName", "PipelineName", "DumpFilenames", "ModuleChanged", "ModuleId", "ModuleGroupModuleIds", "StartTimestampUsec", "EndTimestampUsec" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.EntryFunctionAttributes), global::Xla.EntryFunctionAttributes.Parser, new[]{ "Buffers", "ResultXlaShape" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Xla.EntryFunctionAttributes.Types.ShapeIndex), global::Xla.EntryFunctionAttributes.Types.ShapeIndex.Parser, new[]{ "Indices" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.EntryFunctionAttributes.Types.BufferParameterAttributes), global::Xla.EntryFunctionAttributes.Types.BufferParameterAttributes.Parser, new[]{ "LmhloParams", "LmhloParamsPresent", "LmhloParamShapeIndex", "LmhloConstantName", "LmhloMustAlias", "LmhloOutputIndex" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Xla.XlaRuntimeExecutableProto), global::Xla.XlaRuntimeExecutableProto.Parser, new[]{ "HloModuleProto", "EntryFuncAttrs", "ObjFile", "MlirModule" }, null, null, null, null)
}));
}
#endregion
}
#region Enums
public enum CustomCallSchedule {
[pbr::OriginalName("SCHEDULE_NONE")] ScheduleNone = 0,
[pbr::OriginalName("SCHEDULE_LATEST")] ScheduleLatest = 1,
[pbr::OriginalName("SCHEDULE_EARLIEST")] ScheduleEarliest = 2,
}
/// <summary>
/// The version of the API used by the custom call function. The signatures for
/// each version are given below.
/// TODO(b/189822916): Remove this enum when all clients are migrated to the
/// status-returning API.
/// </summary>
public enum CustomCallApiVersion {
[pbr::OriginalName("API_VERSION_UNSPECIFIED")] ApiVersionUnspecified = 0,
/// <summary>
/// The first version of the API, with the following signatures:
///
/// CPU:
/// void do_custom_call(void* out, const void** in);
///
/// GPU:
/// void do_custom_call(CUstream stream, void** buffers,
/// const char* opaque, size_t opaque_len);
/// </summary>
[pbr::OriginalName("API_VERSION_ORIGINAL")] ApiVersionOriginal = 1,
/// <summary>
/// When the ability to return success/failure status was added:
///
/// CPU:
/// void do_custom_call(void* out, const void** in,
/// XlaCustomCallStatus* status);
///
/// GPU:
/// void do_custom_call(CUstream stream, void** buffers,
/// const char* opaque, size_t opaque_len,
/// XlaCustomCallStatus* status);
/// </summary>
[pbr::OriginalName("API_VERSION_STATUS_RETURNING")] ApiVersionStatusReturning = 2,
/// <summary>
/// Fixes the API signatures on the CPU side of the version STATUS_RETURNING by
/// adding the opaque string so that the custom call API is consistent across
/// CPUs and GPUs. For GPUs, the behaviors invoked by
/// API_VERSION_STATUS_RETURNING and API_VERSION_STATUS_RETURNING_UNIFIED are
/// the same.
///
/// CPU:
/// void do_custom_call(void* out, const void** in,
/// const char* opaque, size_t opaque_len,
/// XlaCustomCallStatus* status);
///
/// GPU:
/// void do_custom_call(CUstream stream, void** buffers,
/// const char* opaque, size_t opaque_len,
/// XlaCustomCallStatus* status);
/// </summary>
[pbr::OriginalName("API_VERSION_STATUS_RETURNING_UNIFIED")] ApiVersionStatusReturningUnified = 3,
}
public enum Kind {
/// <summary>
/// Define a UNDEFINED_ALIAS equal to zero to get around the default-0 proto3
/// behavior and missing has_*() APIs.
/// </summary>
[pbr::OriginalName("UNDEFINED_ALIAS")] UndefinedAlias = 0,
/// <summary>
/// The buffers may or may not alias at runtime.
/// </summary>
[pbr::OriginalName("MAY_ALIAS")] MayAlias = 1,
/// <summary>
/// The buffers must alias at runtime.
/// </summary>
[pbr::OriginalName("MUST_ALIAS")] MustAlias = 2,
}
#endregion
#region Messages
/// <summary>
/// Serialization of HloInstruction.
/// Next ID: 80
/// </summary>
public sealed partial class HloInstructionProto : pb::IMessage<HloInstructionProto>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<HloInstructionProto> _parser = new pb::MessageParser<HloInstructionProto>(() => new HloInstructionProto());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<HloInstructionProto> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Xla.HloReflection.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 HloInstructionProto() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public HloInstructionProto(HloInstructionProto other) : this() {
name_ = other.name_;
opcode_ = other.opcode_;
shape_ = other.shape_ != null ? other.shape_.Clone() : null;
metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null;
literal_ = other.literal_ != null ? other.literal_.Clone() : null;
parameterNumber_ = other.parameterNumber_;
fusionKind_ = other.fusionKind_;
tupleIndex_ = other.tupleIndex_;
dimensions_ = other.dimensions_.Clone();
window_ = other.window_ != null ? other.window_.Clone() : null;
convolutionDimensionNumbers_ = other.convolutionDimensionNumbers_ != null ? other.convolutionDimensionNumbers_.Clone() : null;
featureGroupCount_ = other.featureGroupCount_;
batchGroupCount_ = other.batchGroupCount_;
sliceDimensions_ = other.sliceDimensions_.Clone();
exponentBits_ = other.exponentBits_;
mantissaBits_ = other.mantissaBits_;
dynamicSliceSizes_ = other.dynamicSliceSizes_.Clone();
paddingConfig_ = other.paddingConfig_ != null ? other.paddingConfig_.Clone() : null;
outfeedConfig_ = other.outfeedConfig_;
distribution_ = other.distribution_;
epsilon_ = other.epsilon_;
featureIndex_ = other.featureIndex_;
channelId_ = other.channelId_;
infeedConfig_ = other.infeedConfig_;
customCallTarget_ = other.customCallTarget_;
outfeedShape_ = other.outfeedShape_ != null ? other.outfeedShape_.Clone() : null;
dotDimensionNumbers_ = other.dotDimensionNumbers_ != null ? other.dotDimensionNumbers_.Clone() : null;
fftType_ = other.fftType_;
fftLength_ = other.fftLength_.Clone();
comparisonDirection_ = other.comparisonDirection_;
gatherDimensionNumbers_ = other.gatherDimensionNumbers_ != null ? other.gatherDimensionNumbers_.Clone() : null;
gatherSliceSizes_ = other.gatherSliceSizes_.Clone();
id_ = other.id_;
operandIds_ = other.operandIds_.Clone();
controlPredecessorIds_ = other.controlPredecessorIds_.Clone();
calledComputationIds_ = other.calledComputationIds_.Clone();
sharding_ = other.sharding_ != null ? other.sharding_.Clone() : null;
backendConfig_ = other.backendConfig_;
replicaGroups_ = other.replicaGroups_.Clone();
allReduceId_ = other.allReduceId_;
useGlobalDeviceIds_ = other.useGlobalDeviceIds_;
isHostTransfer_ = other.isHostTransfer_;
isStable_ = other.isStable_;
scatterDimensionNumbers_ = other.scatterDimensionNumbers_ != null ? other.scatterDimensionNumbers_.Clone() : null;
precisionConfig_ = other.precisionConfig_ != null ? other.precisionConfig_.Clone() : null;
sourceTargetPairs_ = other.sourceTargetPairs_.Clone();
domainEntrySharding_ = other.domainEntrySharding_ != null ? other.domainEntrySharding_.Clone() : null;
domainExitSharding_ = other.domainExitSharding_ != null ? other.domainExitSharding_.Clone() : null;
constrainLayout_ = other.constrainLayout_;
operandShapesWithLayout_ = other.operandShapesWithLayout_.Clone();
triangularSolveOptions_ = other.triangularSolveOptions_ != null ? other.triangularSolveOptions_.Clone() : null;
choleskyOptions_ = other.choleskyOptions_ != null ? other.choleskyOptions_.Clone() : null;
parameterReplication_ = other.parameterReplication_ != null ? other.parameterReplication_.Clone() : null;
customCallHasSideEffect_ = other.customCallHasSideEffect_;
customCallOutputOperandAliasing_ = other.customCallOutputOperandAliasing_.Clone();
customCallSchedule_ = other.customCallSchedule_;
delta_ = other.delta_;
indicesAreSorted_ = other.indicesAreSorted_;
frontendAttributes_ = other.frontendAttributes_ != null ? other.frontendAttributes_.Clone() : null;
uniqueIndices_ = other.uniqueIndices_;
rngAlgorithm_ = other.rngAlgorithm_;
comparisonType_ = other.comparisonType_;
isCrossProgramPrefetch_ = other.isCrossProgramPrefetch_;
paddingType_ = other.paddingType_;
customCallApiVersion_ = other.customCallApiVersion_;
asyncGroupId_ = other.asyncGroupId_;
asyncExecutionThread_ = other.asyncExecutionThread_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public HloInstructionProto Clone() {
return new HloInstructionProto(this);
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 1;
private string name_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "opcode" field.</summary>
public const int OpcodeFieldNumber = 2;
private string opcode_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Opcode {
get { return opcode_; }
set {
opcode_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "shape" field.</summary>
public const int ShapeFieldNumber = 3;
private global::Xla.ShapeProto shape_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.ShapeProto Shape {
get { return shape_; }
set {
shape_ = value;
}
}
/// <summary>Field number for the "metadata" field.</summary>
public const int MetadataFieldNumber = 7;
private global::Xla.OpMetadata metadata_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.OpMetadata Metadata {
get { return metadata_; }
set {
metadata_ = value;
}
}
/// <summary>Field number for the "literal" field.</summary>
public const int LiteralFieldNumber = 8;
private global::Xla.LiteralProto literal_;
/// <summary>
/// Literal, only present for kConstant.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.LiteralProto Literal {
get { return literal_; }
set {
literal_ = value;
}
}
/// <summary>Field number for the "parameter_number" field.</summary>
public const int ParameterNumberFieldNumber = 9;
private long parameterNumber_;
/// <summary>
/// Parameter number is only present for kParameter.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long ParameterNumber {
get { return parameterNumber_; }
set {
parameterNumber_ = value;
}
}
/// <summary>Field number for the "fusion_kind" field.</summary>
public const int FusionKindFieldNumber = 11;
private string fusionKind_ = "";
/// <summary>
/// Fusion state, only present for kFusion.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string FusionKind {
get { return fusionKind_; }
set {
fusionKind_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "tuple_index" field.</summary>
public const int TupleIndexFieldNumber = 13;
private long tupleIndex_;
/// <summary>
/// Index for kGetTupleElement.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long TupleIndex {
get { return tupleIndex_; }
set {
tupleIndex_ = value;
}
}
/// <summary>Field number for the "dimensions" field.</summary>
public const int DimensionsFieldNumber = 14;
private static readonly pb::FieldCodec<long> _repeated_dimensions_codec
= pb::FieldCodec.ForInt64(114);
private readonly pbc::RepeatedField<long> dimensions_ = new pbc::RepeatedField<long>();
/// <summary>
/// Dimensions present for some operations that require reshaping or
/// broadcasting, including Reshape, Reduce, ReduceWindow, and Reverse.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<long> Dimensions {
get { return dimensions_; }
}
/// <summary>Field number for the "window" field.</summary>
public const int WindowFieldNumber = 15;
private global::Xla.Window window_;
/// <summary>
/// Describes the window in a windowed operation such as convolution.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.Window Window {
get { return window_; }
set {
window_ = value;
}
}
/// <summary>Field number for the "convolution_dimension_numbers" field.</summary>
public const int ConvolutionDimensionNumbersFieldNumber = 16;
private global::Xla.ConvolutionDimensionNumbers convolutionDimensionNumbers_;
/// <summary>
/// Describes the dimension numbers used for a convolution.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.ConvolutionDimensionNumbers ConvolutionDimensionNumbers {
get { return convolutionDimensionNumbers_; }
set {
convolutionDimensionNumbers_ = value;
}
}
/// <summary>Field number for the "feature_group_count" field.</summary>
public const int FeatureGroupCountFieldNumber = 50;
private long featureGroupCount_;
/// <summary>
/// The number of feature groups. Used for a convolution. Must be a divisor of
/// the input feature dimension and output feature dimension. If not specified,
/// it will use a default value of 1.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long FeatureGroupCount {
get { return featureGroupCount_; }
set {
featureGroupCount_ = value;
}
}
/// <summary>Field number for the "batch_group_count" field.</summary>
public const int BatchGroupCountFieldNumber = 58;
private long batchGroupCount_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long BatchGroupCount {
get { return batchGroupCount_; }
set {
batchGroupCount_ = value;
}
}
/// <summary>Field number for the "slice_dimensions" field.</summary>
public const int SliceDimensionsFieldNumber = 17;
private static readonly pb::FieldCodec<global::Xla.HloInstructionProto.Types.SliceDimensions> _repeated_sliceDimensions_codec
= pb::FieldCodec.ForMessage(138, global::Xla.HloInstructionProto.Types.SliceDimensions.Parser);
private readonly pbc::RepeatedField<global::Xla.HloInstructionProto.Types.SliceDimensions> sliceDimensions_ = new pbc::RepeatedField<global::Xla.HloInstructionProto.Types.SliceDimensions>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Xla.HloInstructionProto.Types.SliceDimensions> SliceDimensions {
get { return sliceDimensions_; }
}
/// <summary>Field number for the "exponent_bits" field.</summary>
public const int ExponentBitsFieldNumber = 18;
private int exponentBits_;
/// <summary>
/// The bit sizes for a reduce-precision operation.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ExponentBits {
get { return exponentBits_; }
set {
exponentBits_ = value;
}
}
/// <summary>Field number for the "mantissa_bits" field.</summary>
public const int MantissaBitsFieldNumber = 19;
private int mantissaBits_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int MantissaBits {
get { return mantissaBits_; }
set {
mantissaBits_ = value;
}
}
/// <summary>Field number for the "dynamic_slice_sizes" field.</summary>
public const int DynamicSliceSizesFieldNumber = 20;
private static readonly pb::FieldCodec<long> _repeated_dynamicSliceSizes_codec
= pb::FieldCodec.ForInt64(162);
private readonly pbc::RepeatedField<long> dynamicSliceSizes_ = new pbc::RepeatedField<long>();
/// <summary>
/// Describes the [start, start + size) range size for a dynamic slice
/// ('start' is specified dynamically in the second operand of the operation).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<long> DynamicSliceSizes {
get { return dynamicSliceSizes_; }
}
/// <summary>Field number for the "padding_config" field.</summary>
public const int PaddingConfigFieldNumber = 21;
private global::Xla.PaddingConfig paddingConfig_;
/// <summary>
/// The padding configuration that describes the edge padding and interior
/// padding of this pad instruction. Only set for pad instructions.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.PaddingConfig PaddingConfig {
get { return paddingConfig_; }
set {
paddingConfig_ = value;
}
}
/// <summary>Field number for the "outfeed_config" field.</summary>
public const int OutfeedConfigFieldNumber = 22;
private pb::ByteString outfeedConfig_ = pb::ByteString.Empty;
/// <summary>
/// Outfeed configuration information, only present for kOutfeed.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString OutfeedConfig {
get { return outfeedConfig_; }
set {
outfeedConfig_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "distribution" field.</summary>
public const int DistributionFieldNumber = 23;
private global::Xla.RandomDistribution distribution_ = global::Xla.RandomDistribution.RngInvalid;
/// <summary>
/// The distribution requested for random number generation.
/// Only present for kRng.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.RandomDistribution Distribution {
get { return distribution_; }
set {
distribution_ = value;
}
}
/// <summary>Field number for the "epsilon" field.</summary>
public const int EpsilonFieldNumber = 24;
private float epsilon_;
/// <summary>
/// A small float number added to the variance to avoid divide-by-zero error.
/// Only present for kBatchNormTraining, kBatchNormInference, and
/// kBatchNormGrad.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Epsilon {
get { return epsilon_; }
set {
epsilon_ = value;
}
}
/// <summary>Field number for the "feature_index" field.</summary>
public const int FeatureIndexFieldNumber = 25;
private long featureIndex_;
/// <summary>
/// An integer value representing the index of the feature dimension.
/// Only present for kBatchNormTraining, kBatchNormInference, and
/// kBatchNormGrad.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long FeatureIndex {
get { return featureIndex_; }
set {
featureIndex_ = value;
}
}
/// <summary>Field number for the "channel_id" field.</summary>
public const int ChannelIdFieldNumber = 26;
private long channelId_;
/// <summary>
/// Represents a unique identifier for each Send/Recv instruction pair or
/// optionally for collective instructions (AllReduce, CollectivePermute,
/// AllToAll). Non-positive channel_id is equivalent to no channel id.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long ChannelId {
get { return channelId_; }
set {
channelId_ = value;
}
}
/// <summary>Field number for the "infeed_config" field.</summary>
public const int InfeedConfigFieldNumber = 27;
private pb::ByteString infeedConfig_ = pb::ByteString.Empty;
/// <summary>
/// The string representation of the infeed configuration.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString InfeedConfig {
get { return infeedConfig_; }
set {
infeedConfig_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "custom_call_target" field.</summary>
public const int CustomCallTargetFieldNumber = 28;
private string customCallTarget_ = "";
/// <summary>
/// Name of a external target (eg, global symbol) to call, only present for
/// kCustomCall.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CustomCallTarget {
get { return customCallTarget_; }
set {
customCallTarget_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "outfeed_shape" field.</summary>
public const int OutfeedShapeFieldNumber = 29;
private global::Xla.ShapeProto outfeedShape_;
/// <summary>
/// Shape of outfeed request.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.ShapeProto OutfeedShape {
get { return outfeedShape_; }
set {
outfeedShape_ = value;
}
}
/// <summary>Field number for the "dot_dimension_numbers" field.</summary>
public const int DotDimensionNumbersFieldNumber = 30;
private global::Xla.DotDimensionNumbers dotDimensionNumbers_;
/// <summary>
/// Describes the dimension numbers used for a dot operation
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.DotDimensionNumbers DotDimensionNumbers {
get { return dotDimensionNumbers_; }
set {
dotDimensionNumbers_ = value;
}
}
/// <summary>Field number for the "fft_type" field.</summary>
public const int FftTypeFieldNumber = 31;
private global::Xla.FftType fftType_ = global::Xla.FftType.Fft;
/// <summary>
/// FFT type (FFT, IFFT, etc).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.FftType FftType {
get { return fftType_; }
set {
fftType_ = value;
}
}
/// <summary>Field number for the "fft_length" field.</summary>
public const int FftLengthFieldNumber = 32;
private static readonly pb::FieldCodec<long> _repeated_fftLength_codec
= pb::FieldCodec.ForInt64(258);
private readonly pbc::RepeatedField<long> fftLength_ = new pbc::RepeatedField<long>();
/// <summary>
/// FFT length.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<long> FftLength {
get { return fftLength_; }
}
/// <summary>Field number for the "comparison_direction" field.</summary>
public const int ComparisonDirectionFieldNumber = 63;
private string comparisonDirection_ = "";
/// <summary>
/// Comparison direction only used for kCompare.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ComparisonDirection {
get { return comparisonDirection_; }
set {
comparisonDirection_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "gather_dimension_numbers" field.</summary>
public const int GatherDimensionNumbersFieldNumber = 33;
private global::Xla.GatherDimensionNumbers gatherDimensionNumbers_;
/// <summary>
/// Gather dimension numbers.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.GatherDimensionNumbers GatherDimensionNumbers {
get { return gatherDimensionNumbers_; }
set {
gatherDimensionNumbers_ = value;
}
}
/// <summary>Field number for the "gather_slice_sizes" field.</summary>
public const int GatherSliceSizesFieldNumber = 34;
private static readonly pb::FieldCodec<long> _repeated_gatherSliceSizes_codec
= pb::FieldCodec.ForInt64(274);
private readonly pbc::RepeatedField<long> gatherSliceSizes_ = new pbc::RepeatedField<long>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<long> GatherSliceSizes {
get { return gatherSliceSizes_; }
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 35;
private long id_;
/// <summary>
/// The id of this instruction.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long Id {
get { return id_; }
set {
id_ = value;
}
}
/// <summary>Field number for the "operand_ids" field.</summary>
public const int OperandIdsFieldNumber = 36;
private static readonly pb::FieldCodec<long> _repeated_operandIds_codec
= pb::FieldCodec.ForInt64(290);
private readonly pbc::RepeatedField<long> operandIds_ = new pbc::RepeatedField<long>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<long> OperandIds {
get { return operandIds_; }
}
/// <summary>Field number for the "control_predecessor_ids" field.</summary>
public const int ControlPredecessorIdsFieldNumber = 37;
private static readonly pb::FieldCodec<long> _repeated_controlPredecessorIds_codec
= pb::FieldCodec.ForInt64(298);
private readonly pbc::RepeatedField<long> controlPredecessorIds_ = new pbc::RepeatedField<long>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<long> ControlPredecessorIds {
get { return controlPredecessorIds_; }
}
/// <summary>Field number for the "called_computation_ids" field.</summary>
public const int CalledComputationIdsFieldNumber = 38;
private static readonly pb::FieldCodec<long> _repeated_calledComputationIds_codec
= pb::FieldCodec.ForInt64(306);
private readonly pbc::RepeatedField<long> calledComputationIds_ = new pbc::RepeatedField<long>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<long> CalledComputationIds {
get { return calledComputationIds_; }
}
/// <summary>Field number for the "sharding" field.</summary>
public const int ShardingFieldNumber = 40;
private global::Xla.OpSharding sharding_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Xla.OpSharding Sharding {
get { return sharding_; }
set {
sharding_ = value;
}
}
/// <summary>Field number for the "backend_config" field.</summary>
public const int BackendConfigFieldNumber = 43;
private pb::ByteString backendConfig_ = pb::ByteString.Empty;
/// <summary>
/// Backend configuration for the instruction. Has backend-specific meaning.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString BackendConfig {
get { return backendConfig_; }
set {
backendConfig_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "replica_groups" field.</summary>
public const int ReplicaGroupsFieldNumber = 49;
private static readonly pb::FieldCodec<global::Xla.ReplicaGroup> _repeated_replicaGroups_codec
= pb::FieldCodec.ForMessage(394, global::Xla.ReplicaGroup.Parser);
private readonly pbc::RepeatedField<global::Xla.ReplicaGroup> replicaGroups_ = new pbc::RepeatedField<global::Xla.ReplicaGroup>();
/// <summary>
/// Cross replica op fields.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Xla.ReplicaGroup> ReplicaGroups {
get { return replicaGroups_; }
}
/// <summary>Field number for the "all_reduce_id" field.</summary>
public const int AllReduceIdFieldNumber = 45;
private long allReduceId_;
/// <summary>
/// Deprecated, but keeping it for backward compatibility. Use channel_id.
/// Non-positive all_reduce_id is equivalent to no all_reduce_id.
/// </summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long AllReduceId {
get { return allReduceId_; }
set {
allReduceId_ = value;
}
}
/// <summary>Field number for the "use_global_device_ids" field.</summary>
public const int UseGlobalDeviceIdsFieldNumber = 71;
private bool useGlobalDeviceIds_;
/// <summary>
/// If true, interprets ids in ReplicaGroup as global device ids, which is
/// a linearized id of `replica_id * partition_count + partition_id`.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool UseGlobalDeviceIds {
get { return useGlobalDeviceIds_; }