1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: tensorflow/core/framework/attr_value.proto 3 4 module tensorflow.attr_value; 5 6 import google.protobuf; 7 import tensorflow.tensor; 8 import tensorflow.tensor_shape; 9 import tensorflow.types; 10 11 enum protocVersion = 3012004; 12 13 class AttrValue 14 { 15 enum ValueCase 16 { 17 valueNotSet = 0, 18 list = 1, 19 s = 2, 20 i = 3, 21 f = 4, 22 b = 5, 23 type = 6, 24 shape = 7, 25 tensor = 8, 26 placeholder = 9, 27 func = 10, 28 } 29 ValueCase _valueCase = ValueCase.valueNotSet; 30 @property ValueCase valueCase() { return _valueCase; } 31 void clearValue() { _valueCase = ValueCase.valueNotSet; } 32 @Oneof("_valueCase") union 33 { 34 @Proto(1) AttrValue.ListValue _list = protoDefaultValue!(AttrValue.ListValue); mixin(oneofAccessors!_list); 35 @Proto(2) bytes _s; mixin(oneofAccessors!_s); 36 @Proto(3) long _i; mixin(oneofAccessors!_i); 37 @Proto(4) float _f; mixin(oneofAccessors!_f); 38 @Proto(5) bool _b; mixin(oneofAccessors!_b); 39 @Proto(6) DataType _type; mixin(oneofAccessors!_type); 40 @Proto(7) TensorShapeProto _shape; mixin(oneofAccessors!_shape); 41 @Proto(8) TensorProto _tensor; mixin(oneofAccessors!_tensor); 42 @Proto(9) string _placeholder; mixin(oneofAccessors!_placeholder); 43 @Proto(10) NameAttrList _func; mixin(oneofAccessors!_func); 44 } 45 46 static class ListValue 47 { 48 @Proto(2) bytes[] s = protoDefaultValue!(bytes[]); 49 @Proto(3, Wire.none, Yes.packed) long[] i = protoDefaultValue!(long[]); 50 @Proto(4, Wire.none, Yes.packed) float[] f = protoDefaultValue!(float[]); 51 @Proto(5, Wire.none, Yes.packed) bool[] b = protoDefaultValue!(bool[]); 52 @Proto(6) DataType[] type = protoDefaultValue!(DataType[]); 53 @Proto(7) TensorShapeProto[] shape = protoDefaultValue!(TensorShapeProto[]); 54 @Proto(8) TensorProto[] tensor = protoDefaultValue!(TensorProto[]); 55 @Proto(9) NameAttrList[] func = protoDefaultValue!(NameAttrList[]); 56 } 57 } 58 59 class NameAttrList 60 { 61 @Proto(1) string name = protoDefaultValue!(string); 62 @Proto(2) AttrValue[string] attr = protoDefaultValue!(AttrValue[string]); 63 }