-
Notifications
You must be signed in to change notification settings - Fork 539
Expand file tree
/
Copy pathConfig.cs
More file actions
7974 lines (7534 loc) · 323 KB
/
Config.cs
File metadata and controls
7974 lines (7534 loc) · 323 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/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/config.proto</summary>
public static partial class ConfigReflection {
#region Descriptor
/// <summary>File descriptor for tensorflow/core/protobuf/config.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ConfigReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiV0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvY29uZmlnLnByb3RvEgp0ZW5z",
"b3JmbG93Gip0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL2Nvc3RfZ3JhcGgu",
"cHJvdG8aJXRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvZ3JhcGgucHJvdG8a",
"KnRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvc3RlcF9zdGF0cy5wcm90bxom",
"dGVuc29yZmxvdy9jb3JlL3Byb3RvYnVmL2NsdXN0ZXIucHJvdG8aMnRlbnNv",
"cmZsb3cvY29yZS9wcm90b2J1Zi9jb29yZGluYXRpb25fY29uZmlnLnByb3Rv",
"GiR0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvZGVidWcucHJvdG8aLnRlbnNv",
"cmZsb3cvY29yZS9wcm90b2J1Zi9yZXdyaXRlcl9jb25maWcucHJvdG8i1wYK",
"CkdQVU9wdGlvbnMSJwofcGVyX3Byb2Nlc3NfZ3B1X21lbW9yeV9mcmFjdGlv",
"bhgBIAEoARIUCgxhbGxvd19ncm93dGgYBCABKAgSFgo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jm",
"bG93L3RlbnNvcmZsb3cvZ28vY29yZS9wcm90b2J1Zi9mb3JfY29yZV9wcm90",
"b3NfZ29fcHJvdG/4AQFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tensorflow.CostGraphReflection.Descriptor, global::Tensorflow.GraphReflection.Descriptor, global::Tensorflow.StepStatsReflection.Descriptor, global::Tensorflow.ClusterReflection.Descriptor, global::Tensorflow.CoordinationConfigReflection.Descriptor, global::Tensorflow.DebugReflection.Descriptor, global::Tensorflow.RewriterConfigReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.GPUOptions), global::Tensorflow.GPUOptions.Parser, new[]{ "PerProcessGpuMemoryFraction", "AllowGrowth", "AllocatorType", "DeferredDeletionBytes", "VisibleDeviceList", "PollingActiveDelayUsecs", "PollingInactiveDelayMsecs", "ForceGpuCompatible", "Experimental" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.GPUOptions.Types.Experimental), global::Tensorflow.GPUOptions.Types.Experimental.Parser, new[]{ "VirtualDevices", "UseUnifiedMemory", "NumDevToDevCopyStreams", "CollectiveRingOrder", "TimestampedAllocator", "KernelTrackerMaxInterval", "KernelTrackerMaxBytes", "KernelTrackerMaxPending", "InternalFragmentationFraction", "UseCudaMallocAsync", "DisallowRetryOnAllocationFailure" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices), global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices.Parser, new[]{ "MemoryLimitMb", "Priority", "DeviceOrdinal" }, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.OptimizerOptions), global::Tensorflow.OptimizerOptions.Parser, new[]{ "DoCommonSubexpressionElimination", "DoConstantFolding", "MaxFoldedConstantInBytes", "DoFunctionInlining", "OptLevel", "GlobalJitLevel", "CpuGlobalJit" }, null, new[]{ typeof(global::Tensorflow.OptimizerOptions.Types.Level), typeof(global::Tensorflow.OptimizerOptions.Types.GlobalJitLevel) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.GraphOptions), global::Tensorflow.GraphOptions.Parser, new[]{ "EnableRecvScheduling", "OptimizerOptions", "BuildCostModel", "BuildCostModelAfter", "InferShapes", "PlacePrunedGraph", "EnableBfloat16Sendrecv", "TimelineStep", "RewriteOptions" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ThreadPoolOptionProto), global::Tensorflow.ThreadPoolOptionProto.Parser, new[]{ "NumThreads", "GlobalName" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RPCOptions), global::Tensorflow.RPCOptions.Parser, new[]{ "UseRpcForInprocessMaster", "CompressionAlgorithm", "CompressionLevel", "CacheRpcResponse", "DisableSessionConnectionSharing", "NumChannelsPerTarget" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SessionMetadata), global::Tensorflow.SessionMetadata.Parser, new[]{ "Name", "Version" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ConfigProto), global::Tensorflow.ConfigProto.Parser, new[]{ "DeviceCount", "IntraOpParallelismThreads", "InterOpParallelismThreads", "UsePerSessionThreads", "SessionInterOpThreadPool", "PlacementPeriod", "DeviceFilters", "GpuOptions", "AllowSoftPlacement", "LogDevicePlacement", "GraphOptions", "OperationTimeoutInMs", "RpcOptions", "ClusterDef", "IsolateSessionState", "ShareClusterDevicesInSession", "Experimental" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ConfigProto.Types.Experimental), global::Tensorflow.ConfigProto.Types.Experimental.Parser, new[]{ "CollectiveGroupLeader", "ExecutorType", "RecvBufMaxChunk", "UseNumaAffinity", "CollectiveDeterministicSequentialExecution", "CollectiveNccl", "ShareSessionStateInClusterspecPropagation", "DisableThreadSpinning", "ShareClusterDevicesInSession", "SessionMetadata", "OptimizeForStaticGraph", "EnableMlirBridge", "MlirBridgeRollout", "EnableMlirGraphOptimization", "DisableOutputPartitionGraphs", "XlaFusionAutotunerThresh", "UseTfrt", "DisableFunctionalOpsLowering", "XlaPreferSingleGraphCluster", "CoordinationConfig" }, null, new[]{ typeof(global::Tensorflow.ConfigProto.Types.Experimental.Types.MlirBridgeRollout) }, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunOptions), global::Tensorflow.RunOptions.Parser, new[]{ "TraceLevel", "TimeoutInMs", "InterOpThreadPool", "OutputPartitionGraphs", "DebugOptions", "ReportTensorAllocationsUponOom", "Experimental" }, null, new[]{ typeof(global::Tensorflow.RunOptions.Types.TraceLevel) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunOptions.Types.Experimental), global::Tensorflow.RunOptions.Types.Experimental.Parser, new[]{ "CollectiveGraphKey", "UseRunHandlerPool", "RunHandlerPoolOptions" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunOptions.Types.Experimental.Types.RunHandlerPoolOptions), global::Tensorflow.RunOptions.Types.Experimental.Types.RunHandlerPoolOptions.Parser, new[]{ "Priority" }, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunMetadata), global::Tensorflow.RunMetadata.Parser, new[]{ "StepStats", "CostGraph", "PartitionGraphs", "FunctionGraphs", "SessionMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.RunMetadata.Types.FunctionGraphs), global::Tensorflow.RunMetadata.Types.FunctionGraphs.Parser, new[]{ "PartitionGraphs", "PreOptimizationGraph", "PostOptimizationGraph" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TensorConnection), global::Tensorflow.TensorConnection.Parser, new[]{ "FromTensor", "ToTensor" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CallableOptions), global::Tensorflow.CallableOptions.Parser, new[]{ "Feed", "Fetch", "Target", "RunOptions", "TensorConnection", "FeedDevices", "FetchDevices", "FetchSkipSync" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, })
}));
}
#endregion
}
#region Messages
public sealed partial class GPUOptions : pb::IMessage<GPUOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<GPUOptions> _parser = new pb::MessageParser<GPUOptions>(() => new GPUOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<GPUOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tensorflow.ConfigReflection.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 GPUOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GPUOptions(GPUOptions other) : this() {
perProcessGpuMemoryFraction_ = other.perProcessGpuMemoryFraction_;
allowGrowth_ = other.allowGrowth_;
allocatorType_ = other.allocatorType_;
deferredDeletionBytes_ = other.deferredDeletionBytes_;
visibleDeviceList_ = other.visibleDeviceList_;
pollingActiveDelayUsecs_ = other.pollingActiveDelayUsecs_;
pollingInactiveDelayMsecs_ = other.pollingInactiveDelayMsecs_;
forceGpuCompatible_ = other.forceGpuCompatible_;
experimental_ = other.experimental_ != null ? other.experimental_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GPUOptions Clone() {
return new GPUOptions(this);
}
/// <summary>Field number for the "per_process_gpu_memory_fraction" field.</summary>
public const int PerProcessGpuMemoryFractionFieldNumber = 1;
private double perProcessGpuMemoryFraction_;
/// <summary>
/// Fraction of the available GPU memory to allocate for each process.
/// 1 means to allocate all of the GPU memory, 0.5 means the process
/// allocates up to ~50% of the available GPU memory.
///
/// GPU memory is pre-allocated unless the allow_growth option is enabled.
///
/// If greater than 1.0, uses CUDA unified memory to potentially oversubscribe
/// the amount of memory available on the GPU device by using host memory as a
/// swap space. Accessing memory not available on the device will be
/// significantly slower as that would require memory transfer between the host
/// and the device. Options to reduce the memory requirement should be
/// considered before enabling this option as this may come with a negative
/// performance impact. Oversubscription using the unified memory requires
/// Pascal class or newer GPUs and it is currently only supported on the Linux
/// operating system. See
/// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#um-requirements
/// for the detailed requirements.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double PerProcessGpuMemoryFraction {
get { return perProcessGpuMemoryFraction_; }
set {
perProcessGpuMemoryFraction_ = value;
}
}
/// <summary>Field number for the "allow_growth" field.</summary>
public const int AllowGrowthFieldNumber = 4;
private bool allowGrowth_;
/// <summary>
/// If true, the allocator does not pre-allocate the entire specified
/// GPU memory region, instead starting small and growing as needed.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool AllowGrowth {
get { return allowGrowth_; }
set {
allowGrowth_ = value;
}
}
/// <summary>Field number for the "allocator_type" field.</summary>
public const int AllocatorTypeFieldNumber = 2;
private string allocatorType_ = "";
/// <summary>
/// The type of GPU allocation strategy to use.
///
/// Allowed values:
/// "": The empty string (default) uses a system-chosen default
/// which may change over time.
///
/// "BFC": A "Best-fit with coalescing" algorithm, simplified from a
/// version of dlmalloc.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string AllocatorType {
get { return allocatorType_; }
set {
allocatorType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "deferred_deletion_bytes" field.</summary>
public const int DeferredDeletionBytesFieldNumber = 3;
private long deferredDeletionBytes_;
/// <summary>
/// Delay deletion of up to this many bytes to reduce the number of
/// interactions with gpu driver code. If 0, the system chooses
/// a reasonable default (several MBs).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long DeferredDeletionBytes {
get { return deferredDeletionBytes_; }
set {
deferredDeletionBytes_ = value;
}
}
/// <summary>Field number for the "visible_device_list" field.</summary>
public const int VisibleDeviceListFieldNumber = 5;
private string visibleDeviceList_ = "";
/// <summary>
/// A comma-separated list of GPU ids that determines the 'visible'
/// to 'virtual' mapping of GPU devices. For example, if TensorFlow
/// can see 8 GPU devices in the process, and one wanted to map
/// visible GPU devices 5 and 3 as "/device:GPU:0", and "/device:GPU:1",
/// then one would specify this field as "5,3". This field is similar in
/// spirit to the CUDA_VISIBLE_DEVICES environment variable, except
/// it applies to the visible GPU devices in the process.
///
/// NOTE:
/// 1. The GPU driver provides the process with the visible GPUs
/// in an order which is not guaranteed to have any correlation to
/// the *physical* GPU id in the machine. This field is used for
/// remapping "visible" to "virtual", which means this operates only
/// after the process starts. Users are required to use vendor
/// specific mechanisms (e.g., CUDA_VISIBLE_DEVICES) to control the
/// physical to visible device mapping prior to invoking TensorFlow.
/// 2. In the code, the ids in this list are also called "platform GPU id"s,
/// and the 'virtual' ids of GPU devices (i.e. the ids in the device
/// name "/device:GPU:<id>") are also called "TF GPU id"s. Please
/// refer to third_party/tensorflow/core/common_runtime/gpu/gpu_id.h
/// for more information.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string VisibleDeviceList {
get { return visibleDeviceList_; }
set {
visibleDeviceList_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "polling_active_delay_usecs" field.</summary>
public const int PollingActiveDelayUsecsFieldNumber = 6;
private int pollingActiveDelayUsecs_;
/// <summary>
/// In the event polling loop sleep this many microseconds between
/// PollEvents calls, when the queue is not empty. If value is not
/// set or set to 0, gets set to a non-zero default.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PollingActiveDelayUsecs {
get { return pollingActiveDelayUsecs_; }
set {
pollingActiveDelayUsecs_ = value;
}
}
/// <summary>Field number for the "polling_inactive_delay_msecs" field.</summary>
public const int PollingInactiveDelayMsecsFieldNumber = 7;
private int pollingInactiveDelayMsecs_;
/// <summary>
/// This field is deprecated and ignored.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PollingInactiveDelayMsecs {
get { return pollingInactiveDelayMsecs_; }
set {
pollingInactiveDelayMsecs_ = value;
}
}
/// <summary>Field number for the "force_gpu_compatible" field.</summary>
public const int ForceGpuCompatibleFieldNumber = 8;
private bool forceGpuCompatible_;
/// <summary>
/// Force all tensors to be gpu_compatible. On a GPU-enabled TensorFlow,
/// enabling this option forces all CPU tensors to be allocated with Cuda
/// pinned memory. Normally, TensorFlow will infer which tensors should be
/// allocated as the pinned memory. But in case where the inference is
/// incomplete, this option can significantly speed up the cross-device memory
/// copy performance as long as it fits the memory.
/// Note that this option is not something that should be
/// enabled by default for unknown or very large models, since all Cuda pinned
/// memory is unpageable, having too much pinned memory might negatively impact
/// the overall host system performance.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool ForceGpuCompatible {
get { return forceGpuCompatible_; }
set {
forceGpuCompatible_ = value;
}
}
/// <summary>Field number for the "experimental" field.</summary>
public const int ExperimentalFieldNumber = 9;
private global::Tensorflow.GPUOptions.Types.Experimental experimental_;
/// <summary>
/// Everything inside experimental is subject to change and is not subject
/// to API stability guarantees in
/// https://www.tensorflow.org/guide/version_compat.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Tensorflow.GPUOptions.Types.Experimental Experimental {
get { return experimental_; }
set {
experimental_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GPUOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GPUOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PerProcessGpuMemoryFraction, other.PerProcessGpuMemoryFraction)) return false;
if (AllowGrowth != other.AllowGrowth) return false;
if (AllocatorType != other.AllocatorType) return false;
if (DeferredDeletionBytes != other.DeferredDeletionBytes) return false;
if (VisibleDeviceList != other.VisibleDeviceList) return false;
if (PollingActiveDelayUsecs != other.PollingActiveDelayUsecs) return false;
if (PollingInactiveDelayMsecs != other.PollingInactiveDelayMsecs) return false;
if (ForceGpuCompatible != other.ForceGpuCompatible) return false;
if (!object.Equals(Experimental, other.Experimental)) 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 (PerProcessGpuMemoryFraction != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PerProcessGpuMemoryFraction);
if (AllowGrowth != false) hash ^= AllowGrowth.GetHashCode();
if (AllocatorType.Length != 0) hash ^= AllocatorType.GetHashCode();
if (DeferredDeletionBytes != 0L) hash ^= DeferredDeletionBytes.GetHashCode();
if (VisibleDeviceList.Length != 0) hash ^= VisibleDeviceList.GetHashCode();
if (PollingActiveDelayUsecs != 0) hash ^= PollingActiveDelayUsecs.GetHashCode();
if (PollingInactiveDelayMsecs != 0) hash ^= PollingInactiveDelayMsecs.GetHashCode();
if (ForceGpuCompatible != false) hash ^= ForceGpuCompatible.GetHashCode();
if (experimental_ != null) hash ^= Experimental.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 (PerProcessGpuMemoryFraction != 0D) {
output.WriteRawTag(9);
output.WriteDouble(PerProcessGpuMemoryFraction);
}
if (AllocatorType.Length != 0) {
output.WriteRawTag(18);
output.WriteString(AllocatorType);
}
if (DeferredDeletionBytes != 0L) {
output.WriteRawTag(24);
output.WriteInt64(DeferredDeletionBytes);
}
if (AllowGrowth != false) {
output.WriteRawTag(32);
output.WriteBool(AllowGrowth);
}
if (VisibleDeviceList.Length != 0) {
output.WriteRawTag(42);
output.WriteString(VisibleDeviceList);
}
if (PollingActiveDelayUsecs != 0) {
output.WriteRawTag(48);
output.WriteInt32(PollingActiveDelayUsecs);
}
if (PollingInactiveDelayMsecs != 0) {
output.WriteRawTag(56);
output.WriteInt32(PollingInactiveDelayMsecs);
}
if (ForceGpuCompatible != false) {
output.WriteRawTag(64);
output.WriteBool(ForceGpuCompatible);
}
if (experimental_ != null) {
output.WriteRawTag(74);
output.WriteMessage(Experimental);
}
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 (PerProcessGpuMemoryFraction != 0D) {
output.WriteRawTag(9);
output.WriteDouble(PerProcessGpuMemoryFraction);
}
if (AllocatorType.Length != 0) {
output.WriteRawTag(18);
output.WriteString(AllocatorType);
}
if (DeferredDeletionBytes != 0L) {
output.WriteRawTag(24);
output.WriteInt64(DeferredDeletionBytes);
}
if (AllowGrowth != false) {
output.WriteRawTag(32);
output.WriteBool(AllowGrowth);
}
if (VisibleDeviceList.Length != 0) {
output.WriteRawTag(42);
output.WriteString(VisibleDeviceList);
}
if (PollingActiveDelayUsecs != 0) {
output.WriteRawTag(48);
output.WriteInt32(PollingActiveDelayUsecs);
}
if (PollingInactiveDelayMsecs != 0) {
output.WriteRawTag(56);
output.WriteInt32(PollingInactiveDelayMsecs);
}
if (ForceGpuCompatible != false) {
output.WriteRawTag(64);
output.WriteBool(ForceGpuCompatible);
}
if (experimental_ != null) {
output.WriteRawTag(74);
output.WriteMessage(Experimental);
}
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 (PerProcessGpuMemoryFraction != 0D) {
size += 1 + 8;
}
if (AllowGrowth != false) {
size += 1 + 1;
}
if (AllocatorType.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AllocatorType);
}
if (DeferredDeletionBytes != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(DeferredDeletionBytes);
}
if (VisibleDeviceList.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(VisibleDeviceList);
}
if (PollingActiveDelayUsecs != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PollingActiveDelayUsecs);
}
if (PollingInactiveDelayMsecs != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PollingInactiveDelayMsecs);
}
if (ForceGpuCompatible != false) {
size += 1 + 1;
}
if (experimental_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Experimental);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GPUOptions other) {
if (other == null) {
return;
}
if (other.PerProcessGpuMemoryFraction != 0D) {
PerProcessGpuMemoryFraction = other.PerProcessGpuMemoryFraction;
}
if (other.AllowGrowth != false) {
AllowGrowth = other.AllowGrowth;
}
if (other.AllocatorType.Length != 0) {
AllocatorType = other.AllocatorType;
}
if (other.DeferredDeletionBytes != 0L) {
DeferredDeletionBytes = other.DeferredDeletionBytes;
}
if (other.VisibleDeviceList.Length != 0) {
VisibleDeviceList = other.VisibleDeviceList;
}
if (other.PollingActiveDelayUsecs != 0) {
PollingActiveDelayUsecs = other.PollingActiveDelayUsecs;
}
if (other.PollingInactiveDelayMsecs != 0) {
PollingInactiveDelayMsecs = other.PollingInactiveDelayMsecs;
}
if (other.ForceGpuCompatible != false) {
ForceGpuCompatible = other.ForceGpuCompatible;
}
if (other.experimental_ != null) {
if (experimental_ == null) {
Experimental = new global::Tensorflow.GPUOptions.Types.Experimental();
}
Experimental.MergeFrom(other.Experimental);
}
_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 9: {
PerProcessGpuMemoryFraction = input.ReadDouble();
break;
}
case 18: {
AllocatorType = input.ReadString();
break;
}
case 24: {
DeferredDeletionBytes = input.ReadInt64();
break;
}
case 32: {
AllowGrowth = input.ReadBool();
break;
}
case 42: {
VisibleDeviceList = input.ReadString();
break;
}
case 48: {
PollingActiveDelayUsecs = input.ReadInt32();
break;
}
case 56: {
PollingInactiveDelayMsecs = input.ReadInt32();
break;
}
case 64: {
ForceGpuCompatible = input.ReadBool();
break;
}
case 74: {
if (experimental_ == null) {
Experimental = new global::Tensorflow.GPUOptions.Types.Experimental();
}
input.ReadMessage(Experimental);
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 9: {
PerProcessGpuMemoryFraction = input.ReadDouble();
break;
}
case 18: {
AllocatorType = input.ReadString();
break;
}
case 24: {
DeferredDeletionBytes = input.ReadInt64();
break;
}
case 32: {
AllowGrowth = input.ReadBool();
break;
}
case 42: {
VisibleDeviceList = input.ReadString();
break;
}
case 48: {
PollingActiveDelayUsecs = input.ReadInt32();
break;
}
case 56: {
PollingInactiveDelayMsecs = input.ReadInt32();
break;
}
case 64: {
ForceGpuCompatible = input.ReadBool();
break;
}
case 74: {
if (experimental_ == null) {
Experimental = new global::Tensorflow.GPUOptions.Types.Experimental();
}
input.ReadMessage(Experimental);
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the GPUOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public sealed partial class Experimental : pb::IMessage<Experimental>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Experimental> _parser = new pb::MessageParser<Experimental>(() => new Experimental());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Experimental> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tensorflow.GPUOptions.Descriptor.NestedTypes[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 Experimental() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Experimental(Experimental other) : this() {
virtualDevices_ = other.virtualDevices_.Clone();
useUnifiedMemory_ = other.useUnifiedMemory_;
numDevToDevCopyStreams_ = other.numDevToDevCopyStreams_;
collectiveRingOrder_ = other.collectiveRingOrder_;
timestampedAllocator_ = other.timestampedAllocator_;
kernelTrackerMaxInterval_ = other.kernelTrackerMaxInterval_;
kernelTrackerMaxBytes_ = other.kernelTrackerMaxBytes_;
kernelTrackerMaxPending_ = other.kernelTrackerMaxPending_;
internalFragmentationFraction_ = other.internalFragmentationFraction_;
useCudaMallocAsync_ = other.useCudaMallocAsync_;
disallowRetryOnAllocationFailure_ = other.disallowRetryOnAllocationFailure_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Experimental Clone() {
return new Experimental(this);
}
/// <summary>Field number for the "virtual_devices" field.</summary>
public const int VirtualDevicesFieldNumber = 1;
private static readonly pb::FieldCodec<global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices> _repeated_virtualDevices_codec
= pb::FieldCodec.ForMessage(10, global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices.Parser);
private readonly pbc::RepeatedField<global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices> virtualDevices_ = new pbc::RepeatedField<global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices>();
/// <summary>
/// The multi virtual device settings. If empty (not set), it will create
/// single virtual device on each visible GPU, according to the settings
/// in "visible_device_list" above. Otherwise, the number of elements in the
/// list must be the same as the number of visible GPUs (after
/// "visible_device_list" filtering if it is set), and the string represented
/// device names (e.g. /device:GPU:<id>) will refer to the virtual
/// devices and have the <id> field assigned sequentially starting from 0,
/// according to the order of the virtual devices determined by
/// device_ordinal and the location in the virtual device list.
///
/// For example,
/// visible_device_list = "1,0"
/// virtual_devices { memory_limit: 1GB memory_limit: 2GB }
/// virtual_devices { memory_limit: 3GB memory_limit: 4GB }
/// will create 4 virtual devices as:
/// /device:GPU:0 -> visible GPU 1 with 1GB memory
/// /device:GPU:1 -> visible GPU 1 with 2GB memory
/// /device:GPU:2 -> visible GPU 0 with 3GB memory
/// /device:GPU:3 -> visible GPU 0 with 4GB memory
///
/// but
/// visible_device_list = "1,0"
/// virtual_devices { memory_limit: 1GB memory_limit: 2GB
/// device_ordinal: 10 device_ordinal: 20}
/// virtual_devices { memory_limit: 3GB memory_limit: 4GB
/// device_ordinal: 10 device_ordinal: 20}
/// will create 4 virtual devices as:
/// /device:GPU:0 -> visible GPU 1 with 1GB memory (ordinal 10)
/// /device:GPU:1 -> visible GPU 0 with 3GB memory (ordinal 10)
/// /device:GPU:2 -> visible GPU 1 with 2GB memory (ordinal 20)
/// /device:GPU:3 -> visible GPU 0 with 4GB memory (ordinal 20)
///
/// NOTE:
/// 1. It's invalid to set both this and "per_process_gpu_memory_fraction"
/// at the same time.
/// 2. Currently this setting is per-process, not per-session. Using
/// different settings in different sessions within same process will
/// result in undefined behavior.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Tensorflow.GPUOptions.Types.Experimental.Types.VirtualDevices> VirtualDevices {
get { return virtualDevices_; }
}
/// <summary>Field number for the "use_unified_memory" field.</summary>
public const int UseUnifiedMemoryFieldNumber = 2;
private bool useUnifiedMemory_;
/// <summary>
/// If true, uses CUDA unified memory for memory allocations. If
/// per_process_gpu_memory_fraction option is greater than 1.0, then unified
/// memory is used regardless of the value for this field. See comments for
/// per_process_gpu_memory_fraction field for more details and requirements
/// of the unified memory. This option is useful to oversubscribe memory if
/// multiple processes are sharing a single GPU while individually using less
/// than 1.0 per process memory fraction.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool UseUnifiedMemory {
get { return useUnifiedMemory_; }
set {
useUnifiedMemory_ = value;
}
}
/// <summary>Field number for the "num_dev_to_dev_copy_streams" field.</summary>
public const int NumDevToDevCopyStreamsFieldNumber = 3;
private int numDevToDevCopyStreams_;
/// <summary>
/// If > 1, the number of device-to-device copy streams to create
/// for each GPUDevice. Default value is 0, which is automatically
/// converted to 1.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int NumDevToDevCopyStreams {
get { return numDevToDevCopyStreams_; }
set {
numDevToDevCopyStreams_ = value;
}
}
/// <summary>Field number for the "collective_ring_order" field.</summary>
public const int CollectiveRingOrderFieldNumber = 4;
private string collectiveRingOrder_ = "";
/// <summary>
/// If non-empty, defines a good GPU ring order on a single worker based on
/// device interconnect. This assumes that all workers have the same GPU
/// topology. Specify as a comma-separated string, e.g. "3,2,1,0,7,6,5,4".
/// This ring order is used by the RingReducer implementation of
/// CollectiveReduce, and serves as an override to automatic ring order
/// generation in OrderTaskDeviceMap() during CollectiveParam resolution.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CollectiveRingOrder {
get { return collectiveRingOrder_; }
set {
collectiveRingOrder_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "timestamped_allocator" field.</summary>
public const int TimestampedAllocatorFieldNumber = 5;
private bool timestampedAllocator_;
/// <summary>
/// If true then extra work is done by GPUDevice and GPUBFCAllocator to
/// keep track of when GPU memory is freed and when kernels actually
/// complete so that we can know when a nominally free memory chunk
/// is really not subject to pending use.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool TimestampedAllocator {
get { return timestampedAllocator_; }
set {
timestampedAllocator_ = value;
}
}
/// <summary>Field number for the "kernel_tracker_max_interval" field.</summary>
public const int KernelTrackerMaxIntervalFieldNumber = 7;
private int kernelTrackerMaxInterval_;
/// <summary>
/// Parameters for GPUKernelTracker. By default no kernel tracking is done.
/// Note that timestamped_allocator is only effective if some tracking is
/// specified.
///
/// If kernel_tracker_max_interval = n > 0, then a tracking event
/// is inserted after every n kernels without an event.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int KernelTrackerMaxInterval {
get { return kernelTrackerMaxInterval_; }
set {
kernelTrackerMaxInterval_ = value;
}
}
/// <summary>Field number for the "kernel_tracker_max_bytes" field.</summary>
public const int KernelTrackerMaxBytesFieldNumber = 8;
private int kernelTrackerMaxBytes_;
/// <summary>
/// If kernel_tracker_max_bytes = n > 0, then a tracking event is
/// inserted after every series of kernels allocating a sum of
/// memory >= n. If one kernel allocates b * n bytes, then one
/// event will be inserted after it, but it will count as b against
/// the pending limit.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int KernelTrackerMaxBytes {
get { return kernelTrackerMaxBytes_; }
set {
kernelTrackerMaxBytes_ = value;
}
}
/// <summary>Field number for the "kernel_tracker_max_pending" field.</summary>
public const int KernelTrackerMaxPendingFieldNumber = 9;
private int kernelTrackerMaxPending_;
/// <summary>
/// If kernel_tracker_max_pending > 0 then no more than this many
/// tracking events can be outstanding at a time. An attempt to
/// launch an additional kernel will stall until an event
/// completes.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int KernelTrackerMaxPending {
get { return kernelTrackerMaxPending_; }
set {
kernelTrackerMaxPending_ = value;
}
}
/// <summary>Field number for the "internal_fragmentation_fraction" field.</summary>
public const int InternalFragmentationFractionFieldNumber = 10;