1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: tensorflow/core/protobuf/control_flow.proto
3 
4 module tensorflow.control_flow;
5 
6 import google.protobuf;
7 
8 enum protocVersion = 3012004;
9 
10 class ValuesDef
11 {
12     @Proto(1) string[] values = protoDefaultValue!(string[]);
13     @Proto(2) string[string] externalValues = protoDefaultValue!(string[string]);
14 }
15 
16 class ControlFlowContextDef
17 {
18     enum CtxtCase
19     {
20         ctxtNotSet = 0,
21         condCtxt = 1,
22         whileCtxt = 2,
23     }
24     CtxtCase _ctxtCase = CtxtCase.ctxtNotSet;
25     @property CtxtCase ctxtCase() { return _ctxtCase; }
26     void clearCtxt() { _ctxtCase = CtxtCase.ctxtNotSet; }
27     @Oneof("_ctxtCase") union
28     {
29         @Proto(1) CondContextDef _condCtxt = protoDefaultValue!(CondContextDef); mixin(oneofAccessors!_condCtxt);
30         @Proto(2) WhileContextDef _whileCtxt; mixin(oneofAccessors!_whileCtxt);
31     }
32 }
33 
34 class CondContextDef
35 {
36     @Proto(1) string contextName = protoDefaultValue!(string);
37     @Proto(2) string predName = protoDefaultValue!(string);
38     @Proto(3) string pivotName = protoDefaultValue!(string);
39     @Proto(4) int branch = protoDefaultValue!(int);
40     @Proto(5) ValuesDef valuesDef = protoDefaultValue!(ValuesDef);
41     @Proto(6) ControlFlowContextDef[] nestedContexts = protoDefaultValue!(ControlFlowContextDef[]);
42 }
43 
44 class WhileContextDef
45 {
46     @Proto(1) string contextName = protoDefaultValue!(string);
47     @Proto(2) int parallelIterations = protoDefaultValue!(int);
48     @Proto(3) bool backProp = protoDefaultValue!(bool);
49     @Proto(4) bool swapMemory = protoDefaultValue!(bool);
50     @Proto(5) string pivotName = protoDefaultValue!(string);
51     @Proto(6) string pivotForPredName = protoDefaultValue!(string);
52     @Proto(7) string pivotForBodyName = protoDefaultValue!(string);
53     @Proto(8) string[] loopExitNames = protoDefaultValue!(string[]);
54     @Proto(9) ValuesDef valuesDef = protoDefaultValue!(ValuesDef);
55     @Proto(10) string[] loopEnterNames = protoDefaultValue!(string[]);
56     @Proto(11) string maximumIterationsName = protoDefaultValue!(string);
57     @Proto(12) ControlFlowContextDef[] nestedContexts = protoDefaultValue!(ControlFlowContextDef[]);
58 }