[ti-machine-learning/ti-machine-learning.git] / src / app / cnn / interop / caffe / appCNNInteropCaffeProtobuf.hpp
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: caffe.proto
4 #ifndef PROTOBUF_caffe_2eproto__INCLUDED
5 #define PROTOBUF_caffe_2eproto__INCLUDED
7 #include <string>
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2005000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 // @@protoc_insertion_point(includes)
30 namespace caffe {
32 // Internal implementation detail -- do not call these.
33 void protobuf_AddDesc_caffe_2eproto();
34 void protobuf_AssignDesc_caffe_2eproto();
35 void protobuf_ShutdownFile_caffe_2eproto();
37 class BlobProto;
38 class BlobProtoVector;
39 class Datum;
40 class FillerParameter;
41 class NetParameter;
42 class SolverParameter;
43 class SolverState;
44 class NetState;
45 class NetStateRule;
46 class LayerParameter;
47 class TransformationParameter;
48 class AccuracyParameter;
49 class ArgMaxParameter;
50 class ConcatParameter;
51 class ContrastiveLossParameter;
52 class ConvolutionParameter;
53 class DataParameter;
54 class DropoutParameter;
55 class DummyDataParameter;
56 class EltwiseParameter;
57 class ThresholdParameter;
58 class HDF5DataParameter;
59 class HDF5OutputParameter;
60 class HingeLossParameter;
61 class ImageDataParameter;
62 class InfogainLossParameter;
63 class InnerProductParameter;
64 class LRNParameter;
65 class MemoryDataParameter;
66 class MVNParameter;
67 class PoolingParameter;
68 class PowerParameter;
69 class ReLUParameter;
70 class SigmoidParameter;
71 class SliceParameter;
72 class SoftmaxParameter;
73 class TanHParameter;
74 class WindowDataParameter;
75 class V0LayerParameter;
77 enum SolverParameter_SolverMode {
78 SolverParameter_SolverMode_CPU = 0,
79 SolverParameter_SolverMode_GPU = 1
80 };
81 bool SolverParameter_SolverMode_IsValid(int value);
82 const SolverParameter_SolverMode SolverParameter_SolverMode_SolverMode_MIN = SolverParameter_SolverMode_CPU;
83 const SolverParameter_SolverMode SolverParameter_SolverMode_SolverMode_MAX = SolverParameter_SolverMode_GPU;
84 const int SolverParameter_SolverMode_SolverMode_ARRAYSIZE = SolverParameter_SolverMode_SolverMode_MAX + 1;
86 const ::google::protobuf::EnumDescriptor* SolverParameter_SolverMode_descriptor();
87 inline const ::std::string& SolverParameter_SolverMode_Name(SolverParameter_SolverMode value) {
88 return ::google::protobuf::internal::NameOfEnum(
89 SolverParameter_SolverMode_descriptor(), value);
90 }
91 inline bool SolverParameter_SolverMode_Parse(
92 const ::std::string& name, SolverParameter_SolverMode* value) {
93 return ::google::protobuf::internal::ParseNamedEnum<SolverParameter_SolverMode>(
94 SolverParameter_SolverMode_descriptor(), name, value);
95 }
96 enum SolverParameter_SolverType {
97 SolverParameter_SolverType_SGD = 0,
98 SolverParameter_SolverType_NESTEROV = 1,
99 SolverParameter_SolverType_ADAGRAD = 2
100 };
101 bool SolverParameter_SolverType_IsValid(int value);
102 const SolverParameter_SolverType SolverParameter_SolverType_SolverType_MIN = SolverParameter_SolverType_SGD;
103 const SolverParameter_SolverType SolverParameter_SolverType_SolverType_MAX = SolverParameter_SolverType_ADAGRAD;
104 const int SolverParameter_SolverType_SolverType_ARRAYSIZE = SolverParameter_SolverType_SolverType_MAX + 1;
106 const ::google::protobuf::EnumDescriptor* SolverParameter_SolverType_descriptor();
107 inline const ::std::string& SolverParameter_SolverType_Name(SolverParameter_SolverType value) {
108 return ::google::protobuf::internal::NameOfEnum(
109 SolverParameter_SolverType_descriptor(), value);
110 }
111 inline bool SolverParameter_SolverType_Parse(
112 const ::std::string& name, SolverParameter_SolverType* value) {
113 return ::google::protobuf::internal::ParseNamedEnum<SolverParameter_SolverType>(
114 SolverParameter_SolverType_descriptor(), name, value);
115 }
116 enum LayerParameter_LayerType {
117 LayerParameter_LayerType_NONE = 0,
118 LayerParameter_LayerType_ABSVAL = 35,
119 LayerParameter_LayerType_ACCURACY = 1,
120 LayerParameter_LayerType_ARGMAX = 30,
121 LayerParameter_LayerType_BNLL = 2,
122 LayerParameter_LayerType_CONCAT = 3,
123 LayerParameter_LayerType_CONTRASTIVE_LOSS = 37,
124 LayerParameter_LayerType_CONVOLUTION = 4,
125 LayerParameter_LayerType_DATA = 5,
126 LayerParameter_LayerType_DROPOUT = 6,
127 LayerParameter_LayerType_DUMMY_DATA = 32,
128 LayerParameter_LayerType_EUCLIDEAN_LOSS = 7,
129 LayerParameter_LayerType_ELTWISE = 25,
130 LayerParameter_LayerType_FLATTEN = 8,
131 LayerParameter_LayerType_HDF5_DATA = 9,
132 LayerParameter_LayerType_HDF5_OUTPUT = 10,
133 LayerParameter_LayerType_HINGE_LOSS = 28,
134 LayerParameter_LayerType_IM2COL = 11,
135 LayerParameter_LayerType_IMAGE_DATA = 12,
136 LayerParameter_LayerType_INFOGAIN_LOSS = 13,
137 LayerParameter_LayerType_INNER_PRODUCT = 14,
138 LayerParameter_LayerType_LRN = 15,
139 LayerParameter_LayerType_MEMORY_DATA = 29,
140 LayerParameter_LayerType_MULTINOMIAL_LOGISTIC_LOSS = 16,
141 LayerParameter_LayerType_MVN = 34,
142 LayerParameter_LayerType_POOLING = 17,
143 LayerParameter_LayerType_POWER = 26,
144 LayerParameter_LayerType_RELU = 18,
145 LayerParameter_LayerType_SIGMOID = 19,
146 LayerParameter_LayerType_SIGMOID_CROSS_ENTROPY_LOSS = 27,
147 LayerParameter_LayerType_SILENCE = 36,
148 LayerParameter_LayerType_SOFTMAX = 20,
149 LayerParameter_LayerType_SOFTMAX_LOSS = 21,
150 LayerParameter_LayerType_SPLIT = 22,
151 LayerParameter_LayerType_SLICE = 33,
152 LayerParameter_LayerType_TANH = 23,
153 LayerParameter_LayerType_WINDOW_DATA = 24,
154 LayerParameter_LayerType_THRESHOLD = 31
155 };
156 bool LayerParameter_LayerType_IsValid(int value);
157 const LayerParameter_LayerType LayerParameter_LayerType_LayerType_MIN = LayerParameter_LayerType_NONE;
158 const LayerParameter_LayerType LayerParameter_LayerType_LayerType_MAX = LayerParameter_LayerType_CONTRASTIVE_LOSS;
159 const int LayerParameter_LayerType_LayerType_ARRAYSIZE = LayerParameter_LayerType_LayerType_MAX + 1;
161 const ::google::protobuf::EnumDescriptor* LayerParameter_LayerType_descriptor();
162 inline const ::std::string& LayerParameter_LayerType_Name(LayerParameter_LayerType value) {
163 return ::google::protobuf::internal::NameOfEnum(
164 LayerParameter_LayerType_descriptor(), value);
165 }
166 inline bool LayerParameter_LayerType_Parse(
167 const ::std::string& name, LayerParameter_LayerType* value) {
168 return ::google::protobuf::internal::ParseNamedEnum<LayerParameter_LayerType>(
169 LayerParameter_LayerType_descriptor(), name, value);
170 }
171 enum LayerParameter_DimCheckMode {
172 LayerParameter_DimCheckMode_STRICT = 0,
173 LayerParameter_DimCheckMode_PERMISSIVE = 1
174 };
175 bool LayerParameter_DimCheckMode_IsValid(int value);
176 const LayerParameter_DimCheckMode LayerParameter_DimCheckMode_DimCheckMode_MIN = LayerParameter_DimCheckMode_STRICT;
177 const LayerParameter_DimCheckMode LayerParameter_DimCheckMode_DimCheckMode_MAX = LayerParameter_DimCheckMode_PERMISSIVE;
178 const int LayerParameter_DimCheckMode_DimCheckMode_ARRAYSIZE = LayerParameter_DimCheckMode_DimCheckMode_MAX + 1;
180 const ::google::protobuf::EnumDescriptor* LayerParameter_DimCheckMode_descriptor();
181 inline const ::std::string& LayerParameter_DimCheckMode_Name(LayerParameter_DimCheckMode value) {
182 return ::google::protobuf::internal::NameOfEnum(
183 LayerParameter_DimCheckMode_descriptor(), value);
184 }
185 inline bool LayerParameter_DimCheckMode_Parse(
186 const ::std::string& name, LayerParameter_DimCheckMode* value) {
187 return ::google::protobuf::internal::ParseNamedEnum<LayerParameter_DimCheckMode>(
188 LayerParameter_DimCheckMode_descriptor(), name, value);
189 }
190 enum ConvolutionParameter_Engine {
191 ConvolutionParameter_Engine_DEFAULT = 0,
192 ConvolutionParameter_Engine_CAFFE = 1,
193 ConvolutionParameter_Engine_CUDNN = 2
194 };
195 bool ConvolutionParameter_Engine_IsValid(int value);
196 const ConvolutionParameter_Engine ConvolutionParameter_Engine_Engine_MIN = ConvolutionParameter_Engine_DEFAULT;
197 const ConvolutionParameter_Engine ConvolutionParameter_Engine_Engine_MAX = ConvolutionParameter_Engine_CUDNN;
198 const int ConvolutionParameter_Engine_Engine_ARRAYSIZE = ConvolutionParameter_Engine_Engine_MAX + 1;
200 const ::google::protobuf::EnumDescriptor* ConvolutionParameter_Engine_descriptor();
201 inline const ::std::string& ConvolutionParameter_Engine_Name(ConvolutionParameter_Engine value) {
202 return ::google::protobuf::internal::NameOfEnum(
203 ConvolutionParameter_Engine_descriptor(), value);
204 }
205 inline bool ConvolutionParameter_Engine_Parse(
206 const ::std::string& name, ConvolutionParameter_Engine* value) {
207 return ::google::protobuf::internal::ParseNamedEnum<ConvolutionParameter_Engine>(
208 ConvolutionParameter_Engine_descriptor(), name, value);
209 }
210 enum DataParameter_DB {
211 DataParameter_DB_LEVELDB = 0,
212 DataParameter_DB_LMDB = 1
213 };
214 bool DataParameter_DB_IsValid(int value);
215 const DataParameter_DB DataParameter_DB_DB_MIN = DataParameter_DB_LEVELDB;
216 const DataParameter_DB DataParameter_DB_DB_MAX = DataParameter_DB_LMDB;
217 const int DataParameter_DB_DB_ARRAYSIZE = DataParameter_DB_DB_MAX + 1;
219 const ::google::protobuf::EnumDescriptor* DataParameter_DB_descriptor();
220 inline const ::std::string& DataParameter_DB_Name(DataParameter_DB value) {
221 return ::google::protobuf::internal::NameOfEnum(
222 DataParameter_DB_descriptor(), value);
223 }
224 inline bool DataParameter_DB_Parse(
225 const ::std::string& name, DataParameter_DB* value) {
226 return ::google::protobuf::internal::ParseNamedEnum<DataParameter_DB>(
227 DataParameter_DB_descriptor(), name, value);
228 }
229 enum EltwiseParameter_EltwiseOp {
230 EltwiseParameter_EltwiseOp_PROD = 0,
231 EltwiseParameter_EltwiseOp_SUM = 1,
232 EltwiseParameter_EltwiseOp_MAX = 2
233 };
234 bool EltwiseParameter_EltwiseOp_IsValid(int value);
235 const EltwiseParameter_EltwiseOp EltwiseParameter_EltwiseOp_EltwiseOp_MIN = EltwiseParameter_EltwiseOp_PROD;
236 const EltwiseParameter_EltwiseOp EltwiseParameter_EltwiseOp_EltwiseOp_MAX = EltwiseParameter_EltwiseOp_MAX;
237 const int EltwiseParameter_EltwiseOp_EltwiseOp_ARRAYSIZE = EltwiseParameter_EltwiseOp_EltwiseOp_MAX + 1;
239 const ::google::protobuf::EnumDescriptor* EltwiseParameter_EltwiseOp_descriptor();
240 inline const ::std::string& EltwiseParameter_EltwiseOp_Name(EltwiseParameter_EltwiseOp value) {
241 return ::google::protobuf::internal::NameOfEnum(
242 EltwiseParameter_EltwiseOp_descriptor(), value);
243 }
244 inline bool EltwiseParameter_EltwiseOp_Parse(
245 const ::std::string& name, EltwiseParameter_EltwiseOp* value) {
246 return ::google::protobuf::internal::ParseNamedEnum<EltwiseParameter_EltwiseOp>(
247 EltwiseParameter_EltwiseOp_descriptor(), name, value);
248 }
249 enum HingeLossParameter_Norm {
250 HingeLossParameter_Norm_L1 = 1,
251 HingeLossParameter_Norm_L2 = 2
252 };
253 bool HingeLossParameter_Norm_IsValid(int value);
254 const HingeLossParameter_Norm HingeLossParameter_Norm_Norm_MIN = HingeLossParameter_Norm_L1;
255 const HingeLossParameter_Norm HingeLossParameter_Norm_Norm_MAX = HingeLossParameter_Norm_L2;
256 const int HingeLossParameter_Norm_Norm_ARRAYSIZE = HingeLossParameter_Norm_Norm_MAX + 1;
258 const ::google::protobuf::EnumDescriptor* HingeLossParameter_Norm_descriptor();
259 inline const ::std::string& HingeLossParameter_Norm_Name(HingeLossParameter_Norm value) {
260 return ::google::protobuf::internal::NameOfEnum(
261 HingeLossParameter_Norm_descriptor(), value);
262 }
263 inline bool HingeLossParameter_Norm_Parse(
264 const ::std::string& name, HingeLossParameter_Norm* value) {
265 return ::google::protobuf::internal::ParseNamedEnum<HingeLossParameter_Norm>(
266 HingeLossParameter_Norm_descriptor(), name, value);
267 }
268 enum LRNParameter_NormRegion {
269 LRNParameter_NormRegion_ACROSS_CHANNELS = 0,
270 LRNParameter_NormRegion_WITHIN_CHANNEL = 1
271 };
272 bool LRNParameter_NormRegion_IsValid(int value);
273 const LRNParameter_NormRegion LRNParameter_NormRegion_NormRegion_MIN = LRNParameter_NormRegion_ACROSS_CHANNELS;
274 const LRNParameter_NormRegion LRNParameter_NormRegion_NormRegion_MAX = LRNParameter_NormRegion_WITHIN_CHANNEL;
275 const int LRNParameter_NormRegion_NormRegion_ARRAYSIZE = LRNParameter_NormRegion_NormRegion_MAX + 1;
277 const ::google::protobuf::EnumDescriptor* LRNParameter_NormRegion_descriptor();
278 inline const ::std::string& LRNParameter_NormRegion_Name(LRNParameter_NormRegion value) {
279 return ::google::protobuf::internal::NameOfEnum(
280 LRNParameter_NormRegion_descriptor(), value);
281 }
282 inline bool LRNParameter_NormRegion_Parse(
283 const ::std::string& name, LRNParameter_NormRegion* value) {
284 return ::google::protobuf::internal::ParseNamedEnum<LRNParameter_NormRegion>(
285 LRNParameter_NormRegion_descriptor(), name, value);
286 }
287 enum PoolingParameter_PoolMethod {
288 PoolingParameter_PoolMethod_MAX = 0,
289 PoolingParameter_PoolMethod_AVE = 1,
290 PoolingParameter_PoolMethod_STOCHASTIC = 2
291 };
292 bool PoolingParameter_PoolMethod_IsValid(int value);
293 const PoolingParameter_PoolMethod PoolingParameter_PoolMethod_PoolMethod_MIN = PoolingParameter_PoolMethod_MAX;
294 const PoolingParameter_PoolMethod PoolingParameter_PoolMethod_PoolMethod_MAX = PoolingParameter_PoolMethod_STOCHASTIC;
295 const int PoolingParameter_PoolMethod_PoolMethod_ARRAYSIZE = PoolingParameter_PoolMethod_PoolMethod_MAX + 1;
297 const ::google::protobuf::EnumDescriptor* PoolingParameter_PoolMethod_descriptor();
298 inline const ::std::string& PoolingParameter_PoolMethod_Name(PoolingParameter_PoolMethod value) {
299 return ::google::protobuf::internal::NameOfEnum(
300 PoolingParameter_PoolMethod_descriptor(), value);
301 }
302 inline bool PoolingParameter_PoolMethod_Parse(
303 const ::std::string& name, PoolingParameter_PoolMethod* value) {
304 return ::google::protobuf::internal::ParseNamedEnum<PoolingParameter_PoolMethod>(
305 PoolingParameter_PoolMethod_descriptor(), name, value);
306 }
307 enum PoolingParameter_Engine {
308 PoolingParameter_Engine_DEFAULT = 0,
309 PoolingParameter_Engine_CAFFE = 1,
310 PoolingParameter_Engine_CUDNN = 2
311 };
312 bool PoolingParameter_Engine_IsValid(int value);
313 const PoolingParameter_Engine PoolingParameter_Engine_Engine_MIN = PoolingParameter_Engine_DEFAULT;
314 const PoolingParameter_Engine PoolingParameter_Engine_Engine_MAX = PoolingParameter_Engine_CUDNN;
315 const int PoolingParameter_Engine_Engine_ARRAYSIZE = PoolingParameter_Engine_Engine_MAX + 1;
317 const ::google::protobuf::EnumDescriptor* PoolingParameter_Engine_descriptor();
318 inline const ::std::string& PoolingParameter_Engine_Name(PoolingParameter_Engine value) {
319 return ::google::protobuf::internal::NameOfEnum(
320 PoolingParameter_Engine_descriptor(), value);
321 }
322 inline bool PoolingParameter_Engine_Parse(
323 const ::std::string& name, PoolingParameter_Engine* value) {
324 return ::google::protobuf::internal::ParseNamedEnum<PoolingParameter_Engine>(
325 PoolingParameter_Engine_descriptor(), name, value);
326 }
327 enum ReLUParameter_Engine {
328 ReLUParameter_Engine_DEFAULT = 0,
329 ReLUParameter_Engine_CAFFE = 1,
330 ReLUParameter_Engine_CUDNN = 2
331 };
332 bool ReLUParameter_Engine_IsValid(int value);
333 const ReLUParameter_Engine ReLUParameter_Engine_Engine_MIN = ReLUParameter_Engine_DEFAULT;
334 const ReLUParameter_Engine ReLUParameter_Engine_Engine_MAX = ReLUParameter_Engine_CUDNN;
335 const int ReLUParameter_Engine_Engine_ARRAYSIZE = ReLUParameter_Engine_Engine_MAX + 1;
337 const ::google::protobuf::EnumDescriptor* ReLUParameter_Engine_descriptor();
338 inline const ::std::string& ReLUParameter_Engine_Name(ReLUParameter_Engine value) {
339 return ::google::protobuf::internal::NameOfEnum(
340 ReLUParameter_Engine_descriptor(), value);
341 }
342 inline bool ReLUParameter_Engine_Parse(
343 const ::std::string& name, ReLUParameter_Engine* value) {
344 return ::google::protobuf::internal::ParseNamedEnum<ReLUParameter_Engine>(
345 ReLUParameter_Engine_descriptor(), name, value);
346 }
347 enum SigmoidParameter_Engine {
348 SigmoidParameter_Engine_DEFAULT = 0,
349 SigmoidParameter_Engine_CAFFE = 1,
350 SigmoidParameter_Engine_CUDNN = 2
351 };
352 bool SigmoidParameter_Engine_IsValid(int value);
353 const SigmoidParameter_Engine SigmoidParameter_Engine_Engine_MIN = SigmoidParameter_Engine_DEFAULT;
354 const SigmoidParameter_Engine SigmoidParameter_Engine_Engine_MAX = SigmoidParameter_Engine_CUDNN;
355 const int SigmoidParameter_Engine_Engine_ARRAYSIZE = SigmoidParameter_Engine_Engine_MAX + 1;
357 const ::google::protobuf::EnumDescriptor* SigmoidParameter_Engine_descriptor();
358 inline const ::std::string& SigmoidParameter_Engine_Name(SigmoidParameter_Engine value) {
359 return ::google::protobuf::internal::NameOfEnum(
360 SigmoidParameter_Engine_descriptor(), value);
361 }
362 inline bool SigmoidParameter_Engine_Parse(
363 const ::std::string& name, SigmoidParameter_Engine* value) {
364 return ::google::protobuf::internal::ParseNamedEnum<SigmoidParameter_Engine>(
365 SigmoidParameter_Engine_descriptor(), name, value);
366 }
367 enum SoftmaxParameter_Engine {
368 SoftmaxParameter_Engine_DEFAULT = 0,
369 SoftmaxParameter_Engine_CAFFE = 1,
370 SoftmaxParameter_Engine_CUDNN = 2
371 };
372 bool SoftmaxParameter_Engine_IsValid(int value);
373 const SoftmaxParameter_Engine SoftmaxParameter_Engine_Engine_MIN = SoftmaxParameter_Engine_DEFAULT;
374 const SoftmaxParameter_Engine SoftmaxParameter_Engine_Engine_MAX = SoftmaxParameter_Engine_CUDNN;
375 const int SoftmaxParameter_Engine_Engine_ARRAYSIZE = SoftmaxParameter_Engine_Engine_MAX + 1;
377 const ::google::protobuf::EnumDescriptor* SoftmaxParameter_Engine_descriptor();
378 inline const ::std::string& SoftmaxParameter_Engine_Name(SoftmaxParameter_Engine value) {
379 return ::google::protobuf::internal::NameOfEnum(
380 SoftmaxParameter_Engine_descriptor(), value);
381 }
382 inline bool SoftmaxParameter_Engine_Parse(
383 const ::std::string& name, SoftmaxParameter_Engine* value) {
384 return ::google::protobuf::internal::ParseNamedEnum<SoftmaxParameter_Engine>(
385 SoftmaxParameter_Engine_descriptor(), name, value);
386 }
387 enum TanHParameter_Engine {
388 TanHParameter_Engine_DEFAULT = 0,
389 TanHParameter_Engine_CAFFE = 1,
390 TanHParameter_Engine_CUDNN = 2
391 };
392 bool TanHParameter_Engine_IsValid(int value);
393 const TanHParameter_Engine TanHParameter_Engine_Engine_MIN = TanHParameter_Engine_DEFAULT;
394 const TanHParameter_Engine TanHParameter_Engine_Engine_MAX = TanHParameter_Engine_CUDNN;
395 const int TanHParameter_Engine_Engine_ARRAYSIZE = TanHParameter_Engine_Engine_MAX + 1;
397 const ::google::protobuf::EnumDescriptor* TanHParameter_Engine_descriptor();
398 inline const ::std::string& TanHParameter_Engine_Name(TanHParameter_Engine value) {
399 return ::google::protobuf::internal::NameOfEnum(
400 TanHParameter_Engine_descriptor(), value);
401 }
402 inline bool TanHParameter_Engine_Parse(
403 const ::std::string& name, TanHParameter_Engine* value) {
404 return ::google::protobuf::internal::ParseNamedEnum<TanHParameter_Engine>(
405 TanHParameter_Engine_descriptor(), name, value);
406 }
407 enum V0LayerParameter_PoolMethod {
408 V0LayerParameter_PoolMethod_MAX = 0,
409 V0LayerParameter_PoolMethod_AVE = 1,
410 V0LayerParameter_PoolMethod_STOCHASTIC = 2
411 };
412 bool V0LayerParameter_PoolMethod_IsValid(int value);
413 const V0LayerParameter_PoolMethod V0LayerParameter_PoolMethod_PoolMethod_MIN = V0LayerParameter_PoolMethod_MAX;
414 const V0LayerParameter_PoolMethod V0LayerParameter_PoolMethod_PoolMethod_MAX = V0LayerParameter_PoolMethod_STOCHASTIC;
415 const int V0LayerParameter_PoolMethod_PoolMethod_ARRAYSIZE = V0LayerParameter_PoolMethod_PoolMethod_MAX + 1;
417 const ::google::protobuf::EnumDescriptor* V0LayerParameter_PoolMethod_descriptor();
418 inline const ::std::string& V0LayerParameter_PoolMethod_Name(V0LayerParameter_PoolMethod value) {
419 return ::google::protobuf::internal::NameOfEnum(
420 V0LayerParameter_PoolMethod_descriptor(), value);
421 }
422 inline bool V0LayerParameter_PoolMethod_Parse(
423 const ::std::string& name, V0LayerParameter_PoolMethod* value) {
424 return ::google::protobuf::internal::ParseNamedEnum<V0LayerParameter_PoolMethod>(
425 V0LayerParameter_PoolMethod_descriptor(), name, value);
426 }
427 enum Phase {
428 TRAIN = 0,
429 TEST = 1
430 };
431 bool Phase_IsValid(int value);
432 const Phase Phase_MIN = TRAIN;
433 const Phase Phase_MAX = TEST;
434 const int Phase_ARRAYSIZE = Phase_MAX + 1;
436 const ::google::protobuf::EnumDescriptor* Phase_descriptor();
437 inline const ::std::string& Phase_Name(Phase value) {
438 return ::google::protobuf::internal::NameOfEnum(
439 Phase_descriptor(), value);
440 }
441 inline bool Phase_Parse(
442 const ::std::string& name, Phase* value) {
443 return ::google::protobuf::internal::ParseNamedEnum<Phase>(
444 Phase_descriptor(), name, value);
445 }
446 // ===================================================================
448 class BlobProto : public ::google::protobuf::Message {
449 public:
450 BlobProto();
451 virtual ~BlobProto();
453 BlobProto(const BlobProto& from);
455 inline BlobProto& operator=(const BlobProto& from) {
456 CopyFrom(from);
457 return *this;
458 }
460 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
461 return _unknown_fields_;
462 }
464 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
465 return &_unknown_fields_;
466 }
468 static const ::google::protobuf::Descriptor* descriptor();
469 static const BlobProto& default_instance();
471 void Swap(BlobProto* other);
473 // implements Message ----------------------------------------------
475 BlobProto* New() const;
476 void CopyFrom(const ::google::protobuf::Message& from);
477 void MergeFrom(const ::google::protobuf::Message& from);
478 void CopyFrom(const BlobProto& from);
479 void MergeFrom(const BlobProto& from);
480 void Clear();
481 bool IsInitialized() const;
483 int ByteSize() const;
484 bool MergePartialFromCodedStream(
485 ::google::protobuf::io::CodedInputStream* input);
486 void SerializeWithCachedSizes(
487 ::google::protobuf::io::CodedOutputStream* output) const;
488 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
489 int GetCachedSize() const { return _cached_size_; }
490 private:
491 void SharedCtor();
492 void SharedDtor();
493 void SetCachedSize(int size) const;
494 public:
496 ::google::protobuf::Metadata GetMetadata() const;
498 // nested types ----------------------------------------------------
500 // accessors -------------------------------------------------------
502 // optional int32 num = 1 [default = 0];
503 inline bool has_num() const;
504 inline void clear_num();
505 static const int kNumFieldNumber = 1;
506 inline ::google::protobuf::int32 num() const;
507 inline void set_num(::google::protobuf::int32 value);
509 // optional int32 channels = 2 [default = 0];
510 inline bool has_channels() const;
511 inline void clear_channels();
512 static const int kChannelsFieldNumber = 2;
513 inline ::google::protobuf::int32 channels() const;
514 inline void set_channels(::google::protobuf::int32 value);
516 // optional int32 height = 3 [default = 0];
517 inline bool has_height() const;
518 inline void clear_height();
519 static const int kHeightFieldNumber = 3;
520 inline ::google::protobuf::int32 height() const;
521 inline void set_height(::google::protobuf::int32 value);
523 // optional int32 width = 4 [default = 0];
524 inline bool has_width() const;
525 inline void clear_width();
526 static const int kWidthFieldNumber = 4;
527 inline ::google::protobuf::int32 width() const;
528 inline void set_width(::google::protobuf::int32 value);
530 // repeated float data = 5 [packed = true];
531 inline int data_size() const;
532 inline void clear_data();
533 static const int kDataFieldNumber = 5;
534 inline float data(int index) const;
535 inline void set_data(int index, float value);
536 inline void add_data(float value);
537 inline const ::google::protobuf::RepeatedField< float >&
538 data() const;
539 inline ::google::protobuf::RepeatedField< float >*
540 mutable_data();
542 // repeated float diff = 6 [packed = true];
543 inline int diff_size() const;
544 inline void clear_diff();
545 static const int kDiffFieldNumber = 6;
546 inline float diff(int index) const;
547 inline void set_diff(int index, float value);
548 inline void add_diff(float value);
549 inline const ::google::protobuf::RepeatedField< float >&
550 diff() const;
551 inline ::google::protobuf::RepeatedField< float >*
552 mutable_diff();
554 // @@protoc_insertion_point(class_scope:caffe.BlobProto)
555 private:
556 inline void set_has_num();
557 inline void clear_has_num();
558 inline void set_has_channels();
559 inline void clear_has_channels();
560 inline void set_has_height();
561 inline void clear_has_height();
562 inline void set_has_width();
563 inline void clear_has_width();
565 ::google::protobuf::UnknownFieldSet _unknown_fields_;
567 ::google::protobuf::int32 num_;
568 ::google::protobuf::int32 channels_;
569 ::google::protobuf::int32 height_;
570 ::google::protobuf::int32 width_;
571 ::google::protobuf::RepeatedField< float > data_;
572 mutable int _data_cached_byte_size_;
573 ::google::protobuf::RepeatedField< float > diff_;
574 mutable int _diff_cached_byte_size_;
576 mutable int _cached_size_;
577 ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
579 friend void protobuf_AddDesc_caffe_2eproto();
580 friend void protobuf_AssignDesc_caffe_2eproto();
581 friend void protobuf_ShutdownFile_caffe_2eproto();
583 void InitAsDefaultInstance();
584 static BlobProto* default_instance_;
585 };
586 // -------------------------------------------------------------------
588 class BlobProtoVector : public ::google::protobuf::Message {
589 public:
590 BlobProtoVector();
591 virtual ~BlobProtoVector();
593 BlobProtoVector(const BlobProtoVector& from);
595 inline BlobProtoVector& operator=(const BlobProtoVector& from) {
596 CopyFrom(from);
597 return *this;
598 }
600 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
601 return _unknown_fields_;
602 }
604 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
605 return &_unknown_fields_;
606 }
608 static const ::google::protobuf::Descriptor* descriptor();
609 static const BlobProtoVector& default_instance();
611 void Swap(BlobProtoVector* other);
613 // implements Message ----------------------------------------------
615 BlobProtoVector* New() const;
616 void CopyFrom(const ::google::protobuf::Message& from);
617 void MergeFrom(const ::google::protobuf::Message& from);
618 void CopyFrom(const BlobProtoVector& from);
619 void MergeFrom(const BlobProtoVector& from);
620 void Clear();
621 bool IsInitialized() const;
623 int ByteSize() const;
624 bool MergePartialFromCodedStream(
625 ::google::protobuf::io::CodedInputStream* input);
626 void SerializeWithCachedSizes(
627 ::google::protobuf::io::CodedOutputStream* output) const;
628 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
629 int GetCachedSize() const { return _cached_size_; }
630 private:
631 void SharedCtor();
632 void SharedDtor();
633 void SetCachedSize(int size) const;
634 public:
636 ::google::protobuf::Metadata GetMetadata() const;
638 // nested types ----------------------------------------------------
640 // accessors -------------------------------------------------------
642 // repeated .caffe.BlobProto blobs = 1;
643 inline int blobs_size() const;
644 inline void clear_blobs();
645 static const int kBlobsFieldNumber = 1;
646 inline const ::caffe::BlobProto& blobs(int index) const;
647 inline ::caffe::BlobProto* mutable_blobs(int index);
648 inline ::caffe::BlobProto* add_blobs();
649 inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >&
650 blobs() const;
651 inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >*
652 mutable_blobs();
654 // @@protoc_insertion_point(class_scope:caffe.BlobProtoVector)
655 private:
657 ::google::protobuf::UnknownFieldSet _unknown_fields_;
659 ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto > blobs_;
661 mutable int _cached_size_;
662 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
664 friend void protobuf_AddDesc_caffe_2eproto();
665 friend void protobuf_AssignDesc_caffe_2eproto();
666 friend void protobuf_ShutdownFile_caffe_2eproto();
668 void InitAsDefaultInstance();
669 static BlobProtoVector* default_instance_;
670 };
671 // -------------------------------------------------------------------
673 class Datum : public ::google::protobuf::Message {
674 public:
675 Datum();
676 virtual ~Datum();
678 Datum(const Datum& from);
680 inline Datum& operator=(const Datum& from) {
681 CopyFrom(from);
682 return *this;
683 }
685 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
686 return _unknown_fields_;
687 }
689 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
690 return &_unknown_fields_;
691 }
693 static const ::google::protobuf::Descriptor* descriptor();
694 static const Datum& default_instance();
696 void Swap(Datum* other);
698 // implements Message ----------------------------------------------
700 Datum* New() const;
701 void CopyFrom(const ::google::protobuf::Message& from);
702 void MergeFrom(const ::google::protobuf::Message& from);
703 void CopyFrom(const Datum& from);
704 void MergeFrom(const Datum& from);
705 void Clear();
706 bool IsInitialized() const;
708 int ByteSize() const;
709 bool MergePartialFromCodedStream(
710 ::google::protobuf::io::CodedInputStream* input);
711 void SerializeWithCachedSizes(
712 ::google::protobuf::io::CodedOutputStream* output) const;
713 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
714 int GetCachedSize() const { return _cached_size_; }
715 private:
716 void SharedCtor();
717 void SharedDtor();
718 void SetCachedSize(int size) const;
719 public:
721 ::google::protobuf::Metadata GetMetadata() const;
723 // nested types ----------------------------------------------------
725 // accessors -------------------------------------------------------
727 // optional int32 channels = 1;
728 inline bool has_channels() const;
729 inline void clear_channels();
730 static const int kChannelsFieldNumber = 1;
731 inline ::google::protobuf::int32 channels() const;
732 inline void set_channels(::google::protobuf::int32 value);
734 // optional int32 height = 2;
735 inline bool has_height() const;
736 inline void clear_height();
737 static const int kHeightFieldNumber = 2;
738 inline ::google::protobuf::int32 height() const;
739 inline void set_height(::google::protobuf::int32 value);
741 // optional int32 width = 3;
742 inline bool has_width() const;
743 inline void clear_width();
744 static const int kWidthFieldNumber = 3;
745 inline ::google::protobuf::int32 width() const;
746 inline void set_width(::google::protobuf::int32 value);
748 // optional bytes data = 4;
749 inline bool has_data() const;
750 inline void clear_data();
751 static const int kDataFieldNumber = 4;
752 inline const ::std::string& data() const;
753 inline void set_data(const ::std::string& value);
754 inline void set_data(const char* value);
755 inline void set_data(const void* value, size_t size);
756 inline ::std::string* mutable_data();
757 inline ::std::string* release_data();
758 inline void set_allocated_data(::std::string* data);
760 // optional int32 label = 5;
761 inline bool has_label() const;
762 inline void clear_label();
763 static const int kLabelFieldNumber = 5;
764 inline ::google::protobuf::int32 label() const;
765 inline void set_label(::google::protobuf::int32 value);
767 // repeated float float_data = 6;
768 inline int float_data_size() const;
769 inline void clear_float_data();
770 static const int kFloatDataFieldNumber = 6;
771 inline float float_data(int index) const;
772 inline void set_float_data(int index, float value);
773 inline void add_float_data(float value);
774 inline const ::google::protobuf::RepeatedField< float >&
775 float_data() const;
776 inline ::google::protobuf::RepeatedField< float >*
777 mutable_float_data();
779 // @@protoc_insertion_point(class_scope:caffe.Datum)
780 private:
781 inline void set_has_channels();
782 inline void clear_has_channels();
783 inline void set_has_height();
784 inline void clear_has_height();
785 inline void set_has_width();
786 inline void clear_has_width();
787 inline void set_has_data();
788 inline void clear_has_data();
789 inline void set_has_label();
790 inline void clear_has_label();
792 ::google::protobuf::UnknownFieldSet _unknown_fields_;
794 ::google::protobuf::int32 channels_;
795 ::google::protobuf::int32 height_;
796 ::std::string* data_;
797 ::google::protobuf::int32 width_;
798 ::google::protobuf::int32 label_;
799 ::google::protobuf::RepeatedField< float > float_data_;
801 mutable int _cached_size_;
802 ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
804 friend void protobuf_AddDesc_caffe_2eproto();
805 friend void protobuf_AssignDesc_caffe_2eproto();
806 friend void protobuf_ShutdownFile_caffe_2eproto();
808 void InitAsDefaultInstance();
809 static Datum* default_instance_;
810 };
811 // -------------------------------------------------------------------
813 class FillerParameter : public ::google::protobuf::Message {
814 public:
815 FillerParameter();
816 virtual ~FillerParameter();
818 FillerParameter(const FillerParameter& from);
820 inline FillerParameter& operator=(const FillerParameter& from) {
821 CopyFrom(from);
822 return *this;
823 }
825 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
826 return _unknown_fields_;
827 }
829 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
830 return &_unknown_fields_;
831 }
833 static const ::google::protobuf::Descriptor* descriptor();
834 static const FillerParameter& default_instance();
836 void Swap(FillerParameter* other);
838 // implements Message ----------------------------------------------
840 FillerParameter* New() const;
841 void CopyFrom(const ::google::protobuf::Message& from);
842 void MergeFrom(const ::google::protobuf::Message& from);
843 void CopyFrom(const FillerParameter& from);
844 void MergeFrom(const FillerParameter& from);
845 void Clear();
846 bool IsInitialized() const;
848 int ByteSize() const;
849 bool MergePartialFromCodedStream(
850 ::google::protobuf::io::CodedInputStream* input);
851 void SerializeWithCachedSizes(
852 ::google::protobuf::io::CodedOutputStream* output) const;
853 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
854 int GetCachedSize() const { return _cached_size_; }
855 private:
856 void SharedCtor();
857 void SharedDtor();
858 void SetCachedSize(int size) const;
859 public:
861 ::google::protobuf::Metadata GetMetadata() const;
863 // nested types ----------------------------------------------------
865 // accessors -------------------------------------------------------
867 // optional string type = 1 [default = "constant"];
868 inline bool has_type() const;
869 inline void clear_type();
870 static const int kTypeFieldNumber = 1;
871 inline const ::std::string& type() const;
872 inline void set_type(const ::std::string& value);
873 inline void set_type(const char* value);
874 inline void set_type(const char* value, size_t size);
875 inline ::std::string* mutable_type();
876 inline ::std::string* release_type();
877 inline void set_allocated_type(::std::string* type);
879 // optional float value = 2 [default = 0];
880 inline bool has_value() const;
881 inline void clear_value();
882 static const int kValueFieldNumber = 2;
883 inline float value() const;
884 inline void set_value(float value);
886 // optional float min = 3 [default = 0];
887 inline bool has_min() const;
888 inline void clear_min();
889 static const int kMinFieldNumber = 3;
890 inline float min() const;
891 inline void set_min(float value);
893 // optional float max = 4 [default = 1];
894 inline bool has_max() const;
895 inline void clear_max();
896 static const int kMaxFieldNumber = 4;
897 inline float max() const;
898 inline void set_max(float value);
900 // optional float mean = 5 [default = 0];
901 inline bool has_mean() const;
902 inline void clear_mean();
903 static const int kMeanFieldNumber = 5;
904 inline float mean() const;
905 inline void set_mean(float value);
907 // optional float std = 6 [default = 1];
908 inline bool has_std() const;
909 inline void clear_std();
910 static const int kStdFieldNumber = 6;
911 inline float std() const;
912 inline void set_std(float value);
914 // optional int32 sparse = 7 [default = -1];
915 inline bool has_sparse() const;
916 inline void clear_sparse();
917 static const int kSparseFieldNumber = 7;
918 inline ::google::protobuf::int32 sparse() const;
919 inline void set_sparse(::google::protobuf::int32 value);
921 // @@protoc_insertion_point(class_scope:caffe.FillerParameter)
922 private:
923 inline void set_has_type();
924 inline void clear_has_type();
925 inline void set_has_value();
926 inline void clear_has_value();
927 inline void set_has_min();
928 inline void clear_has_min();
929 inline void set_has_max();
930 inline void clear_has_max();
931 inline void set_has_mean();
932 inline void clear_has_mean();
933 inline void set_has_std();
934 inline void clear_has_std();
935 inline void set_has_sparse();
936 inline void clear_has_sparse();
938 ::google::protobuf::UnknownFieldSet _unknown_fields_;
940 ::std::string* type_;
941 static ::std::string* _default_type_;
942 float value_;
943 float min_;
944 float max_;
945 float mean_;
946 float std_;
947 ::google::protobuf::int32 sparse_;
949 mutable int _cached_size_;
950 ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
952 friend void protobuf_AddDesc_caffe_2eproto();
953 friend void protobuf_AssignDesc_caffe_2eproto();
954 friend void protobuf_ShutdownFile_caffe_2eproto();
956 void InitAsDefaultInstance();
957 static FillerParameter* default_instance_;
958 };
959 // -------------------------------------------------------------------
961 class NetParameter : public ::google::protobuf::Message {
962 public:
963 NetParameter();
964 virtual ~NetParameter();
966 NetParameter(const NetParameter& from);
968 inline NetParameter& operator=(const NetParameter& from) {
969 CopyFrom(from);
970 return *this;
971 }
973 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
974 return _unknown_fields_;
975 }
977 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
978 return &_unknown_fields_;
979 }
981 static const ::google::protobuf::Descriptor* descriptor();
982 static const NetParameter& default_instance();
984 void Swap(NetParameter* other);
986 // implements Message ----------------------------------------------
988 NetParameter* New() const;
989 void CopyFrom(const ::google::protobuf::Message& from);
990 void MergeFrom(const ::google::protobuf::Message& from);
991 void CopyFrom(const NetParameter& from);
992 void MergeFrom(const NetParameter& from);
993 void Clear();
994 bool IsInitialized() const;
996 int ByteSize() const;
997 bool MergePartialFromCodedStream(
998 ::google::protobuf::io::CodedInputStream* input);
999 void SerializeWithCachedSizes(
1000 ::google::protobuf::io::CodedOutputStream* output) const;
1001 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1002 int GetCachedSize() const { return _cached_size_; }
1003 private:
1004 void SharedCtor();
1005 void SharedDtor();
1006 void SetCachedSize(int size) const;
1007 public:
1009 ::google::protobuf::Metadata GetMetadata() const;
1011 // nested types ----------------------------------------------------
1013 // accessors -------------------------------------------------------
1015 // optional string name = 1;
1016 inline bool has_name() const;
1017 inline void clear_name();
1018 static const int kNameFieldNumber = 1;
1019 inline const ::std::string& name() const;
1020 inline void set_name(const ::std::string& value);
1021 inline void set_name(const char* value);
1022 inline void set_name(const char* value, size_t size);
1023 inline ::std::string* mutable_name();
1024 inline ::std::string* release_name();
1025 inline void set_allocated_name(::std::string* name);
1027 // repeated .caffe.LayerParameter layers = 2;
1028 inline int layers_size() const;
1029 inline void clear_layers();
1030 static const int kLayersFieldNumber = 2;
1031 inline const ::caffe::LayerParameter& layers(int index) const;
1032 inline ::caffe::LayerParameter* mutable_layers(int index);
1033 inline ::caffe::LayerParameter* add_layers();
1034 inline const ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter >&
1035 layers() const;
1036 inline ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter >*
1037 mutable_layers();
1039 // repeated string input = 3;
1040 inline int input_size() const;
1041 inline void clear_input();
1042 static const int kInputFieldNumber = 3;
1043 inline const ::std::string& input(int index) const;
1044 inline ::std::string* mutable_input(int index);
1045 inline void set_input(int index, const ::std::string& value);
1046 inline void set_input(int index, const char* value);
1047 inline void set_input(int index, const char* value, size_t size);
1048 inline ::std::string* add_input();
1049 inline void add_input(const ::std::string& value);
1050 inline void add_input(const char* value);
1051 inline void add_input(const char* value, size_t size);
1052 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const;
1053 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input();
1055 // repeated int32 input_dim = 4;
1056 inline int input_dim_size() const;
1057 inline void clear_input_dim();
1058 static const int kInputDimFieldNumber = 4;
1059 inline ::google::protobuf::int32 input_dim(int index) const;
1060 inline void set_input_dim(int index, ::google::protobuf::int32 value);
1061 inline void add_input_dim(::google::protobuf::int32 value);
1062 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1063 input_dim() const;
1064 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1065 mutable_input_dim();
1067 // optional bool force_backward = 5 [default = false];
1068 inline bool has_force_backward() const;
1069 inline void clear_force_backward();
1070 static const int kForceBackwardFieldNumber = 5;
1071 inline bool force_backward() const;
1072 inline void set_force_backward(bool value);
1074 // optional .caffe.NetState state = 6;
1075 inline bool has_state() const;
1076 inline void clear_state();
1077 static const int kStateFieldNumber = 6;
1078 inline const ::caffe::NetState& state() const;
1079 inline ::caffe::NetState* mutable_state();
1080 inline ::caffe::NetState* release_state();
1081 inline void set_allocated_state(::caffe::NetState* state);
1083 // @@protoc_insertion_point(class_scope:caffe.NetParameter)
1084 private:
1085 inline void set_has_name();
1086 inline void clear_has_name();
1087 inline void set_has_force_backward();
1088 inline void clear_has_force_backward();
1089 inline void set_has_state();
1090 inline void clear_has_state();
1092 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1094 ::std::string* name_;
1095 ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter > layers_;
1096 ::google::protobuf::RepeatedPtrField< ::std::string> input_;
1097 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > input_dim_;
1098 ::caffe::NetState* state_;
1099 bool force_backward_;
1101 mutable int _cached_size_;
1102 ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
1104 friend void protobuf_AddDesc_caffe_2eproto();
1105 friend void protobuf_AssignDesc_caffe_2eproto();
1106 friend void protobuf_ShutdownFile_caffe_2eproto();
1108 void InitAsDefaultInstance();
1109 static NetParameter* default_instance_;
1110 };
1111 // -------------------------------------------------------------------
1113 class SolverParameter : public ::google::protobuf::Message {
1114 public:
1115 SolverParameter();
1116 virtual ~SolverParameter();
1118 SolverParameter(const SolverParameter& from);
1120 inline SolverParameter& operator=(const SolverParameter& from) {
1121 CopyFrom(from);
1122 return *this;
1123 }
1125 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1126 return _unknown_fields_;
1127 }
1129 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1130 return &_unknown_fields_;
1131 }
1133 static const ::google::protobuf::Descriptor* descriptor();
1134 static const SolverParameter& default_instance();
1136 void Swap(SolverParameter* other);
1138 // implements Message ----------------------------------------------
1140 SolverParameter* New() const;
1141 void CopyFrom(const ::google::protobuf::Message& from);
1142 void MergeFrom(const ::google::protobuf::Message& from);
1143 void CopyFrom(const SolverParameter& from);
1144 void MergeFrom(const SolverParameter& from);
1145 void Clear();
1146 bool IsInitialized() const;
1148 int ByteSize() const;
1149 bool MergePartialFromCodedStream(
1150 ::google::protobuf::io::CodedInputStream* input);
1151 void SerializeWithCachedSizes(
1152 ::google::protobuf::io::CodedOutputStream* output) const;
1153 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1154 int GetCachedSize() const { return _cached_size_; }
1155 private:
1156 void SharedCtor();
1157 void SharedDtor();
1158 void SetCachedSize(int size) const;
1159 public:
1161 ::google::protobuf::Metadata GetMetadata() const;
1163 // nested types ----------------------------------------------------
1165 typedef SolverParameter_SolverMode SolverMode;
1166 static const SolverMode CPU = SolverParameter_SolverMode_CPU;
1167 static const SolverMode GPU = SolverParameter_SolverMode_GPU;
1168 static inline bool SolverMode_IsValid(int value) {
1169 return SolverParameter_SolverMode_IsValid(value);
1170 }
1171 static const SolverMode SolverMode_MIN =
1172 SolverParameter_SolverMode_SolverMode_MIN;
1173 static const SolverMode SolverMode_MAX =
1174 SolverParameter_SolverMode_SolverMode_MAX;
1175 static const int SolverMode_ARRAYSIZE =
1176 SolverParameter_SolverMode_SolverMode_ARRAYSIZE;
1177 static inline const ::google::protobuf::EnumDescriptor*
1178 SolverMode_descriptor() {
1179 return SolverParameter_SolverMode_descriptor();
1180 }
1181 static inline const ::std::string& SolverMode_Name(SolverMode value) {
1182 return SolverParameter_SolverMode_Name(value);
1183 }
1184 static inline bool SolverMode_Parse(const ::std::string& name,
1185 SolverMode* value) {
1186 return SolverParameter_SolverMode_Parse(name, value);
1187 }
1189 typedef SolverParameter_SolverType SolverType;
1190 static const SolverType SGD = SolverParameter_SolverType_SGD;
1191 static const SolverType NESTEROV = SolverParameter_SolverType_NESTEROV;
1192 static const SolverType ADAGRAD = SolverParameter_SolverType_ADAGRAD;
1193 static inline bool SolverType_IsValid(int value) {
1194 return SolverParameter_SolverType_IsValid(value);
1195 }
1196 static const SolverType SolverType_MIN =
1197 SolverParameter_SolverType_SolverType_MIN;
1198 static const SolverType SolverType_MAX =
1199 SolverParameter_SolverType_SolverType_MAX;
1200 static const int SolverType_ARRAYSIZE =
1201 SolverParameter_SolverType_SolverType_ARRAYSIZE;
1202 static inline const ::google::protobuf::EnumDescriptor*
1203 SolverType_descriptor() {
1204 return SolverParameter_SolverType_descriptor();
1205 }
1206 static inline const ::std::string& SolverType_Name(SolverType value) {
1207 return SolverParameter_SolverType_Name(value);
1208 }
1209 static inline bool SolverType_Parse(const ::std::string& name,
1210 SolverType* value) {
1211 return SolverParameter_SolverType_Parse(name, value);
1212 }
1214 // accessors -------------------------------------------------------
1216 // optional string net = 24;
1217 inline bool has_net() const;
1218 inline void clear_net();
1219 static const int kNetFieldNumber = 24;
1220 inline const ::std::string& net() const;
1221 inline void set_net(const ::std::string& value);
1222 inline void set_net(const char* value);
1223 inline void set_net(const char* value, size_t size);
1224 inline ::std::string* mutable_net();
1225 inline ::std::string* release_net();
1226 inline void set_allocated_net(::std::string* net);
1228 // optional .caffe.NetParameter net_param = 25;
1229 inline bool has_net_param() const;
1230 inline void clear_net_param();
1231 static const int kNetParamFieldNumber = 25;
1232 inline const ::caffe::NetParameter& net_param() const;
1233 inline ::caffe::NetParameter* mutable_net_param();
1234 inline ::caffe::NetParameter* release_net_param();
1235 inline void set_allocated_net_param(::caffe::NetParameter* net_param);
1237 // optional string train_net = 1;
1238 inline bool has_train_net() const;
1239 inline void clear_train_net();
1240 static const int kTrainNetFieldNumber = 1;
1241 inline const ::std::string& train_net() const;
1242 inline void set_train_net(const ::std::string& value);
1243 inline void set_train_net(const char* value);
1244 inline void set_train_net(const char* value, size_t size);
1245 inline ::std::string* mutable_train_net();
1246 inline ::std::string* release_train_net();
1247 inline void set_allocated_train_net(::std::string* train_net);
1249 // repeated string test_net = 2;
1250 inline int test_net_size() const;
1251 inline void clear_test_net();
1252 static const int kTestNetFieldNumber = 2;
1253 inline const ::std::string& test_net(int index) const;
1254 inline ::std::string* mutable_test_net(int index);
1255 inline void set_test_net(int index, const ::std::string& value);
1256 inline void set_test_net(int index, const char* value);
1257 inline void set_test_net(int index, const char* value, size_t size);
1258 inline ::std::string* add_test_net();
1259 inline void add_test_net(const ::std::string& value);
1260 inline void add_test_net(const char* value);
1261 inline void add_test_net(const char* value, size_t size);
1262 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& test_net() const;
1263 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_test_net();
1265 // optional .caffe.NetParameter train_net_param = 21;
1266 inline bool has_train_net_param() const;
1267 inline void clear_train_net_param();
1268 static const int kTrainNetParamFieldNumber = 21;
1269 inline const ::caffe::NetParameter& train_net_param() const;
1270 inline ::caffe::NetParameter* mutable_train_net_param();
1271 inline ::caffe::NetParameter* release_train_net_param();
1272 inline void set_allocated_train_net_param(::caffe::NetParameter* train_net_param);
1274 // repeated .caffe.NetParameter test_net_param = 22;
1275 inline int test_net_param_size() const;
1276 inline void clear_test_net_param();
1277 static const int kTestNetParamFieldNumber = 22;
1278 inline const ::caffe::NetParameter& test_net_param(int index) const;
1279 inline ::caffe::NetParameter* mutable_test_net_param(int index);
1280 inline ::caffe::NetParameter* add_test_net_param();
1281 inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter >&
1282 test_net_param() const;
1283 inline ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter >*
1284 mutable_test_net_param();
1286 // optional .caffe.NetState train_state = 26;
1287 inline bool has_train_state() const;
1288 inline void clear_train_state();
1289 static const int kTrainStateFieldNumber = 26;
1290 inline const ::caffe::NetState& train_state() const;
1291 inline ::caffe::NetState* mutable_train_state();
1292 inline ::caffe::NetState* release_train_state();
1293 inline void set_allocated_train_state(::caffe::NetState* train_state);
1295 // repeated .caffe.NetState test_state = 27;
1296 inline int test_state_size() const;
1297 inline void clear_test_state();
1298 static const int kTestStateFieldNumber = 27;
1299 inline const ::caffe::NetState& test_state(int index) const;
1300 inline ::caffe::NetState* mutable_test_state(int index);
1301 inline ::caffe::NetState* add_test_state();
1302 inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetState >&
1303 test_state() const;
1304 inline ::google::protobuf::RepeatedPtrField< ::caffe::NetState >*
1305 mutable_test_state();
1307 // repeated int32 test_iter = 3;
1308 inline int test_iter_size() const;
1309 inline void clear_test_iter();
1310 static const int kTestIterFieldNumber = 3;
1311 inline ::google::protobuf::int32 test_iter(int index) const;
1312 inline void set_test_iter(int index, ::google::protobuf::int32 value);
1313 inline void add_test_iter(::google::protobuf::int32 value);
1314 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1315 test_iter() const;
1316 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1317 mutable_test_iter();
1319 // optional int32 test_interval = 4 [default = 0];
1320 inline bool has_test_interval() const;
1321 inline void clear_test_interval();
1322 static const int kTestIntervalFieldNumber = 4;
1323 inline ::google::protobuf::int32 test_interval() const;
1324 inline void set_test_interval(::google::protobuf::int32 value);
1326 // optional bool test_compute_loss = 19 [default = false];
1327 inline bool has_test_compute_loss() const;
1328 inline void clear_test_compute_loss();
1329 static const int kTestComputeLossFieldNumber = 19;
1330 inline bool test_compute_loss() const;
1331 inline void set_test_compute_loss(bool value);
1333 // optional bool test_initialization = 32 [default = true];
1334 inline bool has_test_initialization() const;
1335 inline void clear_test_initialization();
1336 static const int kTestInitializationFieldNumber = 32;
1337 inline bool test_initialization() const;
1338 inline void set_test_initialization(bool value);
1340 // optional float base_lr = 5;
1341 inline bool has_base_lr() const;
1342 inline void clear_base_lr();
1343 static const int kBaseLrFieldNumber = 5;
1344 inline float base_lr() const;
1345 inline void set_base_lr(float value);
1347 // optional int32 display = 6;
1348 inline bool has_display() const;
1349 inline void clear_display();
1350 static const int kDisplayFieldNumber = 6;
1351 inline ::google::protobuf::int32 display() const;
1352 inline void set_display(::google::protobuf::int32 value);
1354 // optional int32 average_loss = 33 [default = 1];
1355 inline bool has_average_loss() const;
1356 inline void clear_average_loss();
1357 static const int kAverageLossFieldNumber = 33;
1358 inline ::google::protobuf::int32 average_loss() const;
1359 inline void set_average_loss(::google::protobuf::int32 value);
1361 // optional int32 max_iter = 7;
1362 inline bool has_max_iter() const;
1363 inline void clear_max_iter();
1364 static const int kMaxIterFieldNumber = 7;
1365 inline ::google::protobuf::int32 max_iter() const;
1366 inline void set_max_iter(::google::protobuf::int32 value);
1368 // optional string lr_policy = 8;
1369 inline bool has_lr_policy() const;
1370 inline void clear_lr_policy();
1371 static const int kLrPolicyFieldNumber = 8;
1372 inline const ::std::string& lr_policy() const;
1373 inline void set_lr_policy(const ::std::string& value);
1374 inline void set_lr_policy(const char* value);
1375 inline void set_lr_policy(const char* value, size_t size);
1376 inline ::std::string* mutable_lr_policy();
1377 inline ::std::string* release_lr_policy();
1378 inline void set_allocated_lr_policy(::std::string* lr_policy);
1380 // optional float gamma = 9;
1381 inline bool has_gamma() const;
1382 inline void clear_gamma();
1383 static const int kGammaFieldNumber = 9;
1384 inline float gamma() const;
1385 inline void set_gamma(float value);
1387 // optional float power = 10;
1388 inline bool has_power() const;
1389 inline void clear_power();
1390 static const int kPowerFieldNumber = 10;
1391 inline float power() const;
1392 inline void set_power(float value);
1394 // optional float momentum = 11;
1395 inline bool has_momentum() const;
1396 inline void clear_momentum();
1397 static const int kMomentumFieldNumber = 11;
1398 inline float momentum() const;
1399 inline void set_momentum(float value);
1401 // optional float weight_decay = 12;
1402 inline bool has_weight_decay() const;
1403 inline void clear_weight_decay();
1404 static const int kWeightDecayFieldNumber = 12;
1405 inline float weight_decay() const;
1406 inline void set_weight_decay(float value);
1408 // optional string regularization_type = 29 [default = "L2"];
1409 inline bool has_regularization_type() const;
1410 inline void clear_regularization_type();
1411 static const int kRegularizationTypeFieldNumber = 29;
1412 inline const ::std::string& regularization_type() const;
1413 inline void set_regularization_type(const ::std::string& value);
1414 inline void set_regularization_type(const char* value);
1415 inline void set_regularization_type(const char* value, size_t size);
1416 inline ::std::string* mutable_regularization_type();
1417 inline ::std::string* release_regularization_type();
1418 inline void set_allocated_regularization_type(::std::string* regularization_type);
1420 // optional int32 stepsize = 13;
1421 inline bool has_stepsize() const;
1422 inline void clear_stepsize();
1423 static const int kStepsizeFieldNumber = 13;
1424 inline ::google::protobuf::int32 stepsize() const;
1425 inline void set_stepsize(::google::protobuf::int32 value);
1427 // repeated int32 stepvalue = 34;
1428 inline int stepvalue_size() const;
1429 inline void clear_stepvalue();
1430 static const int kStepvalueFieldNumber = 34;
1431 inline ::google::protobuf::int32 stepvalue(int index) const;
1432 inline void set_stepvalue(int index, ::google::protobuf::int32 value);
1433 inline void add_stepvalue(::google::protobuf::int32 value);
1434 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1435 stepvalue() const;
1436 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1437 mutable_stepvalue();
1439 // optional int32 snapshot = 14 [default = 0];
1440 inline bool has_snapshot() const;
1441 inline void clear_snapshot();
1442 static const int kSnapshotFieldNumber = 14;
1443 inline ::google::protobuf::int32 snapshot() const;
1444 inline void set_snapshot(::google::protobuf::int32 value);
1446 // optional string snapshot_prefix = 15;
1447 inline bool has_snapshot_prefix() const;
1448 inline void clear_snapshot_prefix();
1449 static const int kSnapshotPrefixFieldNumber = 15;
1450 inline const ::std::string& snapshot_prefix() const;
1451 inline void set_snapshot_prefix(const ::std::string& value);
1452 inline void set_snapshot_prefix(const char* value);
1453 inline void set_snapshot_prefix(const char* value, size_t size);
1454 inline ::std::string* mutable_snapshot_prefix();
1455 inline ::std::string* release_snapshot_prefix();
1456 inline void set_allocated_snapshot_prefix(::std::string* snapshot_prefix);
1458 // optional bool snapshot_diff = 16 [default = false];
1459 inline bool has_snapshot_diff() const;
1460 inline void clear_snapshot_diff();
1461 static const int kSnapshotDiffFieldNumber = 16;
1462 inline bool snapshot_diff() const;
1463 inline void set_snapshot_diff(bool value);
1465 // optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
1466 inline bool has_solver_mode() const;
1467 inline void clear_solver_mode();
1468 static const int kSolverModeFieldNumber = 17;
1469 inline ::caffe::SolverParameter_SolverMode solver_mode() const;
1470 inline void set_solver_mode(::caffe::SolverParameter_SolverMode value);
1472 // optional int32 device_id = 18 [default = 0];
1473 inline bool has_device_id() const;
1474 inline void clear_device_id();
1475 static const int kDeviceIdFieldNumber = 18;
1476 inline ::google::protobuf::int32 device_id() const;
1477 inline void set_device_id(::google::protobuf::int32 value);
1479 // optional int64 random_seed = 20 [default = -1];
1480 inline bool has_random_seed() const;
1481 inline void clear_random_seed();
1482 static const int kRandomSeedFieldNumber = 20;
1483 inline ::google::protobuf::int64 random_seed() const;
1484 inline void set_random_seed(::google::protobuf::int64 value);
1486 // optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
1487 inline bool has_solver_type() const;
1488 inline void clear_solver_type();
1489 static const int kSolverTypeFieldNumber = 30;
1490 inline ::caffe::SolverParameter_SolverType solver_type() const;
1491 inline void set_solver_type(::caffe::SolverParameter_SolverType value);
1493 // optional float delta = 31 [default = 1e-08];
1494 inline bool has_delta() const;
1495 inline void clear_delta();
1496 static const int kDeltaFieldNumber = 31;
1497 inline float delta() const;
1498 inline void set_delta(float value);
1500 // optional bool debug_info = 23 [default = false];
1501 inline bool has_debug_info() const;
1502 inline void clear_debug_info();
1503 static const int kDebugInfoFieldNumber = 23;
1504 inline bool debug_info() const;
1505 inline void set_debug_info(bool value);
1507 // optional bool snapshot_after_train = 28 [default = true];
1508 inline bool has_snapshot_after_train() const;
1509 inline void clear_snapshot_after_train();
1510 static const int kSnapshotAfterTrainFieldNumber = 28;
1511 inline bool snapshot_after_train() const;
1512 inline void set_snapshot_after_train(bool value);
1514 // @@protoc_insertion_point(class_scope:caffe.SolverParameter)
1515 private:
1516 inline void set_has_net();
1517 inline void clear_has_net();
1518 inline void set_has_net_param();
1519 inline void clear_has_net_param();
1520 inline void set_has_train_net();
1521 inline void clear_has_train_net();
1522 inline void set_has_train_net_param();
1523 inline void clear_has_train_net_param();
1524 inline void set_has_train_state();
1525 inline void clear_has_train_state();
1526 inline void set_has_test_interval();
1527 inline void clear_has_test_interval();
1528 inline void set_has_test_compute_loss();
1529 inline void clear_has_test_compute_loss();
1530 inline void set_has_test_initialization();
1531 inline void clear_has_test_initialization();
1532 inline void set_has_base_lr();
1533 inline void clear_has_base_lr();
1534 inline void set_has_display();
1535 inline void clear_has_display();
1536 inline void set_has_average_loss();
1537 inline void clear_has_average_loss();
1538 inline void set_has_max_iter();
1539 inline void clear_has_max_iter();
1540 inline void set_has_lr_policy();
1541 inline void clear_has_lr_policy();
1542 inline void set_has_gamma();
1543 inline void clear_has_gamma();
1544 inline void set_has_power();
1545 inline void clear_has_power();
1546 inline void set_has_momentum();
1547 inline void clear_has_momentum();
1548 inline void set_has_weight_decay();
1549 inline void clear_has_weight_decay();
1550 inline void set_has_regularization_type();
1551 inline void clear_has_regularization_type();
1552 inline void set_has_stepsize();
1553 inline void clear_has_stepsize();
1554 inline void set_has_snapshot();
1555 inline void clear_has_snapshot();
1556 inline void set_has_snapshot_prefix();
1557 inline void clear_has_snapshot_prefix();
1558 inline void set_has_snapshot_diff();
1559 inline void clear_has_snapshot_diff();
1560 inline void set_has_solver_mode();
1561 inline void clear_has_solver_mode();
1562 inline void set_has_device_id();
1563 inline void clear_has_device_id();
1564 inline void set_has_random_seed();
1565 inline void clear_has_random_seed();
1566 inline void set_has_solver_type();
1567 inline void clear_has_solver_type();
1568 inline void set_has_delta();
1569 inline void clear_has_delta();
1570 inline void set_has_debug_info();
1571 inline void clear_has_debug_info();
1572 inline void set_has_snapshot_after_train();
1573 inline void clear_has_snapshot_after_train();
1575 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1577 ::std::string* net_;
1578 ::caffe::NetParameter* net_param_;
1579 ::std::string* train_net_;
1580 ::google::protobuf::RepeatedPtrField< ::std::string> test_net_;
1581 ::caffe::NetParameter* train_net_param_;
1582 ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter > test_net_param_;
1583 ::caffe::NetState* train_state_;
1584 ::google::protobuf::RepeatedPtrField< ::caffe::NetState > test_state_;
1585 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > test_iter_;
1586 ::google::protobuf::int32 test_interval_;
1587 float base_lr_;
1588 ::google::protobuf::int32 display_;
1589 ::google::protobuf::int32 average_loss_;
1590 ::std::string* lr_policy_;
1591 ::google::protobuf::int32 max_iter_;
1592 float gamma_;
1593 float power_;
1594 float momentum_;
1595 bool test_compute_loss_;
1596 bool test_initialization_;
1597 bool snapshot_diff_;
1598 bool debug_info_;
1599 float weight_decay_;
1600 ::std::string* regularization_type_;
1601 static ::std::string* _default_regularization_type_;
1602 ::google::protobuf::int32 stepsize_;
1603 ::google::protobuf::int32 snapshot_;
1604 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > stepvalue_;
1605 ::std::string* snapshot_prefix_;
1606 int solver_mode_;
1607 ::google::protobuf::int32 device_id_;
1608 ::google::protobuf::int64 random_seed_;
1609 int solver_type_;
1610 float delta_;
1611 bool snapshot_after_train_;
1613 mutable int _cached_size_;
1614 ::google::protobuf::uint32 _has_bits_[(34 + 31) / 32];
1616 friend void protobuf_AddDesc_caffe_2eproto();
1617 friend void protobuf_AssignDesc_caffe_2eproto();
1618 friend void protobuf_ShutdownFile_caffe_2eproto();
1620 void InitAsDefaultInstance();
1621 static SolverParameter* default_instance_;
1622 };
1623 // -------------------------------------------------------------------
1625 class SolverState : public ::google::protobuf::Message {
1626 public:
1627 SolverState();
1628 virtual ~SolverState();
1630 SolverState(const SolverState& from);
1632 inline SolverState& operator=(const SolverState& from) {
1633 CopyFrom(from);
1634 return *this;
1635 }
1637 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1638 return _unknown_fields_;
1639 }
1641 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1642 return &_unknown_fields_;
1643 }
1645 static const ::google::protobuf::Descriptor* descriptor();
1646 static const SolverState& default_instance();
1648 void Swap(SolverState* other);
1650 // implements Message ----------------------------------------------
1652 SolverState* New() const;
1653 void CopyFrom(const ::google::protobuf::Message& from);
1654 void MergeFrom(const ::google::protobuf::Message& from);
1655 void CopyFrom(const SolverState& from);
1656 void MergeFrom(const SolverState& from);
1657 void Clear();
1658 bool IsInitialized() const;
1660 int ByteSize() const;
1661 bool MergePartialFromCodedStream(
1662 ::google::protobuf::io::CodedInputStream* input);
1663 void SerializeWithCachedSizes(
1664 ::google::protobuf::io::CodedOutputStream* output) const;
1665 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1666 int GetCachedSize() const { return _cached_size_; }
1667 private:
1668 void SharedCtor();
1669 void SharedDtor();
1670 void SetCachedSize(int size) const;
1671 public:
1673 ::google::protobuf::Metadata GetMetadata() const;
1675 // nested types ----------------------------------------------------
1677 // accessors -------------------------------------------------------
1679 // optional int32 iter = 1;
1680 inline bool has_iter() const;
1681 inline void clear_iter();
1682 static const int kIterFieldNumber = 1;
1683 inline ::google::protobuf::int32 iter() const;
1684 inline void set_iter(::google::protobuf::int32 value);
1686 // optional string learned_net = 2;
1687 inline bool has_learned_net() const;
1688 inline void clear_learned_net();
1689 static const int kLearnedNetFieldNumber = 2;
1690 inline const ::std::string& learned_net() const;
1691 inline void set_learned_net(const ::std::string& value);
1692 inline void set_learned_net(const char* value);
1693 inline void set_learned_net(const char* value, size_t size);
1694 inline ::std::string* mutable_learned_net();
1695 inline ::std::string* release_learned_net();
1696 inline void set_allocated_learned_net(::std::string* learned_net);
1698 // repeated .caffe.BlobProto history = 3;
1699 inline int history_size() const;
1700 inline void clear_history();
1701 static const int kHistoryFieldNumber = 3;
1702 inline const ::caffe::BlobProto& history(int index) const;
1703 inline ::caffe::BlobProto* mutable_history(int index);
1704 inline ::caffe::BlobProto* add_history();
1705 inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >&
1706 history() const;
1707 inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >*
1708 mutable_history();
1710 // optional int32 current_step = 4 [default = 0];
1711 inline bool has_current_step() const;
1712 inline void clear_current_step();
1713 static const int kCurrentStepFieldNumber = 4;
1714 inline ::google::protobuf::int32 current_step() const;
1715 inline void set_current_step(::google::protobuf::int32 value);
1717 // @@protoc_insertion_point(class_scope:caffe.SolverState)
1718 private:
1719 inline void set_has_iter();
1720 inline void clear_has_iter();
1721 inline void set_has_learned_net();
1722 inline void clear_has_learned_net();
1723 inline void set_has_current_step();
1724 inline void clear_has_current_step();
1726 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1728 ::std::string* learned_net_;
1729 ::google::protobuf::int32 iter_;
1730 ::google::protobuf::int32 current_step_;
1731 ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto > history_;
1733 mutable int _cached_size_;
1734 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
1736 friend void protobuf_AddDesc_caffe_2eproto();
1737 friend void protobuf_AssignDesc_caffe_2eproto();
1738 friend void protobuf_ShutdownFile_caffe_2eproto();
1740 void InitAsDefaultInstance();
1741 static SolverState* default_instance_;
1742 };
1743 // -------------------------------------------------------------------
1745 class NetState : public ::google::protobuf::Message {
1746 public:
1747 NetState();
1748 virtual ~NetState();
1750 NetState(const NetState& from);
1752 inline NetState& operator=(const NetState& from) {
1753 CopyFrom(from);
1754 return *this;
1755 }
1757 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1758 return _unknown_fields_;
1759 }
1761 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1762 return &_unknown_fields_;
1763 }
1765 static const ::google::protobuf::Descriptor* descriptor();
1766 static const NetState& default_instance();
1768 void Swap(NetState* other);
1770 // implements Message ----------------------------------------------
1772 NetState* New() const;
1773 void CopyFrom(const ::google::protobuf::Message& from);
1774 void MergeFrom(const ::google::protobuf::Message& from);
1775 void CopyFrom(const NetState& from);
1776 void MergeFrom(const NetState& from);
1777 void Clear();
1778 bool IsInitialized() const;
1780 int ByteSize() const;
1781 bool MergePartialFromCodedStream(
1782 ::google::protobuf::io::CodedInputStream* input);
1783 void SerializeWithCachedSizes(
1784 ::google::protobuf::io::CodedOutputStream* output) const;
1785 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1786 int GetCachedSize() const { return _cached_size_; }
1787 private:
1788 void SharedCtor();
1789 void SharedDtor();
1790 void SetCachedSize(int size) const;
1791 public:
1793 ::google::protobuf::Metadata GetMetadata() const;
1795 // nested types ----------------------------------------------------
1797 // accessors -------------------------------------------------------
1799 // optional .caffe.Phase phase = 1 [default = TEST];
1800 inline bool has_phase() const;
1801 inline void clear_phase();
1802 static const int kPhaseFieldNumber = 1;
1803 inline ::caffe::Phase phase() const;
1804 inline void set_phase(::caffe::Phase value);
1806 // optional int32 level = 2 [default = 0];
1807 inline bool has_level() const;
1808 inline void clear_level();
1809 static const int kLevelFieldNumber = 2;
1810 inline ::google::protobuf::int32 level() const;
1811 inline void set_level(::google::protobuf::int32 value);
1813 // repeated string stage = 3;
1814 inline int stage_size() const;
1815 inline void clear_stage();
1816 static const int kStageFieldNumber = 3;
1817 inline const ::std::string& stage(int index) const;
1818 inline ::std::string* mutable_stage(int index);
1819 inline void set_stage(int index, const ::std::string& value);
1820 inline void set_stage(int index, const char* value);
1821 inline void set_stage(int index, const char* value, size_t size);
1822 inline ::std::string* add_stage();
1823 inline void add_stage(const ::std::string& value);
1824 inline void add_stage(const char* value);
1825 inline void add_stage(const char* value, size_t size);
1826 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& stage() const;
1827 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_stage();
1829 // @@protoc_insertion_point(class_scope:caffe.NetState)
1830 private:
1831 inline void set_has_phase();
1832 inline void clear_has_phase();
1833 inline void set_has_level();
1834 inline void clear_has_level();
1836 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1838 int phase_;
1839 ::google::protobuf::int32 level_;
1840 ::google::protobuf::RepeatedPtrField< ::std::string> stage_;
1842 mutable int _cached_size_;
1843 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
1845 friend void protobuf_AddDesc_caffe_2eproto();
1846 friend void protobuf_AssignDesc_caffe_2eproto();
1847 friend void protobuf_ShutdownFile_caffe_2eproto();
1849 void InitAsDefaultInstance();
1850 static NetState* default_instance_;
1851 };
1852 // -------------------------------------------------------------------
1854 class NetStateRule : public ::google::protobuf::Message {
1855 public:
1856 NetStateRule();
1857 virtual ~NetStateRule();
1859 NetStateRule(const NetStateRule& from);
1861 inline NetStateRule& operator=(const NetStateRule& from) {
1862 CopyFrom(from);
1863 return *this;
1864 }
1866 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1867 return _unknown_fields_;
1868 }
1870 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1871 return &_unknown_fields_;
1872 }
1874 static const ::google::protobuf::Descriptor* descriptor();
1875 static const NetStateRule& default_instance();
1877 void Swap(NetStateRule* other);
1879 // implements Message ----------------------------------------------
1881 NetStateRule* New() const;
1882 void CopyFrom(const ::google::protobuf::Message& from);
1883 void MergeFrom(const ::google::protobuf::Message& from);
1884 void CopyFrom(const NetStateRule& from);
1885 void MergeFrom(const NetStateRule& from);
1886 void Clear();
1887 bool IsInitialized() const;
1889 int ByteSize() const;
1890 bool MergePartialFromCodedStream(
1891 ::google::protobuf::io::CodedInputStream* input);
1892 void SerializeWithCachedSizes(
1893 ::google::protobuf::io::CodedOutputStream* output) const;
1894 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1895 int GetCachedSize() const { return _cached_size_; }
1896 private:
1897 void SharedCtor();
1898 void SharedDtor();
1899 void SetCachedSize(int size) const;
1900 public:
1902 ::google::protobuf::Metadata GetMetadata() const;
1904 // nested types ----------------------------------------------------
1906 // accessors -------------------------------------------------------
1908 // optional .caffe.Phase phase = 1;
1909 inline bool has_phase() const;
1910 inline void clear_phase();
1911 static const int kPhaseFieldNumber = 1;
1912 inline ::caffe::Phase phase() const;
1913 inline void set_phase(::caffe::Phase value);
1915 // optional int32 min_level = 2;
1916 inline bool has_min_level() const;
1917 inline void clear_min_level();
1918 static const int kMinLevelFieldNumber = 2;
1919 inline ::google::protobuf::int32 min_level() const;
1920 inline void set_min_level(::google::protobuf::int32 value);
1922 // optional int32 max_level = 3;
1923 inline bool has_max_level() const;
1924 inline void clear_max_level();
1925 static const int kMaxLevelFieldNumber = 3;
1926 inline ::google::protobuf::int32 max_level() const;
1927 inline void set_max_level(::google::protobuf::int32 value);
1929 // repeated string stage = 4;
1930 inline int stage_size() const;
1931 inline void clear_stage();
1932 static const int kStageFieldNumber = 4;
1933 inline const ::std::string& stage(int index) const;
1934 inline ::std::string* mutable_stage(int index);
1935 inline void set_stage(int index, const ::std::string& value);
1936 inline void set_stage(int index, const char* value);
1937 inline void set_stage(int index, const char* value, size_t size);
1938 inline ::std::string* add_stage();
1939 inline void add_stage(const ::std::string& value);
1940 inline void add_stage(const char* value);
1941 inline void add_stage(const char* value, size_t size);
1942 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& stage() const;
1943 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_stage();
1945 // repeated string not_stage = 5;
1946 inline int not_stage_size() const;
1947 inline void clear_not_stage();
1948 static const int kNotStageFieldNumber = 5;
1949 inline const ::std::string& not_stage(int index) const;
1950 inline ::std::string* mutable_not_stage(int index);
1951 inline void set_not_stage(int index, const ::std::string& value);
1952 inline void set_not_stage(int index, const char* value);
1953 inline void set_not_stage(int index, const char* value, size_t size);
1954 inline ::std::string* add_not_stage();
1955 inline void add_not_stage(const ::std::string& value);
1956 inline void add_not_stage(const char* value);
1957 inline void add_not_stage(const char* value, size_t size);
1958 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& not_stage() const;
1959 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_not_stage();
1961 // @@protoc_insertion_point(class_scope:caffe.NetStateRule)
1962 private:
1963 inline void set_has_phase();
1964 inline void clear_has_phase();
1965 inline void set_has_min_level();
1966 inline void clear_has_min_level();
1967 inline void set_has_max_level();
1968 inline void clear_has_max_level();
1970 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1972 int phase_;
1973 ::google::protobuf::int32 min_level_;
1974 ::google::protobuf::RepeatedPtrField< ::std::string> stage_;
1975 ::google::protobuf::RepeatedPtrField< ::std::string> not_stage_;
1976 ::google::protobuf::int32 max_level_;
1978 mutable int _cached_size_;
1979 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
1981 friend void protobuf_AddDesc_caffe_2eproto();
1982 friend void protobuf_AssignDesc_caffe_2eproto();
1983 friend void protobuf_ShutdownFile_caffe_2eproto();
1985 void InitAsDefaultInstance();
1986 static NetStateRule* default_instance_;
1987 };
1988 // -------------------------------------------------------------------
1990 class LayerParameter : public ::google::protobuf::Message {
1991 public:
1992 LayerParameter();
1993 virtual ~LayerParameter();
1995 LayerParameter(const LayerParameter& from);
1997 inline LayerParameter& operator=(const LayerParameter& from) {
1998 CopyFrom(from);
1999 return *this;
2000 }
2002 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2003 return _unknown_fields_;
2004 }
2006 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2007 return &_unknown_fields_;
2008 }
2010 static const ::google::protobuf::Descriptor* descriptor();
2011 static const LayerParameter& default_instance();
2013 void Swap(LayerParameter* other);
2015 // implements Message ----------------------------------------------
2017 LayerParameter* New() const;
2018 void CopyFrom(const ::google::protobuf::Message& from);
2019 void MergeFrom(const ::google::protobuf::Message& from);
2020 void CopyFrom(const LayerParameter& from);
2021 void MergeFrom(const LayerParameter& from);
2022 void Clear();
2023 bool IsInitialized() const;
2025 int ByteSize() const;
2026 bool MergePartialFromCodedStream(
2027 ::google::protobuf::io::CodedInputStream* input);
2028 void SerializeWithCachedSizes(
2029 ::google::protobuf::io::CodedOutputStream* output) const;
2030 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2031 int GetCachedSize() const { return _cached_size_; }
2032 private:
2033 void SharedCtor();
2034 void SharedDtor();
2035 void SetCachedSize(int size) const;
2036 public:
2038 ::google::protobuf::Metadata GetMetadata() const;
2040 // nested types ----------------------------------------------------
2042 typedef LayerParameter_LayerType LayerType;
2043 static const LayerType NONE = LayerParameter_LayerType_NONE;
2044 static const LayerType ABSVAL = LayerParameter_LayerType_ABSVAL;
2045 static const LayerType ACCURACY = LayerParameter_LayerType_ACCURACY;
2046 static const LayerType ARGMAX = LayerParameter_LayerType_ARGMAX;
2047 static const LayerType BNLL = LayerParameter_LayerType_BNLL;
2048 static const LayerType CONCAT = LayerParameter_LayerType_CONCAT;
2049 static const LayerType CONTRASTIVE_LOSS = LayerParameter_LayerType_CONTRASTIVE_LOSS;
2050 static const LayerType CONVOLUTION = LayerParameter_LayerType_CONVOLUTION;
2051 static const LayerType DATA = LayerParameter_LayerType_DATA;
2052 static const LayerType DROPOUT = LayerParameter_LayerType_DROPOUT;
2053 static const LayerType DUMMY_DATA = LayerParameter_LayerType_DUMMY_DATA;
2054 static const LayerType EUCLIDEAN_LOSS = LayerParameter_LayerType_EUCLIDEAN_LOSS;
2055 static const LayerType ELTWISE = LayerParameter_LayerType_ELTWISE;
2056 static const LayerType FLATTEN = LayerParameter_LayerType_FLATTEN;
2057 static const LayerType HDF5_DATA = LayerParameter_LayerType_HDF5_DATA;
2058 static const LayerType HDF5_OUTPUT = LayerParameter_LayerType_HDF5_OUTPUT;
2059 static const LayerType HINGE_LOSS = LayerParameter_LayerType_HINGE_LOSS;
2060 static const LayerType IM2COL = LayerParameter_LayerType_IM2COL;
2061 static const LayerType IMAGE_DATA = LayerParameter_LayerType_IMAGE_DATA;
2062 static const LayerType INFOGAIN_LOSS = LayerParameter_LayerType_INFOGAIN_LOSS;
2063 static const LayerType INNER_PRODUCT = LayerParameter_LayerType_INNER_PRODUCT;
2064 static const LayerType LRN = LayerParameter_LayerType_LRN;
2065 static const LayerType MEMORY_DATA = LayerParameter_LayerType_MEMORY_DATA;
2066 static const LayerType MULTINOMIAL_LOGISTIC_LOSS = LayerParameter_LayerType_MULTINOMIAL_LOGISTIC_LOSS;
2067 static const LayerType MVN = LayerParameter_LayerType_MVN;
2068 static const LayerType POOLING = LayerParameter_LayerType_POOLING;
2069 static const LayerType POWER = LayerParameter_LayerType_POWER;
2070 static const LayerType RELU = LayerParameter_LayerType_RELU;
2071 static const LayerType SIGMOID = LayerParameter_LayerType_SIGMOID;
2072 static const LayerType SIGMOID_CROSS_ENTROPY_LOSS = LayerParameter_LayerType_SIGMOID_CROSS_ENTROPY_LOSS;
2073 static const LayerType SILENCE = LayerParameter_LayerType_SILENCE;
2074 static const LayerType SOFTMAX = LayerParameter_LayerType_SOFTMAX;
2075 static const LayerType SOFTMAX_LOSS = LayerParameter_LayerType_SOFTMAX_LOSS;
2076 static const LayerType SPLIT = LayerParameter_LayerType_SPLIT;
2077 static const LayerType SLICE = LayerParameter_LayerType_SLICE;
2078 static const LayerType TANH = LayerParameter_LayerType_TANH;
2079 static const LayerType WINDOW_DATA = LayerParameter_LayerType_WINDOW_DATA;
2080 static const LayerType THRESHOLD = LayerParameter_LayerType_THRESHOLD;
2081 static inline bool LayerType_IsValid(int value) {
2082 return LayerParameter_LayerType_IsValid(value);
2083 }
2084 static const LayerType LayerType_MIN =
2085 LayerParameter_LayerType_LayerType_MIN;
2086 static const LayerType LayerType_MAX =
2087 LayerParameter_LayerType_LayerType_MAX;
2088 static const int LayerType_ARRAYSIZE =
2089 LayerParameter_LayerType_LayerType_ARRAYSIZE;
2090 static inline const ::google::protobuf::EnumDescriptor*
2091 LayerType_descriptor() {
2092 return LayerParameter_LayerType_descriptor();
2093 }
2094 static inline const ::std::string& LayerType_Name(LayerType value) {
2095 return LayerParameter_LayerType_Name(value);
2096 }
2097 static inline bool LayerType_Parse(const ::std::string& name,
2098 LayerType* value) {
2099 return LayerParameter_LayerType_Parse(name, value);
2100 }
2102 typedef LayerParameter_DimCheckMode DimCheckMode;
2103 static const DimCheckMode STRICT = LayerParameter_DimCheckMode_STRICT;
2104 static const DimCheckMode PERMISSIVE = LayerParameter_DimCheckMode_PERMISSIVE;
2105 static inline bool DimCheckMode_IsValid(int value) {
2106 return LayerParameter_DimCheckMode_IsValid(value);
2107 }
2108 static const DimCheckMode DimCheckMode_MIN =
2109 LayerParameter_DimCheckMode_DimCheckMode_MIN;
2110 static const DimCheckMode DimCheckMode_MAX =
2111 LayerParameter_DimCheckMode_DimCheckMode_MAX;
2112 static const int DimCheckMode_ARRAYSIZE =
2113 LayerParameter_DimCheckMode_DimCheckMode_ARRAYSIZE;
2114 static inline const ::google::protobuf::EnumDescriptor*
2115 DimCheckMode_descriptor() {
2116 return LayerParameter_DimCheckMode_descriptor();
2117 }
2118 static inline const ::std::string& DimCheckMode_Name(DimCheckMode value) {
2119 return LayerParameter_DimCheckMode_Name(value);
2120 }
2121 static inline bool DimCheckMode_Parse(const ::std::string& name,
2122 DimCheckMode* value) {
2123 return LayerParameter_DimCheckMode_Parse(name, value);
2124 }
2126 // accessors -------------------------------------------------------
2128 // repeated string bottom = 2;
2129 inline int bottom_size() const;
2130 inline void clear_bottom();
2131 static const int kBottomFieldNumber = 2;
2132 inline const ::std::string& bottom(int index) const;
2133 inline ::std::string* mutable_bottom(int index);
2134 inline void set_bottom(int index, const ::std::string& value);
2135 inline void set_bottom(int index, const char* value);
2136 inline void set_bottom(int index, const char* value, size_t size);
2137 inline ::std::string* add_bottom();
2138 inline void add_bottom(const ::std::string& value);
2139 inline void add_bottom(const char* value);
2140 inline void add_bottom(const char* value, size_t size);
2141 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& bottom() const;
2142 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_bottom();
2144 // repeated string top = 3;
2145 inline int top_size() const;
2146 inline void clear_top();
2147 static const int kTopFieldNumber = 3;
2148 inline const ::std::string& top(int index) const;
2149 inline ::std::string* mutable_top(int index);
2150 inline void set_top(int index, const ::std::string& value);
2151 inline void set_top(int index, const char* value);
2152 inline void set_top(int index, const char* value, size_t size);
2153 inline ::std::string* add_top();
2154 inline void add_top(const ::std::string& value);
2155 inline void add_top(const char* value);
2156 inline void add_top(const char* value, size_t size);
2157 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& top() const;
2158 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_top();
2160 // optional string name = 4;
2161 inline bool has_name() const;
2162 inline void clear_name();
2163 static const int kNameFieldNumber = 4;
2164 inline const ::std::string& name() const;
2165 inline void set_name(const ::std::string& value);
2166 inline void set_name(const char* value);
2167 inline void set_name(const char* value, size_t size);
2168 inline ::std::string* mutable_name();
2169 inline ::std::string* release_name();
2170 inline void set_allocated_name(::std::string* name);
2172 // repeated .caffe.NetStateRule include = 32;
2173 inline int include_size() const;
2174 inline void clear_include();
2175 static const int kIncludeFieldNumber = 32;
2176 inline const ::caffe::NetStateRule& include(int index) const;
2177 inline ::caffe::NetStateRule* mutable_include(int index);
2178 inline ::caffe::NetStateRule* add_include();
2179 inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >&
2180 include() const;
2181 inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >*
2182 mutable_include();
2184 // repeated .caffe.NetStateRule exclude = 33;
2185 inline int exclude_size() const;
2186 inline void clear_exclude();
2187 static const int kExcludeFieldNumber = 33;
2188 inline const ::caffe::NetStateRule& exclude(int index) const;
2189 inline ::caffe::NetStateRule* mutable_exclude(int index);
2190 inline ::caffe::NetStateRule* add_exclude();
2191 inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >&
2192 exclude() const;
2193 inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >*
2194 mutable_exclude();
2196 // optional .caffe.LayerParameter.LayerType type = 5;
2197 inline bool has_type() const;
2198 inline void clear_type();
2199 static const int kTypeFieldNumber = 5;
2200 inline ::caffe::LayerParameter_LayerType type() const;
2201 inline void set_type(::caffe::LayerParameter_LayerType value);
2203 // repeated .caffe.BlobProto blobs = 6;
2204 inline int blobs_size() const;
2205 inline void clear_blobs();
2206 static const int kBlobsFieldNumber = 6;
2207 inline const ::caffe::BlobProto& blobs(int index) const;
2208 inline ::caffe::BlobProto* mutable_blobs(int index);
2209 inline ::caffe::BlobProto* add_blobs();
2210 inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >&
2211 blobs() const;
2212 inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >*
2213 mutable_blobs();
2215 // repeated string param = 1001;
2216 inline int param_size() const;
2217 inline void clear_param();
2218 static const int kParamFieldNumber = 1001;
2219 inline const ::std::string& param(int index) const;
2220 inline ::std::string* mutable_param(int index);
2221 inline void set_param(int index, const ::std::string& value);
2222 inline void set_param(int index, const char* value);
2223 inline void set_param(int index, const char* value, size_t size);
2224 inline ::std::string* add_param();
2225 inline void add_param(const ::std::string& value);
2226 inline void add_param(const char* value);
2227 inline void add_param(const char* value, size_t size);
2228 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& param() const;
2229 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_param();
2231 // repeated .caffe.LayerParameter.DimCheckMode blob_share_mode = 1002;
2232 inline int blob_share_mode_size() const;
2233 inline void clear_blob_share_mode();
2234 static const int kBlobShareModeFieldNumber = 1002;
2235 inline ::caffe::LayerParameter_DimCheckMode blob_share_mode(int index) const;
2236 inline void set_blob_share_mode(int index, ::caffe::LayerParameter_DimCheckMode value);
2237 inline void add_blob_share_mode(::caffe::LayerParameter_DimCheckMode value);
2238 inline const ::google::protobuf::RepeatedField<int>& blob_share_mode() const;
2239 inline ::google::protobuf::RepeatedField<int>* mutable_blob_share_mode();
2241 // repeated float blobs_lr = 7;
2242 inline int blobs_lr_size() const;
2243 inline void clear_blobs_lr();
2244 static const int kBlobsLrFieldNumber = 7;
2245 inline float blobs_lr(int index) const;
2246 inline void set_blobs_lr(int index, float value);
2247 inline void add_blobs_lr(float value);
2248 inline const ::google::protobuf::RepeatedField< float >&
2249 blobs_lr() const;
2250 inline ::google::protobuf::RepeatedField< float >*
2251 mutable_blobs_lr();
2253 // repeated float weight_decay = 8;
2254 inline int weight_decay_size() const;
2255 inline void clear_weight_decay();
2256 static const int kWeightDecayFieldNumber = 8;
2257 inline float weight_decay(int index) const;
2258 inline void set_weight_decay(int index, float value);
2259 inline void add_weight_decay(float value);
2260 inline const ::google::protobuf::RepeatedField< float >&
2261 weight_decay() const;
2262 inline ::google::protobuf::RepeatedField< float >*
2263 mutable_weight_decay();
2265 // repeated float loss_weight = 35;
2266 inline int loss_weight_size() const;
2267 inline void clear_loss_weight();
2268 static const int kLossWeightFieldNumber = 35;
2269 inline float loss_weight(int index) const;
2270 inline void set_loss_weight(int index, float value);
2271 inline void add_loss_weight(float value);
2272 inline const ::google::protobuf::RepeatedField< float >&
2273 loss_weight() const;
2274 inline ::google::protobuf::RepeatedField< float >*
2275 mutable_loss_weight();
2277 // optional .caffe.AccuracyParameter accuracy_param = 27;
2278 inline bool has_accuracy_param() const;
2279 inline void clear_accuracy_param();
2280 static const int kAccuracyParamFieldNumber = 27;
2281 inline const ::caffe::AccuracyParameter& accuracy_param() const;
2282 inline ::caffe::AccuracyParameter* mutable_accuracy_param();
2283 inline ::caffe::AccuracyParameter* release_accuracy_param();
2284 inline void set_allocated_accuracy_param(::caffe::AccuracyParameter* accuracy_param);
2286 // optional .caffe.ArgMaxParameter argmax_param = 23;
2287 inline bool has_argmax_param() const;
2288 inline void clear_argmax_param();
2289 static const int kArgmaxParamFieldNumber = 23;
2290 inline const ::caffe::ArgMaxParameter& argmax_param() const;
2291 inline ::caffe::ArgMaxParameter* mutable_argmax_param();
2292 inline ::caffe::ArgMaxParameter* release_argmax_param();
2293 inline void set_allocated_argmax_param(::caffe::ArgMaxParameter* argmax_param);
2295 // optional .caffe.ConcatParameter concat_param = 9;
2296 inline bool has_concat_param() const;
2297 inline void clear_concat_param();
2298 static const int kConcatParamFieldNumber = 9;
2299 inline const ::caffe::ConcatParameter& concat_param() const;
2300 inline ::caffe::ConcatParameter* mutable_concat_param();
2301 inline ::caffe::ConcatParameter* release_concat_param();
2302 inline void set_allocated_concat_param(::caffe::ConcatParameter* concat_param);
2304 // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 40;
2305 inline bool has_contrastive_loss_param() const;
2306 inline void clear_contrastive_loss_param();
2307 static const int kContrastiveLossParamFieldNumber = 40;
2308 inline const ::caffe::ContrastiveLossParameter& contrastive_loss_param() const;
2309 inline ::caffe::ContrastiveLossParameter* mutable_contrastive_loss_param();
2310 inline ::caffe::ContrastiveLossParameter* release_contrastive_loss_param();
2311 inline void set_allocated_contrastive_loss_param(::caffe::ContrastiveLossParameter* contrastive_loss_param);
2313 // optional .caffe.ConvolutionParameter convolution_param = 10;
2314 inline bool has_convolution_param() const;
2315 inline void clear_convolution_param();
2316 static const int kConvolutionParamFieldNumber = 10;
2317 inline const ::caffe::ConvolutionParameter& convolution_param() const;
2318 inline ::caffe::ConvolutionParameter* mutable_convolution_param();
2319 inline ::caffe::ConvolutionParameter* release_convolution_param();
2320 inline void set_allocated_convolution_param(::caffe::ConvolutionParameter* convolution_param);
2322 // optional .caffe.DataParameter data_param = 11;
2323 inline bool has_data_param() const;
2324 inline void clear_data_param();
2325 static const int kDataParamFieldNumber = 11;
2326 inline const ::caffe::DataParameter& data_param() const;
2327 inline ::caffe::DataParameter* mutable_data_param();
2328 inline ::caffe::DataParameter* release_data_param();
2329 inline void set_allocated_data_param(::caffe::DataParameter* data_param);
2331 // optional .caffe.DropoutParameter dropout_param = 12;
2332 inline bool has_dropout_param() const;
2333 inline void clear_dropout_param();
2334 static const int kDropoutParamFieldNumber = 12;
2335 inline const ::caffe::DropoutParameter& dropout_param() const;
2336 inline ::caffe::DropoutParameter* mutable_dropout_param();
2337 inline ::caffe::DropoutParameter* release_dropout_param();
2338 inline void set_allocated_dropout_param(::caffe::DropoutParameter* dropout_param);
2340 // optional .caffe.DummyDataParameter dummy_data_param = 26;
2341 inline bool has_dummy_data_param() const;
2342 inline void clear_dummy_data_param();
2343 static const int kDummyDataParamFieldNumber = 26;
2344 inline const ::caffe::DummyDataParameter& dummy_data_param() const;
2345 inline ::caffe::DummyDataParameter* mutable_dummy_data_param();
2346 inline ::caffe::DummyDataParameter* release_dummy_data_param();
2347 inline void set_allocated_dummy_data_param(::caffe::DummyDataParameter* dummy_data_param);
2349 // optional .caffe.EltwiseParameter eltwise_param = 24;
2350 inline bool has_eltwise_param() const;
2351 inline void clear_eltwise_param();
2352 static const int kEltwiseParamFieldNumber = 24;
2353 inline const ::caffe::EltwiseParameter& eltwise_param() const;
2354 inline ::caffe::EltwiseParameter* mutable_eltwise_param();
2355 inline ::caffe::EltwiseParameter* release_eltwise_param();
2356 inline void set_allocated_eltwise_param(::caffe::EltwiseParameter* eltwise_param);
2358 // optional .caffe.HDF5DataParameter hdf5_data_param = 13;
2359 inline bool has_hdf5_data_param() const;
2360 inline void clear_hdf5_data_param();
2361 static const int kHdf5DataParamFieldNumber = 13;
2362 inline const ::caffe::HDF5DataParameter& hdf5_data_param() const;
2363 inline ::caffe::HDF5DataParameter* mutable_hdf5_data_param();
2364 inline ::caffe::HDF5DataParameter* release_hdf5_data_param();
2365 inline void set_allocated_hdf5_data_param(::caffe::HDF5DataParameter* hdf5_data_param);
2367 // optional .caffe.HDF5OutputParameter hdf5_output_param = 14;
2368 inline bool has_hdf5_output_param() const;
2369 inline void clear_hdf5_output_param();
2370 static const int kHdf5OutputParamFieldNumber = 14;
2371 inline const ::caffe::HDF5OutputParameter& hdf5_output_param() const;
2372 inline ::caffe::HDF5OutputParameter* mutable_hdf5_output_param();
2373 inline ::caffe::HDF5OutputParameter* release_hdf5_output_param();
2374 inline void set_allocated_hdf5_output_param(::caffe::HDF5OutputParameter* hdf5_output_param);
2376 // optional .caffe.HingeLossParameter hinge_loss_param = 29;
2377 inline bool has_hinge_loss_param() const;
2378 inline void clear_hinge_loss_param();
2379 static const int kHingeLossParamFieldNumber = 29;
2380 inline const ::caffe::HingeLossParameter& hinge_loss_param() const;
2381 inline ::caffe::HingeLossParameter* mutable_hinge_loss_param();
2382 inline ::caffe::HingeLossParameter* release_hinge_loss_param();
2383 inline void set_allocated_hinge_loss_param(::caffe::HingeLossParameter* hinge_loss_param);
2385 // optional .caffe.ImageDataParameter image_data_param = 15;
2386 inline bool has_image_data_param() const;
2387 inline void clear_image_data_param();
2388 static const int kImageDataParamFieldNumber = 15;
2389 inline const ::caffe::ImageDataParameter& image_data_param() const;
2390 inline ::caffe::ImageDataParameter* mutable_image_data_param();
2391 inline ::caffe::ImageDataParameter* release_image_data_param();
2392 inline void set_allocated_image_data_param(::caffe::ImageDataParameter* image_data_param);
2394 // optional .caffe.InfogainLossParameter infogain_loss_param = 16;
2395 inline bool has_infogain_loss_param() const;
2396 inline void clear_infogain_loss_param();
2397 static const int kInfogainLossParamFieldNumber = 16;
2398 inline const ::caffe::InfogainLossParameter& infogain_loss_param() const;
2399 inline ::caffe::InfogainLossParameter* mutable_infogain_loss_param();
2400 inline ::caffe::InfogainLossParameter* release_infogain_loss_param();
2401 inline void set_allocated_infogain_loss_param(::caffe::InfogainLossParameter* infogain_loss_param);
2403 // optional .caffe.InnerProductParameter inner_product_param = 17;
2404 inline bool has_inner_product_param() const;
2405 inline void clear_inner_product_param();
2406 static const int kInnerProductParamFieldNumber = 17;
2407 inline const ::caffe::InnerProductParameter& inner_product_param() const;
2408 inline ::caffe::InnerProductParameter* mutable_inner_product_param();
2409 inline ::caffe::InnerProductParameter* release_inner_product_param();
2410 inline void set_allocated_inner_product_param(::caffe::InnerProductParameter* inner_product_param);
2412 // optional .caffe.LRNParameter lrn_param = 18;
2413 inline bool has_lrn_param() const;
2414 inline void clear_lrn_param();
2415 static const int kLrnParamFieldNumber = 18;
2416 inline const ::caffe::LRNParameter& lrn_param() const;
2417 inline ::caffe::LRNParameter* mutable_lrn_param();
2418 inline ::caffe::LRNParameter* release_lrn_param();
2419 inline void set_allocated_lrn_param(::caffe::LRNParameter* lrn_param);
2421 // optional .caffe.MemoryDataParameter memory_data_param = 22;
2422 inline bool has_memory_data_param() const;
2423 inline void clear_memory_data_param();
2424 static const int kMemoryDataParamFieldNumber = 22;
2425 inline const ::caffe::MemoryDataParameter& memory_data_param() const;
2426 inline ::caffe::MemoryDataParameter* mutable_memory_data_param();
2427 inline ::caffe::MemoryDataParameter* release_memory_data_param();
2428 inline void set_allocated_memory_data_param(::caffe::MemoryDataParameter* memory_data_param);
2430 // optional .caffe.MVNParameter mvn_param = 34;
2431 inline bool has_mvn_param() const;
2432 inline void clear_mvn_param();
2433 static const int kMvnParamFieldNumber = 34;
2434 inline const ::caffe::MVNParameter& mvn_param() const;
2435 inline ::caffe::MVNParameter* mutable_mvn_param();
2436 inline ::caffe::MVNParameter* release_mvn_param();
2437 inline void set_allocated_mvn_param(::caffe::MVNParameter* mvn_param);
2439 // optional .caffe.PoolingParameter pooling_param = 19;
2440 inline bool has_pooling_param() const;
2441 inline void clear_pooling_param();
2442 static const int kPoolingParamFieldNumber = 19;
2443 inline const ::caffe::PoolingParameter& pooling_param() const;
2444 inline ::caffe::PoolingParameter* mutable_pooling_param();
2445 inline ::caffe::PoolingParameter* release_pooling_param();
2446 inline void set_allocated_pooling_param(::caffe::PoolingParameter* pooling_param);
2448 // optional .caffe.PowerParameter power_param = 21;
2449 inline bool has_power_param() const;
2450 inline void clear_power_param();
2451 static const int kPowerParamFieldNumber = 21;
2452 inline const ::caffe::PowerParameter& power_param() const;
2453 inline ::caffe::PowerParameter* mutable_power_param();
2454 inline ::caffe::PowerParameter* release_power_param();
2455 inline void set_allocated_power_param(::caffe::PowerParameter* power_param);
2457 // optional .caffe.ReLUParameter relu_param = 30;
2458 inline bool has_relu_param() const;
2459 inline void clear_relu_param();
2460 static const int kReluParamFieldNumber = 30;
2461 inline const ::caffe::ReLUParameter& relu_param() const;
2462 inline ::caffe::ReLUParameter* mutable_relu_param();
2463 inline ::caffe::ReLUParameter* release_relu_param();
2464 inline void set_allocated_relu_param(::caffe::ReLUParameter* relu_param);
2466 // optional .caffe.SigmoidParameter sigmoid_param = 38;
2467 inline bool has_sigmoid_param() const;
2468 inline void clear_sigmoid_param();
2469 static const int kSigmoidParamFieldNumber = 38;
2470 inline const ::caffe::SigmoidParameter& sigmoid_param() const;
2471 inline ::caffe::SigmoidParameter* mutable_sigmoid_param();
2472 inline ::caffe::SigmoidParameter* release_sigmoid_param();
2473 inline void set_allocated_sigmoid_param(::caffe::SigmoidParameter* sigmoid_param);
2475 // optional .caffe.SoftmaxParameter softmax_param = 39;
2476 inline bool has_softmax_param() const;
2477 inline void clear_softmax_param();
2478 static const int kSoftmaxParamFieldNumber = 39;
2479 inline const ::caffe::SoftmaxParameter& softmax_param() const;
2480 inline ::caffe::SoftmaxParameter* mutable_softmax_param();
2481 inline ::caffe::SoftmaxParameter* release_softmax_param();
2482 inline void set_allocated_softmax_param(::caffe::SoftmaxParameter* softmax_param);
2484 // optional .caffe.SliceParameter slice_param = 31;
2485 inline bool has_slice_param() const;
2486 inline void clear_slice_param();
2487 static const int kSliceParamFieldNumber = 31;
2488 inline const ::caffe::SliceParameter& slice_param() const;
2489 inline ::caffe::SliceParameter* mutable_slice_param();
2490 inline ::caffe::SliceParameter* release_slice_param();
2491 inline void set_allocated_slice_param(::caffe::SliceParameter* slice_param);
2493 // optional .caffe.TanHParameter tanh_param = 37;
2494 inline bool has_tanh_param() const;
2495 inline void clear_tanh_param();
2496 static const int kTanhParamFieldNumber = 37;
2497 inline const ::caffe::TanHParameter& tanh_param() const;
2498 inline ::caffe::TanHParameter* mutable_tanh_param();
2499 inline ::caffe::TanHParameter* release_tanh_param();
2500 inline void set_allocated_tanh_param(::caffe::TanHParameter* tanh_param);
2502 // optional .caffe.ThresholdParameter threshold_param = 25;
2503 inline bool has_threshold_param() const;
2504 inline void clear_threshold_param();
2505 static const int kThresholdParamFieldNumber = 25;
2506 inline const ::caffe::ThresholdParameter& threshold_param() const;
2507 inline ::caffe::ThresholdParameter* mutable_threshold_param();
2508 inline ::caffe::ThresholdParameter* release_threshold_param();
2509 inline void set_allocated_threshold_param(::caffe::ThresholdParameter* threshold_param);
2511 // optional .caffe.WindowDataParameter window_data_param = 20;
2512 inline bool has_window_data_param() const;
2513 inline void clear_window_data_param();
2514 static const int kWindowDataParamFieldNumber = 20;
2515 inline const ::caffe::WindowDataParameter& window_data_param() const;
2516 inline ::caffe::WindowDataParameter* mutable_window_data_param();
2517 inline ::caffe::WindowDataParameter* release_window_data_param();
2518 inline void set_allocated_window_data_param(::caffe::WindowDataParameter* window_data_param);
2520 // optional .caffe.TransformationParameter transform_param = 36;
2521 inline bool has_transform_param() const;
2522 inline void clear_transform_param();
2523 static const int kTransformParamFieldNumber = 36;
2524 inline const ::caffe::TransformationParameter& transform_param() const;
2525 inline ::caffe::TransformationParameter* mutable_transform_param();
2526 inline ::caffe::TransformationParameter* release_transform_param();
2527 inline void set_allocated_transform_param(::caffe::TransformationParameter* transform_param);
2529 // optional .caffe.V0LayerParameter layer = 1;
2530 inline bool has_layer() const;
2531 inline void clear_layer();
2532 static const int kLayerFieldNumber = 1;
2533 inline const ::caffe::V0LayerParameter& layer() const;
2534 inline ::caffe::V0LayerParameter* mutable_layer();
2535 inline ::caffe::V0LayerParameter* release_layer();
2536 inline void set_allocated_layer(::caffe::V0LayerParameter* layer);
2538 // @@protoc_insertion_point(class_scope:caffe.LayerParameter)
2539 private:
2540 inline void set_has_name();
2541 inline void clear_has_name();
2542 inline void set_has_type();
2543 inline void clear_has_type();
2544 inline void set_has_accuracy_param();
2545 inline void clear_has_accuracy_param();
2546 inline void set_has_argmax_param();
2547 inline void clear_has_argmax_param();
2548 inline void set_has_concat_param();
2549 inline void clear_has_concat_param();
2550 inline void set_has_contrastive_loss_param();
2551 inline void clear_has_contrastive_loss_param();
2552 inline void set_has_convolution_param();
2553 inline void clear_has_convolution_param();
2554 inline void set_has_data_param();
2555 inline void clear_has_data_param();
2556 inline void set_has_dropout_param();
2557 inline void clear_has_dropout_param();
2558 inline void set_has_dummy_data_param();
2559 inline void clear_has_dummy_data_param();
2560 inline void set_has_eltwise_param();
2561 inline void clear_has_eltwise_param();
2562 inline void set_has_hdf5_data_param();
2563 inline void clear_has_hdf5_data_param();
2564 inline void set_has_hdf5_output_param();
2565 inline void clear_has_hdf5_output_param();
2566 inline void set_has_hinge_loss_param();
2567 inline void clear_has_hinge_loss_param();
2568 inline void set_has_image_data_param();
2569 inline void clear_has_image_data_param();
2570 inline void set_has_infogain_loss_param();
2571 inline void clear_has_infogain_loss_param();
2572 inline void set_has_inner_product_param();
2573 inline void clear_has_inner_product_param();
2574 inline void set_has_lrn_param();
2575 inline void clear_has_lrn_param();
2576 inline void set_has_memory_data_param();
2577 inline void clear_has_memory_data_param();
2578 inline void set_has_mvn_param();
2579 inline void clear_has_mvn_param();
2580 inline void set_has_pooling_param();
2581 inline void clear_has_pooling_param();
2582 inline void set_has_power_param();
2583 inline void clear_has_power_param();
2584 inline void set_has_relu_param();
2585 inline void clear_has_relu_param();
2586 inline void set_has_sigmoid_param();
2587 inline void clear_has_sigmoid_param();
2588 inline void set_has_softmax_param();
2589 inline void clear_has_softmax_param();
2590 inline void set_has_slice_param();
2591 inline void clear_has_slice_param();
2592 inline void set_has_tanh_param();
2593 inline void clear_has_tanh_param();
2594 inline void set_has_threshold_param();
2595 inline void clear_has_threshold_param();
2596 inline void set_has_window_data_param();
2597 inline void clear_has_window_data_param();
2598 inline void set_has_transform_param();
2599 inline void clear_has_transform_param();
2600 inline void set_has_layer();
2601 inline void clear_has_layer();
2603 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2605 ::google::protobuf::RepeatedPtrField< ::std::string> bottom_;
2606 ::google::protobuf::RepeatedPtrField< ::std::string> top_;
2607 ::std::string* name_;
2608 ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule > include_;
2609 ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule > exclude_;
2610 ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto > blobs_;
2611 ::google::protobuf::RepeatedPtrField< ::std::string> param_;
2612 ::google::protobuf::RepeatedField<int> blob_share_mode_;
2613 ::google::protobuf::RepeatedField< float > blobs_lr_;
2614 ::google::protobuf::RepeatedField< float > weight_decay_;
2615 ::google::protobuf::RepeatedField< float > loss_weight_;
2616 ::caffe::AccuracyParameter* accuracy_param_;
2617 ::caffe::ArgMaxParameter* argmax_param_;
2618 ::caffe::ConcatParameter* concat_param_;
2619 ::caffe::ContrastiveLossParameter* contrastive_loss_param_;
2620 ::caffe::ConvolutionParameter* convolution_param_;
2621 ::caffe::DataParameter* data_param_;
2622 ::caffe::DropoutParameter* dropout_param_;
2623 ::caffe::DummyDataParameter* dummy_data_param_;
2624 ::caffe::EltwiseParameter* eltwise_param_;
2625 ::caffe::HDF5DataParameter* hdf5_data_param_;
2626 ::caffe::HDF5OutputParameter* hdf5_output_param_;
2627 ::caffe::HingeLossParameter* hinge_loss_param_;
2628 ::caffe::ImageDataParameter* image_data_param_;
2629 ::caffe::InfogainLossParameter* infogain_loss_param_;
2630 ::caffe::InnerProductParameter* inner_product_param_;
2631 ::caffe::LRNParameter* lrn_param_;
2632 ::caffe::MemoryDataParameter* memory_data_param_;
2633 ::caffe::MVNParameter* mvn_param_;
2634 ::caffe::PoolingParameter* pooling_param_;
2635 ::caffe::PowerParameter* power_param_;
2636 ::caffe::ReLUParameter* relu_param_;
2637 ::caffe::SigmoidParameter* sigmoid_param_;
2638 ::caffe::SoftmaxParameter* softmax_param_;
2639 ::caffe::SliceParameter* slice_param_;
2640 ::caffe::TanHParameter* tanh_param_;
2641 ::caffe::ThresholdParameter* threshold_param_;
2642 ::caffe::WindowDataParameter* window_data_param_;
2643 ::caffe::TransformationParameter* transform_param_;
2644 ::caffe::V0LayerParameter* layer_;
2645 int type_;
2647 mutable int _cached_size_;
2648 ::google::protobuf::uint32 _has_bits_[(41 + 31) / 32];
2650 friend void protobuf_AddDesc_caffe_2eproto();
2651 friend void protobuf_AssignDesc_caffe_2eproto();
2652 friend void protobuf_ShutdownFile_caffe_2eproto();
2654 void InitAsDefaultInstance();
2655 static LayerParameter* default_instance_;
2656 };
2657 // -------------------------------------------------------------------
2659 class TransformationParameter : public ::google::protobuf::Message {
2660 public:
2661 TransformationParameter();
2662 virtual ~TransformationParameter();
2664 TransformationParameter(const TransformationParameter& from);
2666 inline TransformationParameter& operator=(const TransformationParameter& from) {
2667 CopyFrom(from);
2668 return *this;
2669 }
2671 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2672 return _unknown_fields_;
2673 }
2675 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2676 return &_unknown_fields_;
2677 }
2679 static const ::google::protobuf::Descriptor* descriptor();
2680 static const TransformationParameter& default_instance();
2682 void Swap(TransformationParameter* other);
2684 // implements Message ----------------------------------------------
2686 TransformationParameter* New() const;
2687 void CopyFrom(const ::google::protobuf::Message& from);
2688 void MergeFrom(const ::google::protobuf::Message& from);
2689 void CopyFrom(const TransformationParameter& from);
2690 void MergeFrom(const TransformationParameter& from);
2691 void Clear();
2692 bool IsInitialized() const;
2694 int ByteSize() const;
2695 bool MergePartialFromCodedStream(
2696 ::google::protobuf::io::CodedInputStream* input);
2697 void SerializeWithCachedSizes(
2698 ::google::protobuf::io::CodedOutputStream* output) const;
2699 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2700 int GetCachedSize() const { return _cached_size_; }
2701 private:
2702 void SharedCtor();
2703 void SharedDtor();
2704 void SetCachedSize(int size) const;
2705 public:
2707 ::google::protobuf::Metadata GetMetadata() const;
2709 // nested types ----------------------------------------------------
2711 // accessors -------------------------------------------------------
2713 // optional float scale = 1 [default = 1];
2714 inline bool has_scale() const;
2715 inline void clear_scale();
2716 static const int kScaleFieldNumber = 1;
2717 inline float scale() const;
2718 inline void set_scale(float value);
2720 // optional bool mirror = 2 [default = false];
2721 inline bool has_mirror() const;
2722 inline void clear_mirror();
2723 static const int kMirrorFieldNumber = 2;
2724 inline bool mirror() const;
2725 inline void set_mirror(bool value);
2727 // optional uint32 crop_size = 3 [default = 0];
2728 inline bool has_crop_size() const;
2729 inline void clear_crop_size();
2730 static const int kCropSizeFieldNumber = 3;
2731 inline ::google::protobuf::uint32 crop_size() const;
2732 inline void set_crop_size(::google::protobuf::uint32 value);
2734 // optional string mean_file = 4;
2735 inline bool has_mean_file() const;
2736 inline void clear_mean_file();
2737 static const int kMeanFileFieldNumber = 4;
2738 inline const ::std::string& mean_file() const;
2739 inline void set_mean_file(const ::std::string& value);
2740 inline void set_mean_file(const char* value);
2741 inline void set_mean_file(const char* value, size_t size);
2742 inline ::std::string* mutable_mean_file();
2743 inline ::std::string* release_mean_file();
2744 inline void set_allocated_mean_file(::std::string* mean_file);
2746 // @@protoc_insertion_point(class_scope:caffe.TransformationParameter)
2747 private:
2748 inline void set_has_scale();
2749 inline void clear_has_scale();
2750 inline void set_has_mirror();
2751 inline void clear_has_mirror();
2752 inline void set_has_crop_size();
2753 inline void clear_has_crop_size();
2754 inline void set_has_mean_file();
2755 inline void clear_has_mean_file();
2757 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2759 float scale_;
2760 bool mirror_;
2761 ::std::string* mean_file_;
2762 ::google::protobuf::uint32 crop_size_;
2764 mutable int _cached_size_;
2765 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
2767 friend void protobuf_AddDesc_caffe_2eproto();
2768 friend void protobuf_AssignDesc_caffe_2eproto();
2769 friend void protobuf_ShutdownFile_caffe_2eproto();
2771 void InitAsDefaultInstance();
2772 static TransformationParameter* default_instance_;
2773 };
2774 // -------------------------------------------------------------------
2776 class AccuracyParameter : public ::google::protobuf::Message {
2777 public:
2778 AccuracyParameter();
2779 virtual ~AccuracyParameter();
2781 AccuracyParameter(const AccuracyParameter& from);
2783 inline AccuracyParameter& operator=(const AccuracyParameter& from) {
2784 CopyFrom(from);
2785 return *this;
2786 }
2788 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2789 return _unknown_fields_;
2790 }
2792 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2793 return &_unknown_fields_;
2794 }
2796 static const ::google::protobuf::Descriptor* descriptor();
2797 static const AccuracyParameter& default_instance();
2799 void Swap(AccuracyParameter* other);
2801 // implements Message ----------------------------------------------
2803 AccuracyParameter* New() const;
2804 void CopyFrom(const ::google::protobuf::Message& from);
2805 void MergeFrom(const ::google::protobuf::Message& from);
2806 void CopyFrom(const AccuracyParameter& from);
2807 void MergeFrom(const AccuracyParameter& from);
2808 void Clear();
2809 bool IsInitialized() const;
2811 int ByteSize() const;
2812 bool MergePartialFromCodedStream(
2813 ::google::protobuf::io::CodedInputStream* input);
2814 void SerializeWithCachedSizes(
2815 ::google::protobuf::io::CodedOutputStream* output) const;
2816 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2817 int GetCachedSize() const { return _cached_size_; }
2818 private:
2819 void SharedCtor();
2820 void SharedDtor();
2821 void SetCachedSize(int size) const;
2822 public:
2824 ::google::protobuf::Metadata GetMetadata() const;
2826 // nested types ----------------------------------------------------
2828 // accessors -------------------------------------------------------
2830 // optional uint32 top_k = 1 [default = 1];
2831 inline bool has_top_k() const;
2832 inline void clear_top_k();
2833 static const int kTopKFieldNumber = 1;
2834 inline ::google::protobuf::uint32 top_k() const;
2835 inline void set_top_k(::google::protobuf::uint32 value);
2837 // @@protoc_insertion_point(class_scope:caffe.AccuracyParameter)
2838 private:
2839 inline void set_has_top_k();
2840 inline void clear_has_top_k();
2842 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2844 ::google::protobuf::uint32 top_k_;
2846 mutable int _cached_size_;
2847 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
2849 friend void protobuf_AddDesc_caffe_2eproto();
2850 friend void protobuf_AssignDesc_caffe_2eproto();
2851 friend void protobuf_ShutdownFile_caffe_2eproto();
2853 void InitAsDefaultInstance();
2854 static AccuracyParameter* default_instance_;
2855 };
2856 // -------------------------------------------------------------------
2858 class ArgMaxParameter : public ::google::protobuf::Message {
2859 public:
2860 ArgMaxParameter();
2861 virtual ~ArgMaxParameter();
2863 ArgMaxParameter(const ArgMaxParameter& from);
2865 inline ArgMaxParameter& operator=(const ArgMaxParameter& from) {
2866 CopyFrom(from);
2867 return *this;
2868 }
2870 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2871 return _unknown_fields_;
2872 }
2874 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2875 return &_unknown_fields_;
2876 }
2878 static const ::google::protobuf::Descriptor* descriptor();
2879 static const ArgMaxParameter& default_instance();
2881 void Swap(ArgMaxParameter* other);
2883 // implements Message ----------------------------------------------
2885 ArgMaxParameter* New() const;
2886 void CopyFrom(const ::google::protobuf::Message& from);
2887 void MergeFrom(const ::google::protobuf::Message& from);
2888 void CopyFrom(const ArgMaxParameter& from);
2889 void MergeFrom(const ArgMaxParameter& from);
2890 void Clear();
2891 bool IsInitialized() const;
2893 int ByteSize() const;
2894 bool MergePartialFromCodedStream(
2895 ::google::protobuf::io::CodedInputStream* input);
2896 void SerializeWithCachedSizes(
2897 ::google::protobuf::io::CodedOutputStream* output) const;
2898 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2899 int GetCachedSize() const { return _cached_size_; }
2900 private:
2901 void SharedCtor();
2902 void SharedDtor();
2903 void SetCachedSize(int size) const;
2904 public:
2906 ::google::protobuf::Metadata GetMetadata() const;
2908 // nested types ----------------------------------------------------
2910 // accessors -------------------------------------------------------
2912 // optional bool out_max_val = 1 [default = false];
2913 inline bool has_out_max_val() const;
2914 inline void clear_out_max_val();
2915 static const int kOutMaxValFieldNumber = 1;
2916 inline bool out_max_val() const;
2917 inline void set_out_max_val(bool value);
2919 // optional uint32 top_k = 2 [default = 1];
2920 inline bool has_top_k() const;
2921 inline void clear_top_k();
2922 static const int kTopKFieldNumber = 2;
2923 inline ::google::protobuf::uint32 top_k() const;
2924 inline void set_top_k(::google::protobuf::uint32 value);
2926 // @@protoc_insertion_point(class_scope:caffe.ArgMaxParameter)
2927 private:
2928 inline void set_has_out_max_val();
2929 inline void clear_has_out_max_val();
2930 inline void set_has_top_k();
2931 inline void clear_has_top_k();
2933 ::google::protobuf::UnknownFieldSet _unknown_fields_;
2935 bool out_max_val_;
2936 ::google::protobuf::uint32 top_k_;
2938 mutable int _cached_size_;
2939 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
2941 friend void protobuf_AddDesc_caffe_2eproto();
2942 friend void protobuf_AssignDesc_caffe_2eproto();
2943 friend void protobuf_ShutdownFile_caffe_2eproto();
2945 void InitAsDefaultInstance();
2946 static ArgMaxParameter* default_instance_;
2947 };
2948 // -------------------------------------------------------------------
2950 class ConcatParameter : public ::google::protobuf::Message {
2951 public:
2952 ConcatParameter();
2953 virtual ~ConcatParameter();
2955 ConcatParameter(const ConcatParameter& from);
2957 inline ConcatParameter& operator=(const ConcatParameter& from) {
2958 CopyFrom(from);
2959 return *this;
2960 }
2962 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2963 return _unknown_fields_;
2964 }
2966 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2967 return &_unknown_fields_;
2968 }
2970 static const ::google::protobuf::Descriptor* descriptor();
2971 static const ConcatParameter& default_instance();
2973 void Swap(ConcatParameter* other);
2975 // implements Message ----------------------------------------------
2977 ConcatParameter* New() const;
2978 void CopyFrom(const ::google::protobuf::Message& from);
2979 void MergeFrom(const ::google::protobuf::Message& from);
2980 void CopyFrom(const ConcatParameter& from);
2981 void MergeFrom(const ConcatParameter& from);
2982 void Clear();
2983 bool IsInitialized() const;
2985 int ByteSize() const;
2986 bool MergePartialFromCodedStream(
2987 ::google::protobuf::io::CodedInputStream* input);
2988 void SerializeWithCachedSizes(
2989 ::google::protobuf::io::CodedOutputStream* output) const;
2990 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
2991 int GetCachedSize() const { return _cached_size_; }
2992 private:
2993 void SharedCtor();
2994 void SharedDtor();
2995 void SetCachedSize(int size) const;
2996 public:
2998 ::google::protobuf::Metadata GetMetadata() const;
3000 // nested types ----------------------------------------------------
3002 // accessors -------------------------------------------------------
3004 // optional uint32 concat_dim = 1 [default = 1];
3005 inline bool has_concat_dim() const;
3006 inline void clear_concat_dim();
3007 static const int kConcatDimFieldNumber = 1;
3008 inline ::google::protobuf::uint32 concat_dim() const;
3009 inline void set_concat_dim(::google::protobuf::uint32 value);
3011 // @@protoc_insertion_point(class_scope:caffe.ConcatParameter)
3012 private:
3013 inline void set_has_concat_dim();
3014 inline void clear_has_concat_dim();
3016 ::google::protobuf::UnknownFieldSet _unknown_fields_;
3018 ::google::protobuf::uint32 concat_dim_;
3020 mutable int _cached_size_;
3021 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
3023 friend void protobuf_AddDesc_caffe_2eproto();
3024 friend void protobuf_AssignDesc_caffe_2eproto();
3025 friend void protobuf_ShutdownFile_caffe_2eproto();
3027 void InitAsDefaultInstance();
3028 static ConcatParameter* default_instance_;
3029 };
3030 // -------------------------------------------------------------------
3032 class ContrastiveLossParameter : public ::google::protobuf::Message {
3033 public:
3034 ContrastiveLossParameter();
3035 virtual ~ContrastiveLossParameter();
3037 ContrastiveLossParameter(const ContrastiveLossParameter& from);
3039 inline ContrastiveLossParameter& operator=(const ContrastiveLossParameter& from) {
3040 CopyFrom(from);
3041 return *this;
3042 }
3044 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3045 return _unknown_fields_;
3046 }
3048 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3049 return &_unknown_fields_;
3050 }
3052 static const ::google::protobuf::Descriptor* descriptor();
3053 static const ContrastiveLossParameter& default_instance();
3055 void Swap(ContrastiveLossParameter* other);
3057 // implements Message ----------------------------------------------
3059 ContrastiveLossParameter* New() const;
3060 void CopyFrom(const ::google::protobuf::Message& from);
3061 void MergeFrom(const ::google::protobuf::Message& from);
3062 void CopyFrom(const ContrastiveLossParameter& from);
3063 void MergeFrom(const ContrastiveLossParameter& from);
3064 void Clear();
3065 bool IsInitialized() const;
3067 int ByteSize() const;
3068 bool MergePartialFromCodedStream(
3069 ::google::protobuf::io::CodedInputStream* input);
3070 void SerializeWithCachedSizes(
3071 ::google::protobuf::io::CodedOutputStream* output) const;
3072 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3073 int GetCachedSize() const { return _cached_size_; }
3074 private:
3075 void SharedCtor();
3076 void SharedDtor();
3077 void SetCachedSize(int size) const;
3078 public:
3080 ::google::protobuf::Metadata GetMetadata() const;
3082 // nested types ----------------------------------------------------
3084 // accessors -------------------------------------------------------
3086 // optional float margin = 1 [default = 1];
3087 inline bool has_margin() const;
3088 inline void clear_margin();
3089 static const int kMarginFieldNumber = 1;
3090 inline float margin() const;
3091 inline void set_margin(float value);
3093 // @@protoc_insertion_point(class_scope:caffe.ContrastiveLossParameter)
3094 private:
3095 inline void set_has_margin();
3096 inline void clear_has_margin();
3098 ::google::protobuf::UnknownFieldSet _unknown_fields_;
3100 float margin_;
3102 mutable int _cached_size_;
3103 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
3105 friend void protobuf_AddDesc_caffe_2eproto();
3106 friend void protobuf_AssignDesc_caffe_2eproto();
3107 friend void protobuf_ShutdownFile_caffe_2eproto();
3109 void InitAsDefaultInstance();
3110 static ContrastiveLossParameter* default_instance_;
3111 };
3112 // -------------------------------------------------------------------
3114 class ConvolutionParameter : public ::google::protobuf::Message {
3115 public:
3116 ConvolutionParameter();
3117 virtual ~ConvolutionParameter();
3119 ConvolutionParameter(const ConvolutionParameter& from);
3121 inline ConvolutionParameter& operator=(const ConvolutionParameter& from) {
3122 CopyFrom(from);
3123 return *this;
3124 }
3126 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3127 return _unknown_fields_;
3128 }
3130 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3131 return &_unknown_fields_;
3132 }
3134 static const ::google::protobuf::Descriptor* descriptor();
3135 static const ConvolutionParameter& default_instance();
3137 void Swap(ConvolutionParameter* other);
3139 // implements Message ----------------------------------------------
3141 ConvolutionParameter* New() const;
3142 void CopyFrom(const ::google::protobuf::Message& from);
3143 void MergeFrom(const ::google::protobuf::Message& from);
3144 void CopyFrom(const ConvolutionParameter& from);
3145 void MergeFrom(const ConvolutionParameter& from);
3146 void Clear();
3147 bool IsInitialized() const;
3149 int ByteSize() const;
3150 bool MergePartialFromCodedStream(
3151 ::google::protobuf::io::CodedInputStream* input);
3152 void SerializeWithCachedSizes(
3153 ::google::protobuf::io::CodedOutputStream* output) const;
3154 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3155 int GetCachedSize() const { return _cached_size_; }
3156 private:
3157 void SharedCtor();
3158 void SharedDtor();
3159 void SetCachedSize(int size) const;
3160 public:
3162 ::google::protobuf::Metadata GetMetadata() const;
3164 // nested types ----------------------------------------------------
3166 typedef ConvolutionParameter_Engine Engine;
3167 static const Engine DEFAULT = ConvolutionParameter_Engine_DEFAULT;
3168 static const Engine CAFFE = ConvolutionParameter_Engine_CAFFE;
3169 static const Engine CUDNN = ConvolutionParameter_Engine_CUDNN;
3170 static inline bool Engine_IsValid(int value) {
3171 return ConvolutionParameter_Engine_IsValid(value);
3172 }
3173 static const Engine Engine_MIN =
3174 ConvolutionParameter_Engine_Engine_MIN;
3175 static const Engine Engine_MAX =
3176 ConvolutionParameter_Engine_Engine_MAX;
3177 static const int Engine_ARRAYSIZE =
3178 ConvolutionParameter_Engine_Engine_ARRAYSIZE;
3179 static inline const ::google::protobuf::EnumDescriptor*
3180 Engine_descriptor() {
3181 return ConvolutionParameter_Engine_descriptor();
3182 }
3183 static inline const ::std::string& Engine_Name(Engine value) {
3184 return ConvolutionParameter_Engine_Name(value);
3185 }
3186 static inline bool Engine_Parse(const ::std::string& name,
3187 Engine* value) {
3188 return ConvolutionParameter_Engine_Parse(name, value);
3189 }
3191 // accessors -------------------------------------------------------
3193 // optional uint32 num_output = 1;
3194 inline bool has_num_output() const;
3195 inline void clear_num_output();
3196 static const int kNumOutputFieldNumber = 1;
3197 inline ::google::protobuf::uint32 num_output() const;
3198 inline void set_num_output(::google::protobuf::uint32 value);
3200 // optional bool bias_term = 2 [default = true];
3201 inline bool has_bias_term() const;
3202 inline void clear_bias_term();
3203 static const int kBiasTermFieldNumber = 2;
3204 inline bool bias_term() const;
3205 inline void set_bias_term(bool value);
3207 // optional uint32 pad = 3 [default = 0];
3208 inline bool has_pad() const;
3209 inline void clear_pad();
3210 static const int kPadFieldNumber = 3;
3211 inline ::google::protobuf::uint32 pad() const;
3212 inline void set_pad(::google::protobuf::uint32 value);
3214 // optional uint32 pad_h = 9 [default = 0];
3215 inline bool has_pad_h() const;
3216 inline void clear_pad_h();
3217 static const int kPadHFieldNumber = 9;
3218 inline ::google::protobuf::uint32 pad_h() const;
3219 inline void set_pad_h(::google::protobuf::uint32 value);
3221 // optional uint32 pad_w = 10 [default = 0];
3222 inline bool has_pad_w() const;
3223 inline void clear_pad_w();
3224 static const int kPadWFieldNumber = 10;
3225 inline ::google::protobuf::uint32 pad_w() const;
3226 inline void set_pad_w(::google::protobuf::uint32 value);
3228 // optional uint32 kernel_size = 4;
3229 inline bool has_kernel_size() const;
3230 inline void clear_kernel_size();
3231 static const int kKernelSizeFieldNumber = 4;
3232 inline ::google::protobuf::uint32 kernel_size() const;
3233 inline void set_kernel_size(::google::protobuf::uint32 value);
3235 // optional uint32 kernel_h = 11;
3236 inline bool has_kernel_h() const;
3237 inline void clear_kernel_h();
3238 static const int kKernelHFieldNumber = 11;
3239 inline ::google::protobuf::uint32 kernel_h() const;
3240 inline void set_kernel_h(::google::protobuf::uint32 value);
3242 // optional uint32 kernel_w = 12;
3243 inline bool has_kernel_w() const;
3244 inline void clear_kernel_w();
3245 static const int kKernelWFieldNumber = 12;
3246 inline ::google::protobuf::uint32 kernel_w() const;
3247 inline void set_kernel_w(::google::protobuf::uint32 value);
3249 // optional uint32 group = 5 [default = 1];
3250 inline bool has_group() const;
3251 inline void clear_group();
3252 static const int kGroupFieldNumber = 5;
3253 inline ::google::protobuf::uint32 group() const;
3254 inline void set_group(::google::protobuf::uint32 value);
3256 // optional uint32 stride = 6 [default = 1];
3257 inline bool has_stride() const;
3258 inline void clear_stride();
3259 static const int kStrideFieldNumber = 6;
3260 inline ::google::protobuf::uint32 stride() const;
3261 inline void set_stride(::google::protobuf::uint32 value);
3263 // optional uint32 stride_h = 13;
3264 inline bool has_stride_h() const;
3265 inline void clear_stride_h();
3266 static const int kStrideHFieldNumber = 13;
3267 inline ::google::protobuf::uint32 stride_h() const;
3268 inline void set_stride_h(::google::protobuf::uint32 value);
3270 // optional uint32 stride_w = 14;
3271 inline bool has_stride_w() const;
3272 inline void clear_stride_w();
3273 static const int kStrideWFieldNumber = 14;
3274 inline ::google::protobuf::uint32 stride_w() const;
3275 inline void set_stride_w(::google::protobuf::uint32 value);
3277 // optional .caffe.FillerParameter weight_filler = 7;
3278 inline bool has_weight_filler() const;
3279 inline void clear_weight_filler();
3280 static const int kWeightFillerFieldNumber = 7;
3281 inline const ::caffe::FillerParameter& weight_filler() const;
3282 inline ::caffe::FillerParameter* mutable_weight_filler();
3283 inline ::caffe::FillerParameter* release_weight_filler();
3284 inline void set_allocated_weight_filler(::caffe::FillerParameter* weight_filler);
3286 // optional .caffe.FillerParameter bias_filler = 8;
3287 inline bool has_bias_filler() const;
3288 inline void clear_bias_filler();
3289 static const int kBiasFillerFieldNumber = 8;
3290 inline const ::caffe::FillerParameter& bias_filler() const;
3291 inline ::caffe::FillerParameter* mutable_bias_filler();
3292 inline ::caffe::FillerParameter* release_bias_filler();
3293 inline void set_allocated_bias_filler(::caffe::FillerParameter* bias_filler);
3295 // optional .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT];
3296 inline bool has_engine() const;
3297 inline void clear_engine();
3298 static const int kEngineFieldNumber = 15;
3299 inline ::caffe::ConvolutionParameter_Engine engine() const;
3300 inline void set_engine(::caffe::ConvolutionParameter_Engine value);
3302 // @@protoc_insertion_point(class_scope:caffe.ConvolutionParameter)
3303 private:
3304 inline void set_has_num_output();
3305 inline void clear_has_num_output();
3306 inline void set_has_bias_term();
3307 inline void clear_has_bias_term();
3308 inline void set_has_pad();
3309 inline void clear_has_pad();
3310 inline void set_has_pad_h();
3311 inline void clear_has_pad_h();
3312 inline void set_has_pad_w();
3313 inline void clear_has_pad_w();
3314 inline void set_has_kernel_size();
3315 inline void clear_has_kernel_size();
3316 inline void set_has_kernel_h();
3317 inline void clear_has_kernel_h();
3318 inline void set_has_kernel_w();
3319 inline void clear_has_kernel_w();
3320 inline void set_has_group();
3321 inline void clear_has_group();
3322 inline void set_has_stride();
3323 inline void clear_has_stride();
3324 inline void set_has_stride_h();
3325 inline void clear_has_stride_h();
3326 inline void set_has_stride_w();
3327 inline void clear_has_stride_w();
3328 inline void set_has_weight_filler();
3329 inline void clear_has_weight_filler();
3330 inline void set_has_bias_filler();
3331 inline void clear_has_bias_filler();
3332 inline void set_has_engine();
3333 inline void clear_has_engine();
3335 ::google::protobuf::UnknownFieldSet _unknown_fields_;
3337 ::google::protobuf::uint32 num_output_;
3338 bool bias_term_;
3339 ::google::protobuf::uint32 pad_;
3340 ::google::protobuf::uint32 pad_h_;
3341 ::google::protobuf::uint32 pad_w_;
3342 ::google::protobuf::uint32 kernel_size_;
3343 ::google::protobuf::uint32 kernel_h_;
3344 ::google::protobuf::uint32 kernel_w_;
3345 ::google::protobuf::uint32 group_;
3346 ::google::protobuf::uint32 stride_;
3347 ::google::protobuf::uint32 stride_h_;
3348 ::google::protobuf::uint32 stride_w_;
3349 ::caffe::FillerParameter* weight_filler_;
3350 ::caffe::FillerParameter* bias_filler_;
3351 int engine_;
3353 mutable int _cached_size_;
3354 ::google::protobuf::uint32 _has_bits_[(15 + 31) / 32];
3356 friend void protobuf_AddDesc_caffe_2eproto();
3357 friend void protobuf_AssignDesc_caffe_2eproto();
3358 friend void protobuf_ShutdownFile_caffe_2eproto();
3360 void InitAsDefaultInstance();
3361 static ConvolutionParameter* default_instance_;
3362 };
3363 // -------------------------------------------------------------------
3365 class DataParameter : public ::google::protobuf::Message {
3366 public:
3367 DataParameter();
3368 virtual ~DataParameter();
3370 DataParameter(const DataParameter& from);
3372 inline DataParameter& operator=(const DataParameter& from) {
3373 CopyFrom(from);
3374 return *this;
3375 }
3377 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3378 return _unknown_fields_;
3379 }
3381 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3382 return &_unknown_fields_;
3383 }
3385 static const ::google::protobuf::Descriptor* descriptor();
3386 static const DataParameter& default_instance();
3388 void Swap(DataParameter* other);
3390 // implements Message ----------------------------------------------
3392 DataParameter* New() const;
3393 void CopyFrom(const ::google::protobuf::Message& from);
3394 void MergeFrom(const ::google::protobuf::Message& from);
3395 void CopyFrom(const DataParameter& from);
3396 void MergeFrom(const DataParameter& from);
3397 void Clear();
3398 bool IsInitialized() const;
3400 int ByteSize() const;
3401 bool MergePartialFromCodedStream(
3402 ::google::protobuf::io::CodedInputStream* input);
3403 void SerializeWithCachedSizes(
3404 ::google::protobuf::io::CodedOutputStream* output) const;
3405 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3406 int GetCachedSize() const { return _cached_size_; }
3407 private:
3408 void SharedCtor();
3409 void SharedDtor();
3410 void SetCachedSize(int size) const;
3411 public:
3413 ::google::protobuf::Metadata GetMetadata() const;
3415 // nested types ----------------------------------------------------
3417 typedef DataParameter_DB DB;
3418 static const DB LEVELDB = DataParameter_DB_LEVELDB;
3419 static const DB LMDB = DataParameter_DB_LMDB;
3420 static inline bool DB_IsValid(int value) {
3421 return DataParameter_DB_IsValid(value);
3422 }
3423 static const DB DB_MIN =
3424 DataParameter_DB_DB_MIN;
3425 static const DB DB_MAX =
3426 DataParameter_DB_DB_MAX;
3427 static const int DB_ARRAYSIZE =
3428 DataParameter_DB_DB_ARRAYSIZE;
3429 static inline const ::google::protobuf::EnumDescriptor*
3430 DB_descriptor() {
3431 return DataParameter_DB_descriptor();
3432 }
3433 static inline const ::std::string& DB_Name(DB value) {
3434 return DataParameter_DB_Name(value);
3435 }
3436 static inline bool DB_Parse(const ::std::string& name,
3437 DB* value) {
3438 return DataParameter_DB_Parse(name, value);
3439 }
3441 // accessors -------------------------------------------------------
3443 // optional string source = 1;
3444 inline bool has_source() const;
3445 inline void clear_source();
3446 static const int kSourceFieldNumber = 1;
3447 inline const ::std::string& source() const;
3448 inline void set_source(const ::std::string& value);
3449 inline void set_source(const char* value);
3450 inline void set_source(const char* value, size_t size);
3451 inline ::std::string* mutable_source();
3452 inline ::std::string* release_source();
3453 inline void set_allocated_source(::std::string* source);
3455 // optional uint32 batch_size = 4;
3456 inline bool has_batch_size() const;
3457 inline void clear_batch_size();
3458 static const int kBatchSizeFieldNumber = 4;
3459 inline ::google::protobuf::uint32 batch_size() const;
3460 inline void set_batch_size(::google::protobuf::uint32 value);
3462 // optional uint32 rand_skip = 7 [default = 0];
3463 inline bool has_rand_skip() const;
3464 inline void clear_rand_skip();
3465 static const int kRandSkipFieldNumber = 7;
3466 inline ::google::protobuf::uint32 rand_skip() const;
3467 inline void set_rand_skip(::google::protobuf::uint32 value);
3469 // optional .caffe.DataParameter.DB backend = 8 [default = LEVELDB];
3470 inline bool has_backend() const;
3471 inline void clear_backend();
3472 static const int kBackendFieldNumber = 8;
3473 inline ::caffe::DataParameter_DB backend() const;
3474 inline void set_backend(::caffe::DataParameter_DB value);
3476 // optional float scale = 2 [default = 1];
3477 inline bool has_scale() const;
3478 inline void clear_scale();
3479 static const int kScaleFieldNumber = 2;
3480 inline float scale() const;
3481 inline void set_scale(float value);
3483 // optional string mean_file = 3;
3484 inline bool has_mean_file() const;
3485 inline void clear_mean_file();
3486 static const int kMeanFileFieldNumber = 3;
3487 inline const ::std::string& mean_file() const;
3488 inline void set_mean_file(const ::std::string& value);
3489 inline void set_mean_file(const char* value);
3490 inline void set_mean_file(const char* value, size_t size);
3491 inline ::std::string* mutable_mean_file();
3492 inline ::std::string* release_mean_file();
3493 inline void set_allocated_mean_file(::std::string* mean_file);
3495 // optional uint32 crop_size = 5 [default = 0];
3496 inline bool has_crop_size() const;
3497 inline void clear_crop_size();
3498 static const int kCropSizeFieldNumber = 5;
3499 inline ::google::protobuf::uint32 crop_size() const;
3500 inline void set_crop_size(::google::protobuf::uint32 value);
3502 // optional bool mirror = 6 [default = false];
3503 inline bool has_mirror() const;
3504 inline void clear_mirror();
3505 static const int kMirrorFieldNumber = 6;
3506 inline bool mirror() const;
3507 inline void set_mirror(bool value);
3509 // @@protoc_insertion_point(class_scope:caffe.DataParameter)
3510 private:
3511 inline void set_has_source();
3512 inline void clear_has_source();
3513 inline void set_has_batch_size();
3514 inline void clear_has_batch_size();
3515 inline void set_has_rand_skip();
3516 inline void clear_has_rand_skip();
3517 inline void set_has_backend();
3518 inline void clear_has_backend();
3519 inline void set_has_scale();
3520 inline void clear_has_scale();
3521 inline void set_has_mean_file();
3522 inline void clear_has_mean_file();
3523 inline void set_has_crop_size();
3524 inline void clear_has_crop_size();
3525 inline void set_has_mirror();
3526 inline void clear_has_mirror();
3528 ::google::protobuf::UnknownFieldSet _unknown_fields_;
3530 ::std::string* source_;
3531 ::google::protobuf::uint32 batch_size_;
3532 ::google::protobuf::uint32 rand_skip_;
3533 int backend_;
3534 float scale_;
3535 ::std::string* mean_file_;
3536 ::google::protobuf::uint32 crop_size_;
3537 bool mirror_;
3539 mutable int _cached_size_;
3540 ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
3542 friend void protobuf_AddDesc_caffe_2eproto();
3543 friend void protobuf_AssignDesc_caffe_2eproto();
3544 friend void protobuf_ShutdownFile_caffe_2eproto();
3546 void InitAsDefaultInstance();
3547 static DataParameter* default_instance_;
3548 };
3549 // -------------------------------------------------------------------
3551 class DropoutParameter : public ::google::protobuf::Message {
3552 public:
3553 DropoutParameter();
3554 virtual ~DropoutParameter();
3556 DropoutParameter(const DropoutParameter& from);
3558 inline DropoutParameter& operator=(const DropoutParameter& from) {
3559 CopyFrom(from);
3560 return *this;
3561 }
3563 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3564 return _unknown_fields_;
3565 }
3567 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3568 return &_unknown_fields_;
3569 }
3571 static const ::google::protobuf::Descriptor* descriptor();
3572 static const DropoutParameter& default_instance();
3574 void Swap(DropoutParameter* other);
3576 // implements Message ----------------------------------------------
3578 DropoutParameter* New() const;
3579 void CopyFrom(const ::google::protobuf::Message& from);
3580 void MergeFrom(const ::google::protobuf::Message& from);
3581 void CopyFrom(const DropoutParameter& from);
3582 void MergeFrom(const DropoutParameter& from);
3583 void Clear();
3584 bool IsInitialized() const;
3586 int ByteSize() const;
3587 bool MergePartialFromCodedStream(
3588 ::google::protobuf::io::CodedInputStream* input);
3589 void SerializeWithCachedSizes(
3590 ::google::protobuf::io::CodedOutputStream* output) const;
3591 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3592 int GetCachedSize() const { return _cached_size_; }
3593 private:
3594 void SharedCtor();
3595 void SharedDtor();
3596 void SetCachedSize(int size) const;
3597 public:
3599 ::google::protobuf::Metadata GetMetadata() const;
3601 // nested types ----------------------------------------------------
3603 // accessors -------------------------------------------------------
3605 // optional float dropout_ratio = 1 [default = 0.5];
3606 inline bool has_dropout_ratio() const;
3607 inline void clear_dropout_ratio();
3608 static const int kDropoutRatioFieldNumber = 1;
3609 inline float dropout_ratio() const;
3610 inline void set_dropout_ratio(float value);
3612 // @@protoc_insertion_point(class_scope:caffe.DropoutParameter)
3613 private:
3614 inline void set_has_dropout_ratio();
3615 inline void clear_has_dropout_ratio();
3617 ::google::protobuf::UnknownFieldSet _unknown_fields_;
3619 float dropout_ratio_;
3621 mutable int _cached_size_;
3622 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
3624 friend void protobuf_AddDesc_caffe_2eproto();
3625 friend void protobuf_AssignDesc_caffe_2eproto();
3626 friend void protobuf_ShutdownFile_caffe_2eproto();
3628 void InitAsDefaultInstance();
3629 static DropoutParameter* default_instance_;
3630 };
3631 // -------------------------------------------------------------------
3633 class DummyDataParameter : public ::google::protobuf::Message {
3634 public:
3635 DummyDataParameter();
3636 virtual ~DummyDataParameter();
3638 DummyDataParameter(const DummyDataParameter& from);
3640 inline DummyDataParameter& operator=(const DummyDataParameter& from) {
3641 CopyFrom(from);
3642 return *this;
3643 }
3645 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3646 return _unknown_fields_;
3647 }
3649 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3650 return &_unknown_fields_;
3651 }
3653 static const ::google::protobuf::Descriptor* descriptor();
3654 static const DummyDataParameter& default_instance();
3656 void Swap(DummyDataParameter* other);
3658 // implements Message ----------------------------------------------
3660 DummyDataParameter* New() const;
3661 void CopyFrom(const ::google::protobuf::Message& from);
3662 void MergeFrom(const ::google::protobuf::Message& from);
3663 void CopyFrom(const DummyDataParameter& from);
3664 void MergeFrom(const DummyDataParameter& from);
3665 void Clear();
3666 bool IsInitialized() const;
3668 int ByteSize() const;
3669 bool MergePartialFromCodedStream(
3670 ::google::protobuf::io::CodedInputStream* input);
3671 void SerializeWithCachedSizes(
3672 ::google::protobuf::io::CodedOutputStream* output) const;
3673 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3674 int GetCachedSize() const { return _cached_size_; }
3675 private:
3676 void SharedCtor();
3677 void SharedDtor();
3678 void SetCachedSize(int size) const;
3679 public:
3681 ::google::protobuf::Metadata GetMetadata() const;
3683 // nested types ----------------------------------------------------
3685 // accessors -------------------------------------------------------
3687 // repeated .caffe.FillerParameter data_filler = 1;
3688 inline int data_filler_size() const;
3689 inline void clear_data_filler();
3690 static const int kDataFillerFieldNumber = 1;
3691 inline const ::caffe::FillerParameter& data_filler(int index) const;
3692 inline ::caffe::FillerParameter* mutable_data_filler(int index);
3693 inline ::caffe::FillerParameter* add_data_filler();
3694 inline const ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter >&
3695 data_filler() const;
3696 inline ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter >*
3697 mutable_data_filler();
3699 // repeated uint32 num = 2;
3700 inline int num_size() const;
3701 inline void clear_num();
3702 static const int kNumFieldNumber = 2;
3703 inline ::google::protobuf::uint32 num(int index) const;
3704 inline void set_num(int index, ::google::protobuf::uint32 value);
3705 inline void add_num(::google::protobuf::uint32 value);
3706 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
3707 num() const;
3708 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
3709 mutable_num();
3711 // repeated uint32 channels = 3;
3712 inline int channels_size() const;
3713 inline void clear_channels();
3714 static const int kChannelsFieldNumber = 3;
3715 inline ::google::protobuf::uint32 channels(int index) const;
3716 inline void set_channels(int index, ::google::protobuf::uint32 value);
3717 inline void add_channels(::google::protobuf::uint32 value);
3718 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
3719 channels() const;
3720 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
3721 mutable_channels();
3723 // repeated uint32 height = 4;
3724 inline int height_size() const;
3725 inline void clear_height();
3726 static const int kHeightFieldNumber = 4;
3727 inline ::google::protobuf::uint32 height(int index) const;
3728 inline void set_height(int index, ::google::protobuf::uint32 value);
3729 inline void add_height(::google::protobuf::uint32 value);
3730 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
3731 height() const;
3732 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
3733 mutable_height();
3735 // repeated uint32 width = 5;
3736 inline int width_size() const;
3737 inline void clear_width();
3738 static const int kWidthFieldNumber = 5;
3739 inline ::google::protobuf::uint32 width(int index) const;
3740 inline void set_width(int index, ::google::protobuf::uint32 value);
3741 inline void add_width(::google::protobuf::uint32 value);
3742 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
3743 width() const;
3744 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
3745 mutable_width();
3747 // @@protoc_insertion_point(class_scope:caffe.DummyDataParameter)
3748 private:
3750 ::google::protobuf::UnknownFieldSet _unknown_fields_;
3752 ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter > data_filler_;
3753 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > num_;
3754 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > channels_;
3755 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > height_;
3756 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > width_;
3758 mutable int _cached_size_;
3759 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
3761 friend void protobuf_AddDesc_caffe_2eproto();
3762 friend void protobuf_AssignDesc_caffe_2eproto();
3763 friend void protobuf_ShutdownFile_caffe_2eproto();
3765 void InitAsDefaultInstance();
3766 static DummyDataParameter* default_instance_;
3767 };
3768 // -------------------------------------------------------------------
3770 class EltwiseParameter : public ::google::protobuf::Message {
3771 public:
3772 EltwiseParameter();
3773 virtual ~EltwiseParameter();
3775 EltwiseParameter(const EltwiseParameter& from);
3777 inline EltwiseParameter& operator=(const EltwiseParameter& from) {
3778 CopyFrom(from);
3779 return *this;
3780 }
3782 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3783 return _unknown_fields_;
3784 }
3786 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3787 return &_unknown_fields_;
3788 }
3790 static const ::google::protobuf::Descriptor* descriptor();
3791 static const EltwiseParameter& default_instance();
3793 void Swap(EltwiseParameter* other);
3795 // implements Message ----------------------------------------------
3797 EltwiseParameter* New() const;
3798 void CopyFrom(const ::google::protobuf::Message& from);
3799 void MergeFrom(const ::google::protobuf::Message& from);
3800 void CopyFrom(const EltwiseParameter& from);
3801 void MergeFrom(const EltwiseParameter& from);
3802 void Clear();
3803 bool IsInitialized() const;
3805 int ByteSize() const;
3806 bool MergePartialFromCodedStream(
3807 ::google::protobuf::io::CodedInputStream* input);
3808 void SerializeWithCachedSizes(
3809 ::google::protobuf::io::CodedOutputStream* output) const;
3810 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3811 int GetCachedSize() const { return _cached_size_; }
3812 private:
3813 void SharedCtor();
3814 void SharedDtor();
3815 void SetCachedSize(int size) const;
3816 public:
3818 ::google::protobuf::Metadata GetMetadata() const;
3820 // nested types ----------------------------------------------------
3822 typedef EltwiseParameter_EltwiseOp EltwiseOp;
3823 static const EltwiseOp PROD = EltwiseParameter_EltwiseOp_PROD;
3824 static const EltwiseOp SUM = EltwiseParameter_EltwiseOp_SUM;
3825 static const EltwiseOp MAX = EltwiseParameter_EltwiseOp_MAX;
3826 static inline bool EltwiseOp_IsValid(int value) {
3827 return EltwiseParameter_EltwiseOp_IsValid(value);
3828 }
3829 static const EltwiseOp EltwiseOp_MIN =
3830 EltwiseParameter_EltwiseOp_EltwiseOp_MIN;
3831 static const EltwiseOp EltwiseOp_MAX =
3832 EltwiseParameter_EltwiseOp_EltwiseOp_MAX;
3833 static const int EltwiseOp_ARRAYSIZE =
3834 EltwiseParameter_EltwiseOp_EltwiseOp_ARRAYSIZE;
3835 static inline const ::google::protobuf::EnumDescriptor*
3836 EltwiseOp_descriptor() {
3837 return EltwiseParameter_EltwiseOp_descriptor();
3838 }
3839 static inline const ::std::string& EltwiseOp_Name(EltwiseOp value) {
3840 return EltwiseParameter_EltwiseOp_Name(value);
3841 }
3842 static inline bool EltwiseOp_Parse(const ::std::string& name,
3843 EltwiseOp* value) {
3844 return EltwiseParameter_EltwiseOp_Parse(name, value);
3845 }
3847 // accessors -------------------------------------------------------
3849 // optional .caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM];
3850 inline bool has_operation() const;
3851 inline void clear_operation();
3852 static const int kOperationFieldNumber = 1;
3853 inline ::caffe::EltwiseParameter_EltwiseOp operation() const;
3854 inline void set_operation(::caffe::EltwiseParameter_EltwiseOp value);
3856 // repeated float coeff = 2;
3857 inline int coeff_size() const;
3858 inline void clear_coeff();
3859 static const int kCoeffFieldNumber = 2;
3860 inline float coeff(int index) const;
3861 inline void set_coeff(int index, float value);
3862 inline void add_coeff(float value);
3863 inline const ::google::protobuf::RepeatedField< float >&
3864 coeff() const;
3865 inline ::google::protobuf::RepeatedField< float >*
3866 mutable_coeff();
3868 // optional bool stable_prod_grad = 3 [default = true];
3869 inline bool has_stable_prod_grad() const;
3870 inline void clear_stable_prod_grad();
3871 static const int kStableProdGradFieldNumber = 3;
3872 inline bool stable_prod_grad() const;
3873 inline void set_stable_prod_grad(bool value);
3875 // @@protoc_insertion_point(class_scope:caffe.EltwiseParameter)
3876 private:
3877 inline void set_has_operation();
3878 inline void clear_has_operation();
3879 inline void set_has_stable_prod_grad();
3880 inline void clear_has_stable_prod_grad();
3882 ::google::protobuf::UnknownFieldSet _unknown_fields_;
3884 ::google::protobuf::RepeatedField< float > coeff_;
3885 int operation_;
3886 bool stable_prod_grad_;
3888 mutable int _cached_size_;
3889 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
3891 friend void protobuf_AddDesc_caffe_2eproto();
3892 friend void protobuf_AssignDesc_caffe_2eproto();
3893 friend void protobuf_ShutdownFile_caffe_2eproto();
3895 void InitAsDefaultInstance();
3896 static EltwiseParameter* default_instance_;
3897 };
3898 // -------------------------------------------------------------------
3900 class ThresholdParameter : public ::google::protobuf::Message {
3901 public:
3902 ThresholdParameter();
3903 virtual ~ThresholdParameter();
3905 ThresholdParameter(const ThresholdParameter& from);
3907 inline ThresholdParameter& operator=(const ThresholdParameter& from) {
3908 CopyFrom(from);
3909 return *this;
3910 }
3912 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3913 return _unknown_fields_;
3914 }
3916 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3917 return &_unknown_fields_;
3918 }
3920 static const ::google::protobuf::Descriptor* descriptor();
3921 static const ThresholdParameter& default_instance();
3923 void Swap(ThresholdParameter* other);
3925 // implements Message ----------------------------------------------
3927 ThresholdParameter* New() const;
3928 void CopyFrom(const ::google::protobuf::Message& from);
3929 void MergeFrom(const ::google::protobuf::Message& from);
3930 void CopyFrom(const ThresholdParameter& from);
3931 void MergeFrom(const ThresholdParameter& from);
3932 void Clear();
3933 bool IsInitialized() const;
3935 int ByteSize() const;
3936 bool MergePartialFromCodedStream(
3937 ::google::protobuf::io::CodedInputStream* input);
3938 void SerializeWithCachedSizes(
3939 ::google::protobuf::io::CodedOutputStream* output) const;
3940 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
3941 int GetCachedSize() const { return _cached_size_; }
3942 private:
3943 void SharedCtor();
3944 void SharedDtor();
3945 void SetCachedSize(int size) const;
3946 public:
3948 ::google::protobuf::Metadata GetMetadata() const;
3950 // nested types ----------------------------------------------------
3952 // accessors -------------------------------------------------------
3954 // optional float threshold = 1 [default = 0];
3955 inline bool has_threshold() const;
3956 inline void clear_threshold();
3957 static const int kThresholdFieldNumber = 1;
3958 inline float threshold() const;
3959 inline void set_threshold(float value);
3961 // @@protoc_insertion_point(class_scope:caffe.ThresholdParameter)
3962 private:
3963 inline void set_has_threshold();
3964 inline void clear_has_threshold();
3966 ::google::protobuf::UnknownFieldSet _unknown_fields_;
3968 float threshold_;
3970 mutable int _cached_size_;
3971 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
3973 friend void protobuf_AddDesc_caffe_2eproto();
3974 friend void protobuf_AssignDesc_caffe_2eproto();
3975 friend void protobuf_ShutdownFile_caffe_2eproto();
3977 void InitAsDefaultInstance();
3978 static ThresholdParameter* default_instance_;
3979 };
3980 // -------------------------------------------------------------------
3982 class HDF5DataParameter : public ::google::protobuf::Message {
3983 public:
3984 HDF5DataParameter();
3985 virtual ~HDF5DataParameter();
3987 HDF5DataParameter(const HDF5DataParameter& from);
3989 inline HDF5DataParameter& operator=(const HDF5DataParameter& from) {
3990 CopyFrom(from);
3991 return *this;
3992 }
3994 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
3995 return _unknown_fields_;
3996 }
3998 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
3999 return &_unknown_fields_;
4000 }
4002 static const ::google::protobuf::Descriptor* descriptor();
4003 static const HDF5DataParameter& default_instance();
4005 void Swap(HDF5DataParameter* other);
4007 // implements Message ----------------------------------------------
4009 HDF5DataParameter* New() const;
4010 void CopyFrom(const ::google::protobuf::Message& from);
4011 void MergeFrom(const ::google::protobuf::Message& from);
4012 void CopyFrom(const HDF5DataParameter& from);
4013 void MergeFrom(const HDF5DataParameter& from);
4014 void Clear();
4015 bool IsInitialized() const;
4017 int ByteSize() const;
4018 bool MergePartialFromCodedStream(
4019 ::google::protobuf::io::CodedInputStream* input);
4020 void SerializeWithCachedSizes(
4021 ::google::protobuf::io::CodedOutputStream* output) const;
4022 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
4023 int GetCachedSize() const { return _cached_size_; }
4024 private:
4025 void SharedCtor();
4026 void SharedDtor();
4027 void SetCachedSize(int size) const;
4028 public:
4030 ::google::protobuf::Metadata GetMetadata() const;
4032 // nested types ----------------------------------------------------
4034 // accessors -------------------------------------------------------
4036 // optional string source = 1;
4037 inline bool has_source() const;
4038 inline void clear_source();
4039 static const int kSourceFieldNumber = 1;
4040 inline const ::std::string& source() const;
4041 inline void set_source(const ::std::string& value);
4042 inline void set_source(const char* value);
4043 inline void set_source(const char* value, size_t size);
4044 inline ::std::string* mutable_source();
4045 inline ::std::string* release_source();
4046 inline void set_allocated_source(::std::string* source);
4048 // optional uint32 batch_size = 2;
4049 inline bool has_batch_size() const;
4050 inline void clear_batch_size();
4051 static const int kBatchSizeFieldNumber = 2;
4052 inline ::google::protobuf::uint32 batch_size() const;
4053 inline void set_batch_size(::google::protobuf::uint32 value);
4055 // @@protoc_insertion_point(class_scope:caffe.HDF5DataParameter)
4056 private:
4057 inline void set_has_source();
4058 inline void clear_has_source();
4059 inline void set_has_batch_size();
4060 inline void clear_has_batch_size();
4062 ::google::protobuf::UnknownFieldSet _unknown_fields_;
4064 ::std::string* source_;
4065 ::google::protobuf::uint32 batch_size_;
4067 mutable int _cached_size_;
4068 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
4070 friend void protobuf_AddDesc_caffe_2eproto();
4071 friend void protobuf_AssignDesc_caffe_2eproto();
4072 friend void protobuf_ShutdownFile_caffe_2eproto();
4074 void InitAsDefaultInstance();
4075 static HDF5DataParameter* default_instance_;
4076 };
4077 // -------------------------------------------------------------------
4079 class HDF5OutputParameter : public ::google::protobuf::Message {
4080 public:
4081 HDF5OutputParameter();
4082 virtual ~HDF5OutputParameter();
4084 HDF5OutputParameter(const HDF5OutputParameter& from);
4086 inline HDF5OutputParameter& operator=(const HDF5OutputParameter& from) {
4087 CopyFrom(from);
4088 return *this;
4089 }
4091 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
4092 return _unknown_fields_;
4093 }
4095 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
4096 return &_unknown_fields_;
4097 }
4099 static const ::google::protobuf::Descriptor* descriptor();
4100 static const HDF5OutputParameter& default_instance();
4102 void Swap(HDF5OutputParameter* other);
4104 // implements Message ----------------------------------------------
4106 HDF5OutputParameter* New() const;
4107 void CopyFrom(const ::google::protobuf::Message& from);
4108 void MergeFrom(const ::google::protobuf::Message& from);
4109 void CopyFrom(const HDF5OutputParameter& from);
4110 void MergeFrom(const HDF5OutputParameter& from);
4111 void Clear();
4112 bool IsInitialized() const;
4114 int ByteSize() const;
4115 bool MergePartialFromCodedStream(
4116 ::google::protobuf::io::CodedInputStream* input);
4117 void SerializeWithCachedSizes(
4118 ::google::protobuf::io::CodedOutputStream* output) const;
4119 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
4120 int GetCachedSize() const { return _cached_size_; }
4121 private:
4122 void SharedCtor();
4123 void SharedDtor();
4124 void SetCachedSize(int size) const;
4125 public:
4127 ::google::protobuf::Metadata GetMetadata() const;
4129 // nested types ----------------------------------------------------
4131 // accessors -------------------------------------------------------
4133 // optional string file_name = 1;
4134 inline bool has_file_name() const;
4135 inline void clear_file_name();
4136 static const int kFileNameFieldNumber = 1;
4137 inline const ::std::string& file_name() const;
4138 inline void set_file_name(const ::std::string& value);
4139 inline void set_file_name(const char* value);
4140 inline void set_file_name(const char* value, size_t size);
4141 inline ::std::string* mutable_file_name();
4142 inline ::std::string* release_file_name();
4143 inline void set_allocated_file_name(::std::string* file_name);
4145 // @@protoc_insertion_point(class_scope:caffe.HDF5OutputParameter)
4146 private:
4147 inline void set_has_file_name();
4148 inline void clear_has_file_name();
4150 ::google::protobuf::UnknownFieldSet _unknown_fields_;
4152 ::std::string* file_name_;
4154 mutable int _cached_size_;
4155 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
4157 friend void protobuf_AddDesc_caffe_2eproto();
4158 friend void protobuf_AssignDesc_caffe_2eproto();
4159 friend void protobuf_ShutdownFile_caffe_2eproto();
4161 void InitAsDefaultInstance();
4162 static HDF5OutputParameter* default_instance_;
4163 };
4164 // -------------------------------------------------------------------
4166 class HingeLossParameter : public ::google::protobuf::Message {
4167 public:
4168 HingeLossParameter();
4169 virtual ~HingeLossParameter();
4171 HingeLossParameter(const HingeLossParameter& from);
4173 inline HingeLossParameter& operator=(const HingeLossParameter& from) {
4174 CopyFrom(from);
4175 return *this;
4176 }
4178 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
4179 return _unknown_fields_;
4180 }
4182 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
4183 return &_unknown_fields_;
4184 }
4186 static const ::google::protobuf::Descriptor* descriptor();
4187 static const HingeLossParameter& default_instance();
4189 void Swap(HingeLossParameter* other);
4191 // implements Message ----------------------------------------------
4193 HingeLossParameter* New() const;
4194 void CopyFrom(const ::google::protobuf::Message& from);
4195 void MergeFrom(const ::google::protobuf::Message& from);
4196 void CopyFrom(const HingeLossParameter& from);
4197 void MergeFrom(const HingeLossParameter& from);
4198 void Clear();
4199 bool IsInitialized() const;
4201 int ByteSize() const;
4202 bool MergePartialFromCodedStream(
4203 ::google::protobuf::io::CodedInputStream* input);
4204 void SerializeWithCachedSizes(
4205 ::google::protobuf::io::CodedOutputStream* output) const;
4206 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
4207 int GetCachedSize() const { return _cached_size_; }
4208 private:
4209 void SharedCtor();
4210 void SharedDtor();
4211 void SetCachedSize(int size) const;
4212 public:
4214 ::google::protobuf::Metadata GetMetadata() const;
4216 // nested types ----------------------------------------------------
4218 typedef HingeLossParameter_Norm Norm;
4219 static const Norm L1 = HingeLossParameter_Norm_L1;
4220 static const Norm L2 = HingeLossParameter_Norm_L2;
4221 static inline bool Norm_IsValid(int value) {
4222 return HingeLossParameter_Norm_IsValid(value);
4223 }
4224 static const Norm Norm_MIN =
4225 HingeLossParameter_Norm_Norm_MIN;
4226 static const Norm Norm_MAX =
4227 HingeLossParameter_Norm_Norm_MAX;
4228 static const int Norm_ARRAYSIZE =
4229 HingeLossParameter_Norm_Norm_ARRAYSIZE;
4230 static inline const ::google::protobuf::EnumDescriptor*
4231 Norm_descriptor() {
4232 return HingeLossParameter_Norm_descriptor();
4233 }
4234 static inline const ::std::string& Norm_Name(Norm value) {
4235 return HingeLossParameter_Norm_Name(value);
4236 }
4237 static inline bool Norm_Parse(const ::std::string& name,
4238 Norm* value) {
4239 return HingeLossParameter_Norm_Parse(name, value);
4240 }
4242 // accessors -------------------------------------------------------
4244 // optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1];
4245 inline bool has_norm() const;
4246 inline void clear_norm();
4247 static const int kNormFieldNumber = 1;
4248 inline ::caffe::HingeLossParameter_Norm norm() const;
4249 inline void set_norm(::caffe::HingeLossParameter_Norm value);
4251 // @@protoc_insertion_point(class_scope:caffe.HingeLossParameter)
4252 private:
4253 inline void set_has_norm();
4254 inline void clear_has_norm();
4256 ::google::protobuf::UnknownFieldSet _unknown_fields_;
4258 int norm_;
4260 mutable int _cached_size_;
4261 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
4263 friend void protobuf_AddDesc_caffe_2eproto();
4264 friend void protobuf_AssignDesc_caffe_2eproto();
4265 friend void protobuf_ShutdownFile_caffe_2eproto();
4267 void InitAsDefaultInstance();
4268 static HingeLossParameter* default_instance_;
4269 };
4270 // -------------------------------------------------------------------
4272 class ImageDataParameter : public ::google::protobuf::Message {
4273 public:
4274 ImageDataParameter();
4275 virtual ~ImageDataParameter();
4277 ImageDataParameter(const ImageDataParameter& from);
4279 inline ImageDataParameter& operator=(const ImageDataParameter& from) {
4280 CopyFrom(from);
4281 return *this;
4282 }
4284 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
4285 return _unknown_fields_;
4286 }
4288 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
4289 return &_unknown_fields_;
4290 }
4292 static const ::google::protobuf::Descriptor* descriptor();
4293 static const ImageDataParameter& default_instance();
4295 void Swap(ImageDataParameter* other);
4297 // implements Message ----------------------------------------------
4299 ImageDataParameter* New() const;
4300 void CopyFrom(const ::google::protobuf::Message& from);
4301 void MergeFrom(const ::google::protobuf::Message& from);
4302 void CopyFrom(const ImageDataParameter& from);
4303 void MergeFrom(const ImageDataParameter& from);
4304 void Clear();
4305 bool IsInitialized() const;
4307 int ByteSize() const;
4308 bool MergePartialFromCodedStream(
4309 ::google::protobuf::io::CodedInputStream* input);
4310 void SerializeWithCachedSizes(
4311 ::google::protobuf::io::CodedOutputStream* output) const;
4312 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
4313 int GetCachedSize() const { return _cached_size_; }
4314 private:
4315 void SharedCtor();
4316 void SharedDtor();
4317 void SetCachedSize(int size) const;
4318 public:
4320 ::google::protobuf::Metadata GetMetadata() const;
4322 // nested types ----------------------------------------------------
4324 // accessors -------------------------------------------------------
4326 // optional string source = 1;
4327 inline bool has_source() const;
4328 inline void clear_source();
4329 static const int kSourceFieldNumber = 1;
4330 inline const ::std::string& source() const;
4331 inline void set_source(const ::std::string& value);
4332 inline void set_source(const char* value);
4333 inline void set_source(const char* value, size_t size);
4334 inline ::std::string* mutable_source();
4335 inline ::std::string* release_source();
4336 inline void set_allocated_source(::std::string* source);
4338 // optional uint32 batch_size = 4;
4339 inline bool has_batch_size() const;
4340 inline void clear_batch_size();
4341 static const int kBatchSizeFieldNumber = 4;
4342 inline ::google::protobuf::uint32 batch_size() const;
4343 inline void set_batch_size(::google::protobuf::uint32 value);
4345 // optional uint32 rand_skip = 7 [default = 0];
4346 inline bool has_rand_skip() const;
4347 inline void clear_rand_skip();
4348 static const int kRandSkipFieldNumber = 7;
4349 inline ::google::protobuf::uint32 rand_skip() const;
4350 inline void set_rand_skip(::google::protobuf::uint32 value);
4352 // optional bool shuffle = 8 [default = false];
4353 inline bool has_shuffle() const;
4354 inline void clear_shuffle();
4355 static const int kShuffleFieldNumber = 8;
4356 inline bool shuffle() const;
4357 inline void set_shuffle(bool value);
4359 // optional uint32 new_height = 9 [default = 0];
4360 inline bool has_new_height() const;
4361 inline void clear_new_height();
4362 static const int kNewHeightFieldNumber = 9;
4363 inline ::google::protobuf::uint32 new_height() const;
4364 inline void set_new_height(::google::protobuf::uint32 value);
4366 // optional uint32 new_width = 10 [default = 0];
4367 inline bool has_new_width() const;
4368 inline void clear_new_width();
4369 static const int kNewWidthFieldNumber = 10;
4370 inline ::google::protobuf::uint32 new_width() const;
4371 inline void set_new_width(::google::protobuf::uint32 value);
4373 // optional float scale = 2 [default = 1];
4374 inline bool has_scale() const;
4375 inline void clear_scale();
4376 static const int kScaleFieldNumber = 2;
4377 inline float scale() const;
4378 inline void set_scale(float value);
4380 // optional string mean_file = 3;
4381 inline bool has_mean_file() const;
4382 inline void clear_mean_file();
4383 static const int kMeanFileFieldNumber = 3;
4384 inline const ::std::string& mean_file() const;
4385 inline void set_mean_file(const ::std::string& value);
4386 inline void set_mean_file(const char* value);
4387 inline void set_mean_file(const char* value, size_t size);
4388 inline ::std::string* mutable_mean_file();
4389 inline ::std::string* release_mean_file();
4390 inline void set_allocated_mean_file(::std::string* mean_file);
4392 // optional uint32 crop_size = 5 [default = 0];
4393 inline bool has_crop_size() const;
4394 inline void clear_crop_size();
4395 static const int kCropSizeFieldNumber = 5;
4396 inline ::google::protobuf::uint32 crop_size() const;
4397 inline void set_crop_size(::google::protobuf::uint32 value);
4399 // optional bool mirror = 6 [default = false];
4400 inline bool has_mirror() const;
4401 inline void clear_mirror();
4402 static const int kMirrorFieldNumber = 6;
4403 inline bool mirror() const;
4404 inline void set_mirror(bool value);
4406 // @@protoc_insertion_point(class_scope:caffe.ImageDataParameter)
4407 private:
4408 inline void set_has_source();
4409 inline void clear_has_source();
4410 inline void set_has_batch_size();
4411 inline void clear_has_batch_size();
4412 inline void set_has_rand_skip();
4413 inline void clear_has_rand_skip();
4414 inline void set_has_shuffle();
4415 inline void clear_has_shuffle();
4416 inline void set_has_new_height();
4417 inline void clear_has_new_height();
4418 inline void set_has_new_width();
4419 inline void clear_has_new_width();
4420 inline void set_has_scale();
4421 inline void clear_has_scale();
4422 inline void set_has_mean_file();
4423 inline void clear_has_mean_file();
4424 inline void set_has_crop_size();
4425 inline void clear_has_crop_size();
4426 inline void set_has_mirror();
4427 inline void clear_has_mirror();
4429 ::google::protobuf::UnknownFieldSet _unknown_fields_;
4431 ::std::string* source_;
4432 ::google::protobuf::uint32 batch_size_;
4433 ::google::protobuf::uint32 rand_skip_;
4434 ::google::protobuf::uint32 new_height_;
4435 ::google::protobuf::uint32 new_width_;
4436 float scale_;
4437 bool shuffle_;
4438 bool mirror_;
4439 ::std::string* mean_file_;
4440 ::google::protobuf::uint32 crop_size_;
4442 mutable int _cached_size_;
4443 ::google::protobuf::uint32 _has_bits_[(10 + 31) / 32];
4445 friend void protobuf_AddDesc_caffe_2eproto();
4446 friend void protobuf_AssignDesc_caffe_2eproto();
4447 friend void protobuf_ShutdownFile_caffe_2eproto();
4449 void InitAsDefaultInstance();
4450 static ImageDataParameter* default_instance_;
4451 };
4452 // -------------------------------------------------------------------
4454 class InfogainLossParameter : public ::google::protobuf::Message {
4455 public:
4456 InfogainLossParameter();
4457 virtual ~InfogainLossParameter();
4459 InfogainLossParameter(const InfogainLossParameter& from);
4461 inline InfogainLossParameter& operator=(const InfogainLossParameter& from) {
4462 CopyFrom(from);
4463 return *this;
4464 }
4466 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
4467 return _unknown_fields_;
4468 }
4470 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
4471 return &_unknown_fields_;
4472 }
4474 static const ::google::protobuf::Descriptor* descriptor();
4475 static const InfogainLossParameter& default_instance();
4477 void Swap(InfogainLossParameter* other);
4479 // implements Message ----------------------------------------------
4481 InfogainLossParameter* New() const;
4482 void CopyFrom(const ::google::protobuf::Message& from);
4483 void MergeFrom(const ::google::protobuf::Message& from);
4484 void CopyFrom(const InfogainLossParameter& from);
4485 void MergeFrom(const InfogainLossParameter& from);
4486 void Clear();
4487 bool IsInitialized() const;
4489 int ByteSize() const;
4490 bool MergePartialFromCodedStream(
4491 ::google::protobuf::io::CodedInputStream* input);
4492 void SerializeWithCachedSizes(
4493 ::google::protobuf::io::CodedOutputStream* output) const;
4494 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
4495 int GetCachedSize() const { return _cached_size_; }
4496 private:
4497 void SharedCtor();
4498 void SharedDtor();
4499 void SetCachedSize(int size) const;
4500 public:
4502 ::google::protobuf::Metadata GetMetadata() const;
4504 // nested types ----------------------------------------------------
4506 // accessors -------------------------------------------------------
4508 // optional string source = 1;
4509 inline bool has_source() const;
4510 inline void clear_source();
4511 static const int kSourceFieldNumber = 1;
4512 inline const ::std::string& source() const;
4513 inline void set_source(const ::std::string& value);
4514 inline void set_source(const char* value);
4515 inline void set_source(const char* value, size_t size);
4516 inline ::std::string* mutable_source();
4517 inline ::std::string* release_source();
4518 inline void set_allocated_source(::std::string* source);
4520 // @@protoc_insertion_point(class_scope:caffe.InfogainLossParameter)
4521 private:
4522 inline void set_has_source();
4523 inline void clear_has_source();
4525 ::google::protobuf::UnknownFieldSet _unknown_fields_;
4527 ::std::string* source_;
4529 mutable int _cached_size_;
4530 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
4532 friend void protobuf_AddDesc_caffe_2eproto();
4533 friend void protobuf_AssignDesc_caffe_2eproto();
4534 friend void protobuf_ShutdownFile_caffe_2eproto();
4536 void InitAsDefaultInstance();
4537 static InfogainLossParameter* default_instance_;
4538 };
4539 // -------------------------------------------------------------------
4541 class InnerProductParameter : public ::google::protobuf::Message {
4542 public:
4543 InnerProductParameter();
4544 virtual ~InnerProductParameter();
4546 InnerProductParameter(const InnerProductParameter& from);
4548 inline InnerProductParameter& operator=(const InnerProductParameter& from) {
4549 CopyFrom(from);
4550 return *this;
4551 }
4553 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
4554 return _unknown_fields_;
4555 }
4557 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
4558 return &_unknown_fields_;
4559 }
4561 static const ::google::protobuf::Descriptor* descriptor();
4562 static const InnerProductParameter& default_instance();
4564 void Swap(InnerProductParameter* other);
4566 // implements Message ----------------------------------------------
4568 InnerProductParameter* New() const;
4569 void CopyFrom(const ::google::protobuf::Message& from);
4570 void MergeFrom(const ::google::protobuf::Message& from);
4571 void CopyFrom(const InnerProductParameter& from);
4572 void MergeFrom(const InnerProductParameter& from);
4573 void Clear();
4574 bool IsInitialized() const;
4576 int ByteSize() const;
4577 bool MergePartialFromCodedStream(
4578 ::google::protobuf::io::CodedInputStream* input);
4579 void SerializeWithCachedSizes(
4580 ::google::protobuf::io::CodedOutputStream* output) const;
4581 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
4582 int GetCachedSize() const { return _cached_size_; }
4583 private:
4584 void SharedCtor();
4585 void SharedDtor();
4586 void SetCachedSize(int size) const;
4587 public:
4589 ::google::protobuf::Metadata GetMetadata() const;
4591 // nested types ----------------------------------------------------
4593 // accessors -------------------------------------------------------
4595 // optional uint32 num_output = 1;
4596 inline bool has_num_output() const;
4597 inline void clear_num_output();
4598 static const int kNumOutputFieldNumber = 1;
4599 inline ::google::protobuf::uint32 num_output() const;
4600 inline void set_num_output(::google::protobuf::uint32 value);
4602 // optional bool bias_term = 2 [default = true];
4603 inline bool has_bias_term() const;
4604 inline void clear_bias_term();
4605 static const int kBiasTermFieldNumber = 2;
4606 inline bool bias_term() const;
4607 inline void set_bias_term(bool value);
4609 // optional .caffe.FillerParameter weight_filler = 3;
4610 inline bool has_weight_filler() const;
4611 inline void clear_weight_filler();
4612 static const int kWeightFillerFieldNumber = 3;
4613 inline const ::caffe::FillerParameter& weight_filler() const;
4614 inline ::caffe::FillerParameter* mutable_weight_filler();
4615 inline ::caffe::FillerParameter* release_weight_filler();
4616 inline void set_allocated_weight_filler(::caffe::FillerParameter* weight_filler);
4618 // optional .caffe.FillerParameter bias_filler = 4;
4619 inline bool has_bias_filler() const;
4620 inline void clear_bias_filler();
4621 static const int kBiasFillerFieldNumber = 4;
4622 inline const ::caffe::FillerParameter& bias_filler() const;
4623 inline ::caffe::FillerParameter* mutable_bias_filler();
4624 inline ::caffe::FillerParameter* release_bias_filler();
4625 inline void set_allocated_bias_filler(::caffe::FillerParameter* bias_filler);
4627 // @@protoc_insertion_point(class_scope:caffe.InnerProductParameter)
4628 private:
4629 inline void set_has_num_output();
4630 inline void clear_has_num_output();
4631 inline void set_has_bias_term();
4632 inline void clear_has_bias_term();
4633 inline void set_has_weight_filler();
4634 inline void clear_has_weight_filler();
4635 inline void set_has_bias_filler();
4636 inline void clear_has_bias_filler();
4638 ::google::protobuf::UnknownFieldSet _unknown_fields_;
4640 ::google::protobuf::uint32 num_output_;
4641 bool bias_term_;
4642 ::caffe::FillerParameter* weight_filler_;
4643 ::caffe::FillerParameter* bias_filler_;
4645 mutable int _cached_size_;
4646 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
4648 friend void protobuf_AddDesc_caffe_2eproto();
4649 friend void protobuf_AssignDesc_caffe_2eproto();
4650 friend void protobuf_ShutdownFile_caffe_2eproto();
4652 void InitAsDefaultInstance();
4653 static InnerProductParameter* default_instance_;
4654 };
4655 // -------------------------------------------------------------------
4657 class LRNParameter : public ::google::protobuf::Message {
4658 public:
4659 LRNParameter();
4660 virtual ~LRNParameter();
4662 LRNParameter(const LRNParameter& from);
4664 inline LRNParameter& operator=(const LRNParameter& from) {
4665 CopyFrom(from);
4666 return *this;
4667 }
4669 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
4670 return _unknown_fields_;
4671 }
4673 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
4674 return &_unknown_fields_;
4675 }
4677 static const ::google::protobuf::Descriptor* descriptor();
4678 static const LRNParameter& default_instance();
4680 void Swap(LRNParameter* other);
4682 // implements Message ----------------------------------------------
4684 LRNParameter* New() const;
4685 void CopyFrom(const ::google::protobuf::Message& from);
4686 void MergeFrom(const ::google::protobuf::Message& from);
4687 void CopyFrom(const LRNParameter& from);
4688 void MergeFrom(const LRNParameter& from);
4689 void Clear();
4690 bool IsInitialized() const;
4692 int ByteSize() const;
4693 bool MergePartialFromCodedStream(
4694 ::google::protobuf::io::CodedInputStream* input);
4695 void SerializeWithCachedSizes(
4696 ::google::protobuf::io::CodedOutputStream* output) const;
4697 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
4698 int GetCachedSize() const { return _cached_size_; }
4699 private:
4700 void SharedCtor();
4701 void SharedDtor();
4702 void SetCachedSize(int size) const;
4703 public:
4705 ::google::protobuf::Metadata GetMetadata() const;
4707 // nested types ----------------------------------------------------
4709 typedef LRNParameter_NormRegion NormRegion;
4710 static const NormRegion ACROSS_CHANNELS = LRNParameter_NormRegion_ACROSS_CHANNELS;
4711 static const NormRegion WITHIN_CHANNEL = LRNParameter_NormRegion_WITHIN_CHANNEL;
4712 static inline bool NormRegion_IsValid(int value) {
4713 return LRNParameter_NormRegion_IsValid(value);
4714 }
4715 static const NormRegion NormRegion_MIN =
4716 LRNParameter_NormRegion_NormRegion_MIN;
4717 static const NormRegion NormRegion_MAX =
4718 LRNParameter_NormRegion_NormRegion_MAX;
4719 static const int NormRegion_ARRAYSIZE =
4720 LRNParameter_NormRegion_NormRegion_ARRAYSIZE;
4721 static inline const ::google::protobuf::EnumDescriptor*
4722 NormRegion_descriptor() {
4723 return LRNParameter_NormRegion_descriptor();
4724 }
4725 static inline const ::std::string& NormRegion_Name(NormRegion value) {
4726 return LRNParameter_NormRegion_Name(value);
4727 }
4728 static inline bool NormRegion_Parse(const ::std::string& name,
4729 NormRegion* value) {
4730 return LRNParameter_NormRegion_Parse(name, value);
4731 }
4733 // accessors -------------------------------------------------------
4735 // optional uint32 local_size = 1 [default = 5];
4736 inline bool has_local_size() const;
4737 inline void clear_local_size();
4738 static const int kLocalSizeFieldNumber = 1;
4739 inline ::google::protobuf::uint32 local_size() const;
4740 inline void set_local_size(::google::protobuf::uint32 value);
4742 // optional float alpha = 2 [default = 1];
4743 inline bool has_alpha() const;
4744 inline void clear_alpha();
4745 static const int kAlphaFieldNumber = 2;
4746 inline float alpha() const;
4747 inline void set_alpha(float value);
4749 // optional float beta = 3 [default = 0.75];
4750 inline bool has_beta() const;
4751 inline void clear_beta();
4752 static const int kBetaFieldNumber = 3;
4753 inline float beta() const;
4754 inline void set_beta(float value);
4756 // optional .caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS];
4757 inline bool has_norm_region() const;
4758 inline void clear_norm_region();
4759 static const int kNormRegionFieldNumber = 4;
4760 inline ::caffe::LRNParameter_NormRegion norm_region() const;
4761 inline void set_norm_region(::caffe::LRNParameter_NormRegion value);
4763 // @@protoc_insertion_point(class_scope:caffe.LRNParameter)
4764 private:
4765 inline void set_has_local_size();
4766 inline void clear_has_local_size();
4767 inline void set_has_alpha();
4768 inline void clear_has_alpha();
4769 inline void set_has_beta();
4770 inline void clear_has_beta();
4771 inline void set_has_norm_region();
4772 inline void clear_has_norm_region();
4774 ::google::protobuf::UnknownFieldSet _unknown_fields_;
4776 ::google::protobuf::uint32 local_size_;
4777 float alpha_;
4778 float beta_;
4779 int norm_region_;
4781 mutable int _cached_size_;
4782 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
4784 friend void protobuf_AddDesc_caffe_2eproto();
4785 friend void protobuf_AssignDesc_caffe_2eproto();
4786 friend void protobuf_ShutdownFile_caffe_2eproto();
4788 void InitAsDefaultInstance();
4789 static LRNParameter* default_instance_;
4790 };
4791 // -------------------------------------------------------------------
4793 class MemoryDataParameter : public ::google::protobuf::Message {
4794 public:
4795 MemoryDataParameter();
4796 virtual ~MemoryDataParameter();
4798 MemoryDataParameter(const MemoryDataParameter& from);
4800 inline MemoryDataParameter& operator=(const MemoryDataParameter& from) {
4801 CopyFrom(from);
4802 return *this;
4803 }
4805 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
4806 return _unknown_fields_;
4807 }
4809 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
4810 return &_unknown_fields_;
4811 }
4813 static const ::google::protobuf::Descriptor* descriptor();
4814 static const MemoryDataParameter& default_instance();
4816 void Swap(MemoryDataParameter* other);
4818 // implements Message ----------------------------------------------
4820 MemoryDataParameter* New() const;
4821 void CopyFrom(const ::google::protobuf::Message& from);
4822 void MergeFrom(const ::google::protobuf::Message& from);
4823 void CopyFrom(const MemoryDataParameter& from);
4824 void MergeFrom(const MemoryDataParameter& from);
4825 void Clear();
4826 bool IsInitialized() const;
4828 int ByteSize() const;
4829 bool MergePartialFromCodedStream(
4830 ::google::protobuf::io::CodedInputStream* input);
4831 void SerializeWithCachedSizes(
4832 ::google::protobuf::io::CodedOutputStream* output) const;
4833 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
4834 int GetCachedSize() const { return _cached_size_; }
4835 private:
4836 void SharedCtor();
4837 void SharedDtor();
4838 void SetCachedSize(int size) const;
4839 public:
4841 ::google::protobuf::Metadata GetMetadata() const;
4843 // nested types ----------------------------------------------------
4845 // accessors -------------------------------------------------------
4847 // optional uint32 batch_size = 1;
4848 inline bool has_batch_size() const;
4849 inline void clear_batch_size();
4850 static const int kBatchSizeFieldNumber = 1;
4851 inline ::google::protobuf::uint32 batch_size() const;
4852 inline void set_batch_size(::google::protobuf::uint32 value);
4854 // optional uint32 channels = 2;
4855 inline bool has_channels() const;
4856 inline void clear_channels();
4857 static const int kChannelsFieldNumber = 2;
4858 inline ::google::protobuf::uint32 channels() const;
4859 inline void set_channels(::google::protobuf::uint32 value);
4861 // optional uint32 height = 3;
4862 inline bool has_height() const;
4863 inline void clear_height();
4864 static const int kHeightFieldNumber = 3;
4865 inline ::google::protobuf::uint32 height() const;
4866 inline void set_height(::google::protobuf::uint32 value);
4868 // optional uint32 width = 4;
4869 inline bool has_width() const;
4870 inline void clear_width();
4871 static const int kWidthFieldNumber = 4;
4872 inline ::google::protobuf::uint32 width() const;
4873 inline void set_width(::google::protobuf::uint32 value);
4875 // @@protoc_insertion_point(class_scope:caffe.MemoryDataParameter)
4876 private:
4877 inline void set_has_batch_size();
4878 inline void clear_has_batch_size();
4879 inline void set_has_channels();
4880 inline void clear_has_channels();
4881 inline void set_has_height();
4882 inline void clear_has_height();
4883 inline void set_has_width();
4884 inline void clear_has_width();
4886 ::google::protobuf::UnknownFieldSet _unknown_fields_;
4888 ::google::protobuf::uint32 batch_size_;
4889 ::google::protobuf::uint32 channels_;
4890 ::google::protobuf::uint32 height_;
4891 ::google::protobuf::uint32 width_;
4893 mutable int _cached_size_;
4894 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
4896 friend void protobuf_AddDesc_caffe_2eproto();
4897 friend void protobuf_AssignDesc_caffe_2eproto();
4898 friend void protobuf_ShutdownFile_caffe_2eproto();
4900 void InitAsDefaultInstance();
4901 static MemoryDataParameter* default_instance_;
4902 };
4903 // -------------------------------------------------------------------
4905 class MVNParameter : public ::google::protobuf::Message {
4906 public:
4907 MVNParameter();
4908 virtual ~MVNParameter();
4910 MVNParameter(const MVNParameter& from);
4912 inline MVNParameter& operator=(const MVNParameter& from) {
4913 CopyFrom(from);
4914 return *this;
4915 }
4917 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
4918 return _unknown_fields_;
4919 }
4921 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
4922 return &_unknown_fields_;
4923 }
4925 static const ::google::protobuf::Descriptor* descriptor();
4926 static const MVNParameter& default_instance();
4928 void Swap(MVNParameter* other);
4930 // implements Message ----------------------------------------------
4932 MVNParameter* New() const;
4933 void CopyFrom(const ::google::protobuf::Message& from);
4934 void MergeFrom(const ::google::protobuf::Message& from);
4935 void CopyFrom(const MVNParameter& from);
4936 void MergeFrom(const MVNParameter& from);
4937 void Clear();
4938 bool IsInitialized() const;
4940 int ByteSize() const;
4941 bool MergePartialFromCodedStream(
4942 ::google::protobuf::io::CodedInputStream* input);
4943 void SerializeWithCachedSizes(
4944 ::google::protobuf::io::CodedOutputStream* output) const;
4945 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
4946 int GetCachedSize() const { return _cached_size_; }
4947 private:
4948 void SharedCtor();
4949 void SharedDtor();
4950 void SetCachedSize(int size) const;
4951 public:
4953 ::google::protobuf::Metadata GetMetadata() const;
4955 // nested types ----------------------------------------------------
4957 // accessors -------------------------------------------------------
4959 // optional bool normalize_variance = 1 [default = true];
4960 inline bool has_normalize_variance() const;
4961 inline void clear_normalize_variance();
4962 static const int kNormalizeVarianceFieldNumber = 1;
4963 inline bool normalize_variance() const;
4964 inline void set_normalize_variance(bool value);
4966 // optional bool across_channels = 2 [default = false];
4967 inline bool has_across_channels() const;
4968 inline void clear_across_channels();
4969 static const int kAcrossChannelsFieldNumber = 2;
4970 inline bool across_channels() const;
4971 inline void set_across_channels(bool value);
4973 // @@protoc_insertion_point(class_scope:caffe.MVNParameter)
4974 private:
4975 inline void set_has_normalize_variance();
4976 inline void clear_has_normalize_variance();
4977 inline void set_has_across_channels();
4978 inline void clear_has_across_channels();
4980 ::google::protobuf::UnknownFieldSet _unknown_fields_;
4982 bool normalize_variance_;
4983 bool across_channels_;
4985 mutable int _cached_size_;
4986 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
4988 friend void protobuf_AddDesc_caffe_2eproto();
4989 friend void protobuf_AssignDesc_caffe_2eproto();
4990 friend void protobuf_ShutdownFile_caffe_2eproto();
4992 void InitAsDefaultInstance();
4993 static MVNParameter* default_instance_;
4994 };
4995 // -------------------------------------------------------------------
4997 class PoolingParameter : public ::google::protobuf::Message {
4998 public:
4999 PoolingParameter();
5000 virtual ~PoolingParameter();
5002 PoolingParameter(const PoolingParameter& from);
5004 inline PoolingParameter& operator=(const PoolingParameter& from) {
5005 CopyFrom(from);
5006 return *this;
5007 }
5009 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
5010 return _unknown_fields_;
5011 }
5013 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
5014 return &_unknown_fields_;
5015 }
5017 static const ::google::protobuf::Descriptor* descriptor();
5018 static const PoolingParameter& default_instance();
5020 void Swap(PoolingParameter* other);
5022 // implements Message ----------------------------------------------
5024 PoolingParameter* New() const;
5025 void CopyFrom(const ::google::protobuf::Message& from);
5026 void MergeFrom(const ::google::protobuf::Message& from);
5027 void CopyFrom(const PoolingParameter& from);
5028 void MergeFrom(const PoolingParameter& from);
5029 void Clear();
5030 bool IsInitialized() const;
5032 int ByteSize() const;
5033 bool MergePartialFromCodedStream(
5034 ::google::protobuf::io::CodedInputStream* input);
5035 void SerializeWithCachedSizes(
5036 ::google::protobuf::io::CodedOutputStream* output) const;
5037 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
5038 int GetCachedSize() const { return _cached_size_; }
5039 private:
5040 void SharedCtor();
5041 void SharedDtor();
5042 void SetCachedSize(int size) const;
5043 public:
5045 ::google::protobuf::Metadata GetMetadata() const;
5047 // nested types ----------------------------------------------------
5049 typedef PoolingParameter_PoolMethod PoolMethod;
5050 static const PoolMethod MAX = PoolingParameter_PoolMethod_MAX;
5051 static const PoolMethod AVE = PoolingParameter_PoolMethod_AVE;
5052 static const PoolMethod STOCHASTIC = PoolingParameter_PoolMethod_STOCHASTIC;
5053 static inline bool PoolMethod_IsValid(int value) {
5054 return PoolingParameter_PoolMethod_IsValid(value);
5055 }
5056 static const PoolMethod PoolMethod_MIN =
5057 PoolingParameter_PoolMethod_PoolMethod_MIN;
5058 static const PoolMethod PoolMethod_MAX =
5059 PoolingParameter_PoolMethod_PoolMethod_MAX;
5060 static const int PoolMethod_ARRAYSIZE =
5061 PoolingParameter_PoolMethod_PoolMethod_ARRAYSIZE;
5062 static inline const ::google::protobuf::EnumDescriptor*
5063 PoolMethod_descriptor() {
5064 return PoolingParameter_PoolMethod_descriptor();
5065 }
5066 static inline const ::std::string& PoolMethod_Name(PoolMethod value) {
5067 return PoolingParameter_PoolMethod_Name(value);
5068 }
5069 static inline bool PoolMethod_Parse(const ::std::string& name,
5070 PoolMethod* value) {
5071 return PoolingParameter_PoolMethod_Parse(name, value);
5072 }
5074 typedef PoolingParameter_Engine Engine;
5075 static const Engine DEFAULT = PoolingParameter_Engine_DEFAULT;
5076 static const Engine CAFFE = PoolingParameter_Engine_CAFFE;
5077 static const Engine CUDNN = PoolingParameter_Engine_CUDNN;
5078 static inline bool Engine_IsValid(int value) {
5079 return PoolingParameter_Engine_IsValid(value);
5080 }
5081 static const Engine Engine_MIN =
5082 PoolingParameter_Engine_Engine_MIN;
5083 static const Engine Engine_MAX =
5084 PoolingParameter_Engine_Engine_MAX;
5085 static const int Engine_ARRAYSIZE =
5086 PoolingParameter_Engine_Engine_ARRAYSIZE;
5087 static inline const ::google::protobuf::EnumDescriptor*
5088 Engine_descriptor() {
5089 return PoolingParameter_Engine_descriptor();
5090 }
5091 static inline const ::std::string& Engine_Name(Engine value) {
5092 return PoolingParameter_Engine_Name(value);
5093 }
5094 static inline bool Engine_Parse(const ::std::string& name,
5095 Engine* value) {
5096 return PoolingParameter_Engine_Parse(name, value);
5097 }
5099 // accessors -------------------------------------------------------
5101 // optional .caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX];
5102 inline bool has_pool() const;
5103 inline void clear_pool();
5104 static const int kPoolFieldNumber = 1;
5105 inline ::caffe::PoolingParameter_PoolMethod pool() const;
5106 inline void set_pool(::caffe::PoolingParameter_PoolMethod value);
5108 // optional uint32 pad = 4 [default = 0];
5109 inline bool has_pad() const;
5110 inline void clear_pad();
5111 static const int kPadFieldNumber = 4;
5112 inline ::google::protobuf::uint32 pad() const;
5113 inline void set_pad(::google::protobuf::uint32 value);
5115 // optional uint32 pad_h = 9 [default = 0];
5116 inline bool has_pad_h() const;
5117 inline void clear_pad_h();
5118 static const int kPadHFieldNumber = 9;
5119 inline ::google::protobuf::uint32 pad_h() const;
5120 inline void set_pad_h(::google::protobuf::uint32 value);
5122 // optional uint32 pad_w = 10 [default = 0];
5123 inline bool has_pad_w() const;
5124 inline void clear_pad_w();
5125 static const int kPadWFieldNumber = 10;
5126 inline ::google::protobuf::uint32 pad_w() const;
5127 inline void set_pad_w(::google::protobuf::uint32 value);
5129 // optional uint32 kernel_size = 2;
5130 inline bool has_kernel_size() const;
5131 inline void clear_kernel_size();
5132 static const int kKernelSizeFieldNumber = 2;
5133 inline ::google::protobuf::uint32 kernel_size() const;
5134 inline void set_kernel_size(::google::protobuf::uint32 value);
5136 // optional uint32 kernel_h = 5;
5137 inline bool has_kernel_h() const;
5138 inline void clear_kernel_h();
5139 static const int kKernelHFieldNumber = 5;
5140 inline ::google::protobuf::uint32 kernel_h() const;
5141 inline void set_kernel_h(::google::protobuf::uint32 value);
5143 // optional uint32 kernel_w = 6;
5144 inline bool has_kernel_w() const;
5145 inline void clear_kernel_w();
5146 static const int kKernelWFieldNumber = 6;
5147 inline ::google::protobuf::uint32 kernel_w() const;
5148 inline void set_kernel_w(::google::protobuf::uint32 value);
5150 // optional uint32 stride = 3 [default = 1];
5151 inline bool has_stride() const;
5152 inline void clear_stride();
5153 static const int kStrideFieldNumber = 3;
5154 inline ::google::protobuf::uint32 stride() const;
5155 inline void set_stride(::google::protobuf::uint32 value);
5157 // optional uint32 stride_h = 7;
5158 inline bool has_stride_h() const;
5159 inline void clear_stride_h();
5160 static const int kStrideHFieldNumber = 7;
5161 inline ::google::protobuf::uint32 stride_h() const;
5162 inline void set_stride_h(::google::protobuf::uint32 value);
5164 // optional uint32 stride_w = 8;
5165 inline bool has_stride_w() const;
5166 inline void clear_stride_w();
5167 static const int kStrideWFieldNumber = 8;
5168 inline ::google::protobuf::uint32 stride_w() const;
5169 inline void set_stride_w(::google::protobuf::uint32 value);
5171 // optional .caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT];
5172 inline bool has_engine() const;
5173 inline void clear_engine();
5174 static const int kEngineFieldNumber = 11;
5175 inline ::caffe::PoolingParameter_Engine engine() const;
5176 inline void set_engine(::caffe::PoolingParameter_Engine value);
5178 // @@protoc_insertion_point(class_scope:caffe.PoolingParameter)
5179 private:
5180 inline void set_has_pool();
5181 inline void clear_has_pool();
5182 inline void set_has_pad();
5183 inline void clear_has_pad();
5184 inline void set_has_pad_h();
5185 inline void clear_has_pad_h();
5186 inline void set_has_pad_w();
5187 inline void clear_has_pad_w();
5188 inline void set_has_kernel_size();
5189 inline void clear_has_kernel_size();
5190 inline void set_has_kernel_h();
5191 inline void clear_has_kernel_h();
5192 inline void set_has_kernel_w();
5193 inline void clear_has_kernel_w();
5194 inline void set_has_stride();
5195 inline void clear_has_stride();
5196 inline void set_has_stride_h();
5197 inline void clear_has_stride_h();
5198 inline void set_has_stride_w();
5199 inline void clear_has_stride_w();
5200 inline void set_has_engine();
5201 inline void clear_has_engine();
5203 ::google::protobuf::UnknownFieldSet _unknown_fields_;
5205 int pool_;
5206 ::google::protobuf::uint32 pad_;
5207 ::google::protobuf::uint32 pad_h_;
5208 ::google::protobuf::uint32 pad_w_;
5209 ::google::protobuf::uint32 kernel_size_;
5210 ::google::protobuf::uint32 kernel_h_;
5211 ::google::protobuf::uint32 kernel_w_;
5212 ::google::protobuf::uint32 stride_;
5213 ::google::protobuf::uint32 stride_h_;
5214 ::google::protobuf::uint32 stride_w_;
5215 int engine_;
5217 mutable int _cached_size_;
5218 ::google::protobuf::uint32 _has_bits_[(11 + 31) / 32];
5220 friend void protobuf_AddDesc_caffe_2eproto();
5221 friend void protobuf_AssignDesc_caffe_2eproto();
5222 friend void protobuf_ShutdownFile_caffe_2eproto();
5224 void InitAsDefaultInstance();
5225 static PoolingParameter* default_instance_;
5226 };
5227 // -------------------------------------------------------------------
5229 class PowerParameter : public ::google::protobuf::Message {
5230 public:
5231 PowerParameter();
5232 virtual ~PowerParameter();
5234 PowerParameter(const PowerParameter& from);
5236 inline PowerParameter& operator=(const PowerParameter& from) {
5237 CopyFrom(from);
5238 return *this;
5239 }
5241 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
5242 return _unknown_fields_;
5243 }
5245 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
5246 return &_unknown_fields_;
5247 }
5249 static const ::google::protobuf::Descriptor* descriptor();
5250 static const PowerParameter& default_instance();
5252 void Swap(PowerParameter* other);
5254 // implements Message ----------------------------------------------
5256 PowerParameter* New() const;
5257 void CopyFrom(const ::google::protobuf::Message& from);
5258 void MergeFrom(const ::google::protobuf::Message& from);
5259 void CopyFrom(const PowerParameter& from);
5260 void MergeFrom(const PowerParameter& from);
5261 void Clear();
5262 bool IsInitialized() const;
5264 int ByteSize() const;
5265 bool MergePartialFromCodedStream(
5266 ::google::protobuf::io::CodedInputStream* input);
5267 void SerializeWithCachedSizes(
5268 ::google::protobuf::io::CodedOutputStream* output) const;
5269 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
5270 int GetCachedSize() const { return _cached_size_; }
5271 private:
5272 void SharedCtor();
5273 void SharedDtor();
5274 void SetCachedSize(int size) const;
5275 public:
5277 ::google::protobuf::Metadata GetMetadata() const;
5279 // nested types ----------------------------------------------------
5281 // accessors -------------------------------------------------------
5283 // optional float power = 1 [default = 1];
5284 inline bool has_power() const;
5285 inline void clear_power();
5286 static const int kPowerFieldNumber = 1;
5287 inline float power() const;
5288 inline void set_power(float value);
5290 // optional float scale = 2 [default = 1];
5291 inline bool has_scale() const;
5292 inline void clear_scale();
5293 static const int kScaleFieldNumber = 2;
5294 inline float scale() const;
5295 inline void set_scale(float value);
5297 // optional float shift = 3 [default = 0];
5298 inline bool has_shift() const;
5299 inline void clear_shift();
5300 static const int kShiftFieldNumber = 3;
5301 inline float shift() const;
5302 inline void set_shift(float value);
5304 // @@protoc_insertion_point(class_scope:caffe.PowerParameter)
5305 private:
5306 inline void set_has_power();
5307 inline void clear_has_power();
5308 inline void set_has_scale();
5309 inline void clear_has_scale();
5310 inline void set_has_shift();
5311 inline void clear_has_shift();
5313 ::google::protobuf::UnknownFieldSet _unknown_fields_;
5315 float power_;
5316 float scale_;
5317 float shift_;
5319 mutable int _cached_size_;
5320 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
5322 friend void protobuf_AddDesc_caffe_2eproto();
5323 friend void protobuf_AssignDesc_caffe_2eproto();
5324 friend void protobuf_ShutdownFile_caffe_2eproto();
5326 void InitAsDefaultInstance();
5327 static PowerParameter* default_instance_;
5328 };
5329 // -------------------------------------------------------------------
5331 class ReLUParameter : public ::google::protobuf::Message {
5332 public:
5333 ReLUParameter();
5334 virtual ~ReLUParameter();
5336 ReLUParameter(const ReLUParameter& from);
5338 inline ReLUParameter& operator=(const ReLUParameter& from) {
5339 CopyFrom(from);
5340 return *this;
5341 }
5343 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
5344 return _unknown_fields_;
5345 }
5347 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
5348 return &_unknown_fields_;
5349 }
5351 static const ::google::protobuf::Descriptor* descriptor();
5352 static const ReLUParameter& default_instance();
5354 void Swap(ReLUParameter* other);
5356 // implements Message ----------------------------------------------
5358 ReLUParameter* New() const;
5359 void CopyFrom(const ::google::protobuf::Message& from);
5360 void MergeFrom(const ::google::protobuf::Message& from);
5361 void CopyFrom(const ReLUParameter& from);
5362 void MergeFrom(const ReLUParameter& from);
5363 void Clear();
5364 bool IsInitialized() const;
5366 int ByteSize() const;
5367 bool MergePartialFromCodedStream(
5368 ::google::protobuf::io::CodedInputStream* input);
5369 void SerializeWithCachedSizes(
5370 ::google::protobuf::io::CodedOutputStream* output) const;
5371 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
5372 int GetCachedSize() const { return _cached_size_; }
5373 private:
5374 void SharedCtor();
5375 void SharedDtor();
5376 void SetCachedSize(int size) const;
5377 public:
5379 ::google::protobuf::Metadata GetMetadata() const;
5381 // nested types ----------------------------------------------------
5383 typedef ReLUParameter_Engine Engine;
5384 static const Engine DEFAULT = ReLUParameter_Engine_DEFAULT;
5385 static const Engine CAFFE = ReLUParameter_Engine_CAFFE;
5386 static const Engine CUDNN = ReLUParameter_Engine_CUDNN;
5387 static inline bool Engine_IsValid(int value) {
5388 return ReLUParameter_Engine_IsValid(value);
5389 }
5390 static const Engine Engine_MIN =
5391 ReLUParameter_Engine_Engine_MIN;
5392 static const Engine Engine_MAX =
5393 ReLUParameter_Engine_Engine_MAX;
5394 static const int Engine_ARRAYSIZE =
5395 ReLUParameter_Engine_Engine_ARRAYSIZE;
5396 static inline const ::google::protobuf::EnumDescriptor*
5397 Engine_descriptor() {
5398 return ReLUParameter_Engine_descriptor();
5399 }
5400 static inline const ::std::string& Engine_Name(Engine value) {
5401 return ReLUParameter_Engine_Name(value);
5402 }
5403 static inline bool Engine_Parse(const ::std::string& name,
5404 Engine* value) {
5405 return ReLUParameter_Engine_Parse(name, value);
5406 }
5408 // accessors -------------------------------------------------------
5410 // optional float negative_slope = 1 [default = 0];
5411 inline bool has_negative_slope() const;
5412 inline void clear_negative_slope();
5413 static const int kNegativeSlopeFieldNumber = 1;
5414 inline float negative_slope() const;
5415 inline void set_negative_slope(float value);
5417 // optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT];
5418 inline bool has_engine() const;
5419 inline void clear_engine();
5420 static const int kEngineFieldNumber = 2;
5421 inline ::caffe::ReLUParameter_Engine engine() const;
5422 inline void set_engine(::caffe::ReLUParameter_Engine value);
5424 // @@protoc_insertion_point(class_scope:caffe.ReLUParameter)
5425 private:
5426 inline void set_has_negative_slope();
5427 inline void clear_has_negative_slope();
5428 inline void set_has_engine();
5429 inline void clear_has_engine();
5431 ::google::protobuf::UnknownFieldSet _unknown_fields_;
5433 float negative_slope_;
5434 int engine_;
5436 mutable int _cached_size_;
5437 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
5439 friend void protobuf_AddDesc_caffe_2eproto();
5440 friend void protobuf_AssignDesc_caffe_2eproto();
5441 friend void protobuf_ShutdownFile_caffe_2eproto();
5443 void InitAsDefaultInstance();
5444 static ReLUParameter* default_instance_;
5445 };
5446 // -------------------------------------------------------------------
5448 class SigmoidParameter : public ::google::protobuf::Message {
5449 public:
5450 SigmoidParameter();
5451 virtual ~SigmoidParameter();
5453 SigmoidParameter(const SigmoidParameter& from);
5455 inline SigmoidParameter& operator=(const SigmoidParameter& from) {
5456 CopyFrom(from);
5457 return *this;
5458 }
5460 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
5461 return _unknown_fields_;
5462 }
5464 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
5465 return &_unknown_fields_;
5466 }
5468 static const ::google::protobuf::Descriptor* descriptor();
5469 static const SigmoidParameter& default_instance();
5471 void Swap(SigmoidParameter* other);
5473 // implements Message ----------------------------------------------
5475 SigmoidParameter* New() const;
5476 void CopyFrom(const ::google::protobuf::Message& from);
5477 void MergeFrom(const ::google::protobuf::Message& from);
5478 void CopyFrom(const SigmoidParameter& from);
5479 void MergeFrom(const SigmoidParameter& from);
5480 void Clear();
5481 bool IsInitialized() const;
5483 int ByteSize() const;
5484 bool MergePartialFromCodedStream(
5485 ::google::protobuf::io::CodedInputStream* input);
5486 void SerializeWithCachedSizes(
5487 ::google::protobuf::io::CodedOutputStream* output) const;
5488 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
5489 int GetCachedSize() const { return _cached_size_; }
5490 private:
5491 void SharedCtor();
5492 void SharedDtor();
5493 void SetCachedSize(int size) const;
5494 public:
5496 ::google::protobuf::Metadata GetMetadata() const;
5498 // nested types ----------------------------------------------------
5500 typedef SigmoidParameter_Engine Engine;
5501 static const Engine DEFAULT = SigmoidParameter_Engine_DEFAULT;
5502 static const Engine CAFFE = SigmoidParameter_Engine_CAFFE;
5503 static const Engine CUDNN = SigmoidParameter_Engine_CUDNN;
5504 static inline bool Engine_IsValid(int value) {
5505 return SigmoidParameter_Engine_IsValid(value);
5506 }
5507 static const Engine Engine_MIN =
5508 SigmoidParameter_Engine_Engine_MIN;
5509 static const Engine Engine_MAX =
5510 SigmoidParameter_Engine_Engine_MAX;
5511 static const int Engine_ARRAYSIZE =
5512 SigmoidParameter_Engine_Engine_ARRAYSIZE;
5513 static inline const ::google::protobuf::EnumDescriptor*
5514 Engine_descriptor() {
5515 return SigmoidParameter_Engine_descriptor();
5516 }
5517 static inline const ::std::string& Engine_Name(Engine value) {
5518 return SigmoidParameter_Engine_Name(value);
5519 }
5520 static inline bool Engine_Parse(const ::std::string& name,
5521 Engine* value) {
5522 return SigmoidParameter_Engine_Parse(name, value);
5523 }
5525 // accessors -------------------------------------------------------
5527 // optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT];
5528 inline bool has_engine() const;
5529 inline void clear_engine();
5530 static const int kEngineFieldNumber = 1;
5531 inline ::caffe::SigmoidParameter_Engine engine() const;
5532 inline void set_engine(::caffe::SigmoidParameter_Engine value);
5534 // @@protoc_insertion_point(class_scope:caffe.SigmoidParameter)
5535 private:
5536 inline void set_has_engine();
5537 inline void clear_has_engine();
5539 ::google::protobuf::UnknownFieldSet _unknown_fields_;
5541 int engine_;
5543 mutable int _cached_size_;
5544 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
5546 friend void protobuf_AddDesc_caffe_2eproto();
5547 friend void protobuf_AssignDesc_caffe_2eproto();
5548 friend void protobuf_ShutdownFile_caffe_2eproto();
5550 void InitAsDefaultInstance();
5551 static SigmoidParameter* default_instance_;
5552 };
5553 // -------------------------------------------------------------------
5555 class SliceParameter : public ::google::protobuf::Message {
5556 public:
5557 SliceParameter();
5558 virtual ~SliceParameter();
5560 SliceParameter(const SliceParameter& from);
5562 inline SliceParameter& operator=(const SliceParameter& from) {
5563 CopyFrom(from);
5564 return *this;
5565 }
5567 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
5568 return _unknown_fields_;
5569 }
5571 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
5572 return &_unknown_fields_;
5573 }
5575 static const ::google::protobuf::Descriptor* descriptor();
5576 static const SliceParameter& default_instance();
5578 void Swap(SliceParameter* other);
5580 // implements Message ----------------------------------------------
5582 SliceParameter* New() const;
5583 void CopyFrom(const ::google::protobuf::Message& from);
5584 void MergeFrom(const ::google::protobuf::Message& from);
5585 void CopyFrom(const SliceParameter& from);
5586 void MergeFrom(const SliceParameter& from);
5587 void Clear();
5588 bool IsInitialized() const;
5590 int ByteSize() const;
5591 bool MergePartialFromCodedStream(
5592 ::google::protobuf::io::CodedInputStream* input);
5593 void SerializeWithCachedSizes(
5594 ::google::protobuf::io::CodedOutputStream* output) const;
5595 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
5596 int GetCachedSize() const { return _cached_size_; }
5597 private:
5598 void SharedCtor();
5599 void SharedDtor();
5600 void SetCachedSize(int size) const;
5601 public:
5603 ::google::protobuf::Metadata GetMetadata() const;
5605 // nested types ----------------------------------------------------
5607 // accessors -------------------------------------------------------
5609 // optional uint32 slice_dim = 1 [default = 1];
5610 inline bool has_slice_dim() const;
5611 inline void clear_slice_dim();
5612 static const int kSliceDimFieldNumber = 1;
5613 inline ::google::protobuf::uint32 slice_dim() const;
5614 inline void set_slice_dim(::google::protobuf::uint32 value);
5616 // repeated uint32 slice_point = 2;
5617 inline int slice_point_size() const;
5618 inline void clear_slice_point();
5619 static const int kSlicePointFieldNumber = 2;
5620 inline ::google::protobuf::uint32 slice_point(int index) const;
5621 inline void set_slice_point(int index, ::google::protobuf::uint32 value);
5622 inline void add_slice_point(::google::protobuf::uint32 value);
5623 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
5624 slice_point() const;
5625 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
5626 mutable_slice_point();
5628 // @@protoc_insertion_point(class_scope:caffe.SliceParameter)
5629 private:
5630 inline void set_has_slice_dim();
5631 inline void clear_has_slice_dim();
5633 ::google::protobuf::UnknownFieldSet _unknown_fields_;
5635 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > slice_point_;
5636 ::google::protobuf::uint32 slice_dim_;
5638 mutable int _cached_size_;
5639 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
5641 friend void protobuf_AddDesc_caffe_2eproto();
5642 friend void protobuf_AssignDesc_caffe_2eproto();
5643 friend void protobuf_ShutdownFile_caffe_2eproto();
5645 void InitAsDefaultInstance();
5646 static SliceParameter* default_instance_;
5647 };
5648 // -------------------------------------------------------------------
5650 class SoftmaxParameter : public ::google::protobuf::Message {
5651 public:
5652 SoftmaxParameter();
5653 virtual ~SoftmaxParameter();
5655 SoftmaxParameter(const SoftmaxParameter& from);
5657 inline SoftmaxParameter& operator=(const SoftmaxParameter& from) {
5658 CopyFrom(from);
5659 return *this;
5660 }
5662 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
5663 return _unknown_fields_;
5664 }
5666 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
5667 return &_unknown_fields_;
5668 }
5670 static const ::google::protobuf::Descriptor* descriptor();
5671 static const SoftmaxParameter& default_instance();
5673 void Swap(SoftmaxParameter* other);
5675 // implements Message ----------------------------------------------
5677 SoftmaxParameter* New() const;
5678 void CopyFrom(const ::google::protobuf::Message& from);
5679 void MergeFrom(const ::google::protobuf::Message& from);
5680 void CopyFrom(const SoftmaxParameter& from);
5681 void MergeFrom(const SoftmaxParameter& from);
5682 void Clear();
5683 bool IsInitialized() const;
5685 int ByteSize() const;
5686 bool MergePartialFromCodedStream(
5687 ::google::protobuf::io::CodedInputStream* input);
5688 void SerializeWithCachedSizes(
5689 ::google::protobuf::io::CodedOutputStream* output) const;
5690 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
5691 int GetCachedSize() const { return _cached_size_; }
5692 private:
5693 void SharedCtor();
5694 void SharedDtor();
5695 void SetCachedSize(int size) const;
5696 public:
5698 ::google::protobuf::Metadata GetMetadata() const;
5700 // nested types ----------------------------------------------------
5702 typedef SoftmaxParameter_Engine Engine;
5703 static const Engine DEFAULT = SoftmaxParameter_Engine_DEFAULT;
5704 static const Engine CAFFE = SoftmaxParameter_Engine_CAFFE;
5705 static const Engine CUDNN = SoftmaxParameter_Engine_CUDNN;
5706 static inline bool Engine_IsValid(int value) {
5707 return SoftmaxParameter_Engine_IsValid(value);
5708 }
5709 static const Engine Engine_MIN =
5710 SoftmaxParameter_Engine_Engine_MIN;
5711 static const Engine Engine_MAX =
5712 SoftmaxParameter_Engine_Engine_MAX;
5713 static const int Engine_ARRAYSIZE =
5714 SoftmaxParameter_Engine_Engine_ARRAYSIZE;
5715 static inline const ::google::protobuf::EnumDescriptor*
5716 Engine_descriptor() {
5717 return SoftmaxParameter_Engine_descriptor();
5718 }
5719 static inline const ::std::string& Engine_Name(Engine value) {
5720 return SoftmaxParameter_Engine_Name(value);
5721 }
5722 static inline bool Engine_Parse(const ::std::string& name,
5723 Engine* value) {
5724 return SoftmaxParameter_Engine_Parse(name, value);
5725 }
5727 // accessors -------------------------------------------------------
5729 // optional .caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT];
5730 inline bool has_engine() const;
5731 inline void clear_engine();
5732 static const int kEngineFieldNumber = 1;
5733 inline ::caffe::SoftmaxParameter_Engine engine() const;
5734 inline void set_engine(::caffe::SoftmaxParameter_Engine value);
5736 // @@protoc_insertion_point(class_scope:caffe.SoftmaxParameter)
5737 private:
5738 inline void set_has_engine();
5739 inline void clear_has_engine();
5741 ::google::protobuf::UnknownFieldSet _unknown_fields_;
5743 int engine_;
5745 mutable int _cached_size_;
5746 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
5748 friend void protobuf_AddDesc_caffe_2eproto();
5749 friend void protobuf_AssignDesc_caffe_2eproto();
5750 friend void protobuf_ShutdownFile_caffe_2eproto();
5752 void InitAsDefaultInstance();
5753 static SoftmaxParameter* default_instance_;
5754 };
5755 // -------------------------------------------------------------------
5757 class TanHParameter : public ::google::protobuf::Message {
5758 public:
5759 TanHParameter();
5760 virtual ~TanHParameter();
5762 TanHParameter(const TanHParameter& from);
5764 inline TanHParameter& operator=(const TanHParameter& from) {
5765 CopyFrom(from);
5766 return *this;
5767 }
5769 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
5770 return _unknown_fields_;
5771 }
5773 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
5774 return &_unknown_fields_;
5775 }
5777 static const ::google::protobuf::Descriptor* descriptor();
5778 static const TanHParameter& default_instance();
5780 void Swap(TanHParameter* other);
5782 // implements Message ----------------------------------------------
5784 TanHParameter* New() const;
5785 void CopyFrom(const ::google::protobuf::Message& from);
5786 void MergeFrom(const ::google::protobuf::Message& from);
5787 void CopyFrom(const TanHParameter& from);
5788 void MergeFrom(const TanHParameter& from);
5789 void Clear();
5790 bool IsInitialized() const;
5792 int ByteSize() const;
5793 bool MergePartialFromCodedStream(
5794 ::google::protobuf::io::CodedInputStream* input);
5795 void SerializeWithCachedSizes(
5796 ::google::protobuf::io::CodedOutputStream* output) const;
5797 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
5798 int GetCachedSize() const { return _cached_size_; }
5799 private:
5800 void SharedCtor();
5801 void SharedDtor();
5802 void SetCachedSize(int size) const;
5803 public:
5805 ::google::protobuf::Metadata GetMetadata() const;
5807 // nested types ----------------------------------------------------
5809 typedef TanHParameter_Engine Engine;
5810 static const Engine DEFAULT = TanHParameter_Engine_DEFAULT;
5811 static const Engine CAFFE = TanHParameter_Engine_CAFFE;
5812 static const Engine CUDNN = TanHParameter_Engine_CUDNN;
5813 static inline bool Engine_IsValid(int value) {
5814 return TanHParameter_Engine_IsValid(value);
5815 }
5816 static const Engine Engine_MIN =
5817 TanHParameter_Engine_Engine_MIN;
5818 static const Engine Engine_MAX =
5819 TanHParameter_Engine_Engine_MAX;
5820 static const int Engine_ARRAYSIZE =
5821 TanHParameter_Engine_Engine_ARRAYSIZE;
5822 static inline const ::google::protobuf::EnumDescriptor*
5823 Engine_descriptor() {
5824 return TanHParameter_Engine_descriptor();
5825 }
5826 static inline const ::std::string& Engine_Name(Engine value) {
5827 return TanHParameter_Engine_Name(value);
5828 }
5829 static inline bool Engine_Parse(const ::std::string& name,
5830 Engine* value) {
5831 return TanHParameter_Engine_Parse(name, value);
5832 }
5834 // accessors -------------------------------------------------------
5836 // optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT];
5837 inline bool has_engine() const;
5838 inline void clear_engine();
5839 static const int kEngineFieldNumber = 1;
5840 inline ::caffe::TanHParameter_Engine engine() const;
5841 inline void set_engine(::caffe::TanHParameter_Engine value);
5843 // @@protoc_insertion_point(class_scope:caffe.TanHParameter)
5844 private:
5845 inline void set_has_engine();
5846 inline void clear_has_engine();
5848 ::google::protobuf::UnknownFieldSet _unknown_fields_;
5850 int engine_;
5852 mutable int _cached_size_;
5853 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
5855 friend void protobuf_AddDesc_caffe_2eproto();
5856 friend void protobuf_AssignDesc_caffe_2eproto();
5857 friend void protobuf_ShutdownFile_caffe_2eproto();
5859 void InitAsDefaultInstance();
5860 static TanHParameter* default_instance_;
5861 };
5862 // -------------------------------------------------------------------
5864 class WindowDataParameter : public ::google::protobuf::Message {
5865 public:
5866 WindowDataParameter();
5867 virtual ~WindowDataParameter();
5869 WindowDataParameter(const WindowDataParameter& from);
5871 inline WindowDataParameter& operator=(const WindowDataParameter& from) {
5872 CopyFrom(from);
5873 return *this;
5874 }
5876 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
5877 return _unknown_fields_;
5878 }
5880 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
5881 return &_unknown_fields_;
5882 }
5884 static const ::google::protobuf::Descriptor* descriptor();
5885 static const WindowDataParameter& default_instance();
5887 void Swap(WindowDataParameter* other);
5889 // implements Message ----------------------------------------------
5891 WindowDataParameter* New() const;
5892 void CopyFrom(const ::google::protobuf::Message& from);
5893 void MergeFrom(const ::google::protobuf::Message& from);
5894 void CopyFrom(const WindowDataParameter& from);
5895 void MergeFrom(const WindowDataParameter& from);
5896 void Clear();
5897 bool IsInitialized() const;
5899 int ByteSize() const;
5900 bool MergePartialFromCodedStream(
5901 ::google::protobuf::io::CodedInputStream* input);
5902 void SerializeWithCachedSizes(
5903 ::google::protobuf::io::CodedOutputStream* output) const;
5904 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
5905 int GetCachedSize() const { return _cached_size_; }
5906 private:
5907 void SharedCtor();
5908 void SharedDtor();
5909 void SetCachedSize(int size) const;
5910 public:
5912 ::google::protobuf::Metadata GetMetadata() const;
5914 // nested types ----------------------------------------------------
5916 // accessors -------------------------------------------------------
5918 // optional string source = 1;
5919 inline bool has_source() const;
5920 inline void clear_source();
5921 static const int kSourceFieldNumber = 1;
5922 inline const ::std::string& source() const;
5923 inline void set_source(const ::std::string& value);
5924 inline void set_source(const char* value);
5925 inline void set_source(const char* value, size_t size);
5926 inline ::std::string* mutable_source();
5927 inline ::std::string* release_source();
5928 inline void set_allocated_source(::std::string* source);
5930 // optional float scale = 2 [default = 1];
5931 inline bool has_scale() const;
5932 inline void clear_scale();
5933 static const int kScaleFieldNumber = 2;
5934 inline float scale() const;
5935 inline void set_scale(float value);
5937 // optional string mean_file = 3;
5938 inline bool has_mean_file() const;
5939 inline void clear_mean_file();
5940 static const int kMeanFileFieldNumber = 3;
5941 inline const ::std::string& mean_file() const;
5942 inline void set_mean_file(const ::std::string& value);
5943 inline void set_mean_file(const char* value);
5944 inline void set_mean_file(const char* value, size_t size);
5945 inline ::std::string* mutable_mean_file();
5946 inline ::std::string* release_mean_file();
5947 inline void set_allocated_mean_file(::std::string* mean_file);
5949 // optional uint32 batch_size = 4;
5950 inline bool has_batch_size() const;
5951 inline void clear_batch_size();
5952 static const int kBatchSizeFieldNumber = 4;
5953 inline ::google::protobuf::uint32 batch_size() const;
5954 inline void set_batch_size(::google::protobuf::uint32 value);
5956 // optional uint32 crop_size = 5 [default = 0];
5957 inline bool has_crop_size() const;
5958 inline void clear_crop_size();
5959 static const int kCropSizeFieldNumber = 5;
5960 inline ::google::protobuf::uint32 crop_size() const;
5961 inline void set_crop_size(::google::protobuf::uint32 value);
5963 // optional bool mirror = 6 [default = false];
5964 inline bool has_mirror() const;
5965 inline void clear_mirror();
5966 static const int kMirrorFieldNumber = 6;
5967 inline bool mirror() const;
5968 inline void set_mirror(bool value);
5970 // optional float fg_threshold = 7 [default = 0.5];
5971 inline bool has_fg_threshold() const;
5972 inline void clear_fg_threshold();
5973 static const int kFgThresholdFieldNumber = 7;
5974 inline float fg_threshold() const;
5975 inline void set_fg_threshold(float value);
5977 // optional float bg_threshold = 8 [default = 0.5];
5978 inline bool has_bg_threshold() const;
5979 inline void clear_bg_threshold();
5980 static const int kBgThresholdFieldNumber = 8;
5981 inline float bg_threshold() const;
5982 inline void set_bg_threshold(float value);
5984 // optional float fg_fraction = 9 [default = 0.25];
5985 inline bool has_fg_fraction() const;
5986 inline void clear_fg_fraction();
5987 static const int kFgFractionFieldNumber = 9;
5988 inline float fg_fraction() const;
5989 inline void set_fg_fraction(float value);
5991 // optional uint32 context_pad = 10 [default = 0];
5992 inline bool has_context_pad() const;
5993 inline void clear_context_pad();
5994 static const int kContextPadFieldNumber = 10;
5995 inline ::google::protobuf::uint32 context_pad() const;
5996 inline void set_context_pad(::google::protobuf::uint32 value);
5998 // optional string crop_mode = 11 [default = "warp"];
5999 inline bool has_crop_mode() const;
6000 inline void clear_crop_mode();
6001 static const int kCropModeFieldNumber = 11;
6002 inline const ::std::string& crop_mode() const;
6003 inline void set_crop_mode(const ::std::string& value);
6004 inline void set_crop_mode(const char* value);
6005 inline void set_crop_mode(const char* value, size_t size);
6006 inline ::std::string* mutable_crop_mode();
6007 inline ::std::string* release_crop_mode();
6008 inline void set_allocated_crop_mode(::std::string* crop_mode);
6010 // @@protoc_insertion_point(class_scope:caffe.WindowDataParameter)
6011 private:
6012 inline void set_has_source();
6013 inline void clear_has_source();
6014 inline void set_has_scale();
6015 inline void clear_has_scale();
6016 inline void set_has_mean_file();
6017 inline void clear_has_mean_file();
6018 inline void set_has_batch_size();
6019 inline void clear_has_batch_size();
6020 inline void set_has_crop_size();
6021 inline void clear_has_crop_size();
6022 inline void set_has_mirror();
6023 inline void clear_has_mirror();
6024 inline void set_has_fg_threshold();
6025 inline void clear_has_fg_threshold();
6026 inline void set_has_bg_threshold();
6027 inline void clear_has_bg_threshold();
6028 inline void set_has_fg_fraction();
6029 inline void clear_has_fg_fraction();
6030 inline void set_has_context_pad();
6031 inline void clear_has_context_pad();
6032 inline void set_has_crop_mode();
6033 inline void clear_has_crop_mode();
6035 ::google::protobuf::UnknownFieldSet _unknown_fields_;
6037 ::std::string* source_;
6038 ::std::string* mean_file_;
6039 float scale_;
6040 ::google::protobuf::uint32 batch_size_;
6041 ::google::protobuf::uint32 crop_size_;
6042 bool mirror_;
6043 float fg_threshold_;
6044 float bg_threshold_;
6045 float fg_fraction_;
6046 ::google::protobuf::uint32 context_pad_;
6047 ::std::string* crop_mode_;
6048 static ::std::string* _default_crop_mode_;
6050 mutable int _cached_size_;
6051 ::google::protobuf::uint32 _has_bits_[(11 + 31) / 32];
6053 friend void protobuf_AddDesc_caffe_2eproto();
6054 friend void protobuf_AssignDesc_caffe_2eproto();
6055 friend void protobuf_ShutdownFile_caffe_2eproto();
6057 void InitAsDefaultInstance();
6058 static WindowDataParameter* default_instance_;
6059 };
6060 // -------------------------------------------------------------------
6062 class V0LayerParameter : public ::google::protobuf::Message {
6063 public:
6064 V0LayerParameter();
6065 virtual ~V0LayerParameter();
6067 V0LayerParameter(const V0LayerParameter& from);
6069 inline V0LayerParameter& operator=(const V0LayerParameter& from) {
6070 CopyFrom(from);
6071 return *this;
6072 }
6074 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
6075 return _unknown_fields_;
6076 }
6078 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
6079 return &_unknown_fields_;
6080 }
6082 static const ::google::protobuf::Descriptor* descriptor();
6083 static const V0LayerParameter& default_instance();
6085 void Swap(V0LayerParameter* other);
6087 // implements Message ----------------------------------------------
6089 V0LayerParameter* New() const;
6090 void CopyFrom(const ::google::protobuf::Message& from);
6091 void MergeFrom(const ::google::protobuf::Message& from);
6092 void CopyFrom(const V0LayerParameter& from);
6093 void MergeFrom(const V0LayerParameter& from);
6094 void Clear();
6095 bool IsInitialized() const;
6097 int ByteSize() const;
6098 bool MergePartialFromCodedStream(
6099 ::google::protobuf::io::CodedInputStream* input);
6100 void SerializeWithCachedSizes(
6101 ::google::protobuf::io::CodedOutputStream* output) const;
6102 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
6103 int GetCachedSize() const { return _cached_size_; }
6104 private:
6105 void SharedCtor();
6106 void SharedDtor();
6107 void SetCachedSize(int size) const;
6108 public:
6110 ::google::protobuf::Metadata GetMetadata() const;
6112 // nested types ----------------------------------------------------
6114 typedef V0LayerParameter_PoolMethod PoolMethod;
6115 static const PoolMethod MAX = V0LayerParameter_PoolMethod_MAX;
6116 static const PoolMethod AVE = V0LayerParameter_PoolMethod_AVE;
6117 static const PoolMethod STOCHASTIC = V0LayerParameter_PoolMethod_STOCHASTIC;
6118 static inline bool PoolMethod_IsValid(int value) {
6119 return V0LayerParameter_PoolMethod_IsValid(value);
6120 }
6121 static const PoolMethod PoolMethod_MIN =
6122 V0LayerParameter_PoolMethod_PoolMethod_MIN;
6123 static const PoolMethod PoolMethod_MAX =
6124 V0LayerParameter_PoolMethod_PoolMethod_MAX;
6125 static const int PoolMethod_ARRAYSIZE =
6126 V0LayerParameter_PoolMethod_PoolMethod_ARRAYSIZE;
6127 static inline const ::google::protobuf::EnumDescriptor*
6128 PoolMethod_descriptor() {
6129 return V0LayerParameter_PoolMethod_descriptor();
6130 }
6131 static inline const ::std::string& PoolMethod_Name(PoolMethod value) {
6132 return V0LayerParameter_PoolMethod_Name(value);
6133 }
6134 static inline bool PoolMethod_Parse(const ::std::string& name,
6135 PoolMethod* value) {
6136 return V0LayerParameter_PoolMethod_Parse(name, value);
6137 }
6139 // accessors -------------------------------------------------------
6141 // optional string name = 1;
6142 inline bool has_name() const;
6143 inline void clear_name();
6144 static const int kNameFieldNumber = 1;
6145 inline const ::std::string& name() const;
6146 inline void set_name(const ::std::string& value);
6147 inline void set_name(const char* value);
6148 inline void set_name(const char* value, size_t size);
6149 inline ::std::string* mutable_name();
6150 inline ::std::string* release_name();
6151 inline void set_allocated_name(::std::string* name);
6153 // optional string type = 2;
6154 inline bool has_type() const;
6155 inline void clear_type();
6156 static const int kTypeFieldNumber = 2;
6157 inline const ::std::string& type() const;
6158 inline void set_type(const ::std::string& value);
6159 inline void set_type(const char* value);
6160 inline void set_type(const char* value, size_t size);
6161 inline ::std::string* mutable_type();
6162 inline ::std::string* release_type();
6163 inline void set_allocated_type(::std::string* type);
6165 // optional uint32 num_output = 3;
6166 inline bool has_num_output() const;
6167 inline void clear_num_output();
6168 static const int kNumOutputFieldNumber = 3;
6169 inline ::google::protobuf::uint32 num_output() const;
6170 inline void set_num_output(::google::protobuf::uint32 value);
6172 // optional bool biasterm = 4 [default = true];
6173 inline bool has_biasterm() const;
6174 inline void clear_biasterm();
6175 static const int kBiastermFieldNumber = 4;
6176 inline bool biasterm() const;
6177 inline void set_biasterm(bool value);
6179 // optional .caffe.FillerParameter weight_filler = 5;
6180 inline bool has_weight_filler() const;
6181 inline void clear_weight_filler();
6182 static const int kWeightFillerFieldNumber = 5;
6183 inline const ::caffe::FillerParameter& weight_filler() const;
6184 inline ::caffe::FillerParameter* mutable_weight_filler();
6185 inline ::caffe::FillerParameter* release_weight_filler();
6186 inline void set_allocated_weight_filler(::caffe::FillerParameter* weight_filler);
6188 // optional .caffe.FillerParameter bias_filler = 6;
6189 inline bool has_bias_filler() const;
6190 inline void clear_bias_filler();
6191 static const int kBiasFillerFieldNumber = 6;
6192 inline const ::caffe::FillerParameter& bias_filler() const;
6193 inline ::caffe::FillerParameter* mutable_bias_filler();
6194 inline ::caffe::FillerParameter* release_bias_filler();
6195 inline void set_allocated_bias_filler(::caffe::FillerParameter* bias_filler);
6197 // optional uint32 pad = 7 [default = 0];
6198 inline bool has_pad() const;
6199 inline void clear_pad();
6200 static const int kPadFieldNumber = 7;
6201 inline ::google::protobuf::uint32 pad() const;
6202 inline void set_pad(::google::protobuf::uint32 value);
6204 // optional uint32 kernelsize = 8;
6205 inline bool has_kernelsize() const;
6206 inline void clear_kernelsize();
6207 static const int kKernelsizeFieldNumber = 8;
6208 inline ::google::protobuf::uint32 kernelsize() const;
6209 inline void set_kernelsize(::google::protobuf::uint32 value);
6211 // optional uint32 group = 9 [default = 1];
6212 inline bool has_group() const;
6213 inline void clear_group();
6214 static const int kGroupFieldNumber = 9;
6215 inline ::google::protobuf::uint32 group() const;
6216 inline void set_group(::google::protobuf::uint32 value);
6218 // optional uint32 stride = 10 [default = 1];
6219 inline bool has_stride() const;
6220 inline void clear_stride();
6221 static const int kStrideFieldNumber = 10;
6222 inline ::google::protobuf::uint32 stride() const;
6223 inline void set_stride(::google::protobuf::uint32 value);
6225 // optional .caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX];
6226 inline bool has_pool() const;
6227 inline void clear_pool();
6228 static const int kPoolFieldNumber = 11;
6229 inline ::caffe::V0LayerParameter_PoolMethod pool() const;
6230 inline void set_pool(::caffe::V0LayerParameter_PoolMethod value);
6232 // optional float dropout_ratio = 12 [default = 0.5];
6233 inline bool has_dropout_ratio() const;
6234 inline void clear_dropout_ratio();
6235 static const int kDropoutRatioFieldNumber = 12;
6236 inline float dropout_ratio() const;
6237 inline void set_dropout_ratio(float value);
6239 // optional uint32 local_size = 13 [default = 5];
6240 inline bool has_local_size() const;
6241 inline void clear_local_size();
6242 static const int kLocalSizeFieldNumber = 13;
6243 inline ::google::protobuf::uint32 local_size() const;
6244 inline void set_local_size(::google::protobuf::uint32 value);
6246 // optional float alpha = 14 [default = 1];
6247 inline bool has_alpha() const;
6248 inline void clear_alpha();
6249 static const int kAlphaFieldNumber = 14;
6250 inline float alpha() const;
6251 inline void set_alpha(float value);
6253 // optional float beta = 15 [default = 0.75];
6254 inline bool has_beta() const;
6255 inline void clear_beta();
6256 static const int kBetaFieldNumber = 15;
6257 inline float beta() const;
6258 inline void set_beta(float value);
6260 // optional string source = 16;
6261 inline bool has_source() const;
6262 inline void clear_source();
6263 static const int kSourceFieldNumber = 16;
6264 inline const ::std::string& source() const;
6265 inline void set_source(const ::std::string& value);
6266 inline void set_source(const char* value);
6267 inline void set_source(const char* value, size_t size);
6268 inline ::std::string* mutable_source();
6269 inline ::std::string* release_source();
6270 inline void set_allocated_source(::std::string* source);
6272 // optional float scale = 17 [default = 1];
6273 inline bool has_scale() const;
6274 inline void clear_scale();
6275 static const int kScaleFieldNumber = 17;
6276 inline float scale() const;
6277 inline void set_scale(float value);
6279 // optional string meanfile = 18;
6280 inline bool has_meanfile() const;
6281 inline void clear_meanfile();
6282 static const int kMeanfileFieldNumber = 18;
6283 inline const ::std::string& meanfile() const;
6284 inline void set_meanfile(const ::std::string& value);
6285 inline void set_meanfile(const char* value);
6286 inline void set_meanfile(const char* value, size_t size);
6287 inline ::std::string* mutable_meanfile();
6288 inline ::std::string* release_meanfile();
6289 inline void set_allocated_meanfile(::std::string* meanfile);
6291 // optional uint32 batchsize = 19;
6292 inline bool has_batchsize() const;
6293 inline void clear_batchsize();
6294 static const int kBatchsizeFieldNumber = 19;
6295 inline ::google::protobuf::uint32 batchsize() const;
6296 inline void set_batchsize(::google::protobuf::uint32 value);
6298 // optional uint32 cropsize = 20 [default = 0];
6299 inline bool has_cropsize() const;
6300 inline void clear_cropsize();
6301 static const int kCropsizeFieldNumber = 20;
6302 inline ::google::protobuf::uint32 cropsize() const;
6303 inline void set_cropsize(::google::protobuf::uint32 value);
6305 // optional bool mirror = 21 [default = false];
6306 inline bool has_mirror() const;
6307 inline void clear_mirror();
6308 static const int kMirrorFieldNumber = 21;
6309 inline bool mirror() const;
6310 inline void set_mirror(bool value);
6312 // repeated .caffe.BlobProto blobs = 50;
6313 inline int blobs_size() const;
6314 inline void clear_blobs();
6315 static const int kBlobsFieldNumber = 50;
6316 inline const ::caffe::BlobProto& blobs(int index) const;
6317 inline ::caffe::BlobProto* mutable_blobs(int index);
6318 inline ::caffe::BlobProto* add_blobs();
6319 inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >&
6320 blobs() const;
6321 inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >*
6322 mutable_blobs();
6324 // repeated float blobs_lr = 51;
6325 inline int blobs_lr_size() const;
6326 inline void clear_blobs_lr();
6327 static const int kBlobsLrFieldNumber = 51;
6328 inline float blobs_lr(int index) const;
6329 inline void set_blobs_lr(int index, float value);
6330 inline void add_blobs_lr(float value);
6331 inline const ::google::protobuf::RepeatedField< float >&
6332 blobs_lr() const;
6333 inline ::google::protobuf::RepeatedField< float >*
6334 mutable_blobs_lr();
6336 // repeated float weight_decay = 52;
6337 inline int weight_decay_size() const;
6338 inline void clear_weight_decay();
6339 static const int kWeightDecayFieldNumber = 52;
6340 inline float weight_decay(int index) const;
6341 inline void set_weight_decay(int index, float value);
6342 inline void add_weight_decay(float value);
6343 inline const ::google::protobuf::RepeatedField< float >&
6344 weight_decay() const;
6345 inline ::google::protobuf::RepeatedField< float >*
6346 mutable_weight_decay();
6348 // optional uint32 rand_skip = 53 [default = 0];
6349 inline bool has_rand_skip() const;
6350 inline void clear_rand_skip();
6351 static const int kRandSkipFieldNumber = 53;
6352 inline ::google::protobuf::uint32 rand_skip() const;
6353 inline void set_rand_skip(::google::protobuf::uint32 value);
6355 // optional float det_fg_threshold = 54 [default = 0.5];
6356 inline bool has_det_fg_threshold() const;
6357 inline void clear_det_fg_threshold();
6358 static const int kDetFgThresholdFieldNumber = 54;
6359 inline float det_fg_threshold() const;
6360 inline void set_det_fg_threshold(float value);
6362 // optional float det_bg_threshold = 55 [default = 0.5];
6363 inline bool has_det_bg_threshold() const;
6364 inline void clear_det_bg_threshold();
6365 static const int kDetBgThresholdFieldNumber = 55;
6366 inline float det_bg_threshold() const;
6367 inline void set_det_bg_threshold(float value);
6369 // optional float det_fg_fraction = 56 [default = 0.25];
6370 inline bool has_det_fg_fraction() const;
6371 inline void clear_det_fg_fraction();
6372 static const int kDetFgFractionFieldNumber = 56;
6373 inline float det_fg_fraction() const;
6374 inline void set_det_fg_fraction(float value);
6376 // optional uint32 det_context_pad = 58 [default = 0];
6377 inline bool has_det_context_pad() const;
6378 inline void clear_det_context_pad();
6379 static const int kDetContextPadFieldNumber = 58;
6380 inline ::google::protobuf::uint32 det_context_pad() const;
6381 inline void set_det_context_pad(::google::protobuf::uint32 value);
6383 // optional string det_crop_mode = 59 [default = "warp"];
6384 inline bool has_det_crop_mode() const;
6385 inline void clear_det_crop_mode();
6386 static const int kDetCropModeFieldNumber = 59;
6387 inline const ::std::string& det_crop_mode() const;
6388 inline void set_det_crop_mode(const ::std::string& value);
6389 inline void set_det_crop_mode(const char* value);
6390 inline void set_det_crop_mode(const char* value, size_t size);
6391 inline ::std::string* mutable_det_crop_mode();
6392 inline ::std::string* release_det_crop_mode();
6393 inline void set_allocated_det_crop_mode(::std::string* det_crop_mode);
6395 // optional int32 new_num = 60 [default = 0];
6396 inline bool has_new_num() const;
6397 inline void clear_new_num();
6398 static const int kNewNumFieldNumber = 60;
6399 inline ::google::protobuf::int32 new_num() const;
6400 inline void set_new_num(::google::protobuf::int32 value);
6402 // optional int32 new_channels = 61 [default = 0];
6403 inline bool has_new_channels() const;
6404 inline void clear_new_channels();
6405 static const int kNewChannelsFieldNumber = 61;
6406 inline ::google::protobuf::int32 new_channels() const;
6407 inline void set_new_channels(::google::protobuf::int32 value);
6409 // optional int32 new_height = 62 [default = 0];
6410 inline bool has_new_height() const;
6411 inline void clear_new_height();
6412 static const int kNewHeightFieldNumber = 62;
6413 inline ::google::protobuf::int32 new_height() const;
6414 inline void set_new_height(::google::protobuf::int32 value);
6416 // optional int32 new_width = 63 [default = 0];
6417 inline bool has_new_width() const;
6418 inline void clear_new_width();
6419 static const int kNewWidthFieldNumber = 63;
6420 inline ::google::protobuf::int32 new_width() const;
6421 inline void set_new_width(::google::protobuf::int32 value);
6423 // optional bool shuffle_images = 64 [default = false];
6424 inline bool has_shuffle_images() const;
6425 inline void clear_shuffle_images();
6426 static const int kShuffleImagesFieldNumber = 64;
6427 inline bool shuffle_images() const;
6428 inline void set_shuffle_images(bool value);
6430 // optional uint32 concat_dim = 65 [default = 1];
6431 inline bool has_concat_dim() const;
6432 inline void clear_concat_dim();
6433 static const int kConcatDimFieldNumber = 65;
6434 inline ::google::protobuf::uint32 concat_dim() const;
6435 inline void set_concat_dim(::google::protobuf::uint32 value);
6437 // optional .caffe.HDF5OutputParameter hdf5_output_param = 1001;
6438 inline bool has_hdf5_output_param() const;
6439 inline void clear_hdf5_output_param();
6440 static const int kHdf5OutputParamFieldNumber = 1001;
6441 inline const ::caffe::HDF5OutputParameter& hdf5_output_param() const;
6442 inline ::caffe::HDF5OutputParameter* mutable_hdf5_output_param();
6443 inline ::caffe::HDF5OutputParameter* release_hdf5_output_param();
6444 inline void set_allocated_hdf5_output_param(::caffe::HDF5OutputParameter* hdf5_output_param);
6446 // @@protoc_insertion_point(class_scope:caffe.V0LayerParameter)
6447 private:
6448 inline void set_has_name();
6449 inline void clear_has_name();
6450 inline void set_has_type();
6451 inline void clear_has_type();
6452 inline void set_has_num_output();
6453 inline void clear_has_num_output();
6454 inline void set_has_biasterm();
6455 inline void clear_has_biasterm();
6456 inline void set_has_weight_filler();
6457 inline void clear_has_weight_filler();
6458 inline void set_has_bias_filler();
6459 inline void clear_has_bias_filler();
6460 inline void set_has_pad();
6461 inline void clear_has_pad();
6462 inline void set_has_kernelsize();
6463 inline void clear_has_kernelsize();
6464 inline void set_has_group();
6465 inline void clear_has_group();
6466 inline void set_has_stride();
6467 inline void clear_has_stride();
6468 inline void set_has_pool();
6469 inline void clear_has_pool();
6470 inline void set_has_dropout_ratio();
6471 inline void clear_has_dropout_ratio();
6472 inline void set_has_local_size();
6473 inline void clear_has_local_size();
6474 inline void set_has_alpha();
6475 inline void clear_has_alpha();
6476 inline void set_has_beta();
6477 inline void clear_has_beta();
6478 inline void set_has_source();
6479 inline void clear_has_source();
6480 inline void set_has_scale();
6481 inline void clear_has_scale();
6482 inline void set_has_meanfile();
6483 inline void clear_has_meanfile();
6484 inline void set_has_batchsize();
6485 inline void clear_has_batchsize();
6486 inline void set_has_cropsize();
6487 inline void clear_has_cropsize();
6488 inline void set_has_mirror();
6489 inline void clear_has_mirror();
6490 inline void set_has_rand_skip();
6491 inline void clear_has_rand_skip();
6492 inline void set_has_det_fg_threshold();
6493 inline void clear_has_det_fg_threshold();
6494 inline void set_has_det_bg_threshold();
6495 inline void clear_has_det_bg_threshold();
6496 inline void set_has_det_fg_fraction();
6497 inline void clear_has_det_fg_fraction();
6498 inline void set_has_det_context_pad();
6499 inline void clear_has_det_context_pad();
6500 inline void set_has_det_crop_mode();
6501 inline void clear_has_det_crop_mode();
6502 inline void set_has_new_num();
6503 inline void clear_has_new_num();
6504 inline void set_has_new_channels();
6505 inline void clear_has_new_channels();
6506 inline void set_has_new_height();
6507 inline void clear_has_new_height();
6508 inline void set_has_new_width();
6509 inline void clear_has_new_width();
6510 inline void set_has_shuffle_images();
6511 inline void clear_has_shuffle_images();
6512 inline void set_has_concat_dim();
6513 inline void clear_has_concat_dim();
6514 inline void set_has_hdf5_output_param();
6515 inline void clear_has_hdf5_output_param();
6517 ::google::protobuf::UnknownFieldSet _unknown_fields_;
6519 ::std::string* name_;
6520 ::std::string* type_;
6521 ::google::protobuf::uint32 num_output_;
6522 ::google::protobuf::uint32 pad_;
6523 ::caffe::FillerParameter* weight_filler_;
6524 ::caffe::FillerParameter* bias_filler_;
6525 ::google::protobuf::uint32 kernelsize_;
6526 ::google::protobuf::uint32 group_;
6527 ::google::protobuf::uint32 stride_;
6528 int pool_;
6529 float dropout_ratio_;
6530 ::google::protobuf::uint32 local_size_;
6531 float alpha_;
6532 float beta_;
6533 ::std::string* source_;
6534 ::std::string* meanfile_;
6535 float scale_;
6536 ::google::protobuf::uint32 batchsize_;
6537 bool biasterm_;
6538 bool mirror_;
6539 bool shuffle_images_;
6540 ::google::protobuf::uint32 cropsize_;
6541 ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto > blobs_;
6542 ::google::protobuf::RepeatedField< float > blobs_lr_;
6543 ::google::protobuf::RepeatedField< float > weight_decay_;
6544 ::google::protobuf::uint32 rand_skip_;
6545 float det_fg_threshold_;
6546 float det_bg_threshold_;
6547 float det_fg_fraction_;
6548 ::std::string* det_crop_mode_;
6549 static ::std::string* _default_det_crop_mode_;
6550 ::google::protobuf::uint32 det_context_pad_;
6551 ::google::protobuf::int32 new_num_;
6552 ::google::protobuf::int32 new_channels_;
6553 ::google::protobuf::int32 new_height_;
6554 ::google::protobuf::int32 new_width_;
6555 ::google::protobuf::uint32 concat_dim_;
6556 ::caffe::HDF5OutputParameter* hdf5_output_param_;
6558 mutable int _cached_size_;
6559 ::google::protobuf::uint32 _has_bits_[(37 + 31) / 32];
6561 friend void protobuf_AddDesc_caffe_2eproto();
6562 friend void protobuf_AssignDesc_caffe_2eproto();
6563 friend void protobuf_ShutdownFile_caffe_2eproto();
6565 void InitAsDefaultInstance();
6566 static V0LayerParameter* default_instance_;
6567 };
6568 // ===================================================================
6571 // ===================================================================
6573 // BlobProto
6575 // optional int32 num = 1 [default = 0];
6576 inline bool BlobProto::has_num() const {
6577 return (_has_bits_[0] & 0x00000001u) != 0;
6578 }
6579 inline void BlobProto::set_has_num() {
6580 _has_bits_[0] |= 0x00000001u;
6581 }
6582 inline void BlobProto::clear_has_num() {
6583 _has_bits_[0] &= ~0x00000001u;
6584 }
6585 inline void BlobProto::clear_num() {
6586 num_ = 0;
6587 clear_has_num();
6588 }
6589 inline ::google::protobuf::int32 BlobProto::num() const {
6590 return num_;
6591 }
6592 inline void BlobProto::set_num(::google::protobuf::int32 value) {
6593 set_has_num();
6594 num_ = value;
6595 }
6597 // optional int32 channels = 2 [default = 0];
6598 inline bool BlobProto::has_channels() const {
6599 return (_has_bits_[0] & 0x00000002u) != 0;
6600 }
6601 inline void BlobProto::set_has_channels() {
6602 _has_bits_[0] |= 0x00000002u;
6603 }
6604 inline void BlobProto::clear_has_channels() {
6605 _has_bits_[0] &= ~0x00000002u;
6606 }
6607 inline void BlobProto::clear_channels() {
6608 channels_ = 0;
6609 clear_has_channels();
6610 }
6611 inline ::google::protobuf::int32 BlobProto::channels() const {
6612 return channels_;
6613 }
6614 inline void BlobProto::set_channels(::google::protobuf::int32 value) {
6615 set_has_channels();
6616 channels_ = value;
6617 }
6619 // optional int32 height = 3 [default = 0];
6620 inline bool BlobProto::has_height() const {
6621 return (_has_bits_[0] & 0x00000004u) != 0;
6622 }
6623 inline void BlobProto::set_has_height() {
6624 _has_bits_[0] |= 0x00000004u;
6625 }
6626 inline void BlobProto::clear_has_height() {
6627 _has_bits_[0] &= ~0x00000004u;
6628 }
6629 inline void BlobProto::clear_height() {
6630 height_ = 0;
6631 clear_has_height();
6632 }
6633 inline ::google::protobuf::int32 BlobProto::height() const {
6634 return height_;
6635 }
6636 inline void BlobProto::set_height(::google::protobuf::int32 value) {
6637 set_has_height();
6638 height_ = value;
6639 }
6641 // optional int32 width = 4 [default = 0];
6642 inline bool BlobProto::has_width() const {
6643 return (_has_bits_[0] & 0x00000008u) != 0;
6644 }
6645 inline void BlobProto::set_has_width() {
6646 _has_bits_[0] |= 0x00000008u;
6647 }
6648 inline void BlobProto::clear_has_width() {
6649 _has_bits_[0] &= ~0x00000008u;
6650 }
6651 inline void BlobProto::clear_width() {
6652 width_ = 0;
6653 clear_has_width();
6654 }
6655 inline ::google::protobuf::int32 BlobProto::width() const {
6656 return width_;
6657 }
6658 inline void BlobProto::set_width(::google::protobuf::int32 value) {
6659 set_has_width();
6660 width_ = value;
6661 }
6663 // repeated float data = 5 [packed = true];
6664 inline int BlobProto::data_size() const {
6665 return data_.size();
6666 }
6667 inline void BlobProto::clear_data() {
6668 data_.Clear();
6669 }
6670 inline float BlobProto::data(int index) const {
6671 return data_.Get(index);
6672 }
6673 inline void BlobProto::set_data(int index, float value) {
6674 data_.Set(index, value);
6675 }
6676 inline void BlobProto::add_data(float value) {
6677 data_.Add(value);
6678 }
6679 inline const ::google::protobuf::RepeatedField< float >&
6680 BlobProto::data() const {
6681 return data_;
6682 }
6683 inline ::google::protobuf::RepeatedField< float >*
6684 BlobProto::mutable_data() {
6685 return &data_;
6686 }
6688 // repeated float diff = 6 [packed = true];
6689 inline int BlobProto::diff_size() const {
6690 return diff_.size();
6691 }
6692 inline void BlobProto::clear_diff() {
6693 diff_.Clear();
6694 }
6695 inline float BlobProto::diff(int index) const {
6696 return diff_.Get(index);
6697 }
6698 inline void BlobProto::set_diff(int index, float value) {
6699 diff_.Set(index, value);
6700 }
6701 inline void BlobProto::add_diff(float value) {
6702 diff_.Add(value);
6703 }
6704 inline const ::google::protobuf::RepeatedField< float >&
6705 BlobProto::diff() const {
6706 return diff_;
6707 }
6708 inline ::google::protobuf::RepeatedField< float >*
6709 BlobProto::mutable_diff() {
6710 return &diff_;
6711 }
6713 // -------------------------------------------------------------------
6715 // BlobProtoVector
6717 // repeated .caffe.BlobProto blobs = 1;
6718 inline int BlobProtoVector::blobs_size() const {
6719 return blobs_.size();
6720 }
6721 inline void BlobProtoVector::clear_blobs() {
6722 blobs_.Clear();
6723 }
6724 inline const ::caffe::BlobProto& BlobProtoVector::blobs(int index) const {
6725 return blobs_.Get(index);
6726 }
6727 inline ::caffe::BlobProto* BlobProtoVector::mutable_blobs(int index) {
6728 return blobs_.Mutable(index);
6729 }
6730 inline ::caffe::BlobProto* BlobProtoVector::add_blobs() {
6731 return blobs_.Add();
6732 }
6733 inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >&
6734 BlobProtoVector::blobs() const {
6735 return blobs_;
6736 }
6737 inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >*
6738 BlobProtoVector::mutable_blobs() {
6739 return &blobs_;
6740 }
6742 // -------------------------------------------------------------------
6744 // Datum
6746 // optional int32 channels = 1;
6747 inline bool Datum::has_channels() const {
6748 return (_has_bits_[0] & 0x00000001u) != 0;
6749 }
6750 inline void Datum::set_has_channels() {
6751 _has_bits_[0] |= 0x00000001u;
6752 }
6753 inline void Datum::clear_has_channels() {
6754 _has_bits_[0] &= ~0x00000001u;
6755 }
6756 inline void Datum::clear_channels() {
6757 channels_ = 0;
6758 clear_has_channels();
6759 }
6760 inline ::google::protobuf::int32 Datum::channels() const {
6761 return channels_;
6762 }
6763 inline void Datum::set_channels(::google::protobuf::int32 value) {
6764 set_has_channels();
6765 channels_ = value;
6766 }
6768 // optional int32 height = 2;
6769 inline bool Datum::has_height() const {
6770 return (_has_bits_[0] & 0x00000002u) != 0;
6771 }
6772 inline void Datum::set_has_height() {
6773 _has_bits_[0] |= 0x00000002u;
6774 }
6775 inline void Datum::clear_has_height() {
6776 _has_bits_[0] &= ~0x00000002u;
6777 }
6778 inline void Datum::clear_height() {
6779 height_ = 0;
6780 clear_has_height();
6781 }
6782 inline ::google::protobuf::int32 Datum::height() const {
6783 return height_;
6784 }
6785 inline void Datum::set_height(::google::protobuf::int32 value) {
6786 set_has_height();
6787 height_ = value;
6788 }
6790 // optional int32 width = 3;
6791 inline bool Datum::has_width() const {
6792 return (_has_bits_[0] & 0x00000004u) != 0;
6793 }
6794 inline void Datum::set_has_width() {
6795 _has_bits_[0] |= 0x00000004u;
6796 }
6797 inline void Datum::clear_has_width() {
6798 _has_bits_[0] &= ~0x00000004u;
6799 }
6800 inline void Datum::clear_width() {
6801 width_ = 0;
6802 clear_has_width();
6803 }
6804 inline ::google::protobuf::int32 Datum::width() const {
6805 return width_;
6806 }
6807 inline void Datum::set_width(::google::protobuf::int32 value) {
6808 set_has_width();
6809 width_ = value;
6810 }
6812 // optional bytes data = 4;
6813 inline bool Datum::has_data() const {
6814 return (_has_bits_[0] & 0x00000008u) != 0;
6815 }
6816 inline void Datum::set_has_data() {
6817 _has_bits_[0] |= 0x00000008u;
6818 }
6819 inline void Datum::clear_has_data() {
6820 _has_bits_[0] &= ~0x00000008u;
6821 }
6822 inline void Datum::clear_data() {
6823 if (data_ != &::google::protobuf::internal::kEmptyString) {
6824 data_->clear();
6825 }
6826 clear_has_data();
6827 }
6828 inline const ::std::string& Datum::data() const {
6829 return *data_;
6830 }
6831 inline void Datum::set_data(const ::std::string& value) {
6832 set_has_data();
6833 if (data_ == &::google::protobuf::internal::kEmptyString) {
6834 data_ = new ::std::string;
6835 }
6836 data_->assign(value);
6837 }
6838 inline void Datum::set_data(const char* value) {
6839 set_has_data();
6840 if (data_ == &::google::protobuf::internal::kEmptyString) {
6841 data_ = new ::std::string;
6842 }
6843 data_->assign(value);
6844 }
6845 inline void Datum::set_data(const void* value, size_t size) {
6846 set_has_data();
6847 if (data_ == &::google::protobuf::internal::kEmptyString) {
6848 data_ = new ::std::string;
6849 }
6850 data_->assign(reinterpret_cast<const char*>(value), size);
6851 }
6852 inline ::std::string* Datum::mutable_data() {
6853 set_has_data();
6854 if (data_ == &::google::protobuf::internal::kEmptyString) {
6855 data_ = new ::std::string;
6856 }
6857 return data_;
6858 }
6859 inline ::std::string* Datum::release_data() {
6860 clear_has_data();
6861 if (data_ == &::google::protobuf::internal::kEmptyString) {
6862 return NULL;
6863 } else {
6864 ::std::string* temp = data_;
6865 data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
6866 return temp;
6867 }
6868 }
6869 inline void Datum::set_allocated_data(::std::string* data) {
6870 if (data_ != &::google::protobuf::internal::kEmptyString) {
6871 delete data_;
6872 }
6873 if (data) {
6874 set_has_data();
6875 data_ = data;
6876 } else {
6877 clear_has_data();
6878 data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
6879 }
6880 }
6882 // optional int32 label = 5;
6883 inline bool Datum::has_label() const {
6884 return (_has_bits_[0] & 0x00000010u) != 0;
6885 }
6886 inline void Datum::set_has_label() {
6887 _has_bits_[0] |= 0x00000010u;
6888 }
6889 inline void Datum::clear_has_label() {
6890 _has_bits_[0] &= ~0x00000010u;
6891 }
6892 inline void Datum::clear_label() {
6893 label_ = 0;
6894 clear_has_label();
6895 }
6896 inline ::google::protobuf::int32 Datum::label() const {
6897 return label_;
6898 }
6899 inline void Datum::set_label(::google::protobuf::int32 value) {
6900 set_has_label();
6901 label_ = value;
6902 }
6904 // repeated float float_data = 6;
6905 inline int Datum::float_data_size() const {
6906 return float_data_.size();
6907 }
6908 inline void Datum::clear_float_data() {
6909 float_data_.Clear();
6910 }
6911 inline float Datum::float_data(int index) const {
6912 return float_data_.Get(index);
6913 }
6914 inline void Datum::set_float_data(int index, float value) {
6915 float_data_.Set(index, value);
6916 }
6917 inline void Datum::add_float_data(float value) {
6918 float_data_.Add(value);
6919 }
6920 inline const ::google::protobuf::RepeatedField< float >&
6921 Datum::float_data() const {
6922 return float_data_;
6923 }
6924 inline ::google::protobuf::RepeatedField< float >*
6925 Datum::mutable_float_data() {
6926 return &float_data_;
6927 }
6929 // -------------------------------------------------------------------
6931 // FillerParameter
6933 // optional string type = 1 [default = "constant"];
6934 inline bool FillerParameter::has_type() const {
6935 return (_has_bits_[0] & 0x00000001u) != 0;
6936 }
6937 inline void FillerParameter::set_has_type() {
6938 _has_bits_[0] |= 0x00000001u;
6939 }
6940 inline void FillerParameter::clear_has_type() {
6941 _has_bits_[0] &= ~0x00000001u;
6942 }
6943 inline void FillerParameter::clear_type() {
6944 if (type_ != _default_type_) {
6945 type_->assign(*_default_type_);
6946 }
6947 clear_has_type();
6948 }
6949 inline const ::std::string& FillerParameter::type() const {
6950 return *type_;
6951 }
6952 inline void FillerParameter::set_type(const ::std::string& value) {
6953 set_has_type();
6954 if (type_ == _default_type_) {
6955 type_ = new ::std::string;
6956 }
6957 type_->assign(value);
6958 }
6959 inline void FillerParameter::set_type(const char* value) {
6960 set_has_type();
6961 if (type_ == _default_type_) {
6962 type_ = new ::std::string;
6963 }
6964 type_->assign(value);
6965 }
6966 inline void FillerParameter::set_type(const char* value, size_t size) {
6967 set_has_type();
6968 if (type_ == _default_type_) {
6969 type_ = new ::std::string;
6970 }
6971 type_->assign(reinterpret_cast<const char*>(value), size);
6972 }
6973 inline ::std::string* FillerParameter::mutable_type() {
6974 set_has_type();
6975 if (type_ == _default_type_) {
6976 type_ = new ::std::string(*_default_type_);
6977 }
6978 return type_;
6979 }
6980 inline ::std::string* FillerParameter::release_type() {
6981 clear_has_type();
6982 if (type_ == _default_type_) {
6983 return NULL;
6984 } else {
6985 ::std::string* temp = type_;
6986 type_ = const_cast< ::std::string*>(_default_type_);
6987 return temp;
6988 }
6989 }
6990 inline void FillerParameter::set_allocated_type(::std::string* type) {
6991 if (type_ != _default_type_) {
6992 delete type_;
6993 }
6994 if (type) {
6995 set_has_type();
6996 type_ = type;
6997 } else {
6998 clear_has_type();
6999 type_ = const_cast< ::std::string*>(_default_type_);
7000 }
7001 }
7003 // optional float value = 2 [default = 0];
7004 inline bool FillerParameter::has_value() const {
7005 return (_has_bits_[0] & 0x00000002u) != 0;
7006 }
7007 inline void FillerParameter::set_has_value() {
7008 _has_bits_[0] |= 0x00000002u;
7009 }
7010 inline void FillerParameter::clear_has_value() {
7011 _has_bits_[0] &= ~0x00000002u;
7012 }
7013 inline void FillerParameter::clear_value() {
7014 value_ = 0;
7015 clear_has_value();
7016 }
7017 inline float FillerParameter::value() const {
7018 return value_;
7019 }
7020 inline void FillerParameter::set_value(float value) {
7021 set_has_value();
7022 value_ = value;
7023 }
7025 // optional float min = 3 [default = 0];
7026 inline bool FillerParameter::has_min() const {
7027 return (_has_bits_[0] & 0x00000004u) != 0;
7028 }
7029 inline void FillerParameter::set_has_min() {
7030 _has_bits_[0] |= 0x00000004u;
7031 }
7032 inline void FillerParameter::clear_has_min() {
7033 _has_bits_[0] &= ~0x00000004u;
7034 }
7035 inline void FillerParameter::clear_min() {
7036 min_ = 0;
7037 clear_has_min();
7038 }
7039 inline float FillerParameter::min() const {
7040 return min_;
7041 }
7042 inline void FillerParameter::set_min(float value) {
7043 set_has_min();
7044 min_ = value;
7045 }
7047 // optional float max = 4 [default = 1];
7048 inline bool FillerParameter::has_max() const {
7049 return (_has_bits_[0] & 0x00000008u) != 0;
7050 }
7051 inline void FillerParameter::set_has_max() {
7052 _has_bits_[0] |= 0x00000008u;
7053 }
7054 inline void FillerParameter::clear_has_max() {
7055 _has_bits_[0] &= ~0x00000008u;
7056 }
7057 inline void FillerParameter::clear_max() {
7058 max_ = 1;
7059 clear_has_max();
7060 }
7061 inline float FillerParameter::max() const {
7062 return max_;
7063 }
7064 inline void FillerParameter::set_max(float value) {
7065 set_has_max();
7066 max_ = value;
7067 }
7069 // optional float mean = 5 [default = 0];
7070 inline bool FillerParameter::has_mean() const {
7071 return (_has_bits_[0] & 0x00000010u) != 0;
7072 }
7073 inline void FillerParameter::set_has_mean() {
7074 _has_bits_[0] |= 0x00000010u;
7075 }
7076 inline void FillerParameter::clear_has_mean() {
7077 _has_bits_[0] &= ~0x00000010u;
7078 }
7079 inline void FillerParameter::clear_mean() {
7080 mean_ = 0;
7081 clear_has_mean();
7082 }
7083 inline float FillerParameter::mean() const {
7084 return mean_;
7085 }
7086 inline void FillerParameter::set_mean(float value) {
7087 set_has_mean();
7088 mean_ = value;
7089 }
7091 // optional float std = 6 [default = 1];
7092 inline bool FillerParameter::has_std() const {
7093 return (_has_bits_[0] & 0x00000020u) != 0;
7094 }
7095 inline void FillerParameter::set_has_std() {
7096 _has_bits_[0] |= 0x00000020u;
7097 }
7098 inline void FillerParameter::clear_has_std() {
7099 _has_bits_[0] &= ~0x00000020u;
7100 }
7101 inline void FillerParameter::clear_std() {
7102 std_ = 1;
7103 clear_has_std();
7104 }
7105 inline float FillerParameter::std() const {
7106 return std_;
7107 }
7108 inline void FillerParameter::set_std(float value) {
7109 set_has_std();
7110 std_ = value;
7111 }
7113 // optional int32 sparse = 7 [default = -1];
7114 inline bool FillerParameter::has_sparse() const {
7115 return (_has_bits_[0] & 0x00000040u) != 0;
7116 }
7117 inline void FillerParameter::set_has_sparse() {
7118 _has_bits_[0] |= 0x00000040u;
7119 }
7120 inline void FillerParameter::clear_has_sparse() {
7121 _has_bits_[0] &= ~0x00000040u;
7122 }
7123 inline void FillerParameter::clear_sparse() {
7124 sparse_ = -1;
7125 clear_has_sparse();
7126 }
7127 inline ::google::protobuf::int32 FillerParameter::sparse() const {
7128 return sparse_;
7129 }
7130 inline void FillerParameter::set_sparse(::google::protobuf::int32 value) {
7131 set_has_sparse();
7132 sparse_ = value;
7133 }
7135 // -------------------------------------------------------------------
7137 // NetParameter
7139 // optional string name = 1;
7140 inline bool NetParameter::has_name() const {
7141 return (_has_bits_[0] & 0x00000001u) != 0;
7142 }
7143 inline void NetParameter::set_has_name() {
7144 _has_bits_[0] |= 0x00000001u;
7145 }
7146 inline void NetParameter::clear_has_name() {
7147 _has_bits_[0] &= ~0x00000001u;
7148 }
7149 inline void NetParameter::clear_name() {
7150 if (name_ != &::google::protobuf::internal::kEmptyString) {
7151 name_->clear();
7152 }
7153 clear_has_name();
7154 }
7155 inline const ::std::string& NetParameter::name() const {
7156 return *name_;
7157 }
7158 inline void NetParameter::set_name(const ::std::string& value) {
7159 set_has_name();
7160 if (name_ == &::google::protobuf::internal::kEmptyString) {
7161 name_ = new ::std::string;
7162 }
7163 name_->assign(value);
7164 }
7165 inline void NetParameter::set_name(const char* value) {
7166 set_has_name();
7167 if (name_ == &::google::protobuf::internal::kEmptyString) {
7168 name_ = new ::std::string;
7169 }
7170 name_->assign(value);
7171 }
7172 inline void NetParameter::set_name(const char* value, size_t size) {
7173 set_has_name();
7174 if (name_ == &::google::protobuf::internal::kEmptyString) {
7175 name_ = new ::std::string;
7176 }
7177 name_->assign(reinterpret_cast<const char*>(value), size);
7178 }
7179 inline ::std::string* NetParameter::mutable_name() {
7180 set_has_name();
7181 if (name_ == &::google::protobuf::internal::kEmptyString) {
7182 name_ = new ::std::string;
7183 }
7184 return name_;
7185 }
7186 inline ::std::string* NetParameter::release_name() {
7187 clear_has_name();
7188 if (name_ == &::google::protobuf::internal::kEmptyString) {
7189 return NULL;
7190 } else {
7191 ::std::string* temp = name_;
7192 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
7193 return temp;
7194 }
7195 }
7196 inline void NetParameter::set_allocated_name(::std::string* name) {
7197 if (name_ != &::google::protobuf::internal::kEmptyString) {
7198 delete name_;
7199 }
7200 if (name) {
7201 set_has_name();
7202 name_ = name;
7203 } else {
7204 clear_has_name();
7205 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
7206 }
7207 }
7209 // repeated .caffe.LayerParameter layers = 2;
7210 inline int NetParameter::layers_size() const {
7211 return layers_.size();
7212 }
7213 inline void NetParameter::clear_layers() {
7214 layers_.Clear();
7215 }
7216 inline const ::caffe::LayerParameter& NetParameter::layers(int index) const {
7217 return layers_.Get(index);
7218 }
7219 inline ::caffe::LayerParameter* NetParameter::mutable_layers(int index) {
7220 return layers_.Mutable(index);
7221 }
7222 inline ::caffe::LayerParameter* NetParameter::add_layers() {
7223 return layers_.Add();
7224 }
7225 inline const ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter >&
7226 NetParameter::layers() const {
7227 return layers_;
7228 }
7229 inline ::google::protobuf::RepeatedPtrField< ::caffe::LayerParameter >*
7230 NetParameter::mutable_layers() {
7231 return &layers_;
7232 }
7234 // repeated string input = 3;
7235 inline int NetParameter::input_size() const {
7236 return input_.size();
7237 }
7238 inline void NetParameter::clear_input() {
7239 input_.Clear();
7240 }
7241 inline const ::std::string& NetParameter::input(int index) const {
7242 return input_.Get(index);
7243 }
7244 inline ::std::string* NetParameter::mutable_input(int index) {
7245 return input_.Mutable(index);
7246 }
7247 inline void NetParameter::set_input(int index, const ::std::string& value) {
7248 input_.Mutable(index)->assign(value);
7249 }
7250 inline void NetParameter::set_input(int index, const char* value) {
7251 input_.Mutable(index)->assign(value);
7252 }
7253 inline void NetParameter::set_input(int index, const char* value, size_t size) {
7254 input_.Mutable(index)->assign(
7255 reinterpret_cast<const char*>(value), size);
7256 }
7257 inline ::std::string* NetParameter::add_input() {
7258 return input_.Add();
7259 }
7260 inline void NetParameter::add_input(const ::std::string& value) {
7261 input_.Add()->assign(value);
7262 }
7263 inline void NetParameter::add_input(const char* value) {
7264 input_.Add()->assign(value);
7265 }
7266 inline void NetParameter::add_input(const char* value, size_t size) {
7267 input_.Add()->assign(reinterpret_cast<const char*>(value), size);
7268 }
7269 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
7270 NetParameter::input() const {
7271 return input_;
7272 }
7273 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
7274 NetParameter::mutable_input() {
7275 return &input_;
7276 }
7278 // repeated int32 input_dim = 4;
7279 inline int NetParameter::input_dim_size() const {
7280 return input_dim_.size();
7281 }
7282 inline void NetParameter::clear_input_dim() {
7283 input_dim_.Clear();
7284 }
7285 inline ::google::protobuf::int32 NetParameter::input_dim(int index) const {
7286 return input_dim_.Get(index);
7287 }
7288 inline void NetParameter::set_input_dim(int index, ::google::protobuf::int32 value) {
7289 input_dim_.Set(index, value);
7290 }
7291 inline void NetParameter::add_input_dim(::google::protobuf::int32 value) {
7292 input_dim_.Add(value);
7293 }
7294 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
7295 NetParameter::input_dim() const {
7296 return input_dim_;
7297 }
7298 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
7299 NetParameter::mutable_input_dim() {
7300 return &input_dim_;
7301 }
7303 // optional bool force_backward = 5 [default = false];
7304 inline bool NetParameter::has_force_backward() const {
7305 return (_has_bits_[0] & 0x00000010u) != 0;
7306 }
7307 inline void NetParameter::set_has_force_backward() {
7308 _has_bits_[0] |= 0x00000010u;
7309 }
7310 inline void NetParameter::clear_has_force_backward() {
7311 _has_bits_[0] &= ~0x00000010u;
7312 }
7313 inline void NetParameter::clear_force_backward() {
7314 force_backward_ = false;
7315 clear_has_force_backward();
7316 }
7317 inline bool NetParameter::force_backward() const {
7318 return force_backward_;
7319 }
7320 inline void NetParameter::set_force_backward(bool value) {
7321 set_has_force_backward();
7322 force_backward_ = value;
7323 }
7325 // optional .caffe.NetState state = 6;
7326 inline bool NetParameter::has_state() const {
7327 return (_has_bits_[0] & 0x00000020u) != 0;
7328 }
7329 inline void NetParameter::set_has_state() {
7330 _has_bits_[0] |= 0x00000020u;
7331 }
7332 inline void NetParameter::clear_has_state() {
7333 _has_bits_[0] &= ~0x00000020u;
7334 }
7335 inline void NetParameter::clear_state() {
7336 if (state_ != NULL) state_->::caffe::NetState::Clear();
7337 clear_has_state();
7338 }
7339 inline const ::caffe::NetState& NetParameter::state() const {
7340 return state_ != NULL ? *state_ : *default_instance_->state_;
7341 }
7342 inline ::caffe::NetState* NetParameter::mutable_state() {
7343 set_has_state();
7344 if (state_ == NULL) state_ = new ::caffe::NetState;
7345 return state_;
7346 }
7347 inline ::caffe::NetState* NetParameter::release_state() {
7348 clear_has_state();
7349 ::caffe::NetState* temp = state_;
7350 state_ = NULL;
7351 return temp;
7352 }
7353 inline void NetParameter::set_allocated_state(::caffe::NetState* state) {
7354 delete state_;
7355 state_ = state;
7356 if (state) {
7357 set_has_state();
7358 } else {
7359 clear_has_state();
7360 }
7361 }
7363 // -------------------------------------------------------------------
7365 // SolverParameter
7367 // optional string net = 24;
7368 inline bool SolverParameter::has_net() const {
7369 return (_has_bits_[0] & 0x00000001u) != 0;
7370 }
7371 inline void SolverParameter::set_has_net() {
7372 _has_bits_[0] |= 0x00000001u;
7373 }
7374 inline void SolverParameter::clear_has_net() {
7375 _has_bits_[0] &= ~0x00000001u;
7376 }
7377 inline void SolverParameter::clear_net() {
7378 if (net_ != &::google::protobuf::internal::kEmptyString) {
7379 net_->clear();
7380 }
7381 clear_has_net();
7382 }
7383 inline const ::std::string& SolverParameter::net() const {
7384 return *net_;
7385 }
7386 inline void SolverParameter::set_net(const ::std::string& value) {
7387 set_has_net();
7388 if (net_ == &::google::protobuf::internal::kEmptyString) {
7389 net_ = new ::std::string;
7390 }
7391 net_->assign(value);
7392 }
7393 inline void SolverParameter::set_net(const char* value) {
7394 set_has_net();
7395 if (net_ == &::google::protobuf::internal::kEmptyString) {
7396 net_ = new ::std::string;
7397 }
7398 net_->assign(value);
7399 }
7400 inline void SolverParameter::set_net(const char* value, size_t size) {
7401 set_has_net();
7402 if (net_ == &::google::protobuf::internal::kEmptyString) {
7403 net_ = new ::std::string;
7404 }
7405 net_->assign(reinterpret_cast<const char*>(value), size);
7406 }
7407 inline ::std::string* SolverParameter::mutable_net() {
7408 set_has_net();
7409 if (net_ == &::google::protobuf::internal::kEmptyString) {
7410 net_ = new ::std::string;
7411 }
7412 return net_;
7413 }
7414 inline ::std::string* SolverParameter::release_net() {
7415 clear_has_net();
7416 if (net_ == &::google::protobuf::internal::kEmptyString) {
7417 return NULL;
7418 } else {
7419 ::std::string* temp = net_;
7420 net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
7421 return temp;
7422 }
7423 }
7424 inline void SolverParameter::set_allocated_net(::std::string* net) {
7425 if (net_ != &::google::protobuf::internal::kEmptyString) {
7426 delete net_;
7427 }
7428 if (net) {
7429 set_has_net();
7430 net_ = net;
7431 } else {
7432 clear_has_net();
7433 net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
7434 }
7435 }
7437 // optional .caffe.NetParameter net_param = 25;
7438 inline bool SolverParameter::has_net_param() const {
7439 return (_has_bits_[0] & 0x00000002u) != 0;
7440 }
7441 inline void SolverParameter::set_has_net_param() {
7442 _has_bits_[0] |= 0x00000002u;
7443 }
7444 inline void SolverParameter::clear_has_net_param() {
7445 _has_bits_[0] &= ~0x00000002u;
7446 }
7447 inline void SolverParameter::clear_net_param() {
7448 if (net_param_ != NULL) net_param_->::caffe::NetParameter::Clear();
7449 clear_has_net_param();
7450 }
7451 inline const ::caffe::NetParameter& SolverParameter::net_param() const {
7452 return net_param_ != NULL ? *net_param_ : *default_instance_->net_param_;
7453 }
7454 inline ::caffe::NetParameter* SolverParameter::mutable_net_param() {
7455 set_has_net_param();
7456 if (net_param_ == NULL) net_param_ = new ::caffe::NetParameter;
7457 return net_param_;
7458 }
7459 inline ::caffe::NetParameter* SolverParameter::release_net_param() {
7460 clear_has_net_param();
7461 ::caffe::NetParameter* temp = net_param_;
7462 net_param_ = NULL;
7463 return temp;
7464 }
7465 inline void SolverParameter::set_allocated_net_param(::caffe::NetParameter* net_param) {
7466 delete net_param_;
7467 net_param_ = net_param;
7468 if (net_param) {
7469 set_has_net_param();
7470 } else {
7471 clear_has_net_param();
7472 }
7473 }
7475 // optional string train_net = 1;
7476 inline bool SolverParameter::has_train_net() const {
7477 return (_has_bits_[0] & 0x00000004u) != 0;
7478 }
7479 inline void SolverParameter::set_has_train_net() {
7480 _has_bits_[0] |= 0x00000004u;
7481 }
7482 inline void SolverParameter::clear_has_train_net() {
7483 _has_bits_[0] &= ~0x00000004u;
7484 }
7485 inline void SolverParameter::clear_train_net() {
7486 if (train_net_ != &::google::protobuf::internal::kEmptyString) {
7487 train_net_->clear();
7488 }
7489 clear_has_train_net();
7490 }
7491 inline const ::std::string& SolverParameter::train_net() const {
7492 return *train_net_;
7493 }
7494 inline void SolverParameter::set_train_net(const ::std::string& value) {
7495 set_has_train_net();
7496 if (train_net_ == &::google::protobuf::internal::kEmptyString) {
7497 train_net_ = new ::std::string;
7498 }
7499 train_net_->assign(value);
7500 }
7501 inline void SolverParameter::set_train_net(const char* value) {
7502 set_has_train_net();
7503 if (train_net_ == &::google::protobuf::internal::kEmptyString) {
7504 train_net_ = new ::std::string;
7505 }
7506 train_net_->assign(value);
7507 }
7508 inline void SolverParameter::set_train_net(const char* value, size_t size) {
7509 set_has_train_net();
7510 if (train_net_ == &::google::protobuf::internal::kEmptyString) {
7511 train_net_ = new ::std::string;
7512 }
7513 train_net_->assign(reinterpret_cast<const char*>(value), size);
7514 }
7515 inline ::std::string* SolverParameter::mutable_train_net() {
7516 set_has_train_net();
7517 if (train_net_ == &::google::protobuf::internal::kEmptyString) {
7518 train_net_ = new ::std::string;
7519 }
7520 return train_net_;
7521 }
7522 inline ::std::string* SolverParameter::release_train_net() {
7523 clear_has_train_net();
7524 if (train_net_ == &::google::protobuf::internal::kEmptyString) {
7525 return NULL;
7526 } else {
7527 ::std::string* temp = train_net_;
7528 train_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
7529 return temp;
7530 }
7531 }
7532 inline void SolverParameter::set_allocated_train_net(::std::string* train_net) {
7533 if (train_net_ != &::google::protobuf::internal::kEmptyString) {
7534 delete train_net_;
7535 }
7536 if (train_net) {
7537 set_has_train_net();
7538 train_net_ = train_net;
7539 } else {
7540 clear_has_train_net();
7541 train_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
7542 }
7543 }
7545 // repeated string test_net = 2;
7546 inline int SolverParameter::test_net_size() const {
7547 return test_net_.size();
7548 }
7549 inline void SolverParameter::clear_test_net() {
7550 test_net_.Clear();
7551 }
7552 inline const ::std::string& SolverParameter::test_net(int index) const {
7553 return test_net_.Get(index);
7554 }
7555 inline ::std::string* SolverParameter::mutable_test_net(int index) {
7556 return test_net_.Mutable(index);
7557 }
7558 inline void SolverParameter::set_test_net(int index, const ::std::string& value) {
7559 test_net_.Mutable(index)->assign(value);
7560 }
7561 inline void SolverParameter::set_test_net(int index, const char* value) {
7562 test_net_.Mutable(index)->assign(value);
7563 }
7564 inline void SolverParameter::set_test_net(int index, const char* value, size_t size) {
7565 test_net_.Mutable(index)->assign(
7566 reinterpret_cast<const char*>(value), size);
7567 }
7568 inline ::std::string* SolverParameter::add_test_net() {
7569 return test_net_.Add();
7570 }
7571 inline void SolverParameter::add_test_net(const ::std::string& value) {
7572 test_net_.Add()->assign(value);
7573 }
7574 inline void SolverParameter::add_test_net(const char* value) {
7575 test_net_.Add()->assign(value);
7576 }
7577 inline void SolverParameter::add_test_net(const char* value, size_t size) {
7578 test_net_.Add()->assign(reinterpret_cast<const char*>(value), size);
7579 }
7580 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
7581 SolverParameter::test_net() const {
7582 return test_net_;
7583 }
7584 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
7585 SolverParameter::mutable_test_net() {
7586 return &test_net_;
7587 }
7589 // optional .caffe.NetParameter train_net_param = 21;
7590 inline bool SolverParameter::has_train_net_param() const {
7591 return (_has_bits_[0] & 0x00000010u) != 0;
7592 }
7593 inline void SolverParameter::set_has_train_net_param() {
7594 _has_bits_[0] |= 0x00000010u;
7595 }
7596 inline void SolverParameter::clear_has_train_net_param() {
7597 _has_bits_[0] &= ~0x00000010u;
7598 }
7599 inline void SolverParameter::clear_train_net_param() {
7600 if (train_net_param_ != NULL) train_net_param_->::caffe::NetParameter::Clear();
7601 clear_has_train_net_param();
7602 }
7603 inline const ::caffe::NetParameter& SolverParameter::train_net_param() const {
7604 return train_net_param_ != NULL ? *train_net_param_ : *default_instance_->train_net_param_;
7605 }
7606 inline ::caffe::NetParameter* SolverParameter::mutable_train_net_param() {
7607 set_has_train_net_param();
7608 if (train_net_param_ == NULL) train_net_param_ = new ::caffe::NetParameter;
7609 return train_net_param_;
7610 }
7611 inline ::caffe::NetParameter* SolverParameter::release_train_net_param() {
7612 clear_has_train_net_param();
7613 ::caffe::NetParameter* temp = train_net_param_;
7614 train_net_param_ = NULL;
7615 return temp;
7616 }
7617 inline void SolverParameter::set_allocated_train_net_param(::caffe::NetParameter* train_net_param) {
7618 delete train_net_param_;
7619 train_net_param_ = train_net_param;
7620 if (train_net_param) {
7621 set_has_train_net_param();
7622 } else {
7623 clear_has_train_net_param();
7624 }
7625 }
7627 // repeated .caffe.NetParameter test_net_param = 22;
7628 inline int SolverParameter::test_net_param_size() const {
7629 return test_net_param_.size();
7630 }
7631 inline void SolverParameter::clear_test_net_param() {
7632 test_net_param_.Clear();
7633 }
7634 inline const ::caffe::NetParameter& SolverParameter::test_net_param(int index) const {
7635 return test_net_param_.Get(index);
7636 }
7637 inline ::caffe::NetParameter* SolverParameter::mutable_test_net_param(int index) {
7638 return test_net_param_.Mutable(index);
7639 }
7640 inline ::caffe::NetParameter* SolverParameter::add_test_net_param() {
7641 return test_net_param_.Add();
7642 }
7643 inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter >&
7644 SolverParameter::test_net_param() const {
7645 return test_net_param_;
7646 }
7647 inline ::google::protobuf::RepeatedPtrField< ::caffe::NetParameter >*
7648 SolverParameter::mutable_test_net_param() {
7649 return &test_net_param_;
7650 }
7652 // optional .caffe.NetState train_state = 26;
7653 inline bool SolverParameter::has_train_state() const {
7654 return (_has_bits_[0] & 0x00000040u) != 0;
7655 }
7656 inline void SolverParameter::set_has_train_state() {
7657 _has_bits_[0] |= 0x00000040u;
7658 }
7659 inline void SolverParameter::clear_has_train_state() {
7660 _has_bits_[0] &= ~0x00000040u;
7661 }
7662 inline void SolverParameter::clear_train_state() {
7663 if (train_state_ != NULL) train_state_->::caffe::NetState::Clear();
7664 clear_has_train_state();
7665 }
7666 inline const ::caffe::NetState& SolverParameter::train_state() const {
7667 return train_state_ != NULL ? *train_state_ : *default_instance_->train_state_;
7668 }
7669 inline ::caffe::NetState* SolverParameter::mutable_train_state() {
7670 set_has_train_state();
7671 if (train_state_ == NULL) train_state_ = new ::caffe::NetState;
7672 return train_state_;
7673 }
7674 inline ::caffe::NetState* SolverParameter::release_train_state() {
7675 clear_has_train_state();
7676 ::caffe::NetState* temp = train_state_;
7677 train_state_ = NULL;
7678 return temp;
7679 }
7680 inline void SolverParameter::set_allocated_train_state(::caffe::NetState* train_state) {
7681 delete train_state_;
7682 train_state_ = train_state;
7683 if (train_state) {
7684 set_has_train_state();
7685 } else {
7686 clear_has_train_state();
7687 }
7688 }
7690 // repeated .caffe.NetState test_state = 27;
7691 inline int SolverParameter::test_state_size() const {
7692 return test_state_.size();
7693 }
7694 inline void SolverParameter::clear_test_state() {
7695 test_state_.Clear();
7696 }
7697 inline const ::caffe::NetState& SolverParameter::test_state(int index) const {
7698 return test_state_.Get(index);
7699 }
7700 inline ::caffe::NetState* SolverParameter::mutable_test_state(int index) {
7701 return test_state_.Mutable(index);
7702 }
7703 inline ::caffe::NetState* SolverParameter::add_test_state() {
7704 return test_state_.Add();
7705 }
7706 inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetState >&
7707 SolverParameter::test_state() const {
7708 return test_state_;
7709 }
7710 inline ::google::protobuf::RepeatedPtrField< ::caffe::NetState >*
7711 SolverParameter::mutable_test_state() {
7712 return &test_state_;
7713 }
7715 // repeated int32 test_iter = 3;
7716 inline int SolverParameter::test_iter_size() const {
7717 return test_iter_.size();
7718 }
7719 inline void SolverParameter::clear_test_iter() {
7720 test_iter_.Clear();
7721 }
7722 inline ::google::protobuf::int32 SolverParameter::test_iter(int index) const {
7723 return test_iter_.Get(index);
7724 }
7725 inline void SolverParameter::set_test_iter(int index, ::google::protobuf::int32 value) {
7726 test_iter_.Set(index, value);
7727 }
7728 inline void SolverParameter::add_test_iter(::google::protobuf::int32 value) {
7729 test_iter_.Add(value);
7730 }
7731 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
7732 SolverParameter::test_iter() const {
7733 return test_iter_;
7734 }
7735 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
7736 SolverParameter::mutable_test_iter() {
7737 return &test_iter_;
7738 }
7740 // optional int32 test_interval = 4 [default = 0];
7741 inline bool SolverParameter::has_test_interval() const {
7742 return (_has_bits_[0] & 0x00000200u) != 0;
7743 }
7744 inline void SolverParameter::set_has_test_interval() {
7745 _has_bits_[0] |= 0x00000200u;
7746 }
7747 inline void SolverParameter::clear_has_test_interval() {
7748 _has_bits_[0] &= ~0x00000200u;
7749 }
7750 inline void SolverParameter::clear_test_interval() {
7751 test_interval_ = 0;
7752 clear_has_test_interval();
7753 }
7754 inline ::google::protobuf::int32 SolverParameter::test_interval() const {
7755 return test_interval_;
7756 }
7757 inline void SolverParameter::set_test_interval(::google::protobuf::int32 value) {
7758 set_has_test_interval();
7759 test_interval_ = value;
7760 }
7762 // optional bool test_compute_loss = 19 [default = false];
7763 inline bool SolverParameter::has_test_compute_loss() const {
7764 return (_has_bits_[0] & 0x00000400u) != 0;
7765 }
7766 inline void SolverParameter::set_has_test_compute_loss() {
7767 _has_bits_[0] |= 0x00000400u;
7768 }
7769 inline void SolverParameter::clear_has_test_compute_loss() {
7770 _has_bits_[0] &= ~0x00000400u;
7771 }
7772 inline void SolverParameter::clear_test_compute_loss() {
7773 test_compute_loss_ = false;
7774 clear_has_test_compute_loss();
7775 }
7776 inline bool SolverParameter::test_compute_loss() const {
7777 return test_compute_loss_;
7778 }
7779 inline void SolverParameter::set_test_compute_loss(bool value) {
7780 set_has_test_compute_loss();
7781 test_compute_loss_ = value;
7782 }
7784 // optional bool test_initialization = 32 [default = true];
7785 inline bool SolverParameter::has_test_initialization() const {
7786 return (_has_bits_[0] & 0x00000800u) != 0;
7787 }
7788 inline void SolverParameter::set_has_test_initialization() {
7789 _has_bits_[0] |= 0x00000800u;
7790 }
7791 inline void SolverParameter::clear_has_test_initialization() {
7792 _has_bits_[0] &= ~0x00000800u;
7793 }
7794 inline void SolverParameter::clear_test_initialization() {
7795 test_initialization_ = true;
7796 clear_has_test_initialization();
7797 }
7798 inline bool SolverParameter::test_initialization() const {
7799 return test_initialization_;
7800 }
7801 inline void SolverParameter::set_test_initialization(bool value) {
7802 set_has_test_initialization();
7803 test_initialization_ = value;
7804 }
7806 // optional float base_lr = 5;
7807 inline bool SolverParameter::has_base_lr() const {
7808 return (_has_bits_[0] & 0x00001000u) != 0;
7809 }
7810 inline void SolverParameter::set_has_base_lr() {
7811 _has_bits_[0] |= 0x00001000u;
7812 }
7813 inline void SolverParameter::clear_has_base_lr() {
7814 _has_bits_[0] &= ~0x00001000u;
7815 }
7816 inline void SolverParameter::clear_base_lr() {
7817 base_lr_ = 0;
7818 clear_has_base_lr();
7819 }
7820 inline float SolverParameter::base_lr() const {
7821 return base_lr_;
7822 }
7823 inline void SolverParameter::set_base_lr(float value) {
7824 set_has_base_lr();
7825 base_lr_ = value;
7826 }
7828 // optional int32 display = 6;
7829 inline bool SolverParameter::has_display() const {
7830 return (_has_bits_[0] & 0x00002000u) != 0;
7831 }
7832 inline void SolverParameter::set_has_display() {
7833 _has_bits_[0] |= 0x00002000u;
7834 }
7835 inline void SolverParameter::clear_has_display() {
7836 _has_bits_[0] &= ~0x00002000u;
7837 }
7838 inline void SolverParameter::clear_display() {
7839 display_ = 0;
7840 clear_has_display();
7841 }
7842 inline ::google::protobuf::int32 SolverParameter::display() const {
7843 return display_;
7844 }
7845 inline void SolverParameter::set_display(::google::protobuf::int32 value) {
7846 set_has_display();
7847 display_ = value;
7848 }
7850 // optional int32 average_loss = 33 [default = 1];
7851 inline bool SolverParameter::has_average_loss() const {
7852 return (_has_bits_[0] & 0x00004000u) != 0;
7853 }
7854 inline void SolverParameter::set_has_average_loss() {
7855 _has_bits_[0] |= 0x00004000u;
7856 }
7857 inline void SolverParameter::clear_has_average_loss() {
7858 _has_bits_[0] &= ~0x00004000u;
7859 }
7860 inline void SolverParameter::clear_average_loss() {
7861 average_loss_ = 1;
7862 clear_has_average_loss();
7863 }
7864 inline ::google::protobuf::int32 SolverParameter::average_loss() const {
7865 return average_loss_;
7866 }
7867 inline void SolverParameter::set_average_loss(::google::protobuf::int32 value) {
7868 set_has_average_loss();
7869 average_loss_ = value;
7870 }
7872 // optional int32 max_iter = 7;
7873 inline bool SolverParameter::has_max_iter() const {
7874 return (_has_bits_[0] & 0x00008000u) != 0;
7875 }
7876 inline void SolverParameter::set_has_max_iter() {
7877 _has_bits_[0] |= 0x00008000u;
7878 }
7879 inline void SolverParameter::clear_has_max_iter() {
7880 _has_bits_[0] &= ~0x00008000u;
7881 }
7882 inline void SolverParameter::clear_max_iter() {
7883 max_iter_ = 0;
7884 clear_has_max_iter();
7885 }
7886 inline ::google::protobuf::int32 SolverParameter::max_iter() const {
7887 return max_iter_;
7888 }
7889 inline void SolverParameter::set_max_iter(::google::protobuf::int32 value) {
7890 set_has_max_iter();
7891 max_iter_ = value;
7892 }
7894 // optional string lr_policy = 8;
7895 inline bool SolverParameter::has_lr_policy() const {
7896 return (_has_bits_[0] & 0x00010000u) != 0;
7897 }
7898 inline void SolverParameter::set_has_lr_policy() {
7899 _has_bits_[0] |= 0x00010000u;
7900 }
7901 inline void SolverParameter::clear_has_lr_policy() {
7902 _has_bits_[0] &= ~0x00010000u;
7903 }
7904 inline void SolverParameter::clear_lr_policy() {
7905 if (lr_policy_ != &::google::protobuf::internal::kEmptyString) {
7906 lr_policy_->clear();
7907 }
7908 clear_has_lr_policy();
7909 }
7910 inline const ::std::string& SolverParameter::lr_policy() const {
7911 return *lr_policy_;
7912 }
7913 inline void SolverParameter::set_lr_policy(const ::std::string& value) {
7914 set_has_lr_policy();
7915 if (lr_policy_ == &::google::protobuf::internal::kEmptyString) {
7916 lr_policy_ = new ::std::string;
7917 }
7918 lr_policy_->assign(value);
7919 }
7920 inline void SolverParameter::set_lr_policy(const char* value) {
7921 set_has_lr_policy();
7922 if (lr_policy_ == &::google::protobuf::internal::kEmptyString) {
7923 lr_policy_ = new ::std::string;
7924 }
7925 lr_policy_->assign(value);
7926 }
7927 inline void SolverParameter::set_lr_policy(const char* value, size_t size) {
7928 set_has_lr_policy();
7929 if (lr_policy_ == &::google::protobuf::internal::kEmptyString) {
7930 lr_policy_ = new ::std::string;
7931 }
7932 lr_policy_->assign(reinterpret_cast<const char*>(value), size);
7933 }
7934 inline ::std::string* SolverParameter::mutable_lr_policy() {
7935 set_has_lr_policy();
7936 if (lr_policy_ == &::google::protobuf::internal::kEmptyString) {
7937 lr_policy_ = new ::std::string;
7938 }
7939 return lr_policy_;
7940 }
7941 inline ::std::string* SolverParameter::release_lr_policy() {
7942 clear_has_lr_policy();
7943 if (lr_policy_ == &::google::protobuf::internal::kEmptyString) {
7944 return NULL;
7945 } else {
7946 ::std::string* temp = lr_policy_;
7947 lr_policy_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
7948 return temp;
7949 }
7950 }
7951 inline void SolverParameter::set_allocated_lr_policy(::std::string* lr_policy) {
7952 if (lr_policy_ != &::google::protobuf::internal::kEmptyString) {
7953 delete lr_policy_;
7954 }
7955 if (lr_policy) {
7956 set_has_lr_policy();
7957 lr_policy_ = lr_policy;
7958 } else {
7959 clear_has_lr_policy();
7960 lr_policy_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
7961 }
7962 }
7964 // optional float gamma = 9;
7965 inline bool SolverParameter::has_gamma() const {
7966 return (_has_bits_[0] & 0x00020000u) != 0;
7967 }
7968 inline void SolverParameter::set_has_gamma() {
7969 _has_bits_[0] |= 0x00020000u;
7970 }
7971 inline void SolverParameter::clear_has_gamma() {
7972 _has_bits_[0] &= ~0x00020000u;
7973 }
7974 inline void SolverParameter::clear_gamma() {
7975 gamma_ = 0;
7976 clear_has_gamma();
7977 }
7978 inline float SolverParameter::gamma() const {
7979 return gamma_;
7980 }
7981 inline void SolverParameter::set_gamma(float value) {
7982 set_has_gamma();
7983 gamma_ = value;
7984 }
7986 // optional float power = 10;
7987 inline bool SolverParameter::has_power() const {
7988 return (_has_bits_[0] & 0x00040000u) != 0;
7989 }
7990 inline void SolverParameter::set_has_power() {
7991 _has_bits_[0] |= 0x00040000u;
7992 }
7993 inline void SolverParameter::clear_has_power() {
7994 _has_bits_[0] &= ~0x00040000u;
7995 }
7996 inline void SolverParameter::clear_power() {
7997 power_ = 0;
7998 clear_has_power();
7999 }
8000 inline float SolverParameter::power() const {
8001 return power_;
8002 }
8003 inline void SolverParameter::set_power(float value) {
8004 set_has_power();
8005 power_ = value;
8006 }
8008 // optional float momentum = 11;
8009 inline bool SolverParameter::has_momentum() const {
8010 return (_has_bits_[0] & 0x00080000u) != 0;
8011 }
8012 inline void SolverParameter::set_has_momentum() {
8013 _has_bits_[0] |= 0x00080000u;
8014 }
8015 inline void SolverParameter::clear_has_momentum() {
8016 _has_bits_[0] &= ~0x00080000u;
8017 }
8018 inline void SolverParameter::clear_momentum() {
8019 momentum_ = 0;
8020 clear_has_momentum();
8021 }
8022 inline float SolverParameter::momentum() const {
8023 return momentum_;
8024 }
8025 inline void SolverParameter::set_momentum(float value) {
8026 set_has_momentum();
8027 momentum_ = value;
8028 }
8030 // optional float weight_decay = 12;
8031 inline bool SolverParameter::has_weight_decay() const {
8032 return (_has_bits_[0] & 0x00100000u) != 0;
8033 }
8034 inline void SolverParameter::set_has_weight_decay() {
8035 _has_bits_[0] |= 0x00100000u;
8036 }
8037 inline void SolverParameter::clear_has_weight_decay() {
8038 _has_bits_[0] &= ~0x00100000u;
8039 }
8040 inline void SolverParameter::clear_weight_decay() {
8041 weight_decay_ = 0;
8042 clear_has_weight_decay();
8043 }
8044 inline float SolverParameter::weight_decay() const {
8045 return weight_decay_;
8046 }
8047 inline void SolverParameter::set_weight_decay(float value) {
8048 set_has_weight_decay();
8049 weight_decay_ = value;
8050 }
8052 // optional string regularization_type = 29 [default = "L2"];
8053 inline bool SolverParameter::has_regularization_type() const {
8054 return (_has_bits_[0] & 0x00200000u) != 0;
8055 }
8056 inline void SolverParameter::set_has_regularization_type() {
8057 _has_bits_[0] |= 0x00200000u;
8058 }
8059 inline void SolverParameter::clear_has_regularization_type() {
8060 _has_bits_[0] &= ~0x00200000u;
8061 }
8062 inline void SolverParameter::clear_regularization_type() {
8063 if (regularization_type_ != _default_regularization_type_) {
8064 regularization_type_->assign(*_default_regularization_type_);
8065 }
8066 clear_has_regularization_type();
8067 }
8068 inline const ::std::string& SolverParameter::regularization_type() const {
8069 return *regularization_type_;
8070 }
8071 inline void SolverParameter::set_regularization_type(const ::std::string& value) {
8072 set_has_regularization_type();
8073 if (regularization_type_ == _default_regularization_type_) {
8074 regularization_type_ = new ::std::string;
8075 }
8076 regularization_type_->assign(value);
8077 }
8078 inline void SolverParameter::set_regularization_type(const char* value) {
8079 set_has_regularization_type();
8080 if (regularization_type_ == _default_regularization_type_) {
8081 regularization_type_ = new ::std::string;
8082 }
8083 regularization_type_->assign(value);
8084 }
8085 inline void SolverParameter::set_regularization_type(const char* value, size_t size) {
8086 set_has_regularization_type();
8087 if (regularization_type_ == _default_regularization_type_) {
8088 regularization_type_ = new ::std::string;
8089 }
8090 regularization_type_->assign(reinterpret_cast<const char*>(value), size);
8091 }
8092 inline ::std::string* SolverParameter::mutable_regularization_type() {
8093 set_has_regularization_type();
8094 if (regularization_type_ == _default_regularization_type_) {
8095 regularization_type_ = new ::std::string(*_default_regularization_type_);
8096 }
8097 return regularization_type_;
8098 }
8099 inline ::std::string* SolverParameter::release_regularization_type() {
8100 clear_has_regularization_type();
8101 if (regularization_type_ == _default_regularization_type_) {
8102 return NULL;
8103 } else {
8104 ::std::string* temp = regularization_type_;
8105 regularization_type_ = const_cast< ::std::string*>(_default_regularization_type_);
8106 return temp;
8107 }
8108 }
8109 inline void SolverParameter::set_allocated_regularization_type(::std::string* regularization_type) {
8110 if (regularization_type_ != _default_regularization_type_) {
8111 delete regularization_type_;
8112 }
8113 if (regularization_type) {
8114 set_has_regularization_type();
8115 regularization_type_ = regularization_type;
8116 } else {
8117 clear_has_regularization_type();
8118 regularization_type_ = const_cast< ::std::string*>(_default_regularization_type_);
8119 }
8120 }
8122 // optional int32 stepsize = 13;
8123 inline bool SolverParameter::has_stepsize() const {
8124 return (_has_bits_[0] & 0x00400000u) != 0;
8125 }
8126 inline void SolverParameter::set_has_stepsize() {
8127 _has_bits_[0] |= 0x00400000u;
8128 }
8129 inline void SolverParameter::clear_has_stepsize() {
8130 _has_bits_[0] &= ~0x00400000u;
8131 }
8132 inline void SolverParameter::clear_stepsize() {
8133 stepsize_ = 0;
8134 clear_has_stepsize();
8135 }
8136 inline ::google::protobuf::int32 SolverParameter::stepsize() const {
8137 return stepsize_;
8138 }
8139 inline void SolverParameter::set_stepsize(::google::protobuf::int32 value) {
8140 set_has_stepsize();
8141 stepsize_ = value;
8142 }
8144 // repeated int32 stepvalue = 34;
8145 inline int SolverParameter::stepvalue_size() const {
8146 return stepvalue_.size();
8147 }
8148 inline void SolverParameter::clear_stepvalue() {
8149 stepvalue_.Clear();
8150 }
8151 inline ::google::protobuf::int32 SolverParameter::stepvalue(int index) const {
8152 return stepvalue_.Get(index);
8153 }
8154 inline void SolverParameter::set_stepvalue(int index, ::google::protobuf::int32 value) {
8155 stepvalue_.Set(index, value);
8156 }
8157 inline void SolverParameter::add_stepvalue(::google::protobuf::int32 value) {
8158 stepvalue_.Add(value);
8159 }
8160 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
8161 SolverParameter::stepvalue() const {
8162 return stepvalue_;
8163 }
8164 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
8165 SolverParameter::mutable_stepvalue() {
8166 return &stepvalue_;
8167 }
8169 // optional int32 snapshot = 14 [default = 0];
8170 inline bool SolverParameter::has_snapshot() const {
8171 return (_has_bits_[0] & 0x01000000u) != 0;
8172 }
8173 inline void SolverParameter::set_has_snapshot() {
8174 _has_bits_[0] |= 0x01000000u;
8175 }
8176 inline void SolverParameter::clear_has_snapshot() {
8177 _has_bits_[0] &= ~0x01000000u;
8178 }
8179 inline void SolverParameter::clear_snapshot() {
8180 snapshot_ = 0;
8181 clear_has_snapshot();
8182 }
8183 inline ::google::protobuf::int32 SolverParameter::snapshot() const {
8184 return snapshot_;
8185 }
8186 inline void SolverParameter::set_snapshot(::google::protobuf::int32 value) {
8187 set_has_snapshot();
8188 snapshot_ = value;
8189 }
8191 // optional string snapshot_prefix = 15;
8192 inline bool SolverParameter::has_snapshot_prefix() const {
8193 return (_has_bits_[0] & 0x02000000u) != 0;
8194 }
8195 inline void SolverParameter::set_has_snapshot_prefix() {
8196 _has_bits_[0] |= 0x02000000u;
8197 }
8198 inline void SolverParameter::clear_has_snapshot_prefix() {
8199 _has_bits_[0] &= ~0x02000000u;
8200 }
8201 inline void SolverParameter::clear_snapshot_prefix() {
8202 if (snapshot_prefix_ != &::google::protobuf::internal::kEmptyString) {
8203 snapshot_prefix_->clear();
8204 }
8205 clear_has_snapshot_prefix();
8206 }
8207 inline const ::std::string& SolverParameter::snapshot_prefix() const {
8208 return *snapshot_prefix_;
8209 }
8210 inline void SolverParameter::set_snapshot_prefix(const ::std::string& value) {
8211 set_has_snapshot_prefix();
8212 if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) {
8213 snapshot_prefix_ = new ::std::string;
8214 }
8215 snapshot_prefix_->assign(value);
8216 }
8217 inline void SolverParameter::set_snapshot_prefix(const char* value) {
8218 set_has_snapshot_prefix();
8219 if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) {
8220 snapshot_prefix_ = new ::std::string;
8221 }
8222 snapshot_prefix_->assign(value);
8223 }
8224 inline void SolverParameter::set_snapshot_prefix(const char* value, size_t size) {
8225 set_has_snapshot_prefix();
8226 if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) {
8227 snapshot_prefix_ = new ::std::string;
8228 }
8229 snapshot_prefix_->assign(reinterpret_cast<const char*>(value), size);
8230 }
8231 inline ::std::string* SolverParameter::mutable_snapshot_prefix() {
8232 set_has_snapshot_prefix();
8233 if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) {
8234 snapshot_prefix_ = new ::std::string;
8235 }
8236 return snapshot_prefix_;
8237 }
8238 inline ::std::string* SolverParameter::release_snapshot_prefix() {
8239 clear_has_snapshot_prefix();
8240 if (snapshot_prefix_ == &::google::protobuf::internal::kEmptyString) {
8241 return NULL;
8242 } else {
8243 ::std::string* temp = snapshot_prefix_;
8244 snapshot_prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
8245 return temp;
8246 }
8247 }
8248 inline void SolverParameter::set_allocated_snapshot_prefix(::std::string* snapshot_prefix) {
8249 if (snapshot_prefix_ != &::google::protobuf::internal::kEmptyString) {
8250 delete snapshot_prefix_;
8251 }
8252 if (snapshot_prefix) {
8253 set_has_snapshot_prefix();
8254 snapshot_prefix_ = snapshot_prefix;
8255 } else {
8256 clear_has_snapshot_prefix();
8257 snapshot_prefix_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
8258 }
8259 }
8261 // optional bool snapshot_diff = 16 [default = false];
8262 inline bool SolverParameter::has_snapshot_diff() const {
8263 return (_has_bits_[0] & 0x04000000u) != 0;
8264 }
8265 inline void SolverParameter::set_has_snapshot_diff() {
8266 _has_bits_[0] |= 0x04000000u;
8267 }
8268 inline void SolverParameter::clear_has_snapshot_diff() {
8269 _has_bits_[0] &= ~0x04000000u;
8270 }
8271 inline void SolverParameter::clear_snapshot_diff() {
8272 snapshot_diff_ = false;
8273 clear_has_snapshot_diff();
8274 }
8275 inline bool SolverParameter::snapshot_diff() const {
8276 return snapshot_diff_;
8277 }
8278 inline void SolverParameter::set_snapshot_diff(bool value) {
8279 set_has_snapshot_diff();
8280 snapshot_diff_ = value;
8281 }
8283 // optional .caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
8284 inline bool SolverParameter::has_solver_mode() const {
8285 return (_has_bits_[0] & 0x08000000u) != 0;
8286 }
8287 inline void SolverParameter::set_has_solver_mode() {
8288 _has_bits_[0] |= 0x08000000u;
8289 }
8290 inline void SolverParameter::clear_has_solver_mode() {
8291 _has_bits_[0] &= ~0x08000000u;
8292 }
8293 inline void SolverParameter::clear_solver_mode() {
8294 solver_mode_ = 1;
8295 clear_has_solver_mode();
8296 }
8297 inline ::caffe::SolverParameter_SolverMode SolverParameter::solver_mode() const {
8298 return static_cast< ::caffe::SolverParameter_SolverMode >(solver_mode_);
8299 }
8300 inline void SolverParameter::set_solver_mode(::caffe::SolverParameter_SolverMode value) {
8301 assert(::caffe::SolverParameter_SolverMode_IsValid(value));
8302 set_has_solver_mode();
8303 solver_mode_ = value;
8304 }
8306 // optional int32 device_id = 18 [default = 0];
8307 inline bool SolverParameter::has_device_id() const {
8308 return (_has_bits_[0] & 0x10000000u) != 0;
8309 }
8310 inline void SolverParameter::set_has_device_id() {
8311 _has_bits_[0] |= 0x10000000u;
8312 }
8313 inline void SolverParameter::clear_has_device_id() {
8314 _has_bits_[0] &= ~0x10000000u;
8315 }
8316 inline void SolverParameter::clear_device_id() {
8317 device_id_ = 0;
8318 clear_has_device_id();
8319 }
8320 inline ::google::protobuf::int32 SolverParameter::device_id() const {
8321 return device_id_;
8322 }
8323 inline void SolverParameter::set_device_id(::google::protobuf::int32 value) {
8324 set_has_device_id();
8325 device_id_ = value;
8326 }
8328 // optional int64 random_seed = 20 [default = -1];
8329 inline bool SolverParameter::has_random_seed() const {
8330 return (_has_bits_[0] & 0x20000000u) != 0;
8331 }
8332 inline void SolverParameter::set_has_random_seed() {
8333 _has_bits_[0] |= 0x20000000u;
8334 }
8335 inline void SolverParameter::clear_has_random_seed() {
8336 _has_bits_[0] &= ~0x20000000u;
8337 }
8338 inline void SolverParameter::clear_random_seed() {
8339 random_seed_ = GOOGLE_LONGLONG(-1);
8340 clear_has_random_seed();
8341 }
8342 inline ::google::protobuf::int64 SolverParameter::random_seed() const {
8343 return random_seed_;
8344 }
8345 inline void SolverParameter::set_random_seed(::google::protobuf::int64 value) {
8346 set_has_random_seed();
8347 random_seed_ = value;
8348 }
8350 // optional .caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
8351 inline bool SolverParameter::has_solver_type() const {
8352 return (_has_bits_[0] & 0x40000000u) != 0;
8353 }
8354 inline void SolverParameter::set_has_solver_type() {
8355 _has_bits_[0] |= 0x40000000u;
8356 }
8357 inline void SolverParameter::clear_has_solver_type() {
8358 _has_bits_[0] &= ~0x40000000u;
8359 }
8360 inline void SolverParameter::clear_solver_type() {
8361 solver_type_ = 0;
8362 clear_has_solver_type();
8363 }
8364 inline ::caffe::SolverParameter_SolverType SolverParameter::solver_type() const {
8365 return static_cast< ::caffe::SolverParameter_SolverType >(solver_type_);
8366 }
8367 inline void SolverParameter::set_solver_type(::caffe::SolverParameter_SolverType value) {
8368 assert(::caffe::SolverParameter_SolverType_IsValid(value));
8369 set_has_solver_type();
8370 solver_type_ = value;
8371 }
8373 // optional float delta = 31 [default = 1e-08];
8374 inline bool SolverParameter::has_delta() const {
8375 return (_has_bits_[0] & 0x80000000u) != 0;
8376 }
8377 inline void SolverParameter::set_has_delta() {
8378 _has_bits_[0] |= 0x80000000u;
8379 }
8380 inline void SolverParameter::clear_has_delta() {
8381 _has_bits_[0] &= ~0x80000000u;
8382 }
8383 inline void SolverParameter::clear_delta() {
8384 delta_ = 1e-08f;
8385 clear_has_delta();
8386 }
8387 inline float SolverParameter::delta() const {
8388 return delta_;
8389 }
8390 inline void SolverParameter::set_delta(float value) {
8391 set_has_delta();
8392 delta_ = value;
8393 }
8395 // optional bool debug_info = 23 [default = false];
8396 inline bool SolverParameter::has_debug_info() const {
8397 return (_has_bits_[1] & 0x00000001u) != 0;
8398 }
8399 inline void SolverParameter::set_has_debug_info() {
8400 _has_bits_[1] |= 0x00000001u;
8401 }
8402 inline void SolverParameter::clear_has_debug_info() {
8403 _has_bits_[1] &= ~0x00000001u;
8404 }
8405 inline void SolverParameter::clear_debug_info() {
8406 debug_info_ = false;
8407 clear_has_debug_info();
8408 }
8409 inline bool SolverParameter::debug_info() const {
8410 return debug_info_;
8411 }
8412 inline void SolverParameter::set_debug_info(bool value) {
8413 set_has_debug_info();
8414 debug_info_ = value;
8415 }
8417 // optional bool snapshot_after_train = 28 [default = true];
8418 inline bool SolverParameter::has_snapshot_after_train() const {
8419 return (_has_bits_[1] & 0x00000002u) != 0;
8420 }
8421 inline void SolverParameter::set_has_snapshot_after_train() {
8422 _has_bits_[1] |= 0x00000002u;
8423 }
8424 inline void SolverParameter::clear_has_snapshot_after_train() {
8425 _has_bits_[1] &= ~0x00000002u;
8426 }
8427 inline void SolverParameter::clear_snapshot_after_train() {
8428 snapshot_after_train_ = true;
8429 clear_has_snapshot_after_train();
8430 }
8431 inline bool SolverParameter::snapshot_after_train() const {
8432 return snapshot_after_train_;
8433 }
8434 inline void SolverParameter::set_snapshot_after_train(bool value) {
8435 set_has_snapshot_after_train();
8436 snapshot_after_train_ = value;
8437 }
8439 // -------------------------------------------------------------------
8441 // SolverState
8443 // optional int32 iter = 1;
8444 inline bool SolverState::has_iter() const {
8445 return (_has_bits_[0] & 0x00000001u) != 0;
8446 }
8447 inline void SolverState::set_has_iter() {
8448 _has_bits_[0] |= 0x00000001u;
8449 }
8450 inline void SolverState::clear_has_iter() {
8451 _has_bits_[0] &= ~0x00000001u;
8452 }
8453 inline void SolverState::clear_iter() {
8454 iter_ = 0;
8455 clear_has_iter();
8456 }
8457 inline ::google::protobuf::int32 SolverState::iter() const {
8458 return iter_;
8459 }
8460 inline void SolverState::set_iter(::google::protobuf::int32 value) {
8461 set_has_iter();
8462 iter_ = value;
8463 }
8465 // optional string learned_net = 2;
8466 inline bool SolverState::has_learned_net() const {
8467 return (_has_bits_[0] & 0x00000002u) != 0;
8468 }
8469 inline void SolverState::set_has_learned_net() {
8470 _has_bits_[0] |= 0x00000002u;
8471 }
8472 inline void SolverState::clear_has_learned_net() {
8473 _has_bits_[0] &= ~0x00000002u;
8474 }
8475 inline void SolverState::clear_learned_net() {
8476 if (learned_net_ != &::google::protobuf::internal::kEmptyString) {
8477 learned_net_->clear();
8478 }
8479 clear_has_learned_net();
8480 }
8481 inline const ::std::string& SolverState::learned_net() const {
8482 return *learned_net_;
8483 }
8484 inline void SolverState::set_learned_net(const ::std::string& value) {
8485 set_has_learned_net();
8486 if (learned_net_ == &::google::protobuf::internal::kEmptyString) {
8487 learned_net_ = new ::std::string;
8488 }
8489 learned_net_->assign(value);
8490 }
8491 inline void SolverState::set_learned_net(const char* value) {
8492 set_has_learned_net();
8493 if (learned_net_ == &::google::protobuf::internal::kEmptyString) {
8494 learned_net_ = new ::std::string;
8495 }
8496 learned_net_->assign(value);
8497 }
8498 inline void SolverState::set_learned_net(const char* value, size_t size) {
8499 set_has_learned_net();
8500 if (learned_net_ == &::google::protobuf::internal::kEmptyString) {
8501 learned_net_ = new ::std::string;
8502 }
8503 learned_net_->assign(reinterpret_cast<const char*>(value), size);
8504 }
8505 inline ::std::string* SolverState::mutable_learned_net() {
8506 set_has_learned_net();
8507 if (learned_net_ == &::google::protobuf::internal::kEmptyString) {
8508 learned_net_ = new ::std::string;
8509 }
8510 return learned_net_;
8511 }
8512 inline ::std::string* SolverState::release_learned_net() {
8513 clear_has_learned_net();
8514 if (learned_net_ == &::google::protobuf::internal::kEmptyString) {
8515 return NULL;
8516 } else {
8517 ::std::string* temp = learned_net_;
8518 learned_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
8519 return temp;
8520 }
8521 }
8522 inline void SolverState::set_allocated_learned_net(::std::string* learned_net) {
8523 if (learned_net_ != &::google::protobuf::internal::kEmptyString) {
8524 delete learned_net_;
8525 }
8526 if (learned_net) {
8527 set_has_learned_net();
8528 learned_net_ = learned_net;
8529 } else {
8530 clear_has_learned_net();
8531 learned_net_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
8532 }
8533 }
8535 // repeated .caffe.BlobProto history = 3;
8536 inline int SolverState::history_size() const {
8537 return history_.size();
8538 }
8539 inline void SolverState::clear_history() {
8540 history_.Clear();
8541 }
8542 inline const ::caffe::BlobProto& SolverState::history(int index) const {
8543 return history_.Get(index);
8544 }
8545 inline ::caffe::BlobProto* SolverState::mutable_history(int index) {
8546 return history_.Mutable(index);
8547 }
8548 inline ::caffe::BlobProto* SolverState::add_history() {
8549 return history_.Add();
8550 }
8551 inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >&
8552 SolverState::history() const {
8553 return history_;
8554 }
8555 inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >*
8556 SolverState::mutable_history() {
8557 return &history_;
8558 }
8560 // optional int32 current_step = 4 [default = 0];
8561 inline bool SolverState::has_current_step() const {
8562 return (_has_bits_[0] & 0x00000008u) != 0;
8563 }
8564 inline void SolverState::set_has_current_step() {
8565 _has_bits_[0] |= 0x00000008u;
8566 }
8567 inline void SolverState::clear_has_current_step() {
8568 _has_bits_[0] &= ~0x00000008u;
8569 }
8570 inline void SolverState::clear_current_step() {
8571 current_step_ = 0;
8572 clear_has_current_step();
8573 }
8574 inline ::google::protobuf::int32 SolverState::current_step() const {
8575 return current_step_;
8576 }
8577 inline void SolverState::set_current_step(::google::protobuf::int32 value) {
8578 set_has_current_step();
8579 current_step_ = value;
8580 }
8582 // -------------------------------------------------------------------
8584 // NetState
8586 // optional .caffe.Phase phase = 1 [default = TEST];
8587 inline bool NetState::has_phase() const {
8588 return (_has_bits_[0] & 0x00000001u) != 0;
8589 }
8590 inline void NetState::set_has_phase() {
8591 _has_bits_[0] |= 0x00000001u;
8592 }
8593 inline void NetState::clear_has_phase() {
8594 _has_bits_[0] &= ~0x00000001u;
8595 }
8596 inline void NetState::clear_phase() {
8597 phase_ = 1;
8598 clear_has_phase();
8599 }
8600 inline ::caffe::Phase NetState::phase() const {
8601 return static_cast< ::caffe::Phase >(phase_);
8602 }
8603 inline void NetState::set_phase(::caffe::Phase value) {
8604 assert(::caffe::Phase_IsValid(value));
8605 set_has_phase();
8606 phase_ = value;
8607 }
8609 // optional int32 level = 2 [default = 0];
8610 inline bool NetState::has_level() const {
8611 return (_has_bits_[0] & 0x00000002u) != 0;
8612 }
8613 inline void NetState::set_has_level() {
8614 _has_bits_[0] |= 0x00000002u;
8615 }
8616 inline void NetState::clear_has_level() {
8617 _has_bits_[0] &= ~0x00000002u;
8618 }
8619 inline void NetState::clear_level() {
8620 level_ = 0;
8621 clear_has_level();
8622 }
8623 inline ::google::protobuf::int32 NetState::level() const {
8624 return level_;
8625 }
8626 inline void NetState::set_level(::google::protobuf::int32 value) {
8627 set_has_level();
8628 level_ = value;
8629 }
8631 // repeated string stage = 3;
8632 inline int NetState::stage_size() const {
8633 return stage_.size();
8634 }
8635 inline void NetState::clear_stage() {
8636 stage_.Clear();
8637 }
8638 inline const ::std::string& NetState::stage(int index) const {
8639 return stage_.Get(index);
8640 }
8641 inline ::std::string* NetState::mutable_stage(int index) {
8642 return stage_.Mutable(index);
8643 }
8644 inline void NetState::set_stage(int index, const ::std::string& value) {
8645 stage_.Mutable(index)->assign(value);
8646 }
8647 inline void NetState::set_stage(int index, const char* value) {
8648 stage_.Mutable(index)->assign(value);
8649 }
8650 inline void NetState::set_stage(int index, const char* value, size_t size) {
8651 stage_.Mutable(index)->assign(
8652 reinterpret_cast<const char*>(value), size);
8653 }
8654 inline ::std::string* NetState::add_stage() {
8655 return stage_.Add();
8656 }
8657 inline void NetState::add_stage(const ::std::string& value) {
8658 stage_.Add()->assign(value);
8659 }
8660 inline void NetState::add_stage(const char* value) {
8661 stage_.Add()->assign(value);
8662 }
8663 inline void NetState::add_stage(const char* value, size_t size) {
8664 stage_.Add()->assign(reinterpret_cast<const char*>(value), size);
8665 }
8666 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
8667 NetState::stage() const {
8668 return stage_;
8669 }
8670 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
8671 NetState::mutable_stage() {
8672 return &stage_;
8673 }
8675 // -------------------------------------------------------------------
8677 // NetStateRule
8679 // optional .caffe.Phase phase = 1;
8680 inline bool NetStateRule::has_phase() const {
8681 return (_has_bits_[0] & 0x00000001u) != 0;
8682 }
8683 inline void NetStateRule::set_has_phase() {
8684 _has_bits_[0] |= 0x00000001u;
8685 }
8686 inline void NetStateRule::clear_has_phase() {
8687 _has_bits_[0] &= ~0x00000001u;
8688 }
8689 inline void NetStateRule::clear_phase() {
8690 phase_ = 0;
8691 clear_has_phase();
8692 }
8693 inline ::caffe::Phase NetStateRule::phase() const {
8694 return static_cast< ::caffe::Phase >(phase_);
8695 }
8696 inline void NetStateRule::set_phase(::caffe::Phase value) {
8697 assert(::caffe::Phase_IsValid(value));
8698 set_has_phase();
8699 phase_ = value;
8700 }
8702 // optional int32 min_level = 2;
8703 inline bool NetStateRule::has_min_level() const {
8704 return (_has_bits_[0] & 0x00000002u) != 0;
8705 }
8706 inline void NetStateRule::set_has_min_level() {
8707 _has_bits_[0] |= 0x00000002u;
8708 }
8709 inline void NetStateRule::clear_has_min_level() {
8710 _has_bits_[0] &= ~0x00000002u;
8711 }
8712 inline void NetStateRule::clear_min_level() {
8713 min_level_ = 0;
8714 clear_has_min_level();
8715 }
8716 inline ::google::protobuf::int32 NetStateRule::min_level() const {
8717 return min_level_;
8718 }
8719 inline void NetStateRule::set_min_level(::google::protobuf::int32 value) {
8720 set_has_min_level();
8721 min_level_ = value;
8722 }
8724 // optional int32 max_level = 3;
8725 inline bool NetStateRule::has_max_level() const {
8726 return (_has_bits_[0] & 0x00000004u) != 0;
8727 }
8728 inline void NetStateRule::set_has_max_level() {
8729 _has_bits_[0] |= 0x00000004u;
8730 }
8731 inline void NetStateRule::clear_has_max_level() {
8732 _has_bits_[0] &= ~0x00000004u;
8733 }
8734 inline void NetStateRule::clear_max_level() {
8735 max_level_ = 0;
8736 clear_has_max_level();
8737 }
8738 inline ::google::protobuf::int32 NetStateRule::max_level() const {
8739 return max_level_;
8740 }
8741 inline void NetStateRule::set_max_level(::google::protobuf::int32 value) {
8742 set_has_max_level();
8743 max_level_ = value;
8744 }
8746 // repeated string stage = 4;
8747 inline int NetStateRule::stage_size() const {
8748 return stage_.size();
8749 }
8750 inline void NetStateRule::clear_stage() {
8751 stage_.Clear();
8752 }
8753 inline const ::std::string& NetStateRule::stage(int index) const {
8754 return stage_.Get(index);
8755 }
8756 inline ::std::string* NetStateRule::mutable_stage(int index) {
8757 return stage_.Mutable(index);
8758 }
8759 inline void NetStateRule::set_stage(int index, const ::std::string& value) {
8760 stage_.Mutable(index)->assign(value);
8761 }
8762 inline void NetStateRule::set_stage(int index, const char* value) {
8763 stage_.Mutable(index)->assign(value);
8764 }
8765 inline void NetStateRule::set_stage(int index, const char* value, size_t size) {
8766 stage_.Mutable(index)->assign(
8767 reinterpret_cast<const char*>(value), size);
8768 }
8769 inline ::std::string* NetStateRule::add_stage() {
8770 return stage_.Add();
8771 }
8772 inline void NetStateRule::add_stage(const ::std::string& value) {
8773 stage_.Add()->assign(value);
8774 }
8775 inline void NetStateRule::add_stage(const char* value) {
8776 stage_.Add()->assign(value);
8777 }
8778 inline void NetStateRule::add_stage(const char* value, size_t size) {
8779 stage_.Add()->assign(reinterpret_cast<const char*>(value), size);
8780 }
8781 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
8782 NetStateRule::stage() const {
8783 return stage_;
8784 }
8785 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
8786 NetStateRule::mutable_stage() {
8787 return &stage_;
8788 }
8790 // repeated string not_stage = 5;
8791 inline int NetStateRule::not_stage_size() const {
8792 return not_stage_.size();
8793 }
8794 inline void NetStateRule::clear_not_stage() {
8795 not_stage_.Clear();
8796 }
8797 inline const ::std::string& NetStateRule::not_stage(int index) const {
8798 return not_stage_.Get(index);
8799 }
8800 inline ::std::string* NetStateRule::mutable_not_stage(int index) {
8801 return not_stage_.Mutable(index);
8802 }
8803 inline void NetStateRule::set_not_stage(int index, const ::std::string& value) {
8804 not_stage_.Mutable(index)->assign(value);
8805 }
8806 inline void NetStateRule::set_not_stage(int index, const char* value) {
8807 not_stage_.Mutable(index)->assign(value);
8808 }
8809 inline void NetStateRule::set_not_stage(int index, const char* value, size_t size) {
8810 not_stage_.Mutable(index)->assign(
8811 reinterpret_cast<const char*>(value), size);
8812 }
8813 inline ::std::string* NetStateRule::add_not_stage() {
8814 return not_stage_.Add();
8815 }
8816 inline void NetStateRule::add_not_stage(const ::std::string& value) {
8817 not_stage_.Add()->assign(value);
8818 }
8819 inline void NetStateRule::add_not_stage(const char* value) {
8820 not_stage_.Add()->assign(value);
8821 }
8822 inline void NetStateRule::add_not_stage(const char* value, size_t size) {
8823 not_stage_.Add()->assign(reinterpret_cast<const char*>(value), size);
8824 }
8825 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
8826 NetStateRule::not_stage() const {
8827 return not_stage_;
8828 }
8829 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
8830 NetStateRule::mutable_not_stage() {
8831 return ¬_stage_;
8832 }
8834 // -------------------------------------------------------------------
8836 // LayerParameter
8838 // repeated string bottom = 2;
8839 inline int LayerParameter::bottom_size() const {
8840 return bottom_.size();
8841 }
8842 inline void LayerParameter::clear_bottom() {
8843 bottom_.Clear();
8844 }
8845 inline const ::std::string& LayerParameter::bottom(int index) const {
8846 return bottom_.Get(index);
8847 }
8848 inline ::std::string* LayerParameter::mutable_bottom(int index) {
8849 return bottom_.Mutable(index);
8850 }
8851 inline void LayerParameter::set_bottom(int index, const ::std::string& value) {
8852 bottom_.Mutable(index)->assign(value);
8853 }
8854 inline void LayerParameter::set_bottom(int index, const char* value) {
8855 bottom_.Mutable(index)->assign(value);
8856 }
8857 inline void LayerParameter::set_bottom(int index, const char* value, size_t size) {
8858 bottom_.Mutable(index)->assign(
8859 reinterpret_cast<const char*>(value), size);
8860 }
8861 inline ::std::string* LayerParameter::add_bottom() {
8862 return bottom_.Add();
8863 }
8864 inline void LayerParameter::add_bottom(const ::std::string& value) {
8865 bottom_.Add()->assign(value);
8866 }
8867 inline void LayerParameter::add_bottom(const char* value) {
8868 bottom_.Add()->assign(value);
8869 }
8870 inline void LayerParameter::add_bottom(const char* value, size_t size) {
8871 bottom_.Add()->assign(reinterpret_cast<const char*>(value), size);
8872 }
8873 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
8874 LayerParameter::bottom() const {
8875 return bottom_;
8876 }
8877 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
8878 LayerParameter::mutable_bottom() {
8879 return &bottom_;
8880 }
8882 // repeated string top = 3;
8883 inline int LayerParameter::top_size() const {
8884 return top_.size();
8885 }
8886 inline void LayerParameter::clear_top() {
8887 top_.Clear();
8888 }
8889 inline const ::std::string& LayerParameter::top(int index) const {
8890 return top_.Get(index);
8891 }
8892 inline ::std::string* LayerParameter::mutable_top(int index) {
8893 return top_.Mutable(index);
8894 }
8895 inline void LayerParameter::set_top(int index, const ::std::string& value) {
8896 top_.Mutable(index)->assign(value);
8897 }
8898 inline void LayerParameter::set_top(int index, const char* value) {
8899 top_.Mutable(index)->assign(value);
8900 }
8901 inline void LayerParameter::set_top(int index, const char* value, size_t size) {
8902 top_.Mutable(index)->assign(
8903 reinterpret_cast<const char*>(value), size);
8904 }
8905 inline ::std::string* LayerParameter::add_top() {
8906 return top_.Add();
8907 }
8908 inline void LayerParameter::add_top(const ::std::string& value) {
8909 top_.Add()->assign(value);
8910 }
8911 inline void LayerParameter::add_top(const char* value) {
8912 top_.Add()->assign(value);
8913 }
8914 inline void LayerParameter::add_top(const char* value, size_t size) {
8915 top_.Add()->assign(reinterpret_cast<const char*>(value), size);
8916 }
8917 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
8918 LayerParameter::top() const {
8919 return top_;
8920 }
8921 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
8922 LayerParameter::mutable_top() {
8923 return &top_;
8924 }
8926 // optional string name = 4;
8927 inline bool LayerParameter::has_name() const {
8928 return (_has_bits_[0] & 0x00000004u) != 0;
8929 }
8930 inline void LayerParameter::set_has_name() {
8931 _has_bits_[0] |= 0x00000004u;
8932 }
8933 inline void LayerParameter::clear_has_name() {
8934 _has_bits_[0] &= ~0x00000004u;
8935 }
8936 inline void LayerParameter::clear_name() {
8937 if (name_ != &::google::protobuf::internal::kEmptyString) {
8938 name_->clear();
8939 }
8940 clear_has_name();
8941 }
8942 inline const ::std::string& LayerParameter::name() const {
8943 return *name_;
8944 }
8945 inline void LayerParameter::set_name(const ::std::string& value) {
8946 set_has_name();
8947 if (name_ == &::google::protobuf::internal::kEmptyString) {
8948 name_ = new ::std::string;
8949 }
8950 name_->assign(value);
8951 }
8952 inline void LayerParameter::set_name(const char* value) {
8953 set_has_name();
8954 if (name_ == &::google::protobuf::internal::kEmptyString) {
8955 name_ = new ::std::string;
8956 }
8957 name_->assign(value);
8958 }
8959 inline void LayerParameter::set_name(const char* value, size_t size) {
8960 set_has_name();
8961 if (name_ == &::google::protobuf::internal::kEmptyString) {
8962 name_ = new ::std::string;
8963 }
8964 name_->assign(reinterpret_cast<const char*>(value), size);
8965 }
8966 inline ::std::string* LayerParameter::mutable_name() {
8967 set_has_name();
8968 if (name_ == &::google::protobuf::internal::kEmptyString) {
8969 name_ = new ::std::string;
8970 }
8971 return name_;
8972 }
8973 inline ::std::string* LayerParameter::release_name() {
8974 clear_has_name();
8975 if (name_ == &::google::protobuf::internal::kEmptyString) {
8976 return NULL;
8977 } else {
8978 ::std::string* temp = name_;
8979 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
8980 return temp;
8981 }
8982 }
8983 inline void LayerParameter::set_allocated_name(::std::string* name) {
8984 if (name_ != &::google::protobuf::internal::kEmptyString) {
8985 delete name_;
8986 }
8987 if (name) {
8988 set_has_name();
8989 name_ = name;
8990 } else {
8991 clear_has_name();
8992 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
8993 }
8994 }
8996 // repeated .caffe.NetStateRule include = 32;
8997 inline int LayerParameter::include_size() const {
8998 return include_.size();
8999 }
9000 inline void LayerParameter::clear_include() {
9001 include_.Clear();
9002 }
9003 inline const ::caffe::NetStateRule& LayerParameter::include(int index) const {
9004 return include_.Get(index);
9005 }
9006 inline ::caffe::NetStateRule* LayerParameter::mutable_include(int index) {
9007 return include_.Mutable(index);
9008 }
9009 inline ::caffe::NetStateRule* LayerParameter::add_include() {
9010 return include_.Add();
9011 }
9012 inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >&
9013 LayerParameter::include() const {
9014 return include_;
9015 }
9016 inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >*
9017 LayerParameter::mutable_include() {
9018 return &include_;
9019 }
9021 // repeated .caffe.NetStateRule exclude = 33;
9022 inline int LayerParameter::exclude_size() const {
9023 return exclude_.size();
9024 }
9025 inline void LayerParameter::clear_exclude() {
9026 exclude_.Clear();
9027 }
9028 inline const ::caffe::NetStateRule& LayerParameter::exclude(int index) const {
9029 return exclude_.Get(index);
9030 }
9031 inline ::caffe::NetStateRule* LayerParameter::mutable_exclude(int index) {
9032 return exclude_.Mutable(index);
9033 }
9034 inline ::caffe::NetStateRule* LayerParameter::add_exclude() {
9035 return exclude_.Add();
9036 }
9037 inline const ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >&
9038 LayerParameter::exclude() const {
9039 return exclude_;
9040 }
9041 inline ::google::protobuf::RepeatedPtrField< ::caffe::NetStateRule >*
9042 LayerParameter::mutable_exclude() {
9043 return &exclude_;
9044 }
9046 // optional .caffe.LayerParameter.LayerType type = 5;
9047 inline bool LayerParameter::has_type() const {
9048 return (_has_bits_[0] & 0x00000020u) != 0;
9049 }
9050 inline void LayerParameter::set_has_type() {
9051 _has_bits_[0] |= 0x00000020u;
9052 }
9053 inline void LayerParameter::clear_has_type() {
9054 _has_bits_[0] &= ~0x00000020u;
9055 }
9056 inline void LayerParameter::clear_type() {
9057 type_ = 0;
9058 clear_has_type();
9059 }
9060 inline ::caffe::LayerParameter_LayerType LayerParameter::type() const {
9061 return static_cast< ::caffe::LayerParameter_LayerType >(type_);
9062 }
9063 inline void LayerParameter::set_type(::caffe::LayerParameter_LayerType value) {
9064 assert(::caffe::LayerParameter_LayerType_IsValid(value));
9065 set_has_type();
9066 type_ = value;
9067 }
9069 // repeated .caffe.BlobProto blobs = 6;
9070 inline int LayerParameter::blobs_size() const {
9071 return blobs_.size();
9072 }
9073 inline void LayerParameter::clear_blobs() {
9074 blobs_.Clear();
9075 }
9076 inline const ::caffe::BlobProto& LayerParameter::blobs(int index) const {
9077 return blobs_.Get(index);
9078 }
9079 inline ::caffe::BlobProto* LayerParameter::mutable_blobs(int index) {
9080 return blobs_.Mutable(index);
9081 }
9082 inline ::caffe::BlobProto* LayerParameter::add_blobs() {
9083 return blobs_.Add();
9084 }
9085 inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >&
9086 LayerParameter::blobs() const {
9087 return blobs_;
9088 }
9089 inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >*
9090 LayerParameter::mutable_blobs() {
9091 return &blobs_;
9092 }
9094 // repeated string param = 1001;
9095 inline int LayerParameter::param_size() const {
9096 return param_.size();
9097 }
9098 inline void LayerParameter::clear_param() {
9099 param_.Clear();
9100 }
9101 inline const ::std::string& LayerParameter::param(int index) const {
9102 return param_.Get(index);
9103 }
9104 inline ::std::string* LayerParameter::mutable_param(int index) {
9105 return param_.Mutable(index);
9106 }
9107 inline void LayerParameter::set_param(int index, const ::std::string& value) {
9108 param_.Mutable(index)->assign(value);
9109 }
9110 inline void LayerParameter::set_param(int index, const char* value) {
9111 param_.Mutable(index)->assign(value);
9112 }
9113 inline void LayerParameter::set_param(int index, const char* value, size_t size) {
9114 param_.Mutable(index)->assign(
9115 reinterpret_cast<const char*>(value), size);
9116 }
9117 inline ::std::string* LayerParameter::add_param() {
9118 return param_.Add();
9119 }
9120 inline void LayerParameter::add_param(const ::std::string& value) {
9121 param_.Add()->assign(value);
9122 }
9123 inline void LayerParameter::add_param(const char* value) {
9124 param_.Add()->assign(value);
9125 }
9126 inline void LayerParameter::add_param(const char* value, size_t size) {
9127 param_.Add()->assign(reinterpret_cast<const char*>(value), size);
9128 }
9129 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
9130 LayerParameter::param() const {
9131 return param_;
9132 }
9133 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
9134 LayerParameter::mutable_param() {
9135 return ¶m_;
9136 }
9138 // repeated .caffe.LayerParameter.DimCheckMode blob_share_mode = 1002;
9139 inline int LayerParameter::blob_share_mode_size() const {
9140 return blob_share_mode_.size();
9141 }
9142 inline void LayerParameter::clear_blob_share_mode() {
9143 blob_share_mode_.Clear();
9144 }
9145 inline ::caffe::LayerParameter_DimCheckMode LayerParameter::blob_share_mode(int index) const {
9146 return static_cast< ::caffe::LayerParameter_DimCheckMode >(blob_share_mode_.Get(index));
9147 }
9148 inline void LayerParameter::set_blob_share_mode(int index, ::caffe::LayerParameter_DimCheckMode value) {
9149 assert(::caffe::LayerParameter_DimCheckMode_IsValid(value));
9150 blob_share_mode_.Set(index, value);
9151 }
9152 inline void LayerParameter::add_blob_share_mode(::caffe::LayerParameter_DimCheckMode value) {
9153 assert(::caffe::LayerParameter_DimCheckMode_IsValid(value));
9154 blob_share_mode_.Add(value);
9155 }
9156 inline const ::google::protobuf::RepeatedField<int>&
9157 LayerParameter::blob_share_mode() const {
9158 return blob_share_mode_;
9159 }
9160 inline ::google::protobuf::RepeatedField<int>*
9161 LayerParameter::mutable_blob_share_mode() {
9162 return &blob_share_mode_;
9163 }
9165 // repeated float blobs_lr = 7;
9166 inline int LayerParameter::blobs_lr_size() const {
9167 return blobs_lr_.size();
9168 }
9169 inline void LayerParameter::clear_blobs_lr() {
9170 blobs_lr_.Clear();
9171 }
9172 inline float LayerParameter::blobs_lr(int index) const {
9173 return blobs_lr_.Get(index);
9174 }
9175 inline void LayerParameter::set_blobs_lr(int index, float value) {
9176 blobs_lr_.Set(index, value);
9177 }
9178 inline void LayerParameter::add_blobs_lr(float value) {
9179 blobs_lr_.Add(value);
9180 }
9181 inline const ::google::protobuf::RepeatedField< float >&
9182 LayerParameter::blobs_lr() const {
9183 return blobs_lr_;
9184 }
9185 inline ::google::protobuf::RepeatedField< float >*
9186 LayerParameter::mutable_blobs_lr() {
9187 return &blobs_lr_;
9188 }
9190 // repeated float weight_decay = 8;
9191 inline int LayerParameter::weight_decay_size() const {
9192 return weight_decay_.size();
9193 }
9194 inline void LayerParameter::clear_weight_decay() {
9195 weight_decay_.Clear();
9196 }
9197 inline float LayerParameter::weight_decay(int index) const {
9198 return weight_decay_.Get(index);
9199 }
9200 inline void LayerParameter::set_weight_decay(int index, float value) {
9201 weight_decay_.Set(index, value);
9202 }
9203 inline void LayerParameter::add_weight_decay(float value) {
9204 weight_decay_.Add(value);
9205 }
9206 inline const ::google::protobuf::RepeatedField< float >&
9207 LayerParameter::weight_decay() const {
9208 return weight_decay_;
9209 }
9210 inline ::google::protobuf::RepeatedField< float >*
9211 LayerParameter::mutable_weight_decay() {
9212 return &weight_decay_;
9213 }
9215 // repeated float loss_weight = 35;
9216 inline int LayerParameter::loss_weight_size() const {
9217 return loss_weight_.size();
9218 }
9219 inline void LayerParameter::clear_loss_weight() {
9220 loss_weight_.Clear();
9221 }
9222 inline float LayerParameter::loss_weight(int index) const {
9223 return loss_weight_.Get(index);
9224 }
9225 inline void LayerParameter::set_loss_weight(int index, float value) {
9226 loss_weight_.Set(index, value);
9227 }
9228 inline void LayerParameter::add_loss_weight(float value) {
9229 loss_weight_.Add(value);
9230 }
9231 inline const ::google::protobuf::RepeatedField< float >&
9232 LayerParameter::loss_weight() const {
9233 return loss_weight_;
9234 }
9235 inline ::google::protobuf::RepeatedField< float >*
9236 LayerParameter::mutable_loss_weight() {
9237 return &loss_weight_;
9238 }
9240 // optional .caffe.AccuracyParameter accuracy_param = 27;
9241 inline bool LayerParameter::has_accuracy_param() const {
9242 return (_has_bits_[0] & 0x00001000u) != 0;
9243 }
9244 inline void LayerParameter::set_has_accuracy_param() {
9245 _has_bits_[0] |= 0x00001000u;
9246 }
9247 inline void LayerParameter::clear_has_accuracy_param() {
9248 _has_bits_[0] &= ~0x00001000u;
9249 }
9250 inline void LayerParameter::clear_accuracy_param() {
9251 if (accuracy_param_ != NULL) accuracy_param_->::caffe::AccuracyParameter::Clear();
9252 clear_has_accuracy_param();
9253 }
9254 inline const ::caffe::AccuracyParameter& LayerParameter::accuracy_param() const {
9255 return accuracy_param_ != NULL ? *accuracy_param_ : *default_instance_->accuracy_param_;
9256 }
9257 inline ::caffe::AccuracyParameter* LayerParameter::mutable_accuracy_param() {
9258 set_has_accuracy_param();
9259 if (accuracy_param_ == NULL) accuracy_param_ = new ::caffe::AccuracyParameter;
9260 return accuracy_param_;
9261 }
9262 inline ::caffe::AccuracyParameter* LayerParameter::release_accuracy_param() {
9263 clear_has_accuracy_param();
9264 ::caffe::AccuracyParameter* temp = accuracy_param_;
9265 accuracy_param_ = NULL;
9266 return temp;
9267 }
9268 inline void LayerParameter::set_allocated_accuracy_param(::caffe::AccuracyParameter* accuracy_param) {
9269 delete accuracy_param_;
9270 accuracy_param_ = accuracy_param;
9271 if (accuracy_param) {
9272 set_has_accuracy_param();
9273 } else {
9274 clear_has_accuracy_param();
9275 }
9276 }
9278 // optional .caffe.ArgMaxParameter argmax_param = 23;
9279 inline bool LayerParameter::has_argmax_param() const {
9280 return (_has_bits_[0] & 0x00002000u) != 0;
9281 }
9282 inline void LayerParameter::set_has_argmax_param() {
9283 _has_bits_[0] |= 0x00002000u;
9284 }
9285 inline void LayerParameter::clear_has_argmax_param() {
9286 _has_bits_[0] &= ~0x00002000u;
9287 }
9288 inline void LayerParameter::clear_argmax_param() {
9289 if (argmax_param_ != NULL) argmax_param_->::caffe::ArgMaxParameter::Clear();
9290 clear_has_argmax_param();
9291 }
9292 inline const ::caffe::ArgMaxParameter& LayerParameter::argmax_param() const {
9293 return argmax_param_ != NULL ? *argmax_param_ : *default_instance_->argmax_param_;
9294 }
9295 inline ::caffe::ArgMaxParameter* LayerParameter::mutable_argmax_param() {
9296 set_has_argmax_param();
9297 if (argmax_param_ == NULL) argmax_param_ = new ::caffe::ArgMaxParameter;
9298 return argmax_param_;
9299 }
9300 inline ::caffe::ArgMaxParameter* LayerParameter::release_argmax_param() {
9301 clear_has_argmax_param();
9302 ::caffe::ArgMaxParameter* temp = argmax_param_;
9303 argmax_param_ = NULL;
9304 return temp;
9305 }
9306 inline void LayerParameter::set_allocated_argmax_param(::caffe::ArgMaxParameter* argmax_param) {
9307 delete argmax_param_;
9308 argmax_param_ = argmax_param;
9309 if (argmax_param) {
9310 set_has_argmax_param();
9311 } else {
9312 clear_has_argmax_param();
9313 }
9314 }
9316 // optional .caffe.ConcatParameter concat_param = 9;
9317 inline bool LayerParameter::has_concat_param() const {
9318 return (_has_bits_[0] & 0x00004000u) != 0;
9319 }
9320 inline void LayerParameter::set_has_concat_param() {
9321 _has_bits_[0] |= 0x00004000u;
9322 }
9323 inline void LayerParameter::clear_has_concat_param() {
9324 _has_bits_[0] &= ~0x00004000u;
9325 }
9326 inline void LayerParameter::clear_concat_param() {
9327 if (concat_param_ != NULL) concat_param_->::caffe::ConcatParameter::Clear();
9328 clear_has_concat_param();
9329 }
9330 inline const ::caffe::ConcatParameter& LayerParameter::concat_param() const {
9331 return concat_param_ != NULL ? *concat_param_ : *default_instance_->concat_param_;
9332 }
9333 inline ::caffe::ConcatParameter* LayerParameter::mutable_concat_param() {
9334 set_has_concat_param();
9335 if (concat_param_ == NULL) concat_param_ = new ::caffe::ConcatParameter;
9336 return concat_param_;
9337 }
9338 inline ::caffe::ConcatParameter* LayerParameter::release_concat_param() {
9339 clear_has_concat_param();
9340 ::caffe::ConcatParameter* temp = concat_param_;
9341 concat_param_ = NULL;
9342 return temp;
9343 }
9344 inline void LayerParameter::set_allocated_concat_param(::caffe::ConcatParameter* concat_param) {
9345 delete concat_param_;
9346 concat_param_ = concat_param;
9347 if (concat_param) {
9348 set_has_concat_param();
9349 } else {
9350 clear_has_concat_param();
9351 }
9352 }
9354 // optional .caffe.ContrastiveLossParameter contrastive_loss_param = 40;
9355 inline bool LayerParameter::has_contrastive_loss_param() const {
9356 return (_has_bits_[0] & 0x00008000u) != 0;
9357 }
9358 inline void LayerParameter::set_has_contrastive_loss_param() {
9359 _has_bits_[0] |= 0x00008000u;
9360 }
9361 inline void LayerParameter::clear_has_contrastive_loss_param() {
9362 _has_bits_[0] &= ~0x00008000u;
9363 }
9364 inline void LayerParameter::clear_contrastive_loss_param() {
9365 if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::caffe::ContrastiveLossParameter::Clear();
9366 clear_has_contrastive_loss_param();
9367 }
9368 inline const ::caffe::ContrastiveLossParameter& LayerParameter::contrastive_loss_param() const {
9369 return contrastive_loss_param_ != NULL ? *contrastive_loss_param_ : *default_instance_->contrastive_loss_param_;
9370 }
9371 inline ::caffe::ContrastiveLossParameter* LayerParameter::mutable_contrastive_loss_param() {
9372 set_has_contrastive_loss_param();
9373 if (contrastive_loss_param_ == NULL) contrastive_loss_param_ = new ::caffe::ContrastiveLossParameter;
9374 return contrastive_loss_param_;
9375 }
9376 inline ::caffe::ContrastiveLossParameter* LayerParameter::release_contrastive_loss_param() {
9377 clear_has_contrastive_loss_param();
9378 ::caffe::ContrastiveLossParameter* temp = contrastive_loss_param_;
9379 contrastive_loss_param_ = NULL;
9380 return temp;
9381 }
9382 inline void LayerParameter::set_allocated_contrastive_loss_param(::caffe::ContrastiveLossParameter* contrastive_loss_param) {
9383 delete contrastive_loss_param_;
9384 contrastive_loss_param_ = contrastive_loss_param;
9385 if (contrastive_loss_param) {
9386 set_has_contrastive_loss_param();
9387 } else {
9388 clear_has_contrastive_loss_param();
9389 }
9390 }
9392 // optional .caffe.ConvolutionParameter convolution_param = 10;
9393 inline bool LayerParameter::has_convolution_param() const {
9394 return (_has_bits_[0] & 0x00010000u) != 0;
9395 }
9396 inline void LayerParameter::set_has_convolution_param() {
9397 _has_bits_[0] |= 0x00010000u;
9398 }
9399 inline void LayerParameter::clear_has_convolution_param() {
9400 _has_bits_[0] &= ~0x00010000u;
9401 }
9402 inline void LayerParameter::clear_convolution_param() {
9403 if (convolution_param_ != NULL) convolution_param_->::caffe::ConvolutionParameter::Clear();
9404 clear_has_convolution_param();
9405 }
9406 inline const ::caffe::ConvolutionParameter& LayerParameter::convolution_param() const {
9407 return convolution_param_ != NULL ? *convolution_param_ : *default_instance_->convolution_param_;
9408 }
9409 inline ::caffe::ConvolutionParameter* LayerParameter::mutable_convolution_param() {
9410 set_has_convolution_param();
9411 if (convolution_param_ == NULL) convolution_param_ = new ::caffe::ConvolutionParameter;
9412 return convolution_param_;
9413 }
9414 inline ::caffe::ConvolutionParameter* LayerParameter::release_convolution_param() {
9415 clear_has_convolution_param();
9416 ::caffe::ConvolutionParameter* temp = convolution_param_;
9417 convolution_param_ = NULL;
9418 return temp;
9419 }
9420 inline void LayerParameter::set_allocated_convolution_param(::caffe::ConvolutionParameter* convolution_param) {
9421 delete convolution_param_;
9422 convolution_param_ = convolution_param;
9423 if (convolution_param) {
9424 set_has_convolution_param();
9425 } else {
9426 clear_has_convolution_param();
9427 }
9428 }
9430 // optional .caffe.DataParameter data_param = 11;
9431 inline bool LayerParameter::has_data_param() const {
9432 return (_has_bits_[0] & 0x00020000u) != 0;
9433 }
9434 inline void LayerParameter::set_has_data_param() {
9435 _has_bits_[0] |= 0x00020000u;
9436 }
9437 inline void LayerParameter::clear_has_data_param() {
9438 _has_bits_[0] &= ~0x00020000u;
9439 }
9440 inline void LayerParameter::clear_data_param() {
9441 if (data_param_ != NULL) data_param_->::caffe::DataParameter::Clear();
9442 clear_has_data_param();
9443 }
9444 inline const ::caffe::DataParameter& LayerParameter::data_param() const {
9445 return data_param_ != NULL ? *data_param_ : *default_instance_->data_param_;
9446 }
9447 inline ::caffe::DataParameter* LayerParameter::mutable_data_param() {
9448 set_has_data_param();
9449 if (data_param_ == NULL) data_param_ = new ::caffe::DataParameter;
9450 return data_param_;
9451 }
9452 inline ::caffe::DataParameter* LayerParameter::release_data_param() {
9453 clear_has_data_param();
9454 ::caffe::DataParameter* temp = data_param_;
9455 data_param_ = NULL;
9456 return temp;
9457 }
9458 inline void LayerParameter::set_allocated_data_param(::caffe::DataParameter* data_param) {
9459 delete data_param_;
9460 data_param_ = data_param;
9461 if (data_param) {
9462 set_has_data_param();
9463 } else {
9464 clear_has_data_param();
9465 }
9466 }
9468 // optional .caffe.DropoutParameter dropout_param = 12;
9469 inline bool LayerParameter::has_dropout_param() const {
9470 return (_has_bits_[0] & 0x00040000u) != 0;
9471 }
9472 inline void LayerParameter::set_has_dropout_param() {
9473 _has_bits_[0] |= 0x00040000u;
9474 }
9475 inline void LayerParameter::clear_has_dropout_param() {
9476 _has_bits_[0] &= ~0x00040000u;
9477 }
9478 inline void LayerParameter::clear_dropout_param() {
9479 if (dropout_param_ != NULL) dropout_param_->::caffe::DropoutParameter::Clear();
9480 clear_has_dropout_param();
9481 }
9482 inline const ::caffe::DropoutParameter& LayerParameter::dropout_param() const {
9483 return dropout_param_ != NULL ? *dropout_param_ : *default_instance_->dropout_param_;
9484 }
9485 inline ::caffe::DropoutParameter* LayerParameter::mutable_dropout_param() {
9486 set_has_dropout_param();
9487 if (dropout_param_ == NULL) dropout_param_ = new ::caffe::DropoutParameter;
9488 return dropout_param_;
9489 }
9490 inline ::caffe::DropoutParameter* LayerParameter::release_dropout_param() {
9491 clear_has_dropout_param();
9492 ::caffe::DropoutParameter* temp = dropout_param_;
9493 dropout_param_ = NULL;
9494 return temp;
9495 }
9496 inline void LayerParameter::set_allocated_dropout_param(::caffe::DropoutParameter* dropout_param) {
9497 delete dropout_param_;
9498 dropout_param_ = dropout_param;
9499 if (dropout_param) {
9500 set_has_dropout_param();
9501 } else {
9502 clear_has_dropout_param();
9503 }
9504 }
9506 // optional .caffe.DummyDataParameter dummy_data_param = 26;
9507 inline bool LayerParameter::has_dummy_data_param() const {
9508 return (_has_bits_[0] & 0x00080000u) != 0;
9509 }
9510 inline void LayerParameter::set_has_dummy_data_param() {
9511 _has_bits_[0] |= 0x00080000u;
9512 }
9513 inline void LayerParameter::clear_has_dummy_data_param() {
9514 _has_bits_[0] &= ~0x00080000u;
9515 }
9516 inline void LayerParameter::clear_dummy_data_param() {
9517 if (dummy_data_param_ != NULL) dummy_data_param_->::caffe::DummyDataParameter::Clear();
9518 clear_has_dummy_data_param();
9519 }
9520 inline const ::caffe::DummyDataParameter& LayerParameter::dummy_data_param() const {
9521 return dummy_data_param_ != NULL ? *dummy_data_param_ : *default_instance_->dummy_data_param_;
9522 }
9523 inline ::caffe::DummyDataParameter* LayerParameter::mutable_dummy_data_param() {
9524 set_has_dummy_data_param();
9525 if (dummy_data_param_ == NULL) dummy_data_param_ = new ::caffe::DummyDataParameter;
9526 return dummy_data_param_;
9527 }
9528 inline ::caffe::DummyDataParameter* LayerParameter::release_dummy_data_param() {
9529 clear_has_dummy_data_param();
9530 ::caffe::DummyDataParameter* temp = dummy_data_param_;
9531 dummy_data_param_ = NULL;
9532 return temp;
9533 }
9534 inline void LayerParameter::set_allocated_dummy_data_param(::caffe::DummyDataParameter* dummy_data_param) {
9535 delete dummy_data_param_;
9536 dummy_data_param_ = dummy_data_param;
9537 if (dummy_data_param) {
9538 set_has_dummy_data_param();
9539 } else {
9540 clear_has_dummy_data_param();
9541 }
9542 }
9544 // optional .caffe.EltwiseParameter eltwise_param = 24;
9545 inline bool LayerParameter::has_eltwise_param() const {
9546 return (_has_bits_[0] & 0x00100000u) != 0;
9547 }
9548 inline void LayerParameter::set_has_eltwise_param() {
9549 _has_bits_[0] |= 0x00100000u;
9550 }
9551 inline void LayerParameter::clear_has_eltwise_param() {
9552 _has_bits_[0] &= ~0x00100000u;
9553 }
9554 inline void LayerParameter::clear_eltwise_param() {
9555 if (eltwise_param_ != NULL) eltwise_param_->::caffe::EltwiseParameter::Clear();
9556 clear_has_eltwise_param();
9557 }
9558 inline const ::caffe::EltwiseParameter& LayerParameter::eltwise_param() const {
9559 return eltwise_param_ != NULL ? *eltwise_param_ : *default_instance_->eltwise_param_;
9560 }
9561 inline ::caffe::EltwiseParameter* LayerParameter::mutable_eltwise_param() {
9562 set_has_eltwise_param();
9563 if (eltwise_param_ == NULL) eltwise_param_ = new ::caffe::EltwiseParameter;
9564 return eltwise_param_;
9565 }
9566 inline ::caffe::EltwiseParameter* LayerParameter::release_eltwise_param() {
9567 clear_has_eltwise_param();
9568 ::caffe::EltwiseParameter* temp = eltwise_param_;
9569 eltwise_param_ = NULL;
9570 return temp;
9571 }
9572 inline void LayerParameter::set_allocated_eltwise_param(::caffe::EltwiseParameter* eltwise_param) {
9573 delete eltwise_param_;
9574 eltwise_param_ = eltwise_param;
9575 if (eltwise_param) {
9576 set_has_eltwise_param();
9577 } else {
9578 clear_has_eltwise_param();
9579 }
9580 }
9582 // optional .caffe.HDF5DataParameter hdf5_data_param = 13;
9583 inline bool LayerParameter::has_hdf5_data_param() const {
9584 return (_has_bits_[0] & 0x00200000u) != 0;
9585 }
9586 inline void LayerParameter::set_has_hdf5_data_param() {
9587 _has_bits_[0] |= 0x00200000u;
9588 }
9589 inline void LayerParameter::clear_has_hdf5_data_param() {
9590 _has_bits_[0] &= ~0x00200000u;
9591 }
9592 inline void LayerParameter::clear_hdf5_data_param() {
9593 if (hdf5_data_param_ != NULL) hdf5_data_param_->::caffe::HDF5DataParameter::Clear();
9594 clear_has_hdf5_data_param();
9595 }
9596 inline const ::caffe::HDF5DataParameter& LayerParameter::hdf5_data_param() const {
9597 return hdf5_data_param_ != NULL ? *hdf5_data_param_ : *default_instance_->hdf5_data_param_;
9598 }
9599 inline ::caffe::HDF5DataParameter* LayerParameter::mutable_hdf5_data_param() {
9600 set_has_hdf5_data_param();
9601 if (hdf5_data_param_ == NULL) hdf5_data_param_ = new ::caffe::HDF5DataParameter;
9602 return hdf5_data_param_;
9603 }
9604 inline ::caffe::HDF5DataParameter* LayerParameter::release_hdf5_data_param() {
9605 clear_has_hdf5_data_param();
9606 ::caffe::HDF5DataParameter* temp = hdf5_data_param_;
9607 hdf5_data_param_ = NULL;
9608 return temp;
9609 }
9610 inline void LayerParameter::set_allocated_hdf5_data_param(::caffe::HDF5DataParameter* hdf5_data_param) {
9611 delete hdf5_data_param_;
9612 hdf5_data_param_ = hdf5_data_param;
9613 if (hdf5_data_param) {
9614 set_has_hdf5_data_param();
9615 } else {
9616 clear_has_hdf5_data_param();
9617 }
9618 }
9620 // optional .caffe.HDF5OutputParameter hdf5_output_param = 14;
9621 inline bool LayerParameter::has_hdf5_output_param() const {
9622 return (_has_bits_[0] & 0x00400000u) != 0;
9623 }
9624 inline void LayerParameter::set_has_hdf5_output_param() {
9625 _has_bits_[0] |= 0x00400000u;
9626 }
9627 inline void LayerParameter::clear_has_hdf5_output_param() {
9628 _has_bits_[0] &= ~0x00400000u;
9629 }
9630 inline void LayerParameter::clear_hdf5_output_param() {
9631 if (hdf5_output_param_ != NULL) hdf5_output_param_->::caffe::HDF5OutputParameter::Clear();
9632 clear_has_hdf5_output_param();
9633 }
9634 inline const ::caffe::HDF5OutputParameter& LayerParameter::hdf5_output_param() const {
9635 return hdf5_output_param_ != NULL ? *hdf5_output_param_ : *default_instance_->hdf5_output_param_;
9636 }
9637 inline ::caffe::HDF5OutputParameter* LayerParameter::mutable_hdf5_output_param() {
9638 set_has_hdf5_output_param();
9639 if (hdf5_output_param_ == NULL) hdf5_output_param_ = new ::caffe::HDF5OutputParameter;
9640 return hdf5_output_param_;
9641 }
9642 inline ::caffe::HDF5OutputParameter* LayerParameter::release_hdf5_output_param() {
9643 clear_has_hdf5_output_param();
9644 ::caffe::HDF5OutputParameter* temp = hdf5_output_param_;
9645 hdf5_output_param_ = NULL;
9646 return temp;
9647 }
9648 inline void LayerParameter::set_allocated_hdf5_output_param(::caffe::HDF5OutputParameter* hdf5_output_param) {
9649 delete hdf5_output_param_;
9650 hdf5_output_param_ = hdf5_output_param;
9651 if (hdf5_output_param) {
9652 set_has_hdf5_output_param();
9653 } else {
9654 clear_has_hdf5_output_param();
9655 }
9656 }
9658 // optional .caffe.HingeLossParameter hinge_loss_param = 29;
9659 inline bool LayerParameter::has_hinge_loss_param() const {
9660 return (_has_bits_[0] & 0x00800000u) != 0;
9661 }
9662 inline void LayerParameter::set_has_hinge_loss_param() {
9663 _has_bits_[0] |= 0x00800000u;
9664 }
9665 inline void LayerParameter::clear_has_hinge_loss_param() {
9666 _has_bits_[0] &= ~0x00800000u;
9667 }
9668 inline void LayerParameter::clear_hinge_loss_param() {
9669 if (hinge_loss_param_ != NULL) hinge_loss_param_->::caffe::HingeLossParameter::Clear();
9670 clear_has_hinge_loss_param();
9671 }
9672 inline const ::caffe::HingeLossParameter& LayerParameter::hinge_loss_param() const {
9673 return hinge_loss_param_ != NULL ? *hinge_loss_param_ : *default_instance_->hinge_loss_param_;
9674 }
9675 inline ::caffe::HingeLossParameter* LayerParameter::mutable_hinge_loss_param() {
9676 set_has_hinge_loss_param();
9677 if (hinge_loss_param_ == NULL) hinge_loss_param_ = new ::caffe::HingeLossParameter;
9678 return hinge_loss_param_;
9679 }
9680 inline ::caffe::HingeLossParameter* LayerParameter::release_hinge_loss_param() {
9681 clear_has_hinge_loss_param();
9682 ::caffe::HingeLossParameter* temp = hinge_loss_param_;
9683 hinge_loss_param_ = NULL;
9684 return temp;
9685 }
9686 inline void LayerParameter::set_allocated_hinge_loss_param(::caffe::HingeLossParameter* hinge_loss_param) {
9687 delete hinge_loss_param_;
9688 hinge_loss_param_ = hinge_loss_param;
9689 if (hinge_loss_param) {
9690 set_has_hinge_loss_param();
9691 } else {
9692 clear_has_hinge_loss_param();
9693 }
9694 }
9696 // optional .caffe.ImageDataParameter image_data_param = 15;
9697 inline bool LayerParameter::has_image_data_param() const {
9698 return (_has_bits_[0] & 0x01000000u) != 0;
9699 }
9700 inline void LayerParameter::set_has_image_data_param() {
9701 _has_bits_[0] |= 0x01000000u;
9702 }
9703 inline void LayerParameter::clear_has_image_data_param() {
9704 _has_bits_[0] &= ~0x01000000u;
9705 }
9706 inline void LayerParameter::clear_image_data_param() {
9707 if (image_data_param_ != NULL) image_data_param_->::caffe::ImageDataParameter::Clear();
9708 clear_has_image_data_param();
9709 }
9710 inline const ::caffe::ImageDataParameter& LayerParameter::image_data_param() const {
9711 return image_data_param_ != NULL ? *image_data_param_ : *default_instance_->image_data_param_;
9712 }
9713 inline ::caffe::ImageDataParameter* LayerParameter::mutable_image_data_param() {
9714 set_has_image_data_param();
9715 if (image_data_param_ == NULL) image_data_param_ = new ::caffe::ImageDataParameter;
9716 return image_data_param_;
9717 }
9718 inline ::caffe::ImageDataParameter* LayerParameter::release_image_data_param() {
9719 clear_has_image_data_param();
9720 ::caffe::ImageDataParameter* temp = image_data_param_;
9721 image_data_param_ = NULL;
9722 return temp;
9723 }
9724 inline void LayerParameter::set_allocated_image_data_param(::caffe::ImageDataParameter* image_data_param) {
9725 delete image_data_param_;
9726 image_data_param_ = image_data_param;
9727 if (image_data_param) {
9728 set_has_image_data_param();
9729 } else {
9730 clear_has_image_data_param();
9731 }
9732 }
9734 // optional .caffe.InfogainLossParameter infogain_loss_param = 16;
9735 inline bool LayerParameter::has_infogain_loss_param() const {
9736 return (_has_bits_[0] & 0x02000000u) != 0;
9737 }
9738 inline void LayerParameter::set_has_infogain_loss_param() {
9739 _has_bits_[0] |= 0x02000000u;
9740 }
9741 inline void LayerParameter::clear_has_infogain_loss_param() {
9742 _has_bits_[0] &= ~0x02000000u;
9743 }
9744 inline void LayerParameter::clear_infogain_loss_param() {
9745 if (infogain_loss_param_ != NULL) infogain_loss_param_->::caffe::InfogainLossParameter::Clear();
9746 clear_has_infogain_loss_param();
9747 }
9748 inline const ::caffe::InfogainLossParameter& LayerParameter::infogain_loss_param() const {
9749 return infogain_loss_param_ != NULL ? *infogain_loss_param_ : *default_instance_->infogain_loss_param_;
9750 }
9751 inline ::caffe::InfogainLossParameter* LayerParameter::mutable_infogain_loss_param() {
9752 set_has_infogain_loss_param();
9753 if (infogain_loss_param_ == NULL) infogain_loss_param_ = new ::caffe::InfogainLossParameter;
9754 return infogain_loss_param_;
9755 }
9756 inline ::caffe::InfogainLossParameter* LayerParameter::release_infogain_loss_param() {
9757 clear_has_infogain_loss_param();
9758 ::caffe::InfogainLossParameter* temp = infogain_loss_param_;
9759 infogain_loss_param_ = NULL;
9760 return temp;
9761 }
9762 inline void LayerParameter::set_allocated_infogain_loss_param(::caffe::InfogainLossParameter* infogain_loss_param) {
9763 delete infogain_loss_param_;
9764 infogain_loss_param_ = infogain_loss_param;
9765 if (infogain_loss_param) {
9766 set_has_infogain_loss_param();
9767 } else {
9768 clear_has_infogain_loss_param();
9769 }
9770 }
9772 // optional .caffe.InnerProductParameter inner_product_param = 17;
9773 inline bool LayerParameter::has_inner_product_param() const {
9774 return (_has_bits_[0] & 0x04000000u) != 0;
9775 }
9776 inline void LayerParameter::set_has_inner_product_param() {
9777 _has_bits_[0] |= 0x04000000u;
9778 }
9779 inline void LayerParameter::clear_has_inner_product_param() {
9780 _has_bits_[0] &= ~0x04000000u;
9781 }
9782 inline void LayerParameter::clear_inner_product_param() {
9783 if (inner_product_param_ != NULL) inner_product_param_->::caffe::InnerProductParameter::Clear();
9784 clear_has_inner_product_param();
9785 }
9786 inline const ::caffe::InnerProductParameter& LayerParameter::inner_product_param() const {
9787 return inner_product_param_ != NULL ? *inner_product_param_ : *default_instance_->inner_product_param_;
9788 }
9789 inline ::caffe::InnerProductParameter* LayerParameter::mutable_inner_product_param() {
9790 set_has_inner_product_param();
9791 if (inner_product_param_ == NULL) inner_product_param_ = new ::caffe::InnerProductParameter;
9792 return inner_product_param_;
9793 }
9794 inline ::caffe::InnerProductParameter* LayerParameter::release_inner_product_param() {
9795 clear_has_inner_product_param();
9796 ::caffe::InnerProductParameter* temp = inner_product_param_;
9797 inner_product_param_ = NULL;
9798 return temp;
9799 }
9800 inline void LayerParameter::set_allocated_inner_product_param(::caffe::InnerProductParameter* inner_product_param) {
9801 delete inner_product_param_;
9802 inner_product_param_ = inner_product_param;
9803 if (inner_product_param) {
9804 set_has_inner_product_param();
9805 } else {
9806 clear_has_inner_product_param();
9807 }
9808 }
9810 // optional .caffe.LRNParameter lrn_param = 18;
9811 inline bool LayerParameter::has_lrn_param() const {
9812 return (_has_bits_[0] & 0x08000000u) != 0;
9813 }
9814 inline void LayerParameter::set_has_lrn_param() {
9815 _has_bits_[0] |= 0x08000000u;
9816 }
9817 inline void LayerParameter::clear_has_lrn_param() {
9818 _has_bits_[0] &= ~0x08000000u;
9819 }
9820 inline void LayerParameter::clear_lrn_param() {
9821 if (lrn_param_ != NULL) lrn_param_->::caffe::LRNParameter::Clear();
9822 clear_has_lrn_param();
9823 }
9824 inline const ::caffe::LRNParameter& LayerParameter::lrn_param() const {
9825 return lrn_param_ != NULL ? *lrn_param_ : *default_instance_->lrn_param_;
9826 }
9827 inline ::caffe::LRNParameter* LayerParameter::mutable_lrn_param() {
9828 set_has_lrn_param();
9829 if (lrn_param_ == NULL) lrn_param_ = new ::caffe::LRNParameter;
9830 return lrn_param_;
9831 }
9832 inline ::caffe::LRNParameter* LayerParameter::release_lrn_param() {
9833 clear_has_lrn_param();
9834 ::caffe::LRNParameter* temp = lrn_param_;
9835 lrn_param_ = NULL;
9836 return temp;
9837 }
9838 inline void LayerParameter::set_allocated_lrn_param(::caffe::LRNParameter* lrn_param) {
9839 delete lrn_param_;
9840 lrn_param_ = lrn_param;
9841 if (lrn_param) {
9842 set_has_lrn_param();
9843 } else {
9844 clear_has_lrn_param();
9845 }
9846 }
9848 // optional .caffe.MemoryDataParameter memory_data_param = 22;
9849 inline bool LayerParameter::has_memory_data_param() const {
9850 return (_has_bits_[0] & 0x10000000u) != 0;
9851 }
9852 inline void LayerParameter::set_has_memory_data_param() {
9853 _has_bits_[0] |= 0x10000000u;
9854 }
9855 inline void LayerParameter::clear_has_memory_data_param() {
9856 _has_bits_[0] &= ~0x10000000u;
9857 }
9858 inline void LayerParameter::clear_memory_data_param() {
9859 if (memory_data_param_ != NULL) memory_data_param_->::caffe::MemoryDataParameter::Clear();
9860 clear_has_memory_data_param();
9861 }
9862 inline const ::caffe::MemoryDataParameter& LayerParameter::memory_data_param() const {
9863 return memory_data_param_ != NULL ? *memory_data_param_ : *default_instance_->memory_data_param_;
9864 }
9865 inline ::caffe::MemoryDataParameter* LayerParameter::mutable_memory_data_param() {
9866 set_has_memory_data_param();
9867 if (memory_data_param_ == NULL) memory_data_param_ = new ::caffe::MemoryDataParameter;
9868 return memory_data_param_;
9869 }
9870 inline ::caffe::MemoryDataParameter* LayerParameter::release_memory_data_param() {
9871 clear_has_memory_data_param();
9872 ::caffe::MemoryDataParameter* temp = memory_data_param_;
9873 memory_data_param_ = NULL;
9874 return temp;
9875 }
9876 inline void LayerParameter::set_allocated_memory_data_param(::caffe::MemoryDataParameter* memory_data_param) {
9877 delete memory_data_param_;
9878 memory_data_param_ = memory_data_param;
9879 if (memory_data_param) {
9880 set_has_memory_data_param();
9881 } else {
9882 clear_has_memory_data_param();
9883 }
9884 }
9886 // optional .caffe.MVNParameter mvn_param = 34;
9887 inline bool LayerParameter::has_mvn_param() const {
9888 return (_has_bits_[0] & 0x20000000u) != 0;
9889 }
9890 inline void LayerParameter::set_has_mvn_param() {
9891 _has_bits_[0] |= 0x20000000u;
9892 }
9893 inline void LayerParameter::clear_has_mvn_param() {
9894 _has_bits_[0] &= ~0x20000000u;
9895 }
9896 inline void LayerParameter::clear_mvn_param() {
9897 if (mvn_param_ != NULL) mvn_param_->::caffe::MVNParameter::Clear();
9898 clear_has_mvn_param();
9899 }
9900 inline const ::caffe::MVNParameter& LayerParameter::mvn_param() const {
9901 return mvn_param_ != NULL ? *mvn_param_ : *default_instance_->mvn_param_;
9902 }
9903 inline ::caffe::MVNParameter* LayerParameter::mutable_mvn_param() {
9904 set_has_mvn_param();
9905 if (mvn_param_ == NULL) mvn_param_ = new ::caffe::MVNParameter;
9906 return mvn_param_;
9907 }
9908 inline ::caffe::MVNParameter* LayerParameter::release_mvn_param() {
9909 clear_has_mvn_param();
9910 ::caffe::MVNParameter* temp = mvn_param_;
9911 mvn_param_ = NULL;
9912 return temp;
9913 }
9914 inline void LayerParameter::set_allocated_mvn_param(::caffe::MVNParameter* mvn_param) {
9915 delete mvn_param_;
9916 mvn_param_ = mvn_param;
9917 if (mvn_param) {
9918 set_has_mvn_param();
9919 } else {
9920 clear_has_mvn_param();
9921 }
9922 }
9924 // optional .caffe.PoolingParameter pooling_param = 19;
9925 inline bool LayerParameter::has_pooling_param() const {
9926 return (_has_bits_[0] & 0x40000000u) != 0;
9927 }
9928 inline void LayerParameter::set_has_pooling_param() {
9929 _has_bits_[0] |= 0x40000000u;
9930 }
9931 inline void LayerParameter::clear_has_pooling_param() {
9932 _has_bits_[0] &= ~0x40000000u;
9933 }
9934 inline void LayerParameter::clear_pooling_param() {
9935 if (pooling_param_ != NULL) pooling_param_->::caffe::PoolingParameter::Clear();
9936 clear_has_pooling_param();
9937 }
9938 inline const ::caffe::PoolingParameter& LayerParameter::pooling_param() const {
9939 return pooling_param_ != NULL ? *pooling_param_ : *default_instance_->pooling_param_;
9940 }
9941 inline ::caffe::PoolingParameter* LayerParameter::mutable_pooling_param() {
9942 set_has_pooling_param();
9943 if (pooling_param_ == NULL) pooling_param_ = new ::caffe::PoolingParameter;
9944 return pooling_param_;
9945 }
9946 inline ::caffe::PoolingParameter* LayerParameter::release_pooling_param() {
9947 clear_has_pooling_param();
9948 ::caffe::PoolingParameter* temp = pooling_param_;
9949 pooling_param_ = NULL;
9950 return temp;
9951 }
9952 inline void LayerParameter::set_allocated_pooling_param(::caffe::PoolingParameter* pooling_param) {
9953 delete pooling_param_;
9954 pooling_param_ = pooling_param;
9955 if (pooling_param) {
9956 set_has_pooling_param();
9957 } else {
9958 clear_has_pooling_param();
9959 }
9960 }
9962 // optional .caffe.PowerParameter power_param = 21;
9963 inline bool LayerParameter::has_power_param() const {
9964 return (_has_bits_[0] & 0x80000000u) != 0;
9965 }
9966 inline void LayerParameter::set_has_power_param() {
9967 _has_bits_[0] |= 0x80000000u;
9968 }
9969 inline void LayerParameter::clear_has_power_param() {
9970 _has_bits_[0] &= ~0x80000000u;
9971 }
9972 inline void LayerParameter::clear_power_param() {
9973 if (power_param_ != NULL) power_param_->::caffe::PowerParameter::Clear();
9974 clear_has_power_param();
9975 }
9976 inline const ::caffe::PowerParameter& LayerParameter::power_param() const {
9977 return power_param_ != NULL ? *power_param_ : *default_instance_->power_param_;
9978 }
9979 inline ::caffe::PowerParameter* LayerParameter::mutable_power_param() {
9980 set_has_power_param();
9981 if (power_param_ == NULL) power_param_ = new ::caffe::PowerParameter;
9982 return power_param_;
9983 }
9984 inline ::caffe::PowerParameter* LayerParameter::release_power_param() {
9985 clear_has_power_param();
9986 ::caffe::PowerParameter* temp = power_param_;
9987 power_param_ = NULL;
9988 return temp;
9989 }
9990 inline void LayerParameter::set_allocated_power_param(::caffe::PowerParameter* power_param) {
9991 delete power_param_;
9992 power_param_ = power_param;
9993 if (power_param) {
9994 set_has_power_param();
9995 } else {
9996 clear_has_power_param();
9997 }
9998 }
10000 // optional .caffe.ReLUParameter relu_param = 30;
10001 inline bool LayerParameter::has_relu_param() const {
10002 return (_has_bits_[1] & 0x00000001u) != 0;
10003 }
10004 inline void LayerParameter::set_has_relu_param() {
10005 _has_bits_[1] |= 0x00000001u;
10006 }
10007 inline void LayerParameter::clear_has_relu_param() {
10008 _has_bits_[1] &= ~0x00000001u;
10009 }
10010 inline void LayerParameter::clear_relu_param() {
10011 if (relu_param_ != NULL) relu_param_->::caffe::ReLUParameter::Clear();
10012 clear_has_relu_param();
10013 }
10014 inline const ::caffe::ReLUParameter& LayerParameter::relu_param() const {
10015 return relu_param_ != NULL ? *relu_param_ : *default_instance_->relu_param_;
10016 }
10017 inline ::caffe::ReLUParameter* LayerParameter::mutable_relu_param() {
10018 set_has_relu_param();
10019 if (relu_param_ == NULL) relu_param_ = new ::caffe::ReLUParameter;
10020 return relu_param_;
10021 }
10022 inline ::caffe::ReLUParameter* LayerParameter::release_relu_param() {
10023 clear_has_relu_param();
10024 ::caffe::ReLUParameter* temp = relu_param_;
10025 relu_param_ = NULL;
10026 return temp;
10027 }
10028 inline void LayerParameter::set_allocated_relu_param(::caffe::ReLUParameter* relu_param) {
10029 delete relu_param_;
10030 relu_param_ = relu_param;
10031 if (relu_param) {
10032 set_has_relu_param();
10033 } else {
10034 clear_has_relu_param();
10035 }
10036 }
10038 // optional .caffe.SigmoidParameter sigmoid_param = 38;
10039 inline bool LayerParameter::has_sigmoid_param() const {
10040 return (_has_bits_[1] & 0x00000002u) != 0;
10041 }
10042 inline void LayerParameter::set_has_sigmoid_param() {
10043 _has_bits_[1] |= 0x00000002u;
10044 }
10045 inline void LayerParameter::clear_has_sigmoid_param() {
10046 _has_bits_[1] &= ~0x00000002u;
10047 }
10048 inline void LayerParameter::clear_sigmoid_param() {
10049 if (sigmoid_param_ != NULL) sigmoid_param_->::caffe::SigmoidParameter::Clear();
10050 clear_has_sigmoid_param();
10051 }
10052 inline const ::caffe::SigmoidParameter& LayerParameter::sigmoid_param() const {
10053 return sigmoid_param_ != NULL ? *sigmoid_param_ : *default_instance_->sigmoid_param_;
10054 }
10055 inline ::caffe::SigmoidParameter* LayerParameter::mutable_sigmoid_param() {
10056 set_has_sigmoid_param();
10057 if (sigmoid_param_ == NULL) sigmoid_param_ = new ::caffe::SigmoidParameter;
10058 return sigmoid_param_;
10059 }
10060 inline ::caffe::SigmoidParameter* LayerParameter::release_sigmoid_param() {
10061 clear_has_sigmoid_param();
10062 ::caffe::SigmoidParameter* temp = sigmoid_param_;
10063 sigmoid_param_ = NULL;
10064 return temp;
10065 }
10066 inline void LayerParameter::set_allocated_sigmoid_param(::caffe::SigmoidParameter* sigmoid_param) {
10067 delete sigmoid_param_;
10068 sigmoid_param_ = sigmoid_param;
10069 if (sigmoid_param) {
10070 set_has_sigmoid_param();
10071 } else {
10072 clear_has_sigmoid_param();
10073 }
10074 }
10076 // optional .caffe.SoftmaxParameter softmax_param = 39;
10077 inline bool LayerParameter::has_softmax_param() const {
10078 return (_has_bits_[1] & 0x00000004u) != 0;
10079 }
10080 inline void LayerParameter::set_has_softmax_param() {
10081 _has_bits_[1] |= 0x00000004u;
10082 }
10083 inline void LayerParameter::clear_has_softmax_param() {
10084 _has_bits_[1] &= ~0x00000004u;
10085 }
10086 inline void LayerParameter::clear_softmax_param() {
10087 if (softmax_param_ != NULL) softmax_param_->::caffe::SoftmaxParameter::Clear();
10088 clear_has_softmax_param();
10089 }
10090 inline const ::caffe::SoftmaxParameter& LayerParameter::softmax_param() const {
10091 return softmax_param_ != NULL ? *softmax_param_ : *default_instance_->softmax_param_;
10092 }
10093 inline ::caffe::SoftmaxParameter* LayerParameter::mutable_softmax_param() {
10094 set_has_softmax_param();
10095 if (softmax_param_ == NULL) softmax_param_ = new ::caffe::SoftmaxParameter;
10096 return softmax_param_;
10097 }
10098 inline ::caffe::SoftmaxParameter* LayerParameter::release_softmax_param() {
10099 clear_has_softmax_param();
10100 ::caffe::SoftmaxParameter* temp = softmax_param_;
10101 softmax_param_ = NULL;
10102 return temp;
10103 }
10104 inline void LayerParameter::set_allocated_softmax_param(::caffe::SoftmaxParameter* softmax_param) {
10105 delete softmax_param_;
10106 softmax_param_ = softmax_param;
10107 if (softmax_param) {
10108 set_has_softmax_param();
10109 } else {
10110 clear_has_softmax_param();
10111 }
10112 }
10114 // optional .caffe.SliceParameter slice_param = 31;
10115 inline bool LayerParameter::has_slice_param() const {
10116 return (_has_bits_[1] & 0x00000008u) != 0;
10117 }
10118 inline void LayerParameter::set_has_slice_param() {
10119 _has_bits_[1] |= 0x00000008u;
10120 }
10121 inline void LayerParameter::clear_has_slice_param() {
10122 _has_bits_[1] &= ~0x00000008u;
10123 }
10124 inline void LayerParameter::clear_slice_param() {
10125 if (slice_param_ != NULL) slice_param_->::caffe::SliceParameter::Clear();
10126 clear_has_slice_param();
10127 }
10128 inline const ::caffe::SliceParameter& LayerParameter::slice_param() const {
10129 return slice_param_ != NULL ? *slice_param_ : *default_instance_->slice_param_;
10130 }
10131 inline ::caffe::SliceParameter* LayerParameter::mutable_slice_param() {
10132 set_has_slice_param();
10133 if (slice_param_ == NULL) slice_param_ = new ::caffe::SliceParameter;
10134 return slice_param_;
10135 }
10136 inline ::caffe::SliceParameter* LayerParameter::release_slice_param() {
10137 clear_has_slice_param();
10138 ::caffe::SliceParameter* temp = slice_param_;
10139 slice_param_ = NULL;
10140 return temp;
10141 }
10142 inline void LayerParameter::set_allocated_slice_param(::caffe::SliceParameter* slice_param) {
10143 delete slice_param_;
10144 slice_param_ = slice_param;
10145 if (slice_param) {
10146 set_has_slice_param();
10147 } else {
10148 clear_has_slice_param();
10149 }
10150 }
10152 // optional .caffe.TanHParameter tanh_param = 37;
10153 inline bool LayerParameter::has_tanh_param() const {
10154 return (_has_bits_[1] & 0x00000010u) != 0;
10155 }
10156 inline void LayerParameter::set_has_tanh_param() {
10157 _has_bits_[1] |= 0x00000010u;
10158 }
10159 inline void LayerParameter::clear_has_tanh_param() {
10160 _has_bits_[1] &= ~0x00000010u;
10161 }
10162 inline void LayerParameter::clear_tanh_param() {
10163 if (tanh_param_ != NULL) tanh_param_->::caffe::TanHParameter::Clear();
10164 clear_has_tanh_param();
10165 }
10166 inline const ::caffe::TanHParameter& LayerParameter::tanh_param() const {
10167 return tanh_param_ != NULL ? *tanh_param_ : *default_instance_->tanh_param_;
10168 }
10169 inline ::caffe::TanHParameter* LayerParameter::mutable_tanh_param() {
10170 set_has_tanh_param();
10171 if (tanh_param_ == NULL) tanh_param_ = new ::caffe::TanHParameter;
10172 return tanh_param_;
10173 }
10174 inline ::caffe::TanHParameter* LayerParameter::release_tanh_param() {
10175 clear_has_tanh_param();
10176 ::caffe::TanHParameter* temp = tanh_param_;
10177 tanh_param_ = NULL;
10178 return temp;
10179 }
10180 inline void LayerParameter::set_allocated_tanh_param(::caffe::TanHParameter* tanh_param) {
10181 delete tanh_param_;
10182 tanh_param_ = tanh_param;
10183 if (tanh_param) {
10184 set_has_tanh_param();
10185 } else {
10186 clear_has_tanh_param();
10187 }
10188 }
10190 // optional .caffe.ThresholdParameter threshold_param = 25;
10191 inline bool LayerParameter::has_threshold_param() const {
10192 return (_has_bits_[1] & 0x00000020u) != 0;
10193 }
10194 inline void LayerParameter::set_has_threshold_param() {
10195 _has_bits_[1] |= 0x00000020u;
10196 }
10197 inline void LayerParameter::clear_has_threshold_param() {
10198 _has_bits_[1] &= ~0x00000020u;
10199 }
10200 inline void LayerParameter::clear_threshold_param() {
10201 if (threshold_param_ != NULL) threshold_param_->::caffe::ThresholdParameter::Clear();
10202 clear_has_threshold_param();
10203 }
10204 inline const ::caffe::ThresholdParameter& LayerParameter::threshold_param() const {
10205 return threshold_param_ != NULL ? *threshold_param_ : *default_instance_->threshold_param_;
10206 }
10207 inline ::caffe::ThresholdParameter* LayerParameter::mutable_threshold_param() {
10208 set_has_threshold_param();
10209 if (threshold_param_ == NULL) threshold_param_ = new ::caffe::ThresholdParameter;
10210 return threshold_param_;
10211 }
10212 inline ::caffe::ThresholdParameter* LayerParameter::release_threshold_param() {
10213 clear_has_threshold_param();
10214 ::caffe::ThresholdParameter* temp = threshold_param_;
10215 threshold_param_ = NULL;
10216 return temp;
10217 }
10218 inline void LayerParameter::set_allocated_threshold_param(::caffe::ThresholdParameter* threshold_param) {
10219 delete threshold_param_;
10220 threshold_param_ = threshold_param;
10221 if (threshold_param) {
10222 set_has_threshold_param();
10223 } else {
10224 clear_has_threshold_param();
10225 }
10226 }
10228 // optional .caffe.WindowDataParameter window_data_param = 20;
10229 inline bool LayerParameter::has_window_data_param() const {
10230 return (_has_bits_[1] & 0x00000040u) != 0;
10231 }
10232 inline void LayerParameter::set_has_window_data_param() {
10233 _has_bits_[1] |= 0x00000040u;
10234 }
10235 inline void LayerParameter::clear_has_window_data_param() {
10236 _has_bits_[1] &= ~0x00000040u;
10237 }
10238 inline void LayerParameter::clear_window_data_param() {
10239 if (window_data_param_ != NULL) window_data_param_->::caffe::WindowDataParameter::Clear();
10240 clear_has_window_data_param();
10241 }
10242 inline const ::caffe::WindowDataParameter& LayerParameter::window_data_param() const {
10243 return window_data_param_ != NULL ? *window_data_param_ : *default_instance_->window_data_param_;
10244 }
10245 inline ::caffe::WindowDataParameter* LayerParameter::mutable_window_data_param() {
10246 set_has_window_data_param();
10247 if (window_data_param_ == NULL) window_data_param_ = new ::caffe::WindowDataParameter;
10248 return window_data_param_;
10249 }
10250 inline ::caffe::WindowDataParameter* LayerParameter::release_window_data_param() {
10251 clear_has_window_data_param();
10252 ::caffe::WindowDataParameter* temp = window_data_param_;
10253 window_data_param_ = NULL;
10254 return temp;
10255 }
10256 inline void LayerParameter::set_allocated_window_data_param(::caffe::WindowDataParameter* window_data_param) {
10257 delete window_data_param_;
10258 window_data_param_ = window_data_param;
10259 if (window_data_param) {
10260 set_has_window_data_param();
10261 } else {
10262 clear_has_window_data_param();
10263 }
10264 }
10266 // optional .caffe.TransformationParameter transform_param = 36;
10267 inline bool LayerParameter::has_transform_param() const {
10268 return (_has_bits_[1] & 0x00000080u) != 0;
10269 }
10270 inline void LayerParameter::set_has_transform_param() {
10271 _has_bits_[1] |= 0x00000080u;
10272 }
10273 inline void LayerParameter::clear_has_transform_param() {
10274 _has_bits_[1] &= ~0x00000080u;
10275 }
10276 inline void LayerParameter::clear_transform_param() {
10277 if (transform_param_ != NULL) transform_param_->::caffe::TransformationParameter::Clear();
10278 clear_has_transform_param();
10279 }
10280 inline const ::caffe::TransformationParameter& LayerParameter::transform_param() const {
10281 return transform_param_ != NULL ? *transform_param_ : *default_instance_->transform_param_;
10282 }
10283 inline ::caffe::TransformationParameter* LayerParameter::mutable_transform_param() {
10284 set_has_transform_param();
10285 if (transform_param_ == NULL) transform_param_ = new ::caffe::TransformationParameter;
10286 return transform_param_;
10287 }
10288 inline ::caffe::TransformationParameter* LayerParameter::release_transform_param() {
10289 clear_has_transform_param();
10290 ::caffe::TransformationParameter* temp = transform_param_;
10291 transform_param_ = NULL;
10292 return temp;
10293 }
10294 inline void LayerParameter::set_allocated_transform_param(::caffe::TransformationParameter* transform_param) {
10295 delete transform_param_;
10296 transform_param_ = transform_param;
10297 if (transform_param) {
10298 set_has_transform_param();
10299 } else {
10300 clear_has_transform_param();
10301 }
10302 }
10304 // optional .caffe.V0LayerParameter layer = 1;
10305 inline bool LayerParameter::has_layer() const {
10306 return (_has_bits_[1] & 0x00000100u) != 0;
10307 }
10308 inline void LayerParameter::set_has_layer() {
10309 _has_bits_[1] |= 0x00000100u;
10310 }
10311 inline void LayerParameter::clear_has_layer() {
10312 _has_bits_[1] &= ~0x00000100u;
10313 }
10314 inline void LayerParameter::clear_layer() {
10315 if (layer_ != NULL) layer_->::caffe::V0LayerParameter::Clear();
10316 clear_has_layer();
10317 }
10318 inline const ::caffe::V0LayerParameter& LayerParameter::layer() const {
10319 return layer_ != NULL ? *layer_ : *default_instance_->layer_;
10320 }
10321 inline ::caffe::V0LayerParameter* LayerParameter::mutable_layer() {
10322 set_has_layer();
10323 if (layer_ == NULL) layer_ = new ::caffe::V0LayerParameter;
10324 return layer_;
10325 }
10326 inline ::caffe::V0LayerParameter* LayerParameter::release_layer() {
10327 clear_has_layer();
10328 ::caffe::V0LayerParameter* temp = layer_;
10329 layer_ = NULL;
10330 return temp;
10331 }
10332 inline void LayerParameter::set_allocated_layer(::caffe::V0LayerParameter* layer) {
10333 delete layer_;
10334 layer_ = layer;
10335 if (layer) {
10336 set_has_layer();
10337 } else {
10338 clear_has_layer();
10339 }
10340 }
10342 // -------------------------------------------------------------------
10344 // TransformationParameter
10346 // optional float scale = 1 [default = 1];
10347 inline bool TransformationParameter::has_scale() const {
10348 return (_has_bits_[0] & 0x00000001u) != 0;
10349 }
10350 inline void TransformationParameter::set_has_scale() {
10351 _has_bits_[0] |= 0x00000001u;
10352 }
10353 inline void TransformationParameter::clear_has_scale() {
10354 _has_bits_[0] &= ~0x00000001u;
10355 }
10356 inline void TransformationParameter::clear_scale() {
10357 scale_ = 1;
10358 clear_has_scale();
10359 }
10360 inline float TransformationParameter::scale() const {
10361 return scale_;
10362 }
10363 inline void TransformationParameter::set_scale(float value) {
10364 set_has_scale();
10365 scale_ = value;
10366 }
10368 // optional bool mirror = 2 [default = false];
10369 inline bool TransformationParameter::has_mirror() const {
10370 return (_has_bits_[0] & 0x00000002u) != 0;
10371 }
10372 inline void TransformationParameter::set_has_mirror() {
10373 _has_bits_[0] |= 0x00000002u;
10374 }
10375 inline void TransformationParameter::clear_has_mirror() {
10376 _has_bits_[0] &= ~0x00000002u;
10377 }
10378 inline void TransformationParameter::clear_mirror() {
10379 mirror_ = false;
10380 clear_has_mirror();
10381 }
10382 inline bool TransformationParameter::mirror() const {
10383 return mirror_;
10384 }
10385 inline void TransformationParameter::set_mirror(bool value) {
10386 set_has_mirror();
10387 mirror_ = value;
10388 }
10390 // optional uint32 crop_size = 3 [default = 0];
10391 inline bool TransformationParameter::has_crop_size() const {
10392 return (_has_bits_[0] & 0x00000004u) != 0;
10393 }
10394 inline void TransformationParameter::set_has_crop_size() {
10395 _has_bits_[0] |= 0x00000004u;
10396 }
10397 inline void TransformationParameter::clear_has_crop_size() {
10398 _has_bits_[0] &= ~0x00000004u;
10399 }
10400 inline void TransformationParameter::clear_crop_size() {
10401 crop_size_ = 0u;
10402 clear_has_crop_size();
10403 }
10404 inline ::google::protobuf::uint32 TransformationParameter::crop_size() const {
10405 return crop_size_;
10406 }
10407 inline void TransformationParameter::set_crop_size(::google::protobuf::uint32 value) {
10408 set_has_crop_size();
10409 crop_size_ = value;
10410 }
10412 // optional string mean_file = 4;
10413 inline bool TransformationParameter::has_mean_file() const {
10414 return (_has_bits_[0] & 0x00000008u) != 0;
10415 }
10416 inline void TransformationParameter::set_has_mean_file() {
10417 _has_bits_[0] |= 0x00000008u;
10418 }
10419 inline void TransformationParameter::clear_has_mean_file() {
10420 _has_bits_[0] &= ~0x00000008u;
10421 }
10422 inline void TransformationParameter::clear_mean_file() {
10423 if (mean_file_ != &::google::protobuf::internal::kEmptyString) {
10424 mean_file_->clear();
10425 }
10426 clear_has_mean_file();
10427 }
10428 inline const ::std::string& TransformationParameter::mean_file() const {
10429 return *mean_file_;
10430 }
10431 inline void TransformationParameter::set_mean_file(const ::std::string& value) {
10432 set_has_mean_file();
10433 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
10434 mean_file_ = new ::std::string;
10435 }
10436 mean_file_->assign(value);
10437 }
10438 inline void TransformationParameter::set_mean_file(const char* value) {
10439 set_has_mean_file();
10440 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
10441 mean_file_ = new ::std::string;
10442 }
10443 mean_file_->assign(value);
10444 }
10445 inline void TransformationParameter::set_mean_file(const char* value, size_t size) {
10446 set_has_mean_file();
10447 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
10448 mean_file_ = new ::std::string;
10449 }
10450 mean_file_->assign(reinterpret_cast<const char*>(value), size);
10451 }
10452 inline ::std::string* TransformationParameter::mutable_mean_file() {
10453 set_has_mean_file();
10454 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
10455 mean_file_ = new ::std::string;
10456 }
10457 return mean_file_;
10458 }
10459 inline ::std::string* TransformationParameter::release_mean_file() {
10460 clear_has_mean_file();
10461 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
10462 return NULL;
10463 } else {
10464 ::std::string* temp = mean_file_;
10465 mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
10466 return temp;
10467 }
10468 }
10469 inline void TransformationParameter::set_allocated_mean_file(::std::string* mean_file) {
10470 if (mean_file_ != &::google::protobuf::internal::kEmptyString) {
10471 delete mean_file_;
10472 }
10473 if (mean_file) {
10474 set_has_mean_file();
10475 mean_file_ = mean_file;
10476 } else {
10477 clear_has_mean_file();
10478 mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
10479 }
10480 }
10482 // -------------------------------------------------------------------
10484 // AccuracyParameter
10486 // optional uint32 top_k = 1 [default = 1];
10487 inline bool AccuracyParameter::has_top_k() const {
10488 return (_has_bits_[0] & 0x00000001u) != 0;
10489 }
10490 inline void AccuracyParameter::set_has_top_k() {
10491 _has_bits_[0] |= 0x00000001u;
10492 }
10493 inline void AccuracyParameter::clear_has_top_k() {
10494 _has_bits_[0] &= ~0x00000001u;
10495 }
10496 inline void AccuracyParameter::clear_top_k() {
10497 top_k_ = 1u;
10498 clear_has_top_k();
10499 }
10500 inline ::google::protobuf::uint32 AccuracyParameter::top_k() const {
10501 return top_k_;
10502 }
10503 inline void AccuracyParameter::set_top_k(::google::protobuf::uint32 value) {
10504 set_has_top_k();
10505 top_k_ = value;
10506 }
10508 // -------------------------------------------------------------------
10510 // ArgMaxParameter
10512 // optional bool out_max_val = 1 [default = false];
10513 inline bool ArgMaxParameter::has_out_max_val() const {
10514 return (_has_bits_[0] & 0x00000001u) != 0;
10515 }
10516 inline void ArgMaxParameter::set_has_out_max_val() {
10517 _has_bits_[0] |= 0x00000001u;
10518 }
10519 inline void ArgMaxParameter::clear_has_out_max_val() {
10520 _has_bits_[0] &= ~0x00000001u;
10521 }
10522 inline void ArgMaxParameter::clear_out_max_val() {
10523 out_max_val_ = false;
10524 clear_has_out_max_val();
10525 }
10526 inline bool ArgMaxParameter::out_max_val() const {
10527 return out_max_val_;
10528 }
10529 inline void ArgMaxParameter::set_out_max_val(bool value) {
10530 set_has_out_max_val();
10531 out_max_val_ = value;
10532 }
10534 // optional uint32 top_k = 2 [default = 1];
10535 inline bool ArgMaxParameter::has_top_k() const {
10536 return (_has_bits_[0] & 0x00000002u) != 0;
10537 }
10538 inline void ArgMaxParameter::set_has_top_k() {
10539 _has_bits_[0] |= 0x00000002u;
10540 }
10541 inline void ArgMaxParameter::clear_has_top_k() {
10542 _has_bits_[0] &= ~0x00000002u;
10543 }
10544 inline void ArgMaxParameter::clear_top_k() {
10545 top_k_ = 1u;
10546 clear_has_top_k();
10547 }
10548 inline ::google::protobuf::uint32 ArgMaxParameter::top_k() const {
10549 return top_k_;
10550 }
10551 inline void ArgMaxParameter::set_top_k(::google::protobuf::uint32 value) {
10552 set_has_top_k();
10553 top_k_ = value;
10554 }
10556 // -------------------------------------------------------------------
10558 // ConcatParameter
10560 // optional uint32 concat_dim = 1 [default = 1];
10561 inline bool ConcatParameter::has_concat_dim() const {
10562 return (_has_bits_[0] & 0x00000001u) != 0;
10563 }
10564 inline void ConcatParameter::set_has_concat_dim() {
10565 _has_bits_[0] |= 0x00000001u;
10566 }
10567 inline void ConcatParameter::clear_has_concat_dim() {
10568 _has_bits_[0] &= ~0x00000001u;
10569 }
10570 inline void ConcatParameter::clear_concat_dim() {
10571 concat_dim_ = 1u;
10572 clear_has_concat_dim();
10573 }
10574 inline ::google::protobuf::uint32 ConcatParameter::concat_dim() const {
10575 return concat_dim_;
10576 }
10577 inline void ConcatParameter::set_concat_dim(::google::protobuf::uint32 value) {
10578 set_has_concat_dim();
10579 concat_dim_ = value;
10580 }
10582 // -------------------------------------------------------------------
10584 // ContrastiveLossParameter
10586 // optional float margin = 1 [default = 1];
10587 inline bool ContrastiveLossParameter::has_margin() const {
10588 return (_has_bits_[0] & 0x00000001u) != 0;
10589 }
10590 inline void ContrastiveLossParameter::set_has_margin() {
10591 _has_bits_[0] |= 0x00000001u;
10592 }
10593 inline void ContrastiveLossParameter::clear_has_margin() {
10594 _has_bits_[0] &= ~0x00000001u;
10595 }
10596 inline void ContrastiveLossParameter::clear_margin() {
10597 margin_ = 1;
10598 clear_has_margin();
10599 }
10600 inline float ContrastiveLossParameter::margin() const {
10601 return margin_;
10602 }
10603 inline void ContrastiveLossParameter::set_margin(float value) {
10604 set_has_margin();
10605 margin_ = value;
10606 }
10608 // -------------------------------------------------------------------
10610 // ConvolutionParameter
10612 // optional uint32 num_output = 1;
10613 inline bool ConvolutionParameter::has_num_output() const {
10614 return (_has_bits_[0] & 0x00000001u) != 0;
10615 }
10616 inline void ConvolutionParameter::set_has_num_output() {
10617 _has_bits_[0] |= 0x00000001u;
10618 }
10619 inline void ConvolutionParameter::clear_has_num_output() {
10620 _has_bits_[0] &= ~0x00000001u;
10621 }
10622 inline void ConvolutionParameter::clear_num_output() {
10623 num_output_ = 0u;
10624 clear_has_num_output();
10625 }
10626 inline ::google::protobuf::uint32 ConvolutionParameter::num_output() const {
10627 return num_output_;
10628 }
10629 inline void ConvolutionParameter::set_num_output(::google::protobuf::uint32 value) {
10630 set_has_num_output();
10631 num_output_ = value;
10632 }
10634 // optional bool bias_term = 2 [default = true];
10635 inline bool ConvolutionParameter::has_bias_term() const {
10636 return (_has_bits_[0] & 0x00000002u) != 0;
10637 }
10638 inline void ConvolutionParameter::set_has_bias_term() {
10639 _has_bits_[0] |= 0x00000002u;
10640 }
10641 inline void ConvolutionParameter::clear_has_bias_term() {
10642 _has_bits_[0] &= ~0x00000002u;
10643 }
10644 inline void ConvolutionParameter::clear_bias_term() {
10645 bias_term_ = true;
10646 clear_has_bias_term();
10647 }
10648 inline bool ConvolutionParameter::bias_term() const {
10649 return bias_term_;
10650 }
10651 inline void ConvolutionParameter::set_bias_term(bool value) {
10652 set_has_bias_term();
10653 bias_term_ = value;
10654 }
10656 // optional uint32 pad = 3 [default = 0];
10657 inline bool ConvolutionParameter::has_pad() const {
10658 return (_has_bits_[0] & 0x00000004u) != 0;
10659 }
10660 inline void ConvolutionParameter::set_has_pad() {
10661 _has_bits_[0] |= 0x00000004u;
10662 }
10663 inline void ConvolutionParameter::clear_has_pad() {
10664 _has_bits_[0] &= ~0x00000004u;
10665 }
10666 inline void ConvolutionParameter::clear_pad() {
10667 pad_ = 0u;
10668 clear_has_pad();
10669 }
10670 inline ::google::protobuf::uint32 ConvolutionParameter::pad() const {
10671 return pad_;
10672 }
10673 inline void ConvolutionParameter::set_pad(::google::protobuf::uint32 value) {
10674 set_has_pad();
10675 pad_ = value;
10676 }
10678 // optional uint32 pad_h = 9 [default = 0];
10679 inline bool ConvolutionParameter::has_pad_h() const {
10680 return (_has_bits_[0] & 0x00000008u) != 0;
10681 }
10682 inline void ConvolutionParameter::set_has_pad_h() {
10683 _has_bits_[0] |= 0x00000008u;
10684 }
10685 inline void ConvolutionParameter::clear_has_pad_h() {
10686 _has_bits_[0] &= ~0x00000008u;
10687 }
10688 inline void ConvolutionParameter::clear_pad_h() {
10689 pad_h_ = 0u;
10690 clear_has_pad_h();
10691 }
10692 inline ::google::protobuf::uint32 ConvolutionParameter::pad_h() const {
10693 return pad_h_;
10694 }
10695 inline void ConvolutionParameter::set_pad_h(::google::protobuf::uint32 value) {
10696 set_has_pad_h();
10697 pad_h_ = value;
10698 }
10700 // optional uint32 pad_w = 10 [default = 0];
10701 inline bool ConvolutionParameter::has_pad_w() const {
10702 return (_has_bits_[0] & 0x00000010u) != 0;
10703 }
10704 inline void ConvolutionParameter::set_has_pad_w() {
10705 _has_bits_[0] |= 0x00000010u;
10706 }
10707 inline void ConvolutionParameter::clear_has_pad_w() {
10708 _has_bits_[0] &= ~0x00000010u;
10709 }
10710 inline void ConvolutionParameter::clear_pad_w() {
10711 pad_w_ = 0u;
10712 clear_has_pad_w();
10713 }
10714 inline ::google::protobuf::uint32 ConvolutionParameter::pad_w() const {
10715 return pad_w_;
10716 }
10717 inline void ConvolutionParameter::set_pad_w(::google::protobuf::uint32 value) {
10718 set_has_pad_w();
10719 pad_w_ = value;
10720 }
10722 // optional uint32 kernel_size = 4;
10723 inline bool ConvolutionParameter::has_kernel_size() const {
10724 return (_has_bits_[0] & 0x00000020u) != 0;
10725 }
10726 inline void ConvolutionParameter::set_has_kernel_size() {
10727 _has_bits_[0] |= 0x00000020u;
10728 }
10729 inline void ConvolutionParameter::clear_has_kernel_size() {
10730 _has_bits_[0] &= ~0x00000020u;
10731 }
10732 inline void ConvolutionParameter::clear_kernel_size() {
10733 kernel_size_ = 0u;
10734 clear_has_kernel_size();
10735 }
10736 inline ::google::protobuf::uint32 ConvolutionParameter::kernel_size() const {
10737 return kernel_size_;
10738 }
10739 inline void ConvolutionParameter::set_kernel_size(::google::protobuf::uint32 value) {
10740 set_has_kernel_size();
10741 kernel_size_ = value;
10742 }
10744 // optional uint32 kernel_h = 11;
10745 inline bool ConvolutionParameter::has_kernel_h() const {
10746 return (_has_bits_[0] & 0x00000040u) != 0;
10747 }
10748 inline void ConvolutionParameter::set_has_kernel_h() {
10749 _has_bits_[0] |= 0x00000040u;
10750 }
10751 inline void ConvolutionParameter::clear_has_kernel_h() {
10752 _has_bits_[0] &= ~0x00000040u;
10753 }
10754 inline void ConvolutionParameter::clear_kernel_h() {
10755 kernel_h_ = 0u;
10756 clear_has_kernel_h();
10757 }
10758 inline ::google::protobuf::uint32 ConvolutionParameter::kernel_h() const {
10759 return kernel_h_;
10760 }
10761 inline void ConvolutionParameter::set_kernel_h(::google::protobuf::uint32 value) {
10762 set_has_kernel_h();
10763 kernel_h_ = value;
10764 }
10766 // optional uint32 kernel_w = 12;
10767 inline bool ConvolutionParameter::has_kernel_w() const {
10768 return (_has_bits_[0] & 0x00000080u) != 0;
10769 }
10770 inline void ConvolutionParameter::set_has_kernel_w() {
10771 _has_bits_[0] |= 0x00000080u;
10772 }
10773 inline void ConvolutionParameter::clear_has_kernel_w() {
10774 _has_bits_[0] &= ~0x00000080u;
10775 }
10776 inline void ConvolutionParameter::clear_kernel_w() {
10777 kernel_w_ = 0u;
10778 clear_has_kernel_w();
10779 }
10780 inline ::google::protobuf::uint32 ConvolutionParameter::kernel_w() const {
10781 return kernel_w_;
10782 }
10783 inline void ConvolutionParameter::set_kernel_w(::google::protobuf::uint32 value) {
10784 set_has_kernel_w();
10785 kernel_w_ = value;
10786 }
10788 // optional uint32 group = 5 [default = 1];
10789 inline bool ConvolutionParameter::has_group() const {
10790 return (_has_bits_[0] & 0x00000100u) != 0;
10791 }
10792 inline void ConvolutionParameter::set_has_group() {
10793 _has_bits_[0] |= 0x00000100u;
10794 }
10795 inline void ConvolutionParameter::clear_has_group() {
10796 _has_bits_[0] &= ~0x00000100u;
10797 }
10798 inline void ConvolutionParameter::clear_group() {
10799 group_ = 1u;
10800 clear_has_group();
10801 }
10802 inline ::google::protobuf::uint32 ConvolutionParameter::group() const {
10803 return group_;
10804 }
10805 inline void ConvolutionParameter::set_group(::google::protobuf::uint32 value) {
10806 set_has_group();
10807 group_ = value;
10808 }
10810 // optional uint32 stride = 6 [default = 1];
10811 inline bool ConvolutionParameter::has_stride() const {
10812 return (_has_bits_[0] & 0x00000200u) != 0;
10813 }
10814 inline void ConvolutionParameter::set_has_stride() {
10815 _has_bits_[0] |= 0x00000200u;
10816 }
10817 inline void ConvolutionParameter::clear_has_stride() {
10818 _has_bits_[0] &= ~0x00000200u;
10819 }
10820 inline void ConvolutionParameter::clear_stride() {
10821 stride_ = 1u;
10822 clear_has_stride();
10823 }
10824 inline ::google::protobuf::uint32 ConvolutionParameter::stride() const {
10825 return stride_;
10826 }
10827 inline void ConvolutionParameter::set_stride(::google::protobuf::uint32 value) {
10828 set_has_stride();
10829 stride_ = value;
10830 }
10832 // optional uint32 stride_h = 13;
10833 inline bool ConvolutionParameter::has_stride_h() const {
10834 return (_has_bits_[0] & 0x00000400u) != 0;
10835 }
10836 inline void ConvolutionParameter::set_has_stride_h() {
10837 _has_bits_[0] |= 0x00000400u;
10838 }
10839 inline void ConvolutionParameter::clear_has_stride_h() {
10840 _has_bits_[0] &= ~0x00000400u;
10841 }
10842 inline void ConvolutionParameter::clear_stride_h() {
10843 stride_h_ = 0u;
10844 clear_has_stride_h();
10845 }
10846 inline ::google::protobuf::uint32 ConvolutionParameter::stride_h() const {
10847 return stride_h_;
10848 }
10849 inline void ConvolutionParameter::set_stride_h(::google::protobuf::uint32 value) {
10850 set_has_stride_h();
10851 stride_h_ = value;
10852 }
10854 // optional uint32 stride_w = 14;
10855 inline bool ConvolutionParameter::has_stride_w() const {
10856 return (_has_bits_[0] & 0x00000800u) != 0;
10857 }
10858 inline void ConvolutionParameter::set_has_stride_w() {
10859 _has_bits_[0] |= 0x00000800u;
10860 }
10861 inline void ConvolutionParameter::clear_has_stride_w() {
10862 _has_bits_[0] &= ~0x00000800u;
10863 }
10864 inline void ConvolutionParameter::clear_stride_w() {
10865 stride_w_ = 0u;
10866 clear_has_stride_w();
10867 }
10868 inline ::google::protobuf::uint32 ConvolutionParameter::stride_w() const {
10869 return stride_w_;
10870 }
10871 inline void ConvolutionParameter::set_stride_w(::google::protobuf::uint32 value) {
10872 set_has_stride_w();
10873 stride_w_ = value;
10874 }
10876 // optional .caffe.FillerParameter weight_filler = 7;
10877 inline bool ConvolutionParameter::has_weight_filler() const {
10878 return (_has_bits_[0] & 0x00001000u) != 0;
10879 }
10880 inline void ConvolutionParameter::set_has_weight_filler() {
10881 _has_bits_[0] |= 0x00001000u;
10882 }
10883 inline void ConvolutionParameter::clear_has_weight_filler() {
10884 _has_bits_[0] &= ~0x00001000u;
10885 }
10886 inline void ConvolutionParameter::clear_weight_filler() {
10887 if (weight_filler_ != NULL) weight_filler_->::caffe::FillerParameter::Clear();
10888 clear_has_weight_filler();
10889 }
10890 inline const ::caffe::FillerParameter& ConvolutionParameter::weight_filler() const {
10891 return weight_filler_ != NULL ? *weight_filler_ : *default_instance_->weight_filler_;
10892 }
10893 inline ::caffe::FillerParameter* ConvolutionParameter::mutable_weight_filler() {
10894 set_has_weight_filler();
10895 if (weight_filler_ == NULL) weight_filler_ = new ::caffe::FillerParameter;
10896 return weight_filler_;
10897 }
10898 inline ::caffe::FillerParameter* ConvolutionParameter::release_weight_filler() {
10899 clear_has_weight_filler();
10900 ::caffe::FillerParameter* temp = weight_filler_;
10901 weight_filler_ = NULL;
10902 return temp;
10903 }
10904 inline void ConvolutionParameter::set_allocated_weight_filler(::caffe::FillerParameter* weight_filler) {
10905 delete weight_filler_;
10906 weight_filler_ = weight_filler;
10907 if (weight_filler) {
10908 set_has_weight_filler();
10909 } else {
10910 clear_has_weight_filler();
10911 }
10912 }
10914 // optional .caffe.FillerParameter bias_filler = 8;
10915 inline bool ConvolutionParameter::has_bias_filler() const {
10916 return (_has_bits_[0] & 0x00002000u) != 0;
10917 }
10918 inline void ConvolutionParameter::set_has_bias_filler() {
10919 _has_bits_[0] |= 0x00002000u;
10920 }
10921 inline void ConvolutionParameter::clear_has_bias_filler() {
10922 _has_bits_[0] &= ~0x00002000u;
10923 }
10924 inline void ConvolutionParameter::clear_bias_filler() {
10925 if (bias_filler_ != NULL) bias_filler_->::caffe::FillerParameter::Clear();
10926 clear_has_bias_filler();
10927 }
10928 inline const ::caffe::FillerParameter& ConvolutionParameter::bias_filler() const {
10929 return bias_filler_ != NULL ? *bias_filler_ : *default_instance_->bias_filler_;
10930 }
10931 inline ::caffe::FillerParameter* ConvolutionParameter::mutable_bias_filler() {
10932 set_has_bias_filler();
10933 if (bias_filler_ == NULL) bias_filler_ = new ::caffe::FillerParameter;
10934 return bias_filler_;
10935 }
10936 inline ::caffe::FillerParameter* ConvolutionParameter::release_bias_filler() {
10937 clear_has_bias_filler();
10938 ::caffe::FillerParameter* temp = bias_filler_;
10939 bias_filler_ = NULL;
10940 return temp;
10941 }
10942 inline void ConvolutionParameter::set_allocated_bias_filler(::caffe::FillerParameter* bias_filler) {
10943 delete bias_filler_;
10944 bias_filler_ = bias_filler;
10945 if (bias_filler) {
10946 set_has_bias_filler();
10947 } else {
10948 clear_has_bias_filler();
10949 }
10950 }
10952 // optional .caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT];
10953 inline bool ConvolutionParameter::has_engine() const {
10954 return (_has_bits_[0] & 0x00004000u) != 0;
10955 }
10956 inline void ConvolutionParameter::set_has_engine() {
10957 _has_bits_[0] |= 0x00004000u;
10958 }
10959 inline void ConvolutionParameter::clear_has_engine() {
10960 _has_bits_[0] &= ~0x00004000u;
10961 }
10962 inline void ConvolutionParameter::clear_engine() {
10963 engine_ = 0;
10964 clear_has_engine();
10965 }
10966 inline ::caffe::ConvolutionParameter_Engine ConvolutionParameter::engine() const {
10967 return static_cast< ::caffe::ConvolutionParameter_Engine >(engine_);
10968 }
10969 inline void ConvolutionParameter::set_engine(::caffe::ConvolutionParameter_Engine value) {
10970 assert(::caffe::ConvolutionParameter_Engine_IsValid(value));
10971 set_has_engine();
10972 engine_ = value;
10973 }
10975 // -------------------------------------------------------------------
10977 // DataParameter
10979 // optional string source = 1;
10980 inline bool DataParameter::has_source() const {
10981 return (_has_bits_[0] & 0x00000001u) != 0;
10982 }
10983 inline void DataParameter::set_has_source() {
10984 _has_bits_[0] |= 0x00000001u;
10985 }
10986 inline void DataParameter::clear_has_source() {
10987 _has_bits_[0] &= ~0x00000001u;
10988 }
10989 inline void DataParameter::clear_source() {
10990 if (source_ != &::google::protobuf::internal::kEmptyString) {
10991 source_->clear();
10992 }
10993 clear_has_source();
10994 }
10995 inline const ::std::string& DataParameter::source() const {
10996 return *source_;
10997 }
10998 inline void DataParameter::set_source(const ::std::string& value) {
10999 set_has_source();
11000 if (source_ == &::google::protobuf::internal::kEmptyString) {
11001 source_ = new ::std::string;
11002 }
11003 source_->assign(value);
11004 }
11005 inline void DataParameter::set_source(const char* value) {
11006 set_has_source();
11007 if (source_ == &::google::protobuf::internal::kEmptyString) {
11008 source_ = new ::std::string;
11009 }
11010 source_->assign(value);
11011 }
11012 inline void DataParameter::set_source(const char* value, size_t size) {
11013 set_has_source();
11014 if (source_ == &::google::protobuf::internal::kEmptyString) {
11015 source_ = new ::std::string;
11016 }
11017 source_->assign(reinterpret_cast<const char*>(value), size);
11018 }
11019 inline ::std::string* DataParameter::mutable_source() {
11020 set_has_source();
11021 if (source_ == &::google::protobuf::internal::kEmptyString) {
11022 source_ = new ::std::string;
11023 }
11024 return source_;
11025 }
11026 inline ::std::string* DataParameter::release_source() {
11027 clear_has_source();
11028 if (source_ == &::google::protobuf::internal::kEmptyString) {
11029 return NULL;
11030 } else {
11031 ::std::string* temp = source_;
11032 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11033 return temp;
11034 }
11035 }
11036 inline void DataParameter::set_allocated_source(::std::string* source) {
11037 if (source_ != &::google::protobuf::internal::kEmptyString) {
11038 delete source_;
11039 }
11040 if (source) {
11041 set_has_source();
11042 source_ = source;
11043 } else {
11044 clear_has_source();
11045 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11046 }
11047 }
11049 // optional uint32 batch_size = 4;
11050 inline bool DataParameter::has_batch_size() const {
11051 return (_has_bits_[0] & 0x00000002u) != 0;
11052 }
11053 inline void DataParameter::set_has_batch_size() {
11054 _has_bits_[0] |= 0x00000002u;
11055 }
11056 inline void DataParameter::clear_has_batch_size() {
11057 _has_bits_[0] &= ~0x00000002u;
11058 }
11059 inline void DataParameter::clear_batch_size() {
11060 batch_size_ = 0u;
11061 clear_has_batch_size();
11062 }
11063 inline ::google::protobuf::uint32 DataParameter::batch_size() const {
11064 return batch_size_;
11065 }
11066 inline void DataParameter::set_batch_size(::google::protobuf::uint32 value) {
11067 set_has_batch_size();
11068 batch_size_ = value;
11069 }
11071 // optional uint32 rand_skip = 7 [default = 0];
11072 inline bool DataParameter::has_rand_skip() const {
11073 return (_has_bits_[0] & 0x00000004u) != 0;
11074 }
11075 inline void DataParameter::set_has_rand_skip() {
11076 _has_bits_[0] |= 0x00000004u;
11077 }
11078 inline void DataParameter::clear_has_rand_skip() {
11079 _has_bits_[0] &= ~0x00000004u;
11080 }
11081 inline void DataParameter::clear_rand_skip() {
11082 rand_skip_ = 0u;
11083 clear_has_rand_skip();
11084 }
11085 inline ::google::protobuf::uint32 DataParameter::rand_skip() const {
11086 return rand_skip_;
11087 }
11088 inline void DataParameter::set_rand_skip(::google::protobuf::uint32 value) {
11089 set_has_rand_skip();
11090 rand_skip_ = value;
11091 }
11093 // optional .caffe.DataParameter.DB backend = 8 [default = LEVELDB];
11094 inline bool DataParameter::has_backend() const {
11095 return (_has_bits_[0] & 0x00000008u) != 0;
11096 }
11097 inline void DataParameter::set_has_backend() {
11098 _has_bits_[0] |= 0x00000008u;
11099 }
11100 inline void DataParameter::clear_has_backend() {
11101 _has_bits_[0] &= ~0x00000008u;
11102 }
11103 inline void DataParameter::clear_backend() {
11104 backend_ = 0;
11105 clear_has_backend();
11106 }
11107 inline ::caffe::DataParameter_DB DataParameter::backend() const {
11108 return static_cast< ::caffe::DataParameter_DB >(backend_);
11109 }
11110 inline void DataParameter::set_backend(::caffe::DataParameter_DB value) {
11111 assert(::caffe::DataParameter_DB_IsValid(value));
11112 set_has_backend();
11113 backend_ = value;
11114 }
11116 // optional float scale = 2 [default = 1];
11117 inline bool DataParameter::has_scale() const {
11118 return (_has_bits_[0] & 0x00000010u) != 0;
11119 }
11120 inline void DataParameter::set_has_scale() {
11121 _has_bits_[0] |= 0x00000010u;
11122 }
11123 inline void DataParameter::clear_has_scale() {
11124 _has_bits_[0] &= ~0x00000010u;
11125 }
11126 inline void DataParameter::clear_scale() {
11127 scale_ = 1;
11128 clear_has_scale();
11129 }
11130 inline float DataParameter::scale() const {
11131 return scale_;
11132 }
11133 inline void DataParameter::set_scale(float value) {
11134 set_has_scale();
11135 scale_ = value;
11136 }
11138 // optional string mean_file = 3;
11139 inline bool DataParameter::has_mean_file() const {
11140 return (_has_bits_[0] & 0x00000020u) != 0;
11141 }
11142 inline void DataParameter::set_has_mean_file() {
11143 _has_bits_[0] |= 0x00000020u;
11144 }
11145 inline void DataParameter::clear_has_mean_file() {
11146 _has_bits_[0] &= ~0x00000020u;
11147 }
11148 inline void DataParameter::clear_mean_file() {
11149 if (mean_file_ != &::google::protobuf::internal::kEmptyString) {
11150 mean_file_->clear();
11151 }
11152 clear_has_mean_file();
11153 }
11154 inline const ::std::string& DataParameter::mean_file() const {
11155 return *mean_file_;
11156 }
11157 inline void DataParameter::set_mean_file(const ::std::string& value) {
11158 set_has_mean_file();
11159 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11160 mean_file_ = new ::std::string;
11161 }
11162 mean_file_->assign(value);
11163 }
11164 inline void DataParameter::set_mean_file(const char* value) {
11165 set_has_mean_file();
11166 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11167 mean_file_ = new ::std::string;
11168 }
11169 mean_file_->assign(value);
11170 }
11171 inline void DataParameter::set_mean_file(const char* value, size_t size) {
11172 set_has_mean_file();
11173 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11174 mean_file_ = new ::std::string;
11175 }
11176 mean_file_->assign(reinterpret_cast<const char*>(value), size);
11177 }
11178 inline ::std::string* DataParameter::mutable_mean_file() {
11179 set_has_mean_file();
11180 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11181 mean_file_ = new ::std::string;
11182 }
11183 return mean_file_;
11184 }
11185 inline ::std::string* DataParameter::release_mean_file() {
11186 clear_has_mean_file();
11187 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11188 return NULL;
11189 } else {
11190 ::std::string* temp = mean_file_;
11191 mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11192 return temp;
11193 }
11194 }
11195 inline void DataParameter::set_allocated_mean_file(::std::string* mean_file) {
11196 if (mean_file_ != &::google::protobuf::internal::kEmptyString) {
11197 delete mean_file_;
11198 }
11199 if (mean_file) {
11200 set_has_mean_file();
11201 mean_file_ = mean_file;
11202 } else {
11203 clear_has_mean_file();
11204 mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11205 }
11206 }
11208 // optional uint32 crop_size = 5 [default = 0];
11209 inline bool DataParameter::has_crop_size() const {
11210 return (_has_bits_[0] & 0x00000040u) != 0;
11211 }
11212 inline void DataParameter::set_has_crop_size() {
11213 _has_bits_[0] |= 0x00000040u;
11214 }
11215 inline void DataParameter::clear_has_crop_size() {
11216 _has_bits_[0] &= ~0x00000040u;
11217 }
11218 inline void DataParameter::clear_crop_size() {
11219 crop_size_ = 0u;
11220 clear_has_crop_size();
11221 }
11222 inline ::google::protobuf::uint32 DataParameter::crop_size() const {
11223 return crop_size_;
11224 }
11225 inline void DataParameter::set_crop_size(::google::protobuf::uint32 value) {
11226 set_has_crop_size();
11227 crop_size_ = value;
11228 }
11230 // optional bool mirror = 6 [default = false];
11231 inline bool DataParameter::has_mirror() const {
11232 return (_has_bits_[0] & 0x00000080u) != 0;
11233 }
11234 inline void DataParameter::set_has_mirror() {
11235 _has_bits_[0] |= 0x00000080u;
11236 }
11237 inline void DataParameter::clear_has_mirror() {
11238 _has_bits_[0] &= ~0x00000080u;
11239 }
11240 inline void DataParameter::clear_mirror() {
11241 mirror_ = false;
11242 clear_has_mirror();
11243 }
11244 inline bool DataParameter::mirror() const {
11245 return mirror_;
11246 }
11247 inline void DataParameter::set_mirror(bool value) {
11248 set_has_mirror();
11249 mirror_ = value;
11250 }
11252 // -------------------------------------------------------------------
11254 // DropoutParameter
11256 // optional float dropout_ratio = 1 [default = 0.5];
11257 inline bool DropoutParameter::has_dropout_ratio() const {
11258 return (_has_bits_[0] & 0x00000001u) != 0;
11259 }
11260 inline void DropoutParameter::set_has_dropout_ratio() {
11261 _has_bits_[0] |= 0x00000001u;
11262 }
11263 inline void DropoutParameter::clear_has_dropout_ratio() {
11264 _has_bits_[0] &= ~0x00000001u;
11265 }
11266 inline void DropoutParameter::clear_dropout_ratio() {
11267 dropout_ratio_ = 0.5f;
11268 clear_has_dropout_ratio();
11269 }
11270 inline float DropoutParameter::dropout_ratio() const {
11271 return dropout_ratio_;
11272 }
11273 inline void DropoutParameter::set_dropout_ratio(float value) {
11274 set_has_dropout_ratio();
11275 dropout_ratio_ = value;
11276 }
11278 // -------------------------------------------------------------------
11280 // DummyDataParameter
11282 // repeated .caffe.FillerParameter data_filler = 1;
11283 inline int DummyDataParameter::data_filler_size() const {
11284 return data_filler_.size();
11285 }
11286 inline void DummyDataParameter::clear_data_filler() {
11287 data_filler_.Clear();
11288 }
11289 inline const ::caffe::FillerParameter& DummyDataParameter::data_filler(int index) const {
11290 return data_filler_.Get(index);
11291 }
11292 inline ::caffe::FillerParameter* DummyDataParameter::mutable_data_filler(int index) {
11293 return data_filler_.Mutable(index);
11294 }
11295 inline ::caffe::FillerParameter* DummyDataParameter::add_data_filler() {
11296 return data_filler_.Add();
11297 }
11298 inline const ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter >&
11299 DummyDataParameter::data_filler() const {
11300 return data_filler_;
11301 }
11302 inline ::google::protobuf::RepeatedPtrField< ::caffe::FillerParameter >*
11303 DummyDataParameter::mutable_data_filler() {
11304 return &data_filler_;
11305 }
11307 // repeated uint32 num = 2;
11308 inline int DummyDataParameter::num_size() const {
11309 return num_.size();
11310 }
11311 inline void DummyDataParameter::clear_num() {
11312 num_.Clear();
11313 }
11314 inline ::google::protobuf::uint32 DummyDataParameter::num(int index) const {
11315 return num_.Get(index);
11316 }
11317 inline void DummyDataParameter::set_num(int index, ::google::protobuf::uint32 value) {
11318 num_.Set(index, value);
11319 }
11320 inline void DummyDataParameter::add_num(::google::protobuf::uint32 value) {
11321 num_.Add(value);
11322 }
11323 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
11324 DummyDataParameter::num() const {
11325 return num_;
11326 }
11327 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
11328 DummyDataParameter::mutable_num() {
11329 return &num_;
11330 }
11332 // repeated uint32 channels = 3;
11333 inline int DummyDataParameter::channels_size() const {
11334 return channels_.size();
11335 }
11336 inline void DummyDataParameter::clear_channels() {
11337 channels_.Clear();
11338 }
11339 inline ::google::protobuf::uint32 DummyDataParameter::channels(int index) const {
11340 return channels_.Get(index);
11341 }
11342 inline void DummyDataParameter::set_channels(int index, ::google::protobuf::uint32 value) {
11343 channels_.Set(index, value);
11344 }
11345 inline void DummyDataParameter::add_channels(::google::protobuf::uint32 value) {
11346 channels_.Add(value);
11347 }
11348 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
11349 DummyDataParameter::channels() const {
11350 return channels_;
11351 }
11352 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
11353 DummyDataParameter::mutable_channels() {
11354 return &channels_;
11355 }
11357 // repeated uint32 height = 4;
11358 inline int DummyDataParameter::height_size() const {
11359 return height_.size();
11360 }
11361 inline void DummyDataParameter::clear_height() {
11362 height_.Clear();
11363 }
11364 inline ::google::protobuf::uint32 DummyDataParameter::height(int index) const {
11365 return height_.Get(index);
11366 }
11367 inline void DummyDataParameter::set_height(int index, ::google::protobuf::uint32 value) {
11368 height_.Set(index, value);
11369 }
11370 inline void DummyDataParameter::add_height(::google::protobuf::uint32 value) {
11371 height_.Add(value);
11372 }
11373 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
11374 DummyDataParameter::height() const {
11375 return height_;
11376 }
11377 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
11378 DummyDataParameter::mutable_height() {
11379 return &height_;
11380 }
11382 // repeated uint32 width = 5;
11383 inline int DummyDataParameter::width_size() const {
11384 return width_.size();
11385 }
11386 inline void DummyDataParameter::clear_width() {
11387 width_.Clear();
11388 }
11389 inline ::google::protobuf::uint32 DummyDataParameter::width(int index) const {
11390 return width_.Get(index);
11391 }
11392 inline void DummyDataParameter::set_width(int index, ::google::protobuf::uint32 value) {
11393 width_.Set(index, value);
11394 }
11395 inline void DummyDataParameter::add_width(::google::protobuf::uint32 value) {
11396 width_.Add(value);
11397 }
11398 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
11399 DummyDataParameter::width() const {
11400 return width_;
11401 }
11402 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
11403 DummyDataParameter::mutable_width() {
11404 return &width_;
11405 }
11407 // -------------------------------------------------------------------
11409 // EltwiseParameter
11411 // optional .caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM];
11412 inline bool EltwiseParameter::has_operation() const {
11413 return (_has_bits_[0] & 0x00000001u) != 0;
11414 }
11415 inline void EltwiseParameter::set_has_operation() {
11416 _has_bits_[0] |= 0x00000001u;
11417 }
11418 inline void EltwiseParameter::clear_has_operation() {
11419 _has_bits_[0] &= ~0x00000001u;
11420 }
11421 inline void EltwiseParameter::clear_operation() {
11422 operation_ = 1;
11423 clear_has_operation();
11424 }
11425 inline ::caffe::EltwiseParameter_EltwiseOp EltwiseParameter::operation() const {
11426 return static_cast< ::caffe::EltwiseParameter_EltwiseOp >(operation_);
11427 }
11428 inline void EltwiseParameter::set_operation(::caffe::EltwiseParameter_EltwiseOp value) {
11429 assert(::caffe::EltwiseParameter_EltwiseOp_IsValid(value));
11430 set_has_operation();
11431 operation_ = value;
11432 }
11434 // repeated float coeff = 2;
11435 inline int EltwiseParameter::coeff_size() const {
11436 return coeff_.size();
11437 }
11438 inline void EltwiseParameter::clear_coeff() {
11439 coeff_.Clear();
11440 }
11441 inline float EltwiseParameter::coeff(int index) const {
11442 return coeff_.Get(index);
11443 }
11444 inline void EltwiseParameter::set_coeff(int index, float value) {
11445 coeff_.Set(index, value);
11446 }
11447 inline void EltwiseParameter::add_coeff(float value) {
11448 coeff_.Add(value);
11449 }
11450 inline const ::google::protobuf::RepeatedField< float >&
11451 EltwiseParameter::coeff() const {
11452 return coeff_;
11453 }
11454 inline ::google::protobuf::RepeatedField< float >*
11455 EltwiseParameter::mutable_coeff() {
11456 return &coeff_;
11457 }
11459 // optional bool stable_prod_grad = 3 [default = true];
11460 inline bool EltwiseParameter::has_stable_prod_grad() const {
11461 return (_has_bits_[0] & 0x00000004u) != 0;
11462 }
11463 inline void EltwiseParameter::set_has_stable_prod_grad() {
11464 _has_bits_[0] |= 0x00000004u;
11465 }
11466 inline void EltwiseParameter::clear_has_stable_prod_grad() {
11467 _has_bits_[0] &= ~0x00000004u;
11468 }
11469 inline void EltwiseParameter::clear_stable_prod_grad() {
11470 stable_prod_grad_ = true;
11471 clear_has_stable_prod_grad();
11472 }
11473 inline bool EltwiseParameter::stable_prod_grad() const {
11474 return stable_prod_grad_;
11475 }
11476 inline void EltwiseParameter::set_stable_prod_grad(bool value) {
11477 set_has_stable_prod_grad();
11478 stable_prod_grad_ = value;
11479 }
11481 // -------------------------------------------------------------------
11483 // ThresholdParameter
11485 // optional float threshold = 1 [default = 0];
11486 inline bool ThresholdParameter::has_threshold() const {
11487 return (_has_bits_[0] & 0x00000001u) != 0;
11488 }
11489 inline void ThresholdParameter::set_has_threshold() {
11490 _has_bits_[0] |= 0x00000001u;
11491 }
11492 inline void ThresholdParameter::clear_has_threshold() {
11493 _has_bits_[0] &= ~0x00000001u;
11494 }
11495 inline void ThresholdParameter::clear_threshold() {
11496 threshold_ = 0;
11497 clear_has_threshold();
11498 }
11499 inline float ThresholdParameter::threshold() const {
11500 return threshold_;
11501 }
11502 inline void ThresholdParameter::set_threshold(float value) {
11503 set_has_threshold();
11504 threshold_ = value;
11505 }
11507 // -------------------------------------------------------------------
11509 // HDF5DataParameter
11511 // optional string source = 1;
11512 inline bool HDF5DataParameter::has_source() const {
11513 return (_has_bits_[0] & 0x00000001u) != 0;
11514 }
11515 inline void HDF5DataParameter::set_has_source() {
11516 _has_bits_[0] |= 0x00000001u;
11517 }
11518 inline void HDF5DataParameter::clear_has_source() {
11519 _has_bits_[0] &= ~0x00000001u;
11520 }
11521 inline void HDF5DataParameter::clear_source() {
11522 if (source_ != &::google::protobuf::internal::kEmptyString) {
11523 source_->clear();
11524 }
11525 clear_has_source();
11526 }
11527 inline const ::std::string& HDF5DataParameter::source() const {
11528 return *source_;
11529 }
11530 inline void HDF5DataParameter::set_source(const ::std::string& value) {
11531 set_has_source();
11532 if (source_ == &::google::protobuf::internal::kEmptyString) {
11533 source_ = new ::std::string;
11534 }
11535 source_->assign(value);
11536 }
11537 inline void HDF5DataParameter::set_source(const char* value) {
11538 set_has_source();
11539 if (source_ == &::google::protobuf::internal::kEmptyString) {
11540 source_ = new ::std::string;
11541 }
11542 source_->assign(value);
11543 }
11544 inline void HDF5DataParameter::set_source(const char* value, size_t size) {
11545 set_has_source();
11546 if (source_ == &::google::protobuf::internal::kEmptyString) {
11547 source_ = new ::std::string;
11548 }
11549 source_->assign(reinterpret_cast<const char*>(value), size);
11550 }
11551 inline ::std::string* HDF5DataParameter::mutable_source() {
11552 set_has_source();
11553 if (source_ == &::google::protobuf::internal::kEmptyString) {
11554 source_ = new ::std::string;
11555 }
11556 return source_;
11557 }
11558 inline ::std::string* HDF5DataParameter::release_source() {
11559 clear_has_source();
11560 if (source_ == &::google::protobuf::internal::kEmptyString) {
11561 return NULL;
11562 } else {
11563 ::std::string* temp = source_;
11564 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11565 return temp;
11566 }
11567 }
11568 inline void HDF5DataParameter::set_allocated_source(::std::string* source) {
11569 if (source_ != &::google::protobuf::internal::kEmptyString) {
11570 delete source_;
11571 }
11572 if (source) {
11573 set_has_source();
11574 source_ = source;
11575 } else {
11576 clear_has_source();
11577 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11578 }
11579 }
11581 // optional uint32 batch_size = 2;
11582 inline bool HDF5DataParameter::has_batch_size() const {
11583 return (_has_bits_[0] & 0x00000002u) != 0;
11584 }
11585 inline void HDF5DataParameter::set_has_batch_size() {
11586 _has_bits_[0] |= 0x00000002u;
11587 }
11588 inline void HDF5DataParameter::clear_has_batch_size() {
11589 _has_bits_[0] &= ~0x00000002u;
11590 }
11591 inline void HDF5DataParameter::clear_batch_size() {
11592 batch_size_ = 0u;
11593 clear_has_batch_size();
11594 }
11595 inline ::google::protobuf::uint32 HDF5DataParameter::batch_size() const {
11596 return batch_size_;
11597 }
11598 inline void HDF5DataParameter::set_batch_size(::google::protobuf::uint32 value) {
11599 set_has_batch_size();
11600 batch_size_ = value;
11601 }
11603 // -------------------------------------------------------------------
11605 // HDF5OutputParameter
11607 // optional string file_name = 1;
11608 inline bool HDF5OutputParameter::has_file_name() const {
11609 return (_has_bits_[0] & 0x00000001u) != 0;
11610 }
11611 inline void HDF5OutputParameter::set_has_file_name() {
11612 _has_bits_[0] |= 0x00000001u;
11613 }
11614 inline void HDF5OutputParameter::clear_has_file_name() {
11615 _has_bits_[0] &= ~0x00000001u;
11616 }
11617 inline void HDF5OutputParameter::clear_file_name() {
11618 if (file_name_ != &::google::protobuf::internal::kEmptyString) {
11619 file_name_->clear();
11620 }
11621 clear_has_file_name();
11622 }
11623 inline const ::std::string& HDF5OutputParameter::file_name() const {
11624 return *file_name_;
11625 }
11626 inline void HDF5OutputParameter::set_file_name(const ::std::string& value) {
11627 set_has_file_name();
11628 if (file_name_ == &::google::protobuf::internal::kEmptyString) {
11629 file_name_ = new ::std::string;
11630 }
11631 file_name_->assign(value);
11632 }
11633 inline void HDF5OutputParameter::set_file_name(const char* value) {
11634 set_has_file_name();
11635 if (file_name_ == &::google::protobuf::internal::kEmptyString) {
11636 file_name_ = new ::std::string;
11637 }
11638 file_name_->assign(value);
11639 }
11640 inline void HDF5OutputParameter::set_file_name(const char* value, size_t size) {
11641 set_has_file_name();
11642 if (file_name_ == &::google::protobuf::internal::kEmptyString) {
11643 file_name_ = new ::std::string;
11644 }
11645 file_name_->assign(reinterpret_cast<const char*>(value), size);
11646 }
11647 inline ::std::string* HDF5OutputParameter::mutable_file_name() {
11648 set_has_file_name();
11649 if (file_name_ == &::google::protobuf::internal::kEmptyString) {
11650 file_name_ = new ::std::string;
11651 }
11652 return file_name_;
11653 }
11654 inline ::std::string* HDF5OutputParameter::release_file_name() {
11655 clear_has_file_name();
11656 if (file_name_ == &::google::protobuf::internal::kEmptyString) {
11657 return NULL;
11658 } else {
11659 ::std::string* temp = file_name_;
11660 file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11661 return temp;
11662 }
11663 }
11664 inline void HDF5OutputParameter::set_allocated_file_name(::std::string* file_name) {
11665 if (file_name_ != &::google::protobuf::internal::kEmptyString) {
11666 delete file_name_;
11667 }
11668 if (file_name) {
11669 set_has_file_name();
11670 file_name_ = file_name;
11671 } else {
11672 clear_has_file_name();
11673 file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11674 }
11675 }
11677 // -------------------------------------------------------------------
11679 // HingeLossParameter
11681 // optional .caffe.HingeLossParameter.Norm norm = 1 [default = L1];
11682 inline bool HingeLossParameter::has_norm() const {
11683 return (_has_bits_[0] & 0x00000001u) != 0;
11684 }
11685 inline void HingeLossParameter::set_has_norm() {
11686 _has_bits_[0] |= 0x00000001u;
11687 }
11688 inline void HingeLossParameter::clear_has_norm() {
11689 _has_bits_[0] &= ~0x00000001u;
11690 }
11691 inline void HingeLossParameter::clear_norm() {
11692 norm_ = 1;
11693 clear_has_norm();
11694 }
11695 inline ::caffe::HingeLossParameter_Norm HingeLossParameter::norm() const {
11696 return static_cast< ::caffe::HingeLossParameter_Norm >(norm_);
11697 }
11698 inline void HingeLossParameter::set_norm(::caffe::HingeLossParameter_Norm value) {
11699 assert(::caffe::HingeLossParameter_Norm_IsValid(value));
11700 set_has_norm();
11701 norm_ = value;
11702 }
11704 // -------------------------------------------------------------------
11706 // ImageDataParameter
11708 // optional string source = 1;
11709 inline bool ImageDataParameter::has_source() const {
11710 return (_has_bits_[0] & 0x00000001u) != 0;
11711 }
11712 inline void ImageDataParameter::set_has_source() {
11713 _has_bits_[0] |= 0x00000001u;
11714 }
11715 inline void ImageDataParameter::clear_has_source() {
11716 _has_bits_[0] &= ~0x00000001u;
11717 }
11718 inline void ImageDataParameter::clear_source() {
11719 if (source_ != &::google::protobuf::internal::kEmptyString) {
11720 source_->clear();
11721 }
11722 clear_has_source();
11723 }
11724 inline const ::std::string& ImageDataParameter::source() const {
11725 return *source_;
11726 }
11727 inline void ImageDataParameter::set_source(const ::std::string& value) {
11728 set_has_source();
11729 if (source_ == &::google::protobuf::internal::kEmptyString) {
11730 source_ = new ::std::string;
11731 }
11732 source_->assign(value);
11733 }
11734 inline void ImageDataParameter::set_source(const char* value) {
11735 set_has_source();
11736 if (source_ == &::google::protobuf::internal::kEmptyString) {
11737 source_ = new ::std::string;
11738 }
11739 source_->assign(value);
11740 }
11741 inline void ImageDataParameter::set_source(const char* value, size_t size) {
11742 set_has_source();
11743 if (source_ == &::google::protobuf::internal::kEmptyString) {
11744 source_ = new ::std::string;
11745 }
11746 source_->assign(reinterpret_cast<const char*>(value), size);
11747 }
11748 inline ::std::string* ImageDataParameter::mutable_source() {
11749 set_has_source();
11750 if (source_ == &::google::protobuf::internal::kEmptyString) {
11751 source_ = new ::std::string;
11752 }
11753 return source_;
11754 }
11755 inline ::std::string* ImageDataParameter::release_source() {
11756 clear_has_source();
11757 if (source_ == &::google::protobuf::internal::kEmptyString) {
11758 return NULL;
11759 } else {
11760 ::std::string* temp = source_;
11761 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11762 return temp;
11763 }
11764 }
11765 inline void ImageDataParameter::set_allocated_source(::std::string* source) {
11766 if (source_ != &::google::protobuf::internal::kEmptyString) {
11767 delete source_;
11768 }
11769 if (source) {
11770 set_has_source();
11771 source_ = source;
11772 } else {
11773 clear_has_source();
11774 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11775 }
11776 }
11778 // optional uint32 batch_size = 4;
11779 inline bool ImageDataParameter::has_batch_size() const {
11780 return (_has_bits_[0] & 0x00000002u) != 0;
11781 }
11782 inline void ImageDataParameter::set_has_batch_size() {
11783 _has_bits_[0] |= 0x00000002u;
11784 }
11785 inline void ImageDataParameter::clear_has_batch_size() {
11786 _has_bits_[0] &= ~0x00000002u;
11787 }
11788 inline void ImageDataParameter::clear_batch_size() {
11789 batch_size_ = 0u;
11790 clear_has_batch_size();
11791 }
11792 inline ::google::protobuf::uint32 ImageDataParameter::batch_size() const {
11793 return batch_size_;
11794 }
11795 inline void ImageDataParameter::set_batch_size(::google::protobuf::uint32 value) {
11796 set_has_batch_size();
11797 batch_size_ = value;
11798 }
11800 // optional uint32 rand_skip = 7 [default = 0];
11801 inline bool ImageDataParameter::has_rand_skip() const {
11802 return (_has_bits_[0] & 0x00000004u) != 0;
11803 }
11804 inline void ImageDataParameter::set_has_rand_skip() {
11805 _has_bits_[0] |= 0x00000004u;
11806 }
11807 inline void ImageDataParameter::clear_has_rand_skip() {
11808 _has_bits_[0] &= ~0x00000004u;
11809 }
11810 inline void ImageDataParameter::clear_rand_skip() {
11811 rand_skip_ = 0u;
11812 clear_has_rand_skip();
11813 }
11814 inline ::google::protobuf::uint32 ImageDataParameter::rand_skip() const {
11815 return rand_skip_;
11816 }
11817 inline void ImageDataParameter::set_rand_skip(::google::protobuf::uint32 value) {
11818 set_has_rand_skip();
11819 rand_skip_ = value;
11820 }
11822 // optional bool shuffle = 8 [default = false];
11823 inline bool ImageDataParameter::has_shuffle() const {
11824 return (_has_bits_[0] & 0x00000008u) != 0;
11825 }
11826 inline void ImageDataParameter::set_has_shuffle() {
11827 _has_bits_[0] |= 0x00000008u;
11828 }
11829 inline void ImageDataParameter::clear_has_shuffle() {
11830 _has_bits_[0] &= ~0x00000008u;
11831 }
11832 inline void ImageDataParameter::clear_shuffle() {
11833 shuffle_ = false;
11834 clear_has_shuffle();
11835 }
11836 inline bool ImageDataParameter::shuffle() const {
11837 return shuffle_;
11838 }
11839 inline void ImageDataParameter::set_shuffle(bool value) {
11840 set_has_shuffle();
11841 shuffle_ = value;
11842 }
11844 // optional uint32 new_height = 9 [default = 0];
11845 inline bool ImageDataParameter::has_new_height() const {
11846 return (_has_bits_[0] & 0x00000010u) != 0;
11847 }
11848 inline void ImageDataParameter::set_has_new_height() {
11849 _has_bits_[0] |= 0x00000010u;
11850 }
11851 inline void ImageDataParameter::clear_has_new_height() {
11852 _has_bits_[0] &= ~0x00000010u;
11853 }
11854 inline void ImageDataParameter::clear_new_height() {
11855 new_height_ = 0u;
11856 clear_has_new_height();
11857 }
11858 inline ::google::protobuf::uint32 ImageDataParameter::new_height() const {
11859 return new_height_;
11860 }
11861 inline void ImageDataParameter::set_new_height(::google::protobuf::uint32 value) {
11862 set_has_new_height();
11863 new_height_ = value;
11864 }
11866 // optional uint32 new_width = 10 [default = 0];
11867 inline bool ImageDataParameter::has_new_width() const {
11868 return (_has_bits_[0] & 0x00000020u) != 0;
11869 }
11870 inline void ImageDataParameter::set_has_new_width() {
11871 _has_bits_[0] |= 0x00000020u;
11872 }
11873 inline void ImageDataParameter::clear_has_new_width() {
11874 _has_bits_[0] &= ~0x00000020u;
11875 }
11876 inline void ImageDataParameter::clear_new_width() {
11877 new_width_ = 0u;
11878 clear_has_new_width();
11879 }
11880 inline ::google::protobuf::uint32 ImageDataParameter::new_width() const {
11881 return new_width_;
11882 }
11883 inline void ImageDataParameter::set_new_width(::google::protobuf::uint32 value) {
11884 set_has_new_width();
11885 new_width_ = value;
11886 }
11888 // optional float scale = 2 [default = 1];
11889 inline bool ImageDataParameter::has_scale() const {
11890 return (_has_bits_[0] & 0x00000040u) != 0;
11891 }
11892 inline void ImageDataParameter::set_has_scale() {
11893 _has_bits_[0] |= 0x00000040u;
11894 }
11895 inline void ImageDataParameter::clear_has_scale() {
11896 _has_bits_[0] &= ~0x00000040u;
11897 }
11898 inline void ImageDataParameter::clear_scale() {
11899 scale_ = 1;
11900 clear_has_scale();
11901 }
11902 inline float ImageDataParameter::scale() const {
11903 return scale_;
11904 }
11905 inline void ImageDataParameter::set_scale(float value) {
11906 set_has_scale();
11907 scale_ = value;
11908 }
11910 // optional string mean_file = 3;
11911 inline bool ImageDataParameter::has_mean_file() const {
11912 return (_has_bits_[0] & 0x00000080u) != 0;
11913 }
11914 inline void ImageDataParameter::set_has_mean_file() {
11915 _has_bits_[0] |= 0x00000080u;
11916 }
11917 inline void ImageDataParameter::clear_has_mean_file() {
11918 _has_bits_[0] &= ~0x00000080u;
11919 }
11920 inline void ImageDataParameter::clear_mean_file() {
11921 if (mean_file_ != &::google::protobuf::internal::kEmptyString) {
11922 mean_file_->clear();
11923 }
11924 clear_has_mean_file();
11925 }
11926 inline const ::std::string& ImageDataParameter::mean_file() const {
11927 return *mean_file_;
11928 }
11929 inline void ImageDataParameter::set_mean_file(const ::std::string& value) {
11930 set_has_mean_file();
11931 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11932 mean_file_ = new ::std::string;
11933 }
11934 mean_file_->assign(value);
11935 }
11936 inline void ImageDataParameter::set_mean_file(const char* value) {
11937 set_has_mean_file();
11938 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11939 mean_file_ = new ::std::string;
11940 }
11941 mean_file_->assign(value);
11942 }
11943 inline void ImageDataParameter::set_mean_file(const char* value, size_t size) {
11944 set_has_mean_file();
11945 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11946 mean_file_ = new ::std::string;
11947 }
11948 mean_file_->assign(reinterpret_cast<const char*>(value), size);
11949 }
11950 inline ::std::string* ImageDataParameter::mutable_mean_file() {
11951 set_has_mean_file();
11952 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11953 mean_file_ = new ::std::string;
11954 }
11955 return mean_file_;
11956 }
11957 inline ::std::string* ImageDataParameter::release_mean_file() {
11958 clear_has_mean_file();
11959 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
11960 return NULL;
11961 } else {
11962 ::std::string* temp = mean_file_;
11963 mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11964 return temp;
11965 }
11966 }
11967 inline void ImageDataParameter::set_allocated_mean_file(::std::string* mean_file) {
11968 if (mean_file_ != &::google::protobuf::internal::kEmptyString) {
11969 delete mean_file_;
11970 }
11971 if (mean_file) {
11972 set_has_mean_file();
11973 mean_file_ = mean_file;
11974 } else {
11975 clear_has_mean_file();
11976 mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
11977 }
11978 }
11980 // optional uint32 crop_size = 5 [default = 0];
11981 inline bool ImageDataParameter::has_crop_size() const {
11982 return (_has_bits_[0] & 0x00000100u) != 0;
11983 }
11984 inline void ImageDataParameter::set_has_crop_size() {
11985 _has_bits_[0] |= 0x00000100u;
11986 }
11987 inline void ImageDataParameter::clear_has_crop_size() {
11988 _has_bits_[0] &= ~0x00000100u;
11989 }
11990 inline void ImageDataParameter::clear_crop_size() {
11991 crop_size_ = 0u;
11992 clear_has_crop_size();
11993 }
11994 inline ::google::protobuf::uint32 ImageDataParameter::crop_size() const {
11995 return crop_size_;
11996 }
11997 inline void ImageDataParameter::set_crop_size(::google::protobuf::uint32 value) {
11998 set_has_crop_size();
11999 crop_size_ = value;
12000 }
12002 // optional bool mirror = 6 [default = false];
12003 inline bool ImageDataParameter::has_mirror() const {
12004 return (_has_bits_[0] & 0x00000200u) != 0;
12005 }
12006 inline void ImageDataParameter::set_has_mirror() {
12007 _has_bits_[0] |= 0x00000200u;
12008 }
12009 inline void ImageDataParameter::clear_has_mirror() {
12010 _has_bits_[0] &= ~0x00000200u;
12011 }
12012 inline void ImageDataParameter::clear_mirror() {
12013 mirror_ = false;
12014 clear_has_mirror();
12015 }
12016 inline bool ImageDataParameter::mirror() const {
12017 return mirror_;
12018 }
12019 inline void ImageDataParameter::set_mirror(bool value) {
12020 set_has_mirror();
12021 mirror_ = value;
12022 }
12024 // -------------------------------------------------------------------
12026 // InfogainLossParameter
12028 // optional string source = 1;
12029 inline bool InfogainLossParameter::has_source() const {
12030 return (_has_bits_[0] & 0x00000001u) != 0;
12031 }
12032 inline void InfogainLossParameter::set_has_source() {
12033 _has_bits_[0] |= 0x00000001u;
12034 }
12035 inline void InfogainLossParameter::clear_has_source() {
12036 _has_bits_[0] &= ~0x00000001u;
12037 }
12038 inline void InfogainLossParameter::clear_source() {
12039 if (source_ != &::google::protobuf::internal::kEmptyString) {
12040 source_->clear();
12041 }
12042 clear_has_source();
12043 }
12044 inline const ::std::string& InfogainLossParameter::source() const {
12045 return *source_;
12046 }
12047 inline void InfogainLossParameter::set_source(const ::std::string& value) {
12048 set_has_source();
12049 if (source_ == &::google::protobuf::internal::kEmptyString) {
12050 source_ = new ::std::string;
12051 }
12052 source_->assign(value);
12053 }
12054 inline void InfogainLossParameter::set_source(const char* value) {
12055 set_has_source();
12056 if (source_ == &::google::protobuf::internal::kEmptyString) {
12057 source_ = new ::std::string;
12058 }
12059 source_->assign(value);
12060 }
12061 inline void InfogainLossParameter::set_source(const char* value, size_t size) {
12062 set_has_source();
12063 if (source_ == &::google::protobuf::internal::kEmptyString) {
12064 source_ = new ::std::string;
12065 }
12066 source_->assign(reinterpret_cast<const char*>(value), size);
12067 }
12068 inline ::std::string* InfogainLossParameter::mutable_source() {
12069 set_has_source();
12070 if (source_ == &::google::protobuf::internal::kEmptyString) {
12071 source_ = new ::std::string;
12072 }
12073 return source_;
12074 }
12075 inline ::std::string* InfogainLossParameter::release_source() {
12076 clear_has_source();
12077 if (source_ == &::google::protobuf::internal::kEmptyString) {
12078 return NULL;
12079 } else {
12080 ::std::string* temp = source_;
12081 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
12082 return temp;
12083 }
12084 }
12085 inline void InfogainLossParameter::set_allocated_source(::std::string* source) {
12086 if (source_ != &::google::protobuf::internal::kEmptyString) {
12087 delete source_;
12088 }
12089 if (source) {
12090 set_has_source();
12091 source_ = source;
12092 } else {
12093 clear_has_source();
12094 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
12095 }
12096 }
12098 // -------------------------------------------------------------------
12100 // InnerProductParameter
12102 // optional uint32 num_output = 1;
12103 inline bool InnerProductParameter::has_num_output() const {
12104 return (_has_bits_[0] & 0x00000001u) != 0;
12105 }
12106 inline void InnerProductParameter::set_has_num_output() {
12107 _has_bits_[0] |= 0x00000001u;
12108 }
12109 inline void InnerProductParameter::clear_has_num_output() {
12110 _has_bits_[0] &= ~0x00000001u;
12111 }
12112 inline void InnerProductParameter::clear_num_output() {
12113 num_output_ = 0u;
12114 clear_has_num_output();
12115 }
12116 inline ::google::protobuf::uint32 InnerProductParameter::num_output() const {
12117 return num_output_;
12118 }
12119 inline void InnerProductParameter::set_num_output(::google::protobuf::uint32 value) {
12120 set_has_num_output();
12121 num_output_ = value;
12122 }
12124 // optional bool bias_term = 2 [default = true];
12125 inline bool InnerProductParameter::has_bias_term() const {
12126 return (_has_bits_[0] & 0x00000002u) != 0;
12127 }
12128 inline void InnerProductParameter::set_has_bias_term() {
12129 _has_bits_[0] |= 0x00000002u;
12130 }
12131 inline void InnerProductParameter::clear_has_bias_term() {
12132 _has_bits_[0] &= ~0x00000002u;
12133 }
12134 inline void InnerProductParameter::clear_bias_term() {
12135 bias_term_ = true;
12136 clear_has_bias_term();
12137 }
12138 inline bool InnerProductParameter::bias_term() const {
12139 return bias_term_;
12140 }
12141 inline void InnerProductParameter::set_bias_term(bool value) {
12142 set_has_bias_term();
12143 bias_term_ = value;
12144 }
12146 // optional .caffe.FillerParameter weight_filler = 3;
12147 inline bool InnerProductParameter::has_weight_filler() const {
12148 return (_has_bits_[0] & 0x00000004u) != 0;
12149 }
12150 inline void InnerProductParameter::set_has_weight_filler() {
12151 _has_bits_[0] |= 0x00000004u;
12152 }
12153 inline void InnerProductParameter::clear_has_weight_filler() {
12154 _has_bits_[0] &= ~0x00000004u;
12155 }
12156 inline void InnerProductParameter::clear_weight_filler() {
12157 if (weight_filler_ != NULL) weight_filler_->::caffe::FillerParameter::Clear();
12158 clear_has_weight_filler();
12159 }
12160 inline const ::caffe::FillerParameter& InnerProductParameter::weight_filler() const {
12161 return weight_filler_ != NULL ? *weight_filler_ : *default_instance_->weight_filler_;
12162 }
12163 inline ::caffe::FillerParameter* InnerProductParameter::mutable_weight_filler() {
12164 set_has_weight_filler();
12165 if (weight_filler_ == NULL) weight_filler_ = new ::caffe::FillerParameter;
12166 return weight_filler_;
12167 }
12168 inline ::caffe::FillerParameter* InnerProductParameter::release_weight_filler() {
12169 clear_has_weight_filler();
12170 ::caffe::FillerParameter* temp = weight_filler_;
12171 weight_filler_ = NULL;
12172 return temp;
12173 }
12174 inline void InnerProductParameter::set_allocated_weight_filler(::caffe::FillerParameter* weight_filler) {
12175 delete weight_filler_;
12176 weight_filler_ = weight_filler;
12177 if (weight_filler) {
12178 set_has_weight_filler();
12179 } else {
12180 clear_has_weight_filler();
12181 }
12182 }
12184 // optional .caffe.FillerParameter bias_filler = 4;
12185 inline bool InnerProductParameter::has_bias_filler() const {
12186 return (_has_bits_[0] & 0x00000008u) != 0;
12187 }
12188 inline void InnerProductParameter::set_has_bias_filler() {
12189 _has_bits_[0] |= 0x00000008u;
12190 }
12191 inline void InnerProductParameter::clear_has_bias_filler() {
12192 _has_bits_[0] &= ~0x00000008u;
12193 }
12194 inline void InnerProductParameter::clear_bias_filler() {
12195 if (bias_filler_ != NULL) bias_filler_->::caffe::FillerParameter::Clear();
12196 clear_has_bias_filler();
12197 }
12198 inline const ::caffe::FillerParameter& InnerProductParameter::bias_filler() const {
12199 return bias_filler_ != NULL ? *bias_filler_ : *default_instance_->bias_filler_;
12200 }
12201 inline ::caffe::FillerParameter* InnerProductParameter::mutable_bias_filler() {
12202 set_has_bias_filler();
12203 if (bias_filler_ == NULL) bias_filler_ = new ::caffe::FillerParameter;
12204 return bias_filler_;
12205 }
12206 inline ::caffe::FillerParameter* InnerProductParameter::release_bias_filler() {
12207 clear_has_bias_filler();
12208 ::caffe::FillerParameter* temp = bias_filler_;
12209 bias_filler_ = NULL;
12210 return temp;
12211 }
12212 inline void InnerProductParameter::set_allocated_bias_filler(::caffe::FillerParameter* bias_filler) {
12213 delete bias_filler_;
12214 bias_filler_ = bias_filler;
12215 if (bias_filler) {
12216 set_has_bias_filler();
12217 } else {
12218 clear_has_bias_filler();
12219 }
12220 }
12222 // -------------------------------------------------------------------
12224 // LRNParameter
12226 // optional uint32 local_size = 1 [default = 5];
12227 inline bool LRNParameter::has_local_size() const {
12228 return (_has_bits_[0] & 0x00000001u) != 0;
12229 }
12230 inline void LRNParameter::set_has_local_size() {
12231 _has_bits_[0] |= 0x00000001u;
12232 }
12233 inline void LRNParameter::clear_has_local_size() {
12234 _has_bits_[0] &= ~0x00000001u;
12235 }
12236 inline void LRNParameter::clear_local_size() {
12237 local_size_ = 5u;
12238 clear_has_local_size();
12239 }
12240 inline ::google::protobuf::uint32 LRNParameter::local_size() const {
12241 return local_size_;
12242 }
12243 inline void LRNParameter::set_local_size(::google::protobuf::uint32 value) {
12244 set_has_local_size();
12245 local_size_ = value;
12246 }
12248 // optional float alpha = 2 [default = 1];
12249 inline bool LRNParameter::has_alpha() const {
12250 return (_has_bits_[0] & 0x00000002u) != 0;
12251 }
12252 inline void LRNParameter::set_has_alpha() {
12253 _has_bits_[0] |= 0x00000002u;
12254 }
12255 inline void LRNParameter::clear_has_alpha() {
12256 _has_bits_[0] &= ~0x00000002u;
12257 }
12258 inline void LRNParameter::clear_alpha() {
12259 alpha_ = 1;
12260 clear_has_alpha();
12261 }
12262 inline float LRNParameter::alpha() const {
12263 return alpha_;
12264 }
12265 inline void LRNParameter::set_alpha(float value) {
12266 set_has_alpha();
12267 alpha_ = value;
12268 }
12270 // optional float beta = 3 [default = 0.75];
12271 inline bool LRNParameter::has_beta() const {
12272 return (_has_bits_[0] & 0x00000004u) != 0;
12273 }
12274 inline void LRNParameter::set_has_beta() {
12275 _has_bits_[0] |= 0x00000004u;
12276 }
12277 inline void LRNParameter::clear_has_beta() {
12278 _has_bits_[0] &= ~0x00000004u;
12279 }
12280 inline void LRNParameter::clear_beta() {
12281 beta_ = 0.75f;
12282 clear_has_beta();
12283 }
12284 inline float LRNParameter::beta() const {
12285 return beta_;
12286 }
12287 inline void LRNParameter::set_beta(float value) {
12288 set_has_beta();
12289 beta_ = value;
12290 }
12292 // optional .caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS];
12293 inline bool LRNParameter::has_norm_region() const {
12294 return (_has_bits_[0] & 0x00000008u) != 0;
12295 }
12296 inline void LRNParameter::set_has_norm_region() {
12297 _has_bits_[0] |= 0x00000008u;
12298 }
12299 inline void LRNParameter::clear_has_norm_region() {
12300 _has_bits_[0] &= ~0x00000008u;
12301 }
12302 inline void LRNParameter::clear_norm_region() {
12303 norm_region_ = 0;
12304 clear_has_norm_region();
12305 }
12306 inline ::caffe::LRNParameter_NormRegion LRNParameter::norm_region() const {
12307 return static_cast< ::caffe::LRNParameter_NormRegion >(norm_region_);
12308 }
12309 inline void LRNParameter::set_norm_region(::caffe::LRNParameter_NormRegion value) {
12310 assert(::caffe::LRNParameter_NormRegion_IsValid(value));
12311 set_has_norm_region();
12312 norm_region_ = value;
12313 }
12315 // -------------------------------------------------------------------
12317 // MemoryDataParameter
12319 // optional uint32 batch_size = 1;
12320 inline bool MemoryDataParameter::has_batch_size() const {
12321 return (_has_bits_[0] & 0x00000001u) != 0;
12322 }
12323 inline void MemoryDataParameter::set_has_batch_size() {
12324 _has_bits_[0] |= 0x00000001u;
12325 }
12326 inline void MemoryDataParameter::clear_has_batch_size() {
12327 _has_bits_[0] &= ~0x00000001u;
12328 }
12329 inline void MemoryDataParameter::clear_batch_size() {
12330 batch_size_ = 0u;
12331 clear_has_batch_size();
12332 }
12333 inline ::google::protobuf::uint32 MemoryDataParameter::batch_size() const {
12334 return batch_size_;
12335 }
12336 inline void MemoryDataParameter::set_batch_size(::google::protobuf::uint32 value) {
12337 set_has_batch_size();
12338 batch_size_ = value;
12339 }
12341 // optional uint32 channels = 2;
12342 inline bool MemoryDataParameter::has_channels() const {
12343 return (_has_bits_[0] & 0x00000002u) != 0;
12344 }
12345 inline void MemoryDataParameter::set_has_channels() {
12346 _has_bits_[0] |= 0x00000002u;
12347 }
12348 inline void MemoryDataParameter::clear_has_channels() {
12349 _has_bits_[0] &= ~0x00000002u;
12350 }
12351 inline void MemoryDataParameter::clear_channels() {
12352 channels_ = 0u;
12353 clear_has_channels();
12354 }
12355 inline ::google::protobuf::uint32 MemoryDataParameter::channels() const {
12356 return channels_;
12357 }
12358 inline void MemoryDataParameter::set_channels(::google::protobuf::uint32 value) {
12359 set_has_channels();
12360 channels_ = value;
12361 }
12363 // optional uint32 height = 3;
12364 inline bool MemoryDataParameter::has_height() const {
12365 return (_has_bits_[0] & 0x00000004u) != 0;
12366 }
12367 inline void MemoryDataParameter::set_has_height() {
12368 _has_bits_[0] |= 0x00000004u;
12369 }
12370 inline void MemoryDataParameter::clear_has_height() {
12371 _has_bits_[0] &= ~0x00000004u;
12372 }
12373 inline void MemoryDataParameter::clear_height() {
12374 height_ = 0u;
12375 clear_has_height();
12376 }
12377 inline ::google::protobuf::uint32 MemoryDataParameter::height() const {
12378 return height_;
12379 }
12380 inline void MemoryDataParameter::set_height(::google::protobuf::uint32 value) {
12381 set_has_height();
12382 height_ = value;
12383 }
12385 // optional uint32 width = 4;
12386 inline bool MemoryDataParameter::has_width() const {
12387 return (_has_bits_[0] & 0x00000008u) != 0;
12388 }
12389 inline void MemoryDataParameter::set_has_width() {
12390 _has_bits_[0] |= 0x00000008u;
12391 }
12392 inline void MemoryDataParameter::clear_has_width() {
12393 _has_bits_[0] &= ~0x00000008u;
12394 }
12395 inline void MemoryDataParameter::clear_width() {
12396 width_ = 0u;
12397 clear_has_width();
12398 }
12399 inline ::google::protobuf::uint32 MemoryDataParameter::width() const {
12400 return width_;
12401 }
12402 inline void MemoryDataParameter::set_width(::google::protobuf::uint32 value) {
12403 set_has_width();
12404 width_ = value;
12405 }
12407 // -------------------------------------------------------------------
12409 // MVNParameter
12411 // optional bool normalize_variance = 1 [default = true];
12412 inline bool MVNParameter::has_normalize_variance() const {
12413 return (_has_bits_[0] & 0x00000001u) != 0;
12414 }
12415 inline void MVNParameter::set_has_normalize_variance() {
12416 _has_bits_[0] |= 0x00000001u;
12417 }
12418 inline void MVNParameter::clear_has_normalize_variance() {
12419 _has_bits_[0] &= ~0x00000001u;
12420 }
12421 inline void MVNParameter::clear_normalize_variance() {
12422 normalize_variance_ = true;
12423 clear_has_normalize_variance();
12424 }
12425 inline bool MVNParameter::normalize_variance() const {
12426 return normalize_variance_;
12427 }
12428 inline void MVNParameter::set_normalize_variance(bool value) {
12429 set_has_normalize_variance();
12430 normalize_variance_ = value;
12431 }
12433 // optional bool across_channels = 2 [default = false];
12434 inline bool MVNParameter::has_across_channels() const {
12435 return (_has_bits_[0] & 0x00000002u) != 0;
12436 }
12437 inline void MVNParameter::set_has_across_channels() {
12438 _has_bits_[0] |= 0x00000002u;
12439 }
12440 inline void MVNParameter::clear_has_across_channels() {
12441 _has_bits_[0] &= ~0x00000002u;
12442 }
12443 inline void MVNParameter::clear_across_channels() {
12444 across_channels_ = false;
12445 clear_has_across_channels();
12446 }
12447 inline bool MVNParameter::across_channels() const {
12448 return across_channels_;
12449 }
12450 inline void MVNParameter::set_across_channels(bool value) {
12451 set_has_across_channels();
12452 across_channels_ = value;
12453 }
12455 // -------------------------------------------------------------------
12457 // PoolingParameter
12459 // optional .caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX];
12460 inline bool PoolingParameter::has_pool() const {
12461 return (_has_bits_[0] & 0x00000001u) != 0;
12462 }
12463 inline void PoolingParameter::set_has_pool() {
12464 _has_bits_[0] |= 0x00000001u;
12465 }
12466 inline void PoolingParameter::clear_has_pool() {
12467 _has_bits_[0] &= ~0x00000001u;
12468 }
12469 inline void PoolingParameter::clear_pool() {
12470 pool_ = 0;
12471 clear_has_pool();
12472 }
12473 inline ::caffe::PoolingParameter_PoolMethod PoolingParameter::pool() const {
12474 return static_cast< ::caffe::PoolingParameter_PoolMethod >(pool_);
12475 }
12476 inline void PoolingParameter::set_pool(::caffe::PoolingParameter_PoolMethod value) {
12477 assert(::caffe::PoolingParameter_PoolMethod_IsValid(value));
12478 set_has_pool();
12479 pool_ = value;
12480 }
12482 // optional uint32 pad = 4 [default = 0];
12483 inline bool PoolingParameter::has_pad() const {
12484 return (_has_bits_[0] & 0x00000002u) != 0;
12485 }
12486 inline void PoolingParameter::set_has_pad() {
12487 _has_bits_[0] |= 0x00000002u;
12488 }
12489 inline void PoolingParameter::clear_has_pad() {
12490 _has_bits_[0] &= ~0x00000002u;
12491 }
12492 inline void PoolingParameter::clear_pad() {
12493 pad_ = 0u;
12494 clear_has_pad();
12495 }
12496 inline ::google::protobuf::uint32 PoolingParameter::pad() const {
12497 return pad_;
12498 }
12499 inline void PoolingParameter::set_pad(::google::protobuf::uint32 value) {
12500 set_has_pad();
12501 pad_ = value;
12502 }
12504 // optional uint32 pad_h = 9 [default = 0];
12505 inline bool PoolingParameter::has_pad_h() const {
12506 return (_has_bits_[0] & 0x00000004u) != 0;
12507 }
12508 inline void PoolingParameter::set_has_pad_h() {
12509 _has_bits_[0] |= 0x00000004u;
12510 }
12511 inline void PoolingParameter::clear_has_pad_h() {
12512 _has_bits_[0] &= ~0x00000004u;
12513 }
12514 inline void PoolingParameter::clear_pad_h() {
12515 pad_h_ = 0u;
12516 clear_has_pad_h();
12517 }
12518 inline ::google::protobuf::uint32 PoolingParameter::pad_h() const {
12519 return pad_h_;
12520 }
12521 inline void PoolingParameter::set_pad_h(::google::protobuf::uint32 value) {
12522 set_has_pad_h();
12523 pad_h_ = value;
12524 }
12526 // optional uint32 pad_w = 10 [default = 0];
12527 inline bool PoolingParameter::has_pad_w() const {
12528 return (_has_bits_[0] & 0x00000008u) != 0;
12529 }
12530 inline void PoolingParameter::set_has_pad_w() {
12531 _has_bits_[0] |= 0x00000008u;
12532 }
12533 inline void PoolingParameter::clear_has_pad_w() {
12534 _has_bits_[0] &= ~0x00000008u;
12535 }
12536 inline void PoolingParameter::clear_pad_w() {
12537 pad_w_ = 0u;
12538 clear_has_pad_w();
12539 }
12540 inline ::google::protobuf::uint32 PoolingParameter::pad_w() const {
12541 return pad_w_;
12542 }
12543 inline void PoolingParameter::set_pad_w(::google::protobuf::uint32 value) {
12544 set_has_pad_w();
12545 pad_w_ = value;
12546 }
12548 // optional uint32 kernel_size = 2;
12549 inline bool PoolingParameter::has_kernel_size() const {
12550 return (_has_bits_[0] & 0x00000010u) != 0;
12551 }
12552 inline void PoolingParameter::set_has_kernel_size() {
12553 _has_bits_[0] |= 0x00000010u;
12554 }
12555 inline void PoolingParameter::clear_has_kernel_size() {
12556 _has_bits_[0] &= ~0x00000010u;
12557 }
12558 inline void PoolingParameter::clear_kernel_size() {
12559 kernel_size_ = 0u;
12560 clear_has_kernel_size();
12561 }
12562 inline ::google::protobuf::uint32 PoolingParameter::kernel_size() const {
12563 return kernel_size_;
12564 }
12565 inline void PoolingParameter::set_kernel_size(::google::protobuf::uint32 value) {
12566 set_has_kernel_size();
12567 kernel_size_ = value;
12568 }
12570 // optional uint32 kernel_h = 5;
12571 inline bool PoolingParameter::has_kernel_h() const {
12572 return (_has_bits_[0] & 0x00000020u) != 0;
12573 }
12574 inline void PoolingParameter::set_has_kernel_h() {
12575 _has_bits_[0] |= 0x00000020u;
12576 }
12577 inline void PoolingParameter::clear_has_kernel_h() {
12578 _has_bits_[0] &= ~0x00000020u;
12579 }
12580 inline void PoolingParameter::clear_kernel_h() {
12581 kernel_h_ = 0u;
12582 clear_has_kernel_h();
12583 }
12584 inline ::google::protobuf::uint32 PoolingParameter::kernel_h() const {
12585 return kernel_h_;
12586 }
12587 inline void PoolingParameter::set_kernel_h(::google::protobuf::uint32 value) {
12588 set_has_kernel_h();
12589 kernel_h_ = value;
12590 }
12592 // optional uint32 kernel_w = 6;
12593 inline bool PoolingParameter::has_kernel_w() const {
12594 return (_has_bits_[0] & 0x00000040u) != 0;
12595 }
12596 inline void PoolingParameter::set_has_kernel_w() {
12597 _has_bits_[0] |= 0x00000040u;
12598 }
12599 inline void PoolingParameter::clear_has_kernel_w() {
12600 _has_bits_[0] &= ~0x00000040u;
12601 }
12602 inline void PoolingParameter::clear_kernel_w() {
12603 kernel_w_ = 0u;
12604 clear_has_kernel_w();
12605 }
12606 inline ::google::protobuf::uint32 PoolingParameter::kernel_w() const {
12607 return kernel_w_;
12608 }
12609 inline void PoolingParameter::set_kernel_w(::google::protobuf::uint32 value) {
12610 set_has_kernel_w();
12611 kernel_w_ = value;
12612 }
12614 // optional uint32 stride = 3 [default = 1];
12615 inline bool PoolingParameter::has_stride() const {
12616 return (_has_bits_[0] & 0x00000080u) != 0;
12617 }
12618 inline void PoolingParameter::set_has_stride() {
12619 _has_bits_[0] |= 0x00000080u;
12620 }
12621 inline void PoolingParameter::clear_has_stride() {
12622 _has_bits_[0] &= ~0x00000080u;
12623 }
12624 inline void PoolingParameter::clear_stride() {
12625 stride_ = 1u;
12626 clear_has_stride();
12627 }
12628 inline ::google::protobuf::uint32 PoolingParameter::stride() const {
12629 return stride_;
12630 }
12631 inline void PoolingParameter::set_stride(::google::protobuf::uint32 value) {
12632 set_has_stride();
12633 stride_ = value;
12634 }
12636 // optional uint32 stride_h = 7;
12637 inline bool PoolingParameter::has_stride_h() const {
12638 return (_has_bits_[0] & 0x00000100u) != 0;
12639 }
12640 inline void PoolingParameter::set_has_stride_h() {
12641 _has_bits_[0] |= 0x00000100u;
12642 }
12643 inline void PoolingParameter::clear_has_stride_h() {
12644 _has_bits_[0] &= ~0x00000100u;
12645 }
12646 inline void PoolingParameter::clear_stride_h() {
12647 stride_h_ = 0u;
12648 clear_has_stride_h();
12649 }
12650 inline ::google::protobuf::uint32 PoolingParameter::stride_h() const {
12651 return stride_h_;
12652 }
12653 inline void PoolingParameter::set_stride_h(::google::protobuf::uint32 value) {
12654 set_has_stride_h();
12655 stride_h_ = value;
12656 }
12658 // optional uint32 stride_w = 8;
12659 inline bool PoolingParameter::has_stride_w() const {
12660 return (_has_bits_[0] & 0x00000200u) != 0;
12661 }
12662 inline void PoolingParameter::set_has_stride_w() {
12663 _has_bits_[0] |= 0x00000200u;
12664 }
12665 inline void PoolingParameter::clear_has_stride_w() {
12666 _has_bits_[0] &= ~0x00000200u;
12667 }
12668 inline void PoolingParameter::clear_stride_w() {
12669 stride_w_ = 0u;
12670 clear_has_stride_w();
12671 }
12672 inline ::google::protobuf::uint32 PoolingParameter::stride_w() const {
12673 return stride_w_;
12674 }
12675 inline void PoolingParameter::set_stride_w(::google::protobuf::uint32 value) {
12676 set_has_stride_w();
12677 stride_w_ = value;
12678 }
12680 // optional .caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT];
12681 inline bool PoolingParameter::has_engine() const {
12682 return (_has_bits_[0] & 0x00000400u) != 0;
12683 }
12684 inline void PoolingParameter::set_has_engine() {
12685 _has_bits_[0] |= 0x00000400u;
12686 }
12687 inline void PoolingParameter::clear_has_engine() {
12688 _has_bits_[0] &= ~0x00000400u;
12689 }
12690 inline void PoolingParameter::clear_engine() {
12691 engine_ = 0;
12692 clear_has_engine();
12693 }
12694 inline ::caffe::PoolingParameter_Engine PoolingParameter::engine() const {
12695 return static_cast< ::caffe::PoolingParameter_Engine >(engine_);
12696 }
12697 inline void PoolingParameter::set_engine(::caffe::PoolingParameter_Engine value) {
12698 assert(::caffe::PoolingParameter_Engine_IsValid(value));
12699 set_has_engine();
12700 engine_ = value;
12701 }
12703 // -------------------------------------------------------------------
12705 // PowerParameter
12707 // optional float power = 1 [default = 1];
12708 inline bool PowerParameter::has_power() const {
12709 return (_has_bits_[0] & 0x00000001u) != 0;
12710 }
12711 inline void PowerParameter::set_has_power() {
12712 _has_bits_[0] |= 0x00000001u;
12713 }
12714 inline void PowerParameter::clear_has_power() {
12715 _has_bits_[0] &= ~0x00000001u;
12716 }
12717 inline void PowerParameter::clear_power() {
12718 power_ = 1;
12719 clear_has_power();
12720 }
12721 inline float PowerParameter::power() const {
12722 return power_;
12723 }
12724 inline void PowerParameter::set_power(float value) {
12725 set_has_power();
12726 power_ = value;
12727 }
12729 // optional float scale = 2 [default = 1];
12730 inline bool PowerParameter::has_scale() const {
12731 return (_has_bits_[0] & 0x00000002u) != 0;
12732 }
12733 inline void PowerParameter::set_has_scale() {
12734 _has_bits_[0] |= 0x00000002u;
12735 }
12736 inline void PowerParameter::clear_has_scale() {
12737 _has_bits_[0] &= ~0x00000002u;
12738 }
12739 inline void PowerParameter::clear_scale() {
12740 scale_ = 1;
12741 clear_has_scale();
12742 }
12743 inline float PowerParameter::scale() const {
12744 return scale_;
12745 }
12746 inline void PowerParameter::set_scale(float value) {
12747 set_has_scale();
12748 scale_ = value;
12749 }
12751 // optional float shift = 3 [default = 0];
12752 inline bool PowerParameter::has_shift() const {
12753 return (_has_bits_[0] & 0x00000004u) != 0;
12754 }
12755 inline void PowerParameter::set_has_shift() {
12756 _has_bits_[0] |= 0x00000004u;
12757 }
12758 inline void PowerParameter::clear_has_shift() {
12759 _has_bits_[0] &= ~0x00000004u;
12760 }
12761 inline void PowerParameter::clear_shift() {
12762 shift_ = 0;
12763 clear_has_shift();
12764 }
12765 inline float PowerParameter::shift() const {
12766 return shift_;
12767 }
12768 inline void PowerParameter::set_shift(float value) {
12769 set_has_shift();
12770 shift_ = value;
12771 }
12773 // -------------------------------------------------------------------
12775 // ReLUParameter
12777 // optional float negative_slope = 1 [default = 0];
12778 inline bool ReLUParameter::has_negative_slope() const {
12779 return (_has_bits_[0] & 0x00000001u) != 0;
12780 }
12781 inline void ReLUParameter::set_has_negative_slope() {
12782 _has_bits_[0] |= 0x00000001u;
12783 }
12784 inline void ReLUParameter::clear_has_negative_slope() {
12785 _has_bits_[0] &= ~0x00000001u;
12786 }
12787 inline void ReLUParameter::clear_negative_slope() {
12788 negative_slope_ = 0;
12789 clear_has_negative_slope();
12790 }
12791 inline float ReLUParameter::negative_slope() const {
12792 return negative_slope_;
12793 }
12794 inline void ReLUParameter::set_negative_slope(float value) {
12795 set_has_negative_slope();
12796 negative_slope_ = value;
12797 }
12799 // optional .caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT];
12800 inline bool ReLUParameter::has_engine() const {
12801 return (_has_bits_[0] & 0x00000002u) != 0;
12802 }
12803 inline void ReLUParameter::set_has_engine() {
12804 _has_bits_[0] |= 0x00000002u;
12805 }
12806 inline void ReLUParameter::clear_has_engine() {
12807 _has_bits_[0] &= ~0x00000002u;
12808 }
12809 inline void ReLUParameter::clear_engine() {
12810 engine_ = 0;
12811 clear_has_engine();
12812 }
12813 inline ::caffe::ReLUParameter_Engine ReLUParameter::engine() const {
12814 return static_cast< ::caffe::ReLUParameter_Engine >(engine_);
12815 }
12816 inline void ReLUParameter::set_engine(::caffe::ReLUParameter_Engine value) {
12817 assert(::caffe::ReLUParameter_Engine_IsValid(value));
12818 set_has_engine();
12819 engine_ = value;
12820 }
12822 // -------------------------------------------------------------------
12824 // SigmoidParameter
12826 // optional .caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT];
12827 inline bool SigmoidParameter::has_engine() const {
12828 return (_has_bits_[0] & 0x00000001u) != 0;
12829 }
12830 inline void SigmoidParameter::set_has_engine() {
12831 _has_bits_[0] |= 0x00000001u;
12832 }
12833 inline void SigmoidParameter::clear_has_engine() {
12834 _has_bits_[0] &= ~0x00000001u;
12835 }
12836 inline void SigmoidParameter::clear_engine() {
12837 engine_ = 0;
12838 clear_has_engine();
12839 }
12840 inline ::caffe::SigmoidParameter_Engine SigmoidParameter::engine() const {
12841 return static_cast< ::caffe::SigmoidParameter_Engine >(engine_);
12842 }
12843 inline void SigmoidParameter::set_engine(::caffe::SigmoidParameter_Engine value) {
12844 assert(::caffe::SigmoidParameter_Engine_IsValid(value));
12845 set_has_engine();
12846 engine_ = value;
12847 }
12849 // -------------------------------------------------------------------
12851 // SliceParameter
12853 // optional uint32 slice_dim = 1 [default = 1];
12854 inline bool SliceParameter::has_slice_dim() const {
12855 return (_has_bits_[0] & 0x00000001u) != 0;
12856 }
12857 inline void SliceParameter::set_has_slice_dim() {
12858 _has_bits_[0] |= 0x00000001u;
12859 }
12860 inline void SliceParameter::clear_has_slice_dim() {
12861 _has_bits_[0] &= ~0x00000001u;
12862 }
12863 inline void SliceParameter::clear_slice_dim() {
12864 slice_dim_ = 1u;
12865 clear_has_slice_dim();
12866 }
12867 inline ::google::protobuf::uint32 SliceParameter::slice_dim() const {
12868 return slice_dim_;
12869 }
12870 inline void SliceParameter::set_slice_dim(::google::protobuf::uint32 value) {
12871 set_has_slice_dim();
12872 slice_dim_ = value;
12873 }
12875 // repeated uint32 slice_point = 2;
12876 inline int SliceParameter::slice_point_size() const {
12877 return slice_point_.size();
12878 }
12879 inline void SliceParameter::clear_slice_point() {
12880 slice_point_.Clear();
12881 }
12882 inline ::google::protobuf::uint32 SliceParameter::slice_point(int index) const {
12883 return slice_point_.Get(index);
12884 }
12885 inline void SliceParameter::set_slice_point(int index, ::google::protobuf::uint32 value) {
12886 slice_point_.Set(index, value);
12887 }
12888 inline void SliceParameter::add_slice_point(::google::protobuf::uint32 value) {
12889 slice_point_.Add(value);
12890 }
12891 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
12892 SliceParameter::slice_point() const {
12893 return slice_point_;
12894 }
12895 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
12896 SliceParameter::mutable_slice_point() {
12897 return &slice_point_;
12898 }
12900 // -------------------------------------------------------------------
12902 // SoftmaxParameter
12904 // optional .caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT];
12905 inline bool SoftmaxParameter::has_engine() const {
12906 return (_has_bits_[0] & 0x00000001u) != 0;
12907 }
12908 inline void SoftmaxParameter::set_has_engine() {
12909 _has_bits_[0] |= 0x00000001u;
12910 }
12911 inline void SoftmaxParameter::clear_has_engine() {
12912 _has_bits_[0] &= ~0x00000001u;
12913 }
12914 inline void SoftmaxParameter::clear_engine() {
12915 engine_ = 0;
12916 clear_has_engine();
12917 }
12918 inline ::caffe::SoftmaxParameter_Engine SoftmaxParameter::engine() const {
12919 return static_cast< ::caffe::SoftmaxParameter_Engine >(engine_);
12920 }
12921 inline void SoftmaxParameter::set_engine(::caffe::SoftmaxParameter_Engine value) {
12922 assert(::caffe::SoftmaxParameter_Engine_IsValid(value));
12923 set_has_engine();
12924 engine_ = value;
12925 }
12927 // -------------------------------------------------------------------
12929 // TanHParameter
12931 // optional .caffe.TanHParameter.Engine engine = 1 [default = DEFAULT];
12932 inline bool TanHParameter::has_engine() const {
12933 return (_has_bits_[0] & 0x00000001u) != 0;
12934 }
12935 inline void TanHParameter::set_has_engine() {
12936 _has_bits_[0] |= 0x00000001u;
12937 }
12938 inline void TanHParameter::clear_has_engine() {
12939 _has_bits_[0] &= ~0x00000001u;
12940 }
12941 inline void TanHParameter::clear_engine() {
12942 engine_ = 0;
12943 clear_has_engine();
12944 }
12945 inline ::caffe::TanHParameter_Engine TanHParameter::engine() const {
12946 return static_cast< ::caffe::TanHParameter_Engine >(engine_);
12947 }
12948 inline void TanHParameter::set_engine(::caffe::TanHParameter_Engine value) {
12949 assert(::caffe::TanHParameter_Engine_IsValid(value));
12950 set_has_engine();
12951 engine_ = value;
12952 }
12954 // -------------------------------------------------------------------
12956 // WindowDataParameter
12958 // optional string source = 1;
12959 inline bool WindowDataParameter::has_source() const {
12960 return (_has_bits_[0] & 0x00000001u) != 0;
12961 }
12962 inline void WindowDataParameter::set_has_source() {
12963 _has_bits_[0] |= 0x00000001u;
12964 }
12965 inline void WindowDataParameter::clear_has_source() {
12966 _has_bits_[0] &= ~0x00000001u;
12967 }
12968 inline void WindowDataParameter::clear_source() {
12969 if (source_ != &::google::protobuf::internal::kEmptyString) {
12970 source_->clear();
12971 }
12972 clear_has_source();
12973 }
12974 inline const ::std::string& WindowDataParameter::source() const {
12975 return *source_;
12976 }
12977 inline void WindowDataParameter::set_source(const ::std::string& value) {
12978 set_has_source();
12979 if (source_ == &::google::protobuf::internal::kEmptyString) {
12980 source_ = new ::std::string;
12981 }
12982 source_->assign(value);
12983 }
12984 inline void WindowDataParameter::set_source(const char* value) {
12985 set_has_source();
12986 if (source_ == &::google::protobuf::internal::kEmptyString) {
12987 source_ = new ::std::string;
12988 }
12989 source_->assign(value);
12990 }
12991 inline void WindowDataParameter::set_source(const char* value, size_t size) {
12992 set_has_source();
12993 if (source_ == &::google::protobuf::internal::kEmptyString) {
12994 source_ = new ::std::string;
12995 }
12996 source_->assign(reinterpret_cast<const char*>(value), size);
12997 }
12998 inline ::std::string* WindowDataParameter::mutable_source() {
12999 set_has_source();
13000 if (source_ == &::google::protobuf::internal::kEmptyString) {
13001 source_ = new ::std::string;
13002 }
13003 return source_;
13004 }
13005 inline ::std::string* WindowDataParameter::release_source() {
13006 clear_has_source();
13007 if (source_ == &::google::protobuf::internal::kEmptyString) {
13008 return NULL;
13009 } else {
13010 ::std::string* temp = source_;
13011 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13012 return temp;
13013 }
13014 }
13015 inline void WindowDataParameter::set_allocated_source(::std::string* source) {
13016 if (source_ != &::google::protobuf::internal::kEmptyString) {
13017 delete source_;
13018 }
13019 if (source) {
13020 set_has_source();
13021 source_ = source;
13022 } else {
13023 clear_has_source();
13024 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13025 }
13026 }
13028 // optional float scale = 2 [default = 1];
13029 inline bool WindowDataParameter::has_scale() const {
13030 return (_has_bits_[0] & 0x00000002u) != 0;
13031 }
13032 inline void WindowDataParameter::set_has_scale() {
13033 _has_bits_[0] |= 0x00000002u;
13034 }
13035 inline void WindowDataParameter::clear_has_scale() {
13036 _has_bits_[0] &= ~0x00000002u;
13037 }
13038 inline void WindowDataParameter::clear_scale() {
13039 scale_ = 1;
13040 clear_has_scale();
13041 }
13042 inline float WindowDataParameter::scale() const {
13043 return scale_;
13044 }
13045 inline void WindowDataParameter::set_scale(float value) {
13046 set_has_scale();
13047 scale_ = value;
13048 }
13050 // optional string mean_file = 3;
13051 inline bool WindowDataParameter::has_mean_file() const {
13052 return (_has_bits_[0] & 0x00000004u) != 0;
13053 }
13054 inline void WindowDataParameter::set_has_mean_file() {
13055 _has_bits_[0] |= 0x00000004u;
13056 }
13057 inline void WindowDataParameter::clear_has_mean_file() {
13058 _has_bits_[0] &= ~0x00000004u;
13059 }
13060 inline void WindowDataParameter::clear_mean_file() {
13061 if (mean_file_ != &::google::protobuf::internal::kEmptyString) {
13062 mean_file_->clear();
13063 }
13064 clear_has_mean_file();
13065 }
13066 inline const ::std::string& WindowDataParameter::mean_file() const {
13067 return *mean_file_;
13068 }
13069 inline void WindowDataParameter::set_mean_file(const ::std::string& value) {
13070 set_has_mean_file();
13071 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
13072 mean_file_ = new ::std::string;
13073 }
13074 mean_file_->assign(value);
13075 }
13076 inline void WindowDataParameter::set_mean_file(const char* value) {
13077 set_has_mean_file();
13078 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
13079 mean_file_ = new ::std::string;
13080 }
13081 mean_file_->assign(value);
13082 }
13083 inline void WindowDataParameter::set_mean_file(const char* value, size_t size) {
13084 set_has_mean_file();
13085 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
13086 mean_file_ = new ::std::string;
13087 }
13088 mean_file_->assign(reinterpret_cast<const char*>(value), size);
13089 }
13090 inline ::std::string* WindowDataParameter::mutable_mean_file() {
13091 set_has_mean_file();
13092 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
13093 mean_file_ = new ::std::string;
13094 }
13095 return mean_file_;
13096 }
13097 inline ::std::string* WindowDataParameter::release_mean_file() {
13098 clear_has_mean_file();
13099 if (mean_file_ == &::google::protobuf::internal::kEmptyString) {
13100 return NULL;
13101 } else {
13102 ::std::string* temp = mean_file_;
13103 mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13104 return temp;
13105 }
13106 }
13107 inline void WindowDataParameter::set_allocated_mean_file(::std::string* mean_file) {
13108 if (mean_file_ != &::google::protobuf::internal::kEmptyString) {
13109 delete mean_file_;
13110 }
13111 if (mean_file) {
13112 set_has_mean_file();
13113 mean_file_ = mean_file;
13114 } else {
13115 clear_has_mean_file();
13116 mean_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13117 }
13118 }
13120 // optional uint32 batch_size = 4;
13121 inline bool WindowDataParameter::has_batch_size() const {
13122 return (_has_bits_[0] & 0x00000008u) != 0;
13123 }
13124 inline void WindowDataParameter::set_has_batch_size() {
13125 _has_bits_[0] |= 0x00000008u;
13126 }
13127 inline void WindowDataParameter::clear_has_batch_size() {
13128 _has_bits_[0] &= ~0x00000008u;
13129 }
13130 inline void WindowDataParameter::clear_batch_size() {
13131 batch_size_ = 0u;
13132 clear_has_batch_size();
13133 }
13134 inline ::google::protobuf::uint32 WindowDataParameter::batch_size() const {
13135 return batch_size_;
13136 }
13137 inline void WindowDataParameter::set_batch_size(::google::protobuf::uint32 value) {
13138 set_has_batch_size();
13139 batch_size_ = value;
13140 }
13142 // optional uint32 crop_size = 5 [default = 0];
13143 inline bool WindowDataParameter::has_crop_size() const {
13144 return (_has_bits_[0] & 0x00000010u) != 0;
13145 }
13146 inline void WindowDataParameter::set_has_crop_size() {
13147 _has_bits_[0] |= 0x00000010u;
13148 }
13149 inline void WindowDataParameter::clear_has_crop_size() {
13150 _has_bits_[0] &= ~0x00000010u;
13151 }
13152 inline void WindowDataParameter::clear_crop_size() {
13153 crop_size_ = 0u;
13154 clear_has_crop_size();
13155 }
13156 inline ::google::protobuf::uint32 WindowDataParameter::crop_size() const {
13157 return crop_size_;
13158 }
13159 inline void WindowDataParameter::set_crop_size(::google::protobuf::uint32 value) {
13160 set_has_crop_size();
13161 crop_size_ = value;
13162 }
13164 // optional bool mirror = 6 [default = false];
13165 inline bool WindowDataParameter::has_mirror() const {
13166 return (_has_bits_[0] & 0x00000020u) != 0;
13167 }
13168 inline void WindowDataParameter::set_has_mirror() {
13169 _has_bits_[0] |= 0x00000020u;
13170 }
13171 inline void WindowDataParameter::clear_has_mirror() {
13172 _has_bits_[0] &= ~0x00000020u;
13173 }
13174 inline void WindowDataParameter::clear_mirror() {
13175 mirror_ = false;
13176 clear_has_mirror();
13177 }
13178 inline bool WindowDataParameter::mirror() const {
13179 return mirror_;
13180 }
13181 inline void WindowDataParameter::set_mirror(bool value) {
13182 set_has_mirror();
13183 mirror_ = value;
13184 }
13186 // optional float fg_threshold = 7 [default = 0.5];
13187 inline bool WindowDataParameter::has_fg_threshold() const {
13188 return (_has_bits_[0] & 0x00000040u) != 0;
13189 }
13190 inline void WindowDataParameter::set_has_fg_threshold() {
13191 _has_bits_[0] |= 0x00000040u;
13192 }
13193 inline void WindowDataParameter::clear_has_fg_threshold() {
13194 _has_bits_[0] &= ~0x00000040u;
13195 }
13196 inline void WindowDataParameter::clear_fg_threshold() {
13197 fg_threshold_ = 0.5f;
13198 clear_has_fg_threshold();
13199 }
13200 inline float WindowDataParameter::fg_threshold() const {
13201 return fg_threshold_;
13202 }
13203 inline void WindowDataParameter::set_fg_threshold(float value) {
13204 set_has_fg_threshold();
13205 fg_threshold_ = value;
13206 }
13208 // optional float bg_threshold = 8 [default = 0.5];
13209 inline bool WindowDataParameter::has_bg_threshold() const {
13210 return (_has_bits_[0] & 0x00000080u) != 0;
13211 }
13212 inline void WindowDataParameter::set_has_bg_threshold() {
13213 _has_bits_[0] |= 0x00000080u;
13214 }
13215 inline void WindowDataParameter::clear_has_bg_threshold() {
13216 _has_bits_[0] &= ~0x00000080u;
13217 }
13218 inline void WindowDataParameter::clear_bg_threshold() {
13219 bg_threshold_ = 0.5f;
13220 clear_has_bg_threshold();
13221 }
13222 inline float WindowDataParameter::bg_threshold() const {
13223 return bg_threshold_;
13224 }
13225 inline void WindowDataParameter::set_bg_threshold(float value) {
13226 set_has_bg_threshold();
13227 bg_threshold_ = value;
13228 }
13230 // optional float fg_fraction = 9 [default = 0.25];
13231 inline bool WindowDataParameter::has_fg_fraction() const {
13232 return (_has_bits_[0] & 0x00000100u) != 0;
13233 }
13234 inline void WindowDataParameter::set_has_fg_fraction() {
13235 _has_bits_[0] |= 0x00000100u;
13236 }
13237 inline void WindowDataParameter::clear_has_fg_fraction() {
13238 _has_bits_[0] &= ~0x00000100u;
13239 }
13240 inline void WindowDataParameter::clear_fg_fraction() {
13241 fg_fraction_ = 0.25f;
13242 clear_has_fg_fraction();
13243 }
13244 inline float WindowDataParameter::fg_fraction() const {
13245 return fg_fraction_;
13246 }
13247 inline void WindowDataParameter::set_fg_fraction(float value) {
13248 set_has_fg_fraction();
13249 fg_fraction_ = value;
13250 }
13252 // optional uint32 context_pad = 10 [default = 0];
13253 inline bool WindowDataParameter::has_context_pad() const {
13254 return (_has_bits_[0] & 0x00000200u) != 0;
13255 }
13256 inline void WindowDataParameter::set_has_context_pad() {
13257 _has_bits_[0] |= 0x00000200u;
13258 }
13259 inline void WindowDataParameter::clear_has_context_pad() {
13260 _has_bits_[0] &= ~0x00000200u;
13261 }
13262 inline void WindowDataParameter::clear_context_pad() {
13263 context_pad_ = 0u;
13264 clear_has_context_pad();
13265 }
13266 inline ::google::protobuf::uint32 WindowDataParameter::context_pad() const {
13267 return context_pad_;
13268 }
13269 inline void WindowDataParameter::set_context_pad(::google::protobuf::uint32 value) {
13270 set_has_context_pad();
13271 context_pad_ = value;
13272 }
13274 // optional string crop_mode = 11 [default = "warp"];
13275 inline bool WindowDataParameter::has_crop_mode() const {
13276 return (_has_bits_[0] & 0x00000400u) != 0;
13277 }
13278 inline void WindowDataParameter::set_has_crop_mode() {
13279 _has_bits_[0] |= 0x00000400u;
13280 }
13281 inline void WindowDataParameter::clear_has_crop_mode() {
13282 _has_bits_[0] &= ~0x00000400u;
13283 }
13284 inline void WindowDataParameter::clear_crop_mode() {
13285 if (crop_mode_ != _default_crop_mode_) {
13286 crop_mode_->assign(*_default_crop_mode_);
13287 }
13288 clear_has_crop_mode();
13289 }
13290 inline const ::std::string& WindowDataParameter::crop_mode() const {
13291 return *crop_mode_;
13292 }
13293 inline void WindowDataParameter::set_crop_mode(const ::std::string& value) {
13294 set_has_crop_mode();
13295 if (crop_mode_ == _default_crop_mode_) {
13296 crop_mode_ = new ::std::string;
13297 }
13298 crop_mode_->assign(value);
13299 }
13300 inline void WindowDataParameter::set_crop_mode(const char* value) {
13301 set_has_crop_mode();
13302 if (crop_mode_ == _default_crop_mode_) {
13303 crop_mode_ = new ::std::string;
13304 }
13305 crop_mode_->assign(value);
13306 }
13307 inline void WindowDataParameter::set_crop_mode(const char* value, size_t size) {
13308 set_has_crop_mode();
13309 if (crop_mode_ == _default_crop_mode_) {
13310 crop_mode_ = new ::std::string;
13311 }
13312 crop_mode_->assign(reinterpret_cast<const char*>(value), size);
13313 }
13314 inline ::std::string* WindowDataParameter::mutable_crop_mode() {
13315 set_has_crop_mode();
13316 if (crop_mode_ == _default_crop_mode_) {
13317 crop_mode_ = new ::std::string(*_default_crop_mode_);
13318 }
13319 return crop_mode_;
13320 }
13321 inline ::std::string* WindowDataParameter::release_crop_mode() {
13322 clear_has_crop_mode();
13323 if (crop_mode_ == _default_crop_mode_) {
13324 return NULL;
13325 } else {
13326 ::std::string* temp = crop_mode_;
13327 crop_mode_ = const_cast< ::std::string*>(_default_crop_mode_);
13328 return temp;
13329 }
13330 }
13331 inline void WindowDataParameter::set_allocated_crop_mode(::std::string* crop_mode) {
13332 if (crop_mode_ != _default_crop_mode_) {
13333 delete crop_mode_;
13334 }
13335 if (crop_mode) {
13336 set_has_crop_mode();
13337 crop_mode_ = crop_mode;
13338 } else {
13339 clear_has_crop_mode();
13340 crop_mode_ = const_cast< ::std::string*>(_default_crop_mode_);
13341 }
13342 }
13344 // -------------------------------------------------------------------
13346 // V0LayerParameter
13348 // optional string name = 1;
13349 inline bool V0LayerParameter::has_name() const {
13350 return (_has_bits_[0] & 0x00000001u) != 0;
13351 }
13352 inline void V0LayerParameter::set_has_name() {
13353 _has_bits_[0] |= 0x00000001u;
13354 }
13355 inline void V0LayerParameter::clear_has_name() {
13356 _has_bits_[0] &= ~0x00000001u;
13357 }
13358 inline void V0LayerParameter::clear_name() {
13359 if (name_ != &::google::protobuf::internal::kEmptyString) {
13360 name_->clear();
13361 }
13362 clear_has_name();
13363 }
13364 inline const ::std::string& V0LayerParameter::name() const {
13365 return *name_;
13366 }
13367 inline void V0LayerParameter::set_name(const ::std::string& value) {
13368 set_has_name();
13369 if (name_ == &::google::protobuf::internal::kEmptyString) {
13370 name_ = new ::std::string;
13371 }
13372 name_->assign(value);
13373 }
13374 inline void V0LayerParameter::set_name(const char* value) {
13375 set_has_name();
13376 if (name_ == &::google::protobuf::internal::kEmptyString) {
13377 name_ = new ::std::string;
13378 }
13379 name_->assign(value);
13380 }
13381 inline void V0LayerParameter::set_name(const char* value, size_t size) {
13382 set_has_name();
13383 if (name_ == &::google::protobuf::internal::kEmptyString) {
13384 name_ = new ::std::string;
13385 }
13386 name_->assign(reinterpret_cast<const char*>(value), size);
13387 }
13388 inline ::std::string* V0LayerParameter::mutable_name() {
13389 set_has_name();
13390 if (name_ == &::google::protobuf::internal::kEmptyString) {
13391 name_ = new ::std::string;
13392 }
13393 return name_;
13394 }
13395 inline ::std::string* V0LayerParameter::release_name() {
13396 clear_has_name();
13397 if (name_ == &::google::protobuf::internal::kEmptyString) {
13398 return NULL;
13399 } else {
13400 ::std::string* temp = name_;
13401 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13402 return temp;
13403 }
13404 }
13405 inline void V0LayerParameter::set_allocated_name(::std::string* name) {
13406 if (name_ != &::google::protobuf::internal::kEmptyString) {
13407 delete name_;
13408 }
13409 if (name) {
13410 set_has_name();
13411 name_ = name;
13412 } else {
13413 clear_has_name();
13414 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13415 }
13416 }
13418 // optional string type = 2;
13419 inline bool V0LayerParameter::has_type() const {
13420 return (_has_bits_[0] & 0x00000002u) != 0;
13421 }
13422 inline void V0LayerParameter::set_has_type() {
13423 _has_bits_[0] |= 0x00000002u;
13424 }
13425 inline void V0LayerParameter::clear_has_type() {
13426 _has_bits_[0] &= ~0x00000002u;
13427 }
13428 inline void V0LayerParameter::clear_type() {
13429 if (type_ != &::google::protobuf::internal::kEmptyString) {
13430 type_->clear();
13431 }
13432 clear_has_type();
13433 }
13434 inline const ::std::string& V0LayerParameter::type() const {
13435 return *type_;
13436 }
13437 inline void V0LayerParameter::set_type(const ::std::string& value) {
13438 set_has_type();
13439 if (type_ == &::google::protobuf::internal::kEmptyString) {
13440 type_ = new ::std::string;
13441 }
13442 type_->assign(value);
13443 }
13444 inline void V0LayerParameter::set_type(const char* value) {
13445 set_has_type();
13446 if (type_ == &::google::protobuf::internal::kEmptyString) {
13447 type_ = new ::std::string;
13448 }
13449 type_->assign(value);
13450 }
13451 inline void V0LayerParameter::set_type(const char* value, size_t size) {
13452 set_has_type();
13453 if (type_ == &::google::protobuf::internal::kEmptyString) {
13454 type_ = new ::std::string;
13455 }
13456 type_->assign(reinterpret_cast<const char*>(value), size);
13457 }
13458 inline ::std::string* V0LayerParameter::mutable_type() {
13459 set_has_type();
13460 if (type_ == &::google::protobuf::internal::kEmptyString) {
13461 type_ = new ::std::string;
13462 }
13463 return type_;
13464 }
13465 inline ::std::string* V0LayerParameter::release_type() {
13466 clear_has_type();
13467 if (type_ == &::google::protobuf::internal::kEmptyString) {
13468 return NULL;
13469 } else {
13470 ::std::string* temp = type_;
13471 type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13472 return temp;
13473 }
13474 }
13475 inline void V0LayerParameter::set_allocated_type(::std::string* type) {
13476 if (type_ != &::google::protobuf::internal::kEmptyString) {
13477 delete type_;
13478 }
13479 if (type) {
13480 set_has_type();
13481 type_ = type;
13482 } else {
13483 clear_has_type();
13484 type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13485 }
13486 }
13488 // optional uint32 num_output = 3;
13489 inline bool V0LayerParameter::has_num_output() const {
13490 return (_has_bits_[0] & 0x00000004u) != 0;
13491 }
13492 inline void V0LayerParameter::set_has_num_output() {
13493 _has_bits_[0] |= 0x00000004u;
13494 }
13495 inline void V0LayerParameter::clear_has_num_output() {
13496 _has_bits_[0] &= ~0x00000004u;
13497 }
13498 inline void V0LayerParameter::clear_num_output() {
13499 num_output_ = 0u;
13500 clear_has_num_output();
13501 }
13502 inline ::google::protobuf::uint32 V0LayerParameter::num_output() const {
13503 return num_output_;
13504 }
13505 inline void V0LayerParameter::set_num_output(::google::protobuf::uint32 value) {
13506 set_has_num_output();
13507 num_output_ = value;
13508 }
13510 // optional bool biasterm = 4 [default = true];
13511 inline bool V0LayerParameter::has_biasterm() const {
13512 return (_has_bits_[0] & 0x00000008u) != 0;
13513 }
13514 inline void V0LayerParameter::set_has_biasterm() {
13515 _has_bits_[0] |= 0x00000008u;
13516 }
13517 inline void V0LayerParameter::clear_has_biasterm() {
13518 _has_bits_[0] &= ~0x00000008u;
13519 }
13520 inline void V0LayerParameter::clear_biasterm() {
13521 biasterm_ = true;
13522 clear_has_biasterm();
13523 }
13524 inline bool V0LayerParameter::biasterm() const {
13525 return biasterm_;
13526 }
13527 inline void V0LayerParameter::set_biasterm(bool value) {
13528 set_has_biasterm();
13529 biasterm_ = value;
13530 }
13532 // optional .caffe.FillerParameter weight_filler = 5;
13533 inline bool V0LayerParameter::has_weight_filler() const {
13534 return (_has_bits_[0] & 0x00000010u) != 0;
13535 }
13536 inline void V0LayerParameter::set_has_weight_filler() {
13537 _has_bits_[0] |= 0x00000010u;
13538 }
13539 inline void V0LayerParameter::clear_has_weight_filler() {
13540 _has_bits_[0] &= ~0x00000010u;
13541 }
13542 inline void V0LayerParameter::clear_weight_filler() {
13543 if (weight_filler_ != NULL) weight_filler_->::caffe::FillerParameter::Clear();
13544 clear_has_weight_filler();
13545 }
13546 inline const ::caffe::FillerParameter& V0LayerParameter::weight_filler() const {
13547 return weight_filler_ != NULL ? *weight_filler_ : *default_instance_->weight_filler_;
13548 }
13549 inline ::caffe::FillerParameter* V0LayerParameter::mutable_weight_filler() {
13550 set_has_weight_filler();
13551 if (weight_filler_ == NULL) weight_filler_ = new ::caffe::FillerParameter;
13552 return weight_filler_;
13553 }
13554 inline ::caffe::FillerParameter* V0LayerParameter::release_weight_filler() {
13555 clear_has_weight_filler();
13556 ::caffe::FillerParameter* temp = weight_filler_;
13557 weight_filler_ = NULL;
13558 return temp;
13559 }
13560 inline void V0LayerParameter::set_allocated_weight_filler(::caffe::FillerParameter* weight_filler) {
13561 delete weight_filler_;
13562 weight_filler_ = weight_filler;
13563 if (weight_filler) {
13564 set_has_weight_filler();
13565 } else {
13566 clear_has_weight_filler();
13567 }
13568 }
13570 // optional .caffe.FillerParameter bias_filler = 6;
13571 inline bool V0LayerParameter::has_bias_filler() const {
13572 return (_has_bits_[0] & 0x00000020u) != 0;
13573 }
13574 inline void V0LayerParameter::set_has_bias_filler() {
13575 _has_bits_[0] |= 0x00000020u;
13576 }
13577 inline void V0LayerParameter::clear_has_bias_filler() {
13578 _has_bits_[0] &= ~0x00000020u;
13579 }
13580 inline void V0LayerParameter::clear_bias_filler() {
13581 if (bias_filler_ != NULL) bias_filler_->::caffe::FillerParameter::Clear();
13582 clear_has_bias_filler();
13583 }
13584 inline const ::caffe::FillerParameter& V0LayerParameter::bias_filler() const {
13585 return bias_filler_ != NULL ? *bias_filler_ : *default_instance_->bias_filler_;
13586 }
13587 inline ::caffe::FillerParameter* V0LayerParameter::mutable_bias_filler() {
13588 set_has_bias_filler();
13589 if (bias_filler_ == NULL) bias_filler_ = new ::caffe::FillerParameter;
13590 return bias_filler_;
13591 }
13592 inline ::caffe::FillerParameter* V0LayerParameter::release_bias_filler() {
13593 clear_has_bias_filler();
13594 ::caffe::FillerParameter* temp = bias_filler_;
13595 bias_filler_ = NULL;
13596 return temp;
13597 }
13598 inline void V0LayerParameter::set_allocated_bias_filler(::caffe::FillerParameter* bias_filler) {
13599 delete bias_filler_;
13600 bias_filler_ = bias_filler;
13601 if (bias_filler) {
13602 set_has_bias_filler();
13603 } else {
13604 clear_has_bias_filler();
13605 }
13606 }
13608 // optional uint32 pad = 7 [default = 0];
13609 inline bool V0LayerParameter::has_pad() const {
13610 return (_has_bits_[0] & 0x00000040u) != 0;
13611 }
13612 inline void V0LayerParameter::set_has_pad() {
13613 _has_bits_[0] |= 0x00000040u;
13614 }
13615 inline void V0LayerParameter::clear_has_pad() {
13616 _has_bits_[0] &= ~0x00000040u;
13617 }
13618 inline void V0LayerParameter::clear_pad() {
13619 pad_ = 0u;
13620 clear_has_pad();
13621 }
13622 inline ::google::protobuf::uint32 V0LayerParameter::pad() const {
13623 return pad_;
13624 }
13625 inline void V0LayerParameter::set_pad(::google::protobuf::uint32 value) {
13626 set_has_pad();
13627 pad_ = value;
13628 }
13630 // optional uint32 kernelsize = 8;
13631 inline bool V0LayerParameter::has_kernelsize() const {
13632 return (_has_bits_[0] & 0x00000080u) != 0;
13633 }
13634 inline void V0LayerParameter::set_has_kernelsize() {
13635 _has_bits_[0] |= 0x00000080u;
13636 }
13637 inline void V0LayerParameter::clear_has_kernelsize() {
13638 _has_bits_[0] &= ~0x00000080u;
13639 }
13640 inline void V0LayerParameter::clear_kernelsize() {
13641 kernelsize_ = 0u;
13642 clear_has_kernelsize();
13643 }
13644 inline ::google::protobuf::uint32 V0LayerParameter::kernelsize() const {
13645 return kernelsize_;
13646 }
13647 inline void V0LayerParameter::set_kernelsize(::google::protobuf::uint32 value) {
13648 set_has_kernelsize();
13649 kernelsize_ = value;
13650 }
13652 // optional uint32 group = 9 [default = 1];
13653 inline bool V0LayerParameter::has_group() const {
13654 return (_has_bits_[0] & 0x00000100u) != 0;
13655 }
13656 inline void V0LayerParameter::set_has_group() {
13657 _has_bits_[0] |= 0x00000100u;
13658 }
13659 inline void V0LayerParameter::clear_has_group() {
13660 _has_bits_[0] &= ~0x00000100u;
13661 }
13662 inline void V0LayerParameter::clear_group() {
13663 group_ = 1u;
13664 clear_has_group();
13665 }
13666 inline ::google::protobuf::uint32 V0LayerParameter::group() const {
13667 return group_;
13668 }
13669 inline void V0LayerParameter::set_group(::google::protobuf::uint32 value) {
13670 set_has_group();
13671 group_ = value;
13672 }
13674 // optional uint32 stride = 10 [default = 1];
13675 inline bool V0LayerParameter::has_stride() const {
13676 return (_has_bits_[0] & 0x00000200u) != 0;
13677 }
13678 inline void V0LayerParameter::set_has_stride() {
13679 _has_bits_[0] |= 0x00000200u;
13680 }
13681 inline void V0LayerParameter::clear_has_stride() {
13682 _has_bits_[0] &= ~0x00000200u;
13683 }
13684 inline void V0LayerParameter::clear_stride() {
13685 stride_ = 1u;
13686 clear_has_stride();
13687 }
13688 inline ::google::protobuf::uint32 V0LayerParameter::stride() const {
13689 return stride_;
13690 }
13691 inline void V0LayerParameter::set_stride(::google::protobuf::uint32 value) {
13692 set_has_stride();
13693 stride_ = value;
13694 }
13696 // optional .caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX];
13697 inline bool V0LayerParameter::has_pool() const {
13698 return (_has_bits_[0] & 0x00000400u) != 0;
13699 }
13700 inline void V0LayerParameter::set_has_pool() {
13701 _has_bits_[0] |= 0x00000400u;
13702 }
13703 inline void V0LayerParameter::clear_has_pool() {
13704 _has_bits_[0] &= ~0x00000400u;
13705 }
13706 inline void V0LayerParameter::clear_pool() {
13707 pool_ = 0;
13708 clear_has_pool();
13709 }
13710 inline ::caffe::V0LayerParameter_PoolMethod V0LayerParameter::pool() const {
13711 return static_cast< ::caffe::V0LayerParameter_PoolMethod >(pool_);
13712 }
13713 inline void V0LayerParameter::set_pool(::caffe::V0LayerParameter_PoolMethod value) {
13714 assert(::caffe::V0LayerParameter_PoolMethod_IsValid(value));
13715 set_has_pool();
13716 pool_ = value;
13717 }
13719 // optional float dropout_ratio = 12 [default = 0.5];
13720 inline bool V0LayerParameter::has_dropout_ratio() const {
13721 return (_has_bits_[0] & 0x00000800u) != 0;
13722 }
13723 inline void V0LayerParameter::set_has_dropout_ratio() {
13724 _has_bits_[0] |= 0x00000800u;
13725 }
13726 inline void V0LayerParameter::clear_has_dropout_ratio() {
13727 _has_bits_[0] &= ~0x00000800u;
13728 }
13729 inline void V0LayerParameter::clear_dropout_ratio() {
13730 dropout_ratio_ = 0.5f;
13731 clear_has_dropout_ratio();
13732 }
13733 inline float V0LayerParameter::dropout_ratio() const {
13734 return dropout_ratio_;
13735 }
13736 inline void V0LayerParameter::set_dropout_ratio(float value) {
13737 set_has_dropout_ratio();
13738 dropout_ratio_ = value;
13739 }
13741 // optional uint32 local_size = 13 [default = 5];
13742 inline bool V0LayerParameter::has_local_size() const {
13743 return (_has_bits_[0] & 0x00001000u) != 0;
13744 }
13745 inline void V0LayerParameter::set_has_local_size() {
13746 _has_bits_[0] |= 0x00001000u;
13747 }
13748 inline void V0LayerParameter::clear_has_local_size() {
13749 _has_bits_[0] &= ~0x00001000u;
13750 }
13751 inline void V0LayerParameter::clear_local_size() {
13752 local_size_ = 5u;
13753 clear_has_local_size();
13754 }
13755 inline ::google::protobuf::uint32 V0LayerParameter::local_size() const {
13756 return local_size_;
13757 }
13758 inline void V0LayerParameter::set_local_size(::google::protobuf::uint32 value) {
13759 set_has_local_size();
13760 local_size_ = value;
13761 }
13763 // optional float alpha = 14 [default = 1];
13764 inline bool V0LayerParameter::has_alpha() const {
13765 return (_has_bits_[0] & 0x00002000u) != 0;
13766 }
13767 inline void V0LayerParameter::set_has_alpha() {
13768 _has_bits_[0] |= 0x00002000u;
13769 }
13770 inline void V0LayerParameter::clear_has_alpha() {
13771 _has_bits_[0] &= ~0x00002000u;
13772 }
13773 inline void V0LayerParameter::clear_alpha() {
13774 alpha_ = 1;
13775 clear_has_alpha();
13776 }
13777 inline float V0LayerParameter::alpha() const {
13778 return alpha_;
13779 }
13780 inline void V0LayerParameter::set_alpha(float value) {
13781 set_has_alpha();
13782 alpha_ = value;
13783 }
13785 // optional float beta = 15 [default = 0.75];
13786 inline bool V0LayerParameter::has_beta() const {
13787 return (_has_bits_[0] & 0x00004000u) != 0;
13788 }
13789 inline void V0LayerParameter::set_has_beta() {
13790 _has_bits_[0] |= 0x00004000u;
13791 }
13792 inline void V0LayerParameter::clear_has_beta() {
13793 _has_bits_[0] &= ~0x00004000u;
13794 }
13795 inline void V0LayerParameter::clear_beta() {
13796 beta_ = 0.75f;
13797 clear_has_beta();
13798 }
13799 inline float V0LayerParameter::beta() const {
13800 return beta_;
13801 }
13802 inline void V0LayerParameter::set_beta(float value) {
13803 set_has_beta();
13804 beta_ = value;
13805 }
13807 // optional string source = 16;
13808 inline bool V0LayerParameter::has_source() const {
13809 return (_has_bits_[0] & 0x00008000u) != 0;
13810 }
13811 inline void V0LayerParameter::set_has_source() {
13812 _has_bits_[0] |= 0x00008000u;
13813 }
13814 inline void V0LayerParameter::clear_has_source() {
13815 _has_bits_[0] &= ~0x00008000u;
13816 }
13817 inline void V0LayerParameter::clear_source() {
13818 if (source_ != &::google::protobuf::internal::kEmptyString) {
13819 source_->clear();
13820 }
13821 clear_has_source();
13822 }
13823 inline const ::std::string& V0LayerParameter::source() const {
13824 return *source_;
13825 }
13826 inline void V0LayerParameter::set_source(const ::std::string& value) {
13827 set_has_source();
13828 if (source_ == &::google::protobuf::internal::kEmptyString) {
13829 source_ = new ::std::string;
13830 }
13831 source_->assign(value);
13832 }
13833 inline void V0LayerParameter::set_source(const char* value) {
13834 set_has_source();
13835 if (source_ == &::google::protobuf::internal::kEmptyString) {
13836 source_ = new ::std::string;
13837 }
13838 source_->assign(value);
13839 }
13840 inline void V0LayerParameter::set_source(const char* value, size_t size) {
13841 set_has_source();
13842 if (source_ == &::google::protobuf::internal::kEmptyString) {
13843 source_ = new ::std::string;
13844 }
13845 source_->assign(reinterpret_cast<const char*>(value), size);
13846 }
13847 inline ::std::string* V0LayerParameter::mutable_source() {
13848 set_has_source();
13849 if (source_ == &::google::protobuf::internal::kEmptyString) {
13850 source_ = new ::std::string;
13851 }
13852 return source_;
13853 }
13854 inline ::std::string* V0LayerParameter::release_source() {
13855 clear_has_source();
13856 if (source_ == &::google::protobuf::internal::kEmptyString) {
13857 return NULL;
13858 } else {
13859 ::std::string* temp = source_;
13860 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13861 return temp;
13862 }
13863 }
13864 inline void V0LayerParameter::set_allocated_source(::std::string* source) {
13865 if (source_ != &::google::protobuf::internal::kEmptyString) {
13866 delete source_;
13867 }
13868 if (source) {
13869 set_has_source();
13870 source_ = source;
13871 } else {
13872 clear_has_source();
13873 source_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13874 }
13875 }
13877 // optional float scale = 17 [default = 1];
13878 inline bool V0LayerParameter::has_scale() const {
13879 return (_has_bits_[0] & 0x00010000u) != 0;
13880 }
13881 inline void V0LayerParameter::set_has_scale() {
13882 _has_bits_[0] |= 0x00010000u;
13883 }
13884 inline void V0LayerParameter::clear_has_scale() {
13885 _has_bits_[0] &= ~0x00010000u;
13886 }
13887 inline void V0LayerParameter::clear_scale() {
13888 scale_ = 1;
13889 clear_has_scale();
13890 }
13891 inline float V0LayerParameter::scale() const {
13892 return scale_;
13893 }
13894 inline void V0LayerParameter::set_scale(float value) {
13895 set_has_scale();
13896 scale_ = value;
13897 }
13899 // optional string meanfile = 18;
13900 inline bool V0LayerParameter::has_meanfile() const {
13901 return (_has_bits_[0] & 0x00020000u) != 0;
13902 }
13903 inline void V0LayerParameter::set_has_meanfile() {
13904 _has_bits_[0] |= 0x00020000u;
13905 }
13906 inline void V0LayerParameter::clear_has_meanfile() {
13907 _has_bits_[0] &= ~0x00020000u;
13908 }
13909 inline void V0LayerParameter::clear_meanfile() {
13910 if (meanfile_ != &::google::protobuf::internal::kEmptyString) {
13911 meanfile_->clear();
13912 }
13913 clear_has_meanfile();
13914 }
13915 inline const ::std::string& V0LayerParameter::meanfile() const {
13916 return *meanfile_;
13917 }
13918 inline void V0LayerParameter::set_meanfile(const ::std::string& value) {
13919 set_has_meanfile();
13920 if (meanfile_ == &::google::protobuf::internal::kEmptyString) {
13921 meanfile_ = new ::std::string;
13922 }
13923 meanfile_->assign(value);
13924 }
13925 inline void V0LayerParameter::set_meanfile(const char* value) {
13926 set_has_meanfile();
13927 if (meanfile_ == &::google::protobuf::internal::kEmptyString) {
13928 meanfile_ = new ::std::string;
13929 }
13930 meanfile_->assign(value);
13931 }
13932 inline void V0LayerParameter::set_meanfile(const char* value, size_t size) {
13933 set_has_meanfile();
13934 if (meanfile_ == &::google::protobuf::internal::kEmptyString) {
13935 meanfile_ = new ::std::string;
13936 }
13937 meanfile_->assign(reinterpret_cast<const char*>(value), size);
13938 }
13939 inline ::std::string* V0LayerParameter::mutable_meanfile() {
13940 set_has_meanfile();
13941 if (meanfile_ == &::google::protobuf::internal::kEmptyString) {
13942 meanfile_ = new ::std::string;
13943 }
13944 return meanfile_;
13945 }
13946 inline ::std::string* V0LayerParameter::release_meanfile() {
13947 clear_has_meanfile();
13948 if (meanfile_ == &::google::protobuf::internal::kEmptyString) {
13949 return NULL;
13950 } else {
13951 ::std::string* temp = meanfile_;
13952 meanfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13953 return temp;
13954 }
13955 }
13956 inline void V0LayerParameter::set_allocated_meanfile(::std::string* meanfile) {
13957 if (meanfile_ != &::google::protobuf::internal::kEmptyString) {
13958 delete meanfile_;
13959 }
13960 if (meanfile) {
13961 set_has_meanfile();
13962 meanfile_ = meanfile;
13963 } else {
13964 clear_has_meanfile();
13965 meanfile_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
13966 }
13967 }
13969 // optional uint32 batchsize = 19;
13970 inline bool V0LayerParameter::has_batchsize() const {
13971 return (_has_bits_[0] & 0x00040000u) != 0;
13972 }
13973 inline void V0LayerParameter::set_has_batchsize() {
13974 _has_bits_[0] |= 0x00040000u;
13975 }
13976 inline void V0LayerParameter::clear_has_batchsize() {
13977 _has_bits_[0] &= ~0x00040000u;
13978 }
13979 inline void V0LayerParameter::clear_batchsize() {
13980 batchsize_ = 0u;
13981 clear_has_batchsize();
13982 }
13983 inline ::google::protobuf::uint32 V0LayerParameter::batchsize() const {
13984 return batchsize_;
13985 }
13986 inline void V0LayerParameter::set_batchsize(::google::protobuf::uint32 value) {
13987 set_has_batchsize();
13988 batchsize_ = value;
13989 }
13991 // optional uint32 cropsize = 20 [default = 0];
13992 inline bool V0LayerParameter::has_cropsize() const {
13993 return (_has_bits_[0] & 0x00080000u) != 0;
13994 }
13995 inline void V0LayerParameter::set_has_cropsize() {
13996 _has_bits_[0] |= 0x00080000u;
13997 }
13998 inline void V0LayerParameter::clear_has_cropsize() {
13999 _has_bits_[0] &= ~0x00080000u;
14000 }
14001 inline void V0LayerParameter::clear_cropsize() {
14002 cropsize_ = 0u;
14003 clear_has_cropsize();
14004 }
14005 inline ::google::protobuf::uint32 V0LayerParameter::cropsize() const {
14006 return cropsize_;
14007 }
14008 inline void V0LayerParameter::set_cropsize(::google::protobuf::uint32 value) {
14009 set_has_cropsize();
14010 cropsize_ = value;
14011 }
14013 // optional bool mirror = 21 [default = false];
14014 inline bool V0LayerParameter::has_mirror() const {
14015 return (_has_bits_[0] & 0x00100000u) != 0;
14016 }
14017 inline void V0LayerParameter::set_has_mirror() {
14018 _has_bits_[0] |= 0x00100000u;
14019 }
14020 inline void V0LayerParameter::clear_has_mirror() {
14021 _has_bits_[0] &= ~0x00100000u;
14022 }
14023 inline void V0LayerParameter::clear_mirror() {
14024 mirror_ = false;
14025 clear_has_mirror();
14026 }
14027 inline bool V0LayerParameter::mirror() const {
14028 return mirror_;
14029 }
14030 inline void V0LayerParameter::set_mirror(bool value) {
14031 set_has_mirror();
14032 mirror_ = value;
14033 }
14035 // repeated .caffe.BlobProto blobs = 50;
14036 inline int V0LayerParameter::blobs_size() const {
14037 return blobs_.size();
14038 }
14039 inline void V0LayerParameter::clear_blobs() {
14040 blobs_.Clear();
14041 }
14042 inline const ::caffe::BlobProto& V0LayerParameter::blobs(int index) const {
14043 return blobs_.Get(index);
14044 }
14045 inline ::caffe::BlobProto* V0LayerParameter::mutable_blobs(int index) {
14046 return blobs_.Mutable(index);
14047 }
14048 inline ::caffe::BlobProto* V0LayerParameter::add_blobs() {
14049 return blobs_.Add();
14050 }
14051 inline const ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >&
14052 V0LayerParameter::blobs() const {
14053 return blobs_;
14054 }
14055 inline ::google::protobuf::RepeatedPtrField< ::caffe::BlobProto >*
14056 V0LayerParameter::mutable_blobs() {
14057 return &blobs_;
14058 }
14060 // repeated float blobs_lr = 51;
14061 inline int V0LayerParameter::blobs_lr_size() const {
14062 return blobs_lr_.size();
14063 }
14064 inline void V0LayerParameter::clear_blobs_lr() {
14065 blobs_lr_.Clear();
14066 }
14067 inline float V0LayerParameter::blobs_lr(int index) const {
14068 return blobs_lr_.Get(index);
14069 }
14070 inline void V0LayerParameter::set_blobs_lr(int index, float value) {
14071 blobs_lr_.Set(index, value);
14072 }
14073 inline void V0LayerParameter::add_blobs_lr(float value) {
14074 blobs_lr_.Add(value);
14075 }
14076 inline const ::google::protobuf::RepeatedField< float >&
14077 V0LayerParameter::blobs_lr() const {
14078 return blobs_lr_;
14079 }
14080 inline ::google::protobuf::RepeatedField< float >*
14081 V0LayerParameter::mutable_blobs_lr() {
14082 return &blobs_lr_;
14083 }
14085 // repeated float weight_decay = 52;
14086 inline int V0LayerParameter::weight_decay_size() const {
14087 return weight_decay_.size();
14088 }
14089 inline void V0LayerParameter::clear_weight_decay() {
14090 weight_decay_.Clear();
14091 }
14092 inline float V0LayerParameter::weight_decay(int index) const {
14093 return weight_decay_.Get(index);
14094 }
14095 inline void V0LayerParameter::set_weight_decay(int index, float value) {
14096 weight_decay_.Set(index, value);
14097 }
14098 inline void V0LayerParameter::add_weight_decay(float value) {
14099 weight_decay_.Add(value);
14100 }
14101 inline const ::google::protobuf::RepeatedField< float >&
14102 V0LayerParameter::weight_decay() const {
14103 return weight_decay_;
14104 }
14105 inline ::google::protobuf::RepeatedField< float >*
14106 V0LayerParameter::mutable_weight_decay() {
14107 return &weight_decay_;
14108 }
14110 // optional uint32 rand_skip = 53 [default = 0];
14111 inline bool V0LayerParameter::has_rand_skip() const {
14112 return (_has_bits_[0] & 0x01000000u) != 0;
14113 }
14114 inline void V0LayerParameter::set_has_rand_skip() {
14115 _has_bits_[0] |= 0x01000000u;
14116 }
14117 inline void V0LayerParameter::clear_has_rand_skip() {
14118 _has_bits_[0] &= ~0x01000000u;
14119 }
14120 inline void V0LayerParameter::clear_rand_skip() {
14121 rand_skip_ = 0u;
14122 clear_has_rand_skip();
14123 }
14124 inline ::google::protobuf::uint32 V0LayerParameter::rand_skip() const {
14125 return rand_skip_;
14126 }
14127 inline void V0LayerParameter::set_rand_skip(::google::protobuf::uint32 value) {
14128 set_has_rand_skip();
14129 rand_skip_ = value;
14130 }
14132 // optional float det_fg_threshold = 54 [default = 0.5];
14133 inline bool V0LayerParameter::has_det_fg_threshold() const {
14134 return (_has_bits_[0] & 0x02000000u) != 0;
14135 }
14136 inline void V0LayerParameter::set_has_det_fg_threshold() {
14137 _has_bits_[0] |= 0x02000000u;
14138 }
14139 inline void V0LayerParameter::clear_has_det_fg_threshold() {
14140 _has_bits_[0] &= ~0x02000000u;
14141 }
14142 inline void V0LayerParameter::clear_det_fg_threshold() {
14143 det_fg_threshold_ = 0.5f;
14144 clear_has_det_fg_threshold();
14145 }
14146 inline float V0LayerParameter::det_fg_threshold() const {
14147 return det_fg_threshold_;
14148 }
14149 inline void V0LayerParameter::set_det_fg_threshold(float value) {
14150 set_has_det_fg_threshold();
14151 det_fg_threshold_ = value;
14152 }
14154 // optional float det_bg_threshold = 55 [default = 0.5];
14155 inline bool V0LayerParameter::has_det_bg_threshold() const {
14156 return (_has_bits_[0] & 0x04000000u) != 0;
14157 }
14158 inline void V0LayerParameter::set_has_det_bg_threshold() {
14159 _has_bits_[0] |= 0x04000000u;
14160 }
14161 inline void V0LayerParameter::clear_has_det_bg_threshold() {
14162 _has_bits_[0] &= ~0x04000000u;
14163 }
14164 inline void V0LayerParameter::clear_det_bg_threshold() {
14165 det_bg_threshold_ = 0.5f;
14166 clear_has_det_bg_threshold();
14167 }
14168 inline float V0LayerParameter::det_bg_threshold() const {
14169 return det_bg_threshold_;
14170 }
14171 inline void V0LayerParameter::set_det_bg_threshold(float value) {
14172 set_has_det_bg_threshold();
14173 det_bg_threshold_ = value;
14174 }
14176 // optional float det_fg_fraction = 56 [default = 0.25];
14177 inline bool V0LayerParameter::has_det_fg_fraction() const {
14178 return (_has_bits_[0] & 0x08000000u) != 0;
14179 }
14180 inline void V0LayerParameter::set_has_det_fg_fraction() {
14181 _has_bits_[0] |= 0x08000000u;
14182 }
14183 inline void V0LayerParameter::clear_has_det_fg_fraction() {
14184 _has_bits_[0] &= ~0x08000000u;
14185 }
14186 inline void V0LayerParameter::clear_det_fg_fraction() {
14187 det_fg_fraction_ = 0.25f;
14188 clear_has_det_fg_fraction();
14189 }
14190 inline float V0LayerParameter::det_fg_fraction() const {
14191 return det_fg_fraction_;
14192 }
14193 inline void V0LayerParameter::set_det_fg_fraction(float value) {
14194 set_has_det_fg_fraction();
14195 det_fg_fraction_ = value;
14196 }
14198 // optional uint32 det_context_pad = 58 [default = 0];
14199 inline bool V0LayerParameter::has_det_context_pad() const {
14200 return (_has_bits_[0] & 0x10000000u) != 0;
14201 }
14202 inline void V0LayerParameter::set_has_det_context_pad() {
14203 _has_bits_[0] |= 0x10000000u;
14204 }
14205 inline void V0LayerParameter::clear_has_det_context_pad() {
14206 _has_bits_[0] &= ~0x10000000u;
14207 }
14208 inline void V0LayerParameter::clear_det_context_pad() {
14209 det_context_pad_ = 0u;
14210 clear_has_det_context_pad();
14211 }
14212 inline ::google::protobuf::uint32 V0LayerParameter::det_context_pad() const {
14213 return det_context_pad_;
14214 }
14215 inline void V0LayerParameter::set_det_context_pad(::google::protobuf::uint32 value) {
14216 set_has_det_context_pad();
14217 det_context_pad_ = value;
14218 }
14220 // optional string det_crop_mode = 59 [default = "warp"];
14221 inline bool V0LayerParameter::has_det_crop_mode() const {
14222 return (_has_bits_[0] & 0x20000000u) != 0;
14223 }
14224 inline void V0LayerParameter::set_has_det_crop_mode() {
14225 _has_bits_[0] |= 0x20000000u;
14226 }
14227 inline void V0LayerParameter::clear_has_det_crop_mode() {
14228 _has_bits_[0] &= ~0x20000000u;
14229 }
14230 inline void V0LayerParameter::clear_det_crop_mode() {
14231 if (det_crop_mode_ != _default_det_crop_mode_) {
14232 det_crop_mode_->assign(*_default_det_crop_mode_);
14233 }
14234 clear_has_det_crop_mode();
14235 }
14236 inline const ::std::string& V0LayerParameter::det_crop_mode() const {
14237 return *det_crop_mode_;
14238 }
14239 inline void V0LayerParameter::set_det_crop_mode(const ::std::string& value) {
14240 set_has_det_crop_mode();
14241 if (det_crop_mode_ == _default_det_crop_mode_) {
14242 det_crop_mode_ = new ::std::string;
14243 }
14244 det_crop_mode_->assign(value);
14245 }
14246 inline void V0LayerParameter::set_det_crop_mode(const char* value) {
14247 set_has_det_crop_mode();
14248 if (det_crop_mode_ == _default_det_crop_mode_) {
14249 det_crop_mode_ = new ::std::string;
14250 }
14251 det_crop_mode_->assign(value);
14252 }
14253 inline void V0LayerParameter::set_det_crop_mode(const char* value, size_t size) {
14254 set_has_det_crop_mode();
14255 if (det_crop_mode_ == _default_det_crop_mode_) {
14256 det_crop_mode_ = new ::std::string;
14257 }
14258 det_crop_mode_->assign(reinterpret_cast<const char*>(value), size);
14259 }
14260 inline ::std::string* V0LayerParameter::mutable_det_crop_mode() {
14261 set_has_det_crop_mode();
14262 if (det_crop_mode_ == _default_det_crop_mode_) {
14263 det_crop_mode_ = new ::std::string(*_default_det_crop_mode_);
14264 }
14265 return det_crop_mode_;
14266 }
14267 inline ::std::string* V0LayerParameter::release_det_crop_mode() {
14268 clear_has_det_crop_mode();
14269 if (det_crop_mode_ == _default_det_crop_mode_) {
14270 return NULL;
14271 } else {
14272 ::std::string* temp = det_crop_mode_;
14273 det_crop_mode_ = const_cast< ::std::string*>(_default_det_crop_mode_);
14274 return temp;
14275 }
14276 }
14277 inline void V0LayerParameter::set_allocated_det_crop_mode(::std::string* det_crop_mode) {
14278 if (det_crop_mode_ != _default_det_crop_mode_) {
14279 delete det_crop_mode_;
14280 }
14281 if (det_crop_mode) {
14282 set_has_det_crop_mode();
14283 det_crop_mode_ = det_crop_mode;
14284 } else {
14285 clear_has_det_crop_mode();
14286 det_crop_mode_ = const_cast< ::std::string*>(_default_det_crop_mode_);
14287 }
14288 }
14290 // optional int32 new_num = 60 [default = 0];
14291 inline bool V0LayerParameter::has_new_num() const {
14292 return (_has_bits_[0] & 0x40000000u) != 0;
14293 }
14294 inline void V0LayerParameter::set_has_new_num() {
14295 _has_bits_[0] |= 0x40000000u;
14296 }
14297 inline void V0LayerParameter::clear_has_new_num() {
14298 _has_bits_[0] &= ~0x40000000u;
14299 }
14300 inline void V0LayerParameter::clear_new_num() {
14301 new_num_ = 0;
14302 clear_has_new_num();
14303 }
14304 inline ::google::protobuf::int32 V0LayerParameter::new_num() const {
14305 return new_num_;
14306 }
14307 inline void V0LayerParameter::set_new_num(::google::protobuf::int32 value) {
14308 set_has_new_num();
14309 new_num_ = value;
14310 }
14312 // optional int32 new_channels = 61 [default = 0];
14313 inline bool V0LayerParameter::has_new_channels() const {
14314 return (_has_bits_[0] & 0x80000000u) != 0;
14315 }
14316 inline void V0LayerParameter::set_has_new_channels() {
14317 _has_bits_[0] |= 0x80000000u;
14318 }
14319 inline void V0LayerParameter::clear_has_new_channels() {
14320 _has_bits_[0] &= ~0x80000000u;
14321 }
14322 inline void V0LayerParameter::clear_new_channels() {
14323 new_channels_ = 0;
14324 clear_has_new_channels();
14325 }
14326 inline ::google::protobuf::int32 V0LayerParameter::new_channels() const {
14327 return new_channels_;
14328 }
14329 inline void V0LayerParameter::set_new_channels(::google::protobuf::int32 value) {
14330 set_has_new_channels();
14331 new_channels_ = value;
14332 }
14334 // optional int32 new_height = 62 [default = 0];
14335 inline bool V0LayerParameter::has_new_height() const {
14336 return (_has_bits_[1] & 0x00000001u) != 0;
14337 }
14338 inline void V0LayerParameter::set_has_new_height() {
14339 _has_bits_[1] |= 0x00000001u;
14340 }
14341 inline void V0LayerParameter::clear_has_new_height() {
14342 _has_bits_[1] &= ~0x00000001u;
14343 }
14344 inline void V0LayerParameter::clear_new_height() {
14345 new_height_ = 0;
14346 clear_has_new_height();
14347 }
14348 inline ::google::protobuf::int32 V0LayerParameter::new_height() const {
14349 return new_height_;
14350 }
14351 inline void V0LayerParameter::set_new_height(::google::protobuf::int32 value) {
14352 set_has_new_height();
14353 new_height_ = value;
14354 }
14356 // optional int32 new_width = 63 [default = 0];
14357 inline bool V0LayerParameter::has_new_width() const {
14358 return (_has_bits_[1] & 0x00000002u) != 0;
14359 }
14360 inline void V0LayerParameter::set_has_new_width() {
14361 _has_bits_[1] |= 0x00000002u;
14362 }
14363 inline void V0LayerParameter::clear_has_new_width() {
14364 _has_bits_[1] &= ~0x00000002u;
14365 }
14366 inline void V0LayerParameter::clear_new_width() {
14367 new_width_ = 0;
14368 clear_has_new_width();
14369 }
14370 inline ::google::protobuf::int32 V0LayerParameter::new_width() const {
14371 return new_width_;
14372 }
14373 inline void V0LayerParameter::set_new_width(::google::protobuf::int32 value) {
14374 set_has_new_width();
14375 new_width_ = value;
14376 }
14378 // optional bool shuffle_images = 64 [default = false];
14379 inline bool V0LayerParameter::has_shuffle_images() const {
14380 return (_has_bits_[1] & 0x00000004u) != 0;
14381 }
14382 inline void V0LayerParameter::set_has_shuffle_images() {
14383 _has_bits_[1] |= 0x00000004u;
14384 }
14385 inline void V0LayerParameter::clear_has_shuffle_images() {
14386 _has_bits_[1] &= ~0x00000004u;
14387 }
14388 inline void V0LayerParameter::clear_shuffle_images() {
14389 shuffle_images_ = false;
14390 clear_has_shuffle_images();
14391 }
14392 inline bool V0LayerParameter::shuffle_images() const {
14393 return shuffle_images_;
14394 }
14395 inline void V0LayerParameter::set_shuffle_images(bool value) {
14396 set_has_shuffle_images();
14397 shuffle_images_ = value;
14398 }
14400 // optional uint32 concat_dim = 65 [default = 1];
14401 inline bool V0LayerParameter::has_concat_dim() const {
14402 return (_has_bits_[1] & 0x00000008u) != 0;
14403 }
14404 inline void V0LayerParameter::set_has_concat_dim() {
14405 _has_bits_[1] |= 0x00000008u;
14406 }
14407 inline void V0LayerParameter::clear_has_concat_dim() {
14408 _has_bits_[1] &= ~0x00000008u;
14409 }
14410 inline void V0LayerParameter::clear_concat_dim() {
14411 concat_dim_ = 1u;
14412 clear_has_concat_dim();
14413 }
14414 inline ::google::protobuf::uint32 V0LayerParameter::concat_dim() const {
14415 return concat_dim_;
14416 }
14417 inline void V0LayerParameter::set_concat_dim(::google::protobuf::uint32 value) {
14418 set_has_concat_dim();
14419 concat_dim_ = value;
14420 }
14422 // optional .caffe.HDF5OutputParameter hdf5_output_param = 1001;
14423 inline bool V0LayerParameter::has_hdf5_output_param() const {
14424 return (_has_bits_[1] & 0x00000010u) != 0;
14425 }
14426 inline void V0LayerParameter::set_has_hdf5_output_param() {
14427 _has_bits_[1] |= 0x00000010u;
14428 }
14429 inline void V0LayerParameter::clear_has_hdf5_output_param() {
14430 _has_bits_[1] &= ~0x00000010u;
14431 }
14432 inline void V0LayerParameter::clear_hdf5_output_param() {
14433 if (hdf5_output_param_ != NULL) hdf5_output_param_->::caffe::HDF5OutputParameter::Clear();
14434 clear_has_hdf5_output_param();
14435 }
14436 inline const ::caffe::HDF5OutputParameter& V0LayerParameter::hdf5_output_param() const {
14437 return hdf5_output_param_ != NULL ? *hdf5_output_param_ : *default_instance_->hdf5_output_param_;
14438 }
14439 inline ::caffe::HDF5OutputParameter* V0LayerParameter::mutable_hdf5_output_param() {
14440 set_has_hdf5_output_param();
14441 if (hdf5_output_param_ == NULL) hdf5_output_param_ = new ::caffe::HDF5OutputParameter;
14442 return hdf5_output_param_;
14443 }
14444 inline ::caffe::HDF5OutputParameter* V0LayerParameter::release_hdf5_output_param() {
14445 clear_has_hdf5_output_param();
14446 ::caffe::HDF5OutputParameter* temp = hdf5_output_param_;
14447 hdf5_output_param_ = NULL;
14448 return temp;
14449 }
14450 inline void V0LayerParameter::set_allocated_hdf5_output_param(::caffe::HDF5OutputParameter* hdf5_output_param) {
14451 delete hdf5_output_param_;
14452 hdf5_output_param_ = hdf5_output_param;
14453 if (hdf5_output_param) {
14454 set_has_hdf5_output_param();
14455 } else {
14456 clear_has_hdf5_output_param();
14457 }
14458 }
14461 // @@protoc_insertion_point(namespace_scope)
14463 } // namespace caffe
14465 #ifndef SWIG
14466 namespace google {
14467 namespace protobuf {
14469 template <>
14470 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SolverParameter_SolverMode>() {
14471 return ::caffe::SolverParameter_SolverMode_descriptor();
14472 }
14473 template <>
14474 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SolverParameter_SolverType>() {
14475 return ::caffe::SolverParameter_SolverType_descriptor();
14476 }
14477 template <>
14478 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::LayerParameter_LayerType>() {
14479 return ::caffe::LayerParameter_LayerType_descriptor();
14480 }
14481 template <>
14482 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::LayerParameter_DimCheckMode>() {
14483 return ::caffe::LayerParameter_DimCheckMode_descriptor();
14484 }
14485 template <>
14486 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::ConvolutionParameter_Engine>() {
14487 return ::caffe::ConvolutionParameter_Engine_descriptor();
14488 }
14489 template <>
14490 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::DataParameter_DB>() {
14491 return ::caffe::DataParameter_DB_descriptor();
14492 }
14493 template <>
14494 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::EltwiseParameter_EltwiseOp>() {
14495 return ::caffe::EltwiseParameter_EltwiseOp_descriptor();
14496 }
14497 template <>
14498 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::HingeLossParameter_Norm>() {
14499 return ::caffe::HingeLossParameter_Norm_descriptor();
14500 }
14501 template <>
14502 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::LRNParameter_NormRegion>() {
14503 return ::caffe::LRNParameter_NormRegion_descriptor();
14504 }
14505 template <>
14506 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::PoolingParameter_PoolMethod>() {
14507 return ::caffe::PoolingParameter_PoolMethod_descriptor();
14508 }
14509 template <>
14510 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::PoolingParameter_Engine>() {
14511 return ::caffe::PoolingParameter_Engine_descriptor();
14512 }
14513 template <>
14514 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::ReLUParameter_Engine>() {
14515 return ::caffe::ReLUParameter_Engine_descriptor();
14516 }
14517 template <>
14518 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SigmoidParameter_Engine>() {
14519 return ::caffe::SigmoidParameter_Engine_descriptor();
14520 }
14521 template <>
14522 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::SoftmaxParameter_Engine>() {
14523 return ::caffe::SoftmaxParameter_Engine_descriptor();
14524 }
14525 template <>
14526 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::TanHParameter_Engine>() {
14527 return ::caffe::TanHParameter_Engine_descriptor();
14528 }
14529 template <>
14530 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::V0LayerParameter_PoolMethod>() {
14531 return ::caffe::V0LayerParameter_PoolMethod_descriptor();
14532 }
14533 template <>
14534 inline const EnumDescriptor* GetEnumDescriptor< ::caffe::Phase>() {
14535 return ::caffe::Phase_descriptor();
14536 }
14538 } // namespace google
14539 } // namespace protobuf
14540 #endif // SWIG
14542 // @@protoc_insertion_point(global_scope)
14544 #endif // PROTOBUF_caffe_2eproto__INCLUDED