From 6d4b778303673c6f39b22d0ace8e7e221d6b1fb1 Mon Sep 17 00:00:00 2001 From: oqtvs Date: Mon, 15 Jan 2018 15:51:38 +0000 Subject: [PATCH] dnn: Updated protobuf files (3.5.1) --- modules/dnn/misc/caffe/opencv-caffe.pb.cc | 88681 +++++++--------- modules/dnn/misc/caffe/opencv-caffe.pb.h | 17388 +-- modules/dnn/misc/tensorflow/attr_value.pb.cc | 2407 +- modules/dnn/misc/tensorflow/attr_value.pb.h | 964 +- modules/dnn/misc/tensorflow/function.pb.cc | 1823 +- modules/dnn/misc/tensorflow/function.pb.h | 695 +- modules/dnn/misc/tensorflow/graph.pb.cc | 1405 +- modules/dnn/misc/tensorflow/graph.pb.h | 624 +- modules/dnn/misc/tensorflow/op_def.pb.cc | 3279 +- modules/dnn/misc/tensorflow/op_def.pb.h | 1236 +- modules/dnn/misc/tensorflow/tensor.pb.cc | 1340 +- modules/dnn/misc/tensorflow/tensor.pb.h | 350 +- .../dnn/misc/tensorflow/tensor_shape.pb.cc | 700 +- modules/dnn/misc/tensorflow/tensor_shape.pb.h | 260 +- modules/dnn/misc/tensorflow/types.pb.cc | 129 +- modules/dnn/misc/tensorflow/types.pb.h | 44 +- modules/dnn/misc/tensorflow/versions.pb.cc | 462 +- modules/dnn/misc/tensorflow/versions.pb.h | 151 +- 18 files changed, 53322 insertions(+), 68616 deletions(-) diff --git a/modules/dnn/misc/caffe/opencv-caffe.pb.cc b/modules/dnn/misc/caffe/opencv-caffe.pb.cc index d2838864ed..2b5a2e0f87 100644 --- a/modules/dnn/misc/caffe/opencv-caffe.pb.cc +++ b/modules/dnn/misc/caffe/opencv-caffe.pb.cc @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: opencv-caffe.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "opencv-caffe.pb.h" #include @@ -15,5236 +14,3996 @@ #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) - namespace opencv_caffe { +class BlobShapeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BlobShape_default_instance_; +class BlobProtoDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BlobProto_default_instance_; +class BlobProtoVectorDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BlobProtoVector_default_instance_; +class PermuteParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PermuteParameter_default_instance_; +class NormalizeBBoxParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NormalizeBBoxParameter_default_instance_; +class PriorBoxParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PriorBoxParameter_default_instance_; +class DetectionOutputParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DetectionOutputParameter_default_instance_; +class DatumDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Datum_default_instance_; +class FillerParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FillerParameter_default_instance_; +class NetParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NetParameter_default_instance_; +class SolverParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SolverParameter_default_instance_; +class SolverStateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SolverState_default_instance_; +class NetStateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NetState_default_instance_; +class NetStateRuleDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NetStateRule_default_instance_; +class ParamSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ParamSpec_default_instance_; +class LayerParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LayerParameter_default_instance_; +class TransformationParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TransformationParameter_default_instance_; +class LossParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LossParameter_default_instance_; +class AccuracyParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _AccuracyParameter_default_instance_; +class ArgMaxParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ArgMaxParameter_default_instance_; +class ConcatParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ConcatParameter_default_instance_; +class BatchNormParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BatchNormParameter_default_instance_; +class BiasParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BiasParameter_default_instance_; +class ContrastiveLossParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ContrastiveLossParameter_default_instance_; +class ConvolutionParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ConvolutionParameter_default_instance_; +class CropParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CropParameter_default_instance_; +class DataParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DataParameter_default_instance_; +class NonMaximumSuppressionParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NonMaximumSuppressionParameter_default_instance_; +class SaveOutputParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SaveOutputParameter_default_instance_; +class DropoutParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DropoutParameter_default_instance_; +class DummyDataParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DummyDataParameter_default_instance_; +class EltwiseParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EltwiseParameter_default_instance_; +class ELUParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ELUParameter_default_instance_; +class EmbedParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EmbedParameter_default_instance_; +class ExpParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ExpParameter_default_instance_; +class FlattenParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FlattenParameter_default_instance_; +class HDF5DataParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _HDF5DataParameter_default_instance_; +class HDF5OutputParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _HDF5OutputParameter_default_instance_; +class HingeLossParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _HingeLossParameter_default_instance_; +class ImageDataParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ImageDataParameter_default_instance_; +class InfogainLossParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _InfogainLossParameter_default_instance_; +class InnerProductParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _InnerProductParameter_default_instance_; +class InputParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _InputParameter_default_instance_; +class LogParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LogParameter_default_instance_; +class LRNParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LRNParameter_default_instance_; +class MemoryDataParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MemoryDataParameter_default_instance_; +class MVNParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MVNParameter_default_instance_; +class ParameterParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ParameterParameter_default_instance_; +class PoolingParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PoolingParameter_default_instance_; +class PowerParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PowerParameter_default_instance_; +class PythonParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PythonParameter_default_instance_; +class RecurrentParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _RecurrentParameter_default_instance_; +class ReductionParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ReductionParameter_default_instance_; +class ReLUParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ReLUParameter_default_instance_; +class ReshapeParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ReshapeParameter_default_instance_; +class ScaleParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ScaleParameter_default_instance_; +class SigmoidParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SigmoidParameter_default_instance_; +class SliceParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SliceParameter_default_instance_; +class SoftmaxParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SoftmaxParameter_default_instance_; +class TanHParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TanHParameter_default_instance_; +class TileParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TileParameter_default_instance_; +class ThresholdParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ThresholdParameter_default_instance_; +class WindowDataParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WindowDataParameter_default_instance_; +class SPPParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SPPParameter_default_instance_; +class V1LayerParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _V1LayerParameter_default_instance_; +class V0LayerParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _V0LayerParameter_default_instance_; +class PReLUParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PReLUParameter_default_instance_; +class NormalizedBBoxDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NormalizedBBox_default_instance_; +class ROIPoolingParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ROIPoolingParameter_default_instance_; +class ProposalParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ProposalParameter_default_instance_; +class PSROIPoolingParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PSROIPoolingParameter_default_instance_; +} // namespace opencv_caffe +namespace protobuf_opencv_2dcaffe_2eproto { +void InitDefaultsBlobShapeImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -namespace { - -const ::google::protobuf::Descriptor* BlobShape_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - BlobShape_reflection_ = NULL; -const ::google::protobuf::Descriptor* BlobProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - BlobProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* BlobProtoVector_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - BlobProtoVector_reflection_ = NULL; -const ::google::protobuf::Descriptor* PermuteParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PermuteParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* NormalizeBBoxParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - NormalizeBBoxParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* PriorBoxParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PriorBoxParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* PriorBoxParameter_CodeType_descriptor_ = NULL; -const ::google::protobuf::Descriptor* DetectionOutputParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DetectionOutputParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* Datum_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - Datum_reflection_ = NULL; -const ::google::protobuf::Descriptor* FillerParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FillerParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* FillerParameter_VarianceNorm_descriptor_ = NULL; -const ::google::protobuf::Descriptor* NetParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - NetParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* SolverParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SolverParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* SolverParameter_SnapshotFormat_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* SolverParameter_SolverMode_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* SolverParameter_SolverType_descriptor_ = NULL; -const ::google::protobuf::Descriptor* SolverState_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SolverState_reflection_ = NULL; -const ::google::protobuf::Descriptor* NetState_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - NetState_reflection_ = NULL; -const ::google::protobuf::Descriptor* NetStateRule_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - NetStateRule_reflection_ = NULL; -const ::google::protobuf::Descriptor* ParamSpec_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ParamSpec_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* ParamSpec_DimCheckMode_descriptor_ = NULL; -const ::google::protobuf::Descriptor* LayerParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - LayerParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* TransformationParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TransformationParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* LossParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - LossParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* LossParameter_NormalizationMode_descriptor_ = NULL; -const ::google::protobuf::Descriptor* AccuracyParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AccuracyParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ArgMaxParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ArgMaxParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ConcatParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ConcatParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* BatchNormParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - BatchNormParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* BiasParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - BiasParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ContrastiveLossParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ContrastiveLossParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ConvolutionParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ConvolutionParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* ConvolutionParameter_Engine_descriptor_ = NULL; -const ::google::protobuf::Descriptor* CropParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - CropParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* DataParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DataParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* DataParameter_DB_descriptor_ = NULL; -const ::google::protobuf::Descriptor* NonMaximumSuppressionParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - NonMaximumSuppressionParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* SaveOutputParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SaveOutputParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* DropoutParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DropoutParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* DummyDataParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - DummyDataParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* EltwiseParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - EltwiseParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* EltwiseParameter_EltwiseOp_descriptor_ = NULL; -const ::google::protobuf::Descriptor* ELUParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ELUParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* EmbedParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - EmbedParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ExpParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ExpParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* FlattenParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FlattenParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* HDF5DataParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - HDF5DataParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* HDF5OutputParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - HDF5OutputParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* HingeLossParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - HingeLossParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* HingeLossParameter_Norm_descriptor_ = NULL; -const ::google::protobuf::Descriptor* ImageDataParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ImageDataParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* InfogainLossParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - InfogainLossParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* InnerProductParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - InnerProductParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* InputParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - InputParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* LogParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - LogParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* LRNParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - LRNParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* LRNParameter_NormRegion_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* LRNParameter_Engine_descriptor_ = NULL; -const ::google::protobuf::Descriptor* MemoryDataParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MemoryDataParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* MVNParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MVNParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ParameterParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ParameterParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* PoolingParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PoolingParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* PoolingParameter_PoolMethod_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* PoolingParameter_Engine_descriptor_ = NULL; -const ::google::protobuf::Descriptor* PowerParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PowerParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* PythonParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PythonParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* RecurrentParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - RecurrentParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ReductionParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ReductionParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* ReductionParameter_ReductionOp_descriptor_ = NULL; -const ::google::protobuf::Descriptor* ReLUParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ReLUParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* ReLUParameter_Engine_descriptor_ = NULL; -const ::google::protobuf::Descriptor* ReshapeParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ReshapeParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ScaleParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ScaleParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* SigmoidParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SigmoidParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* SigmoidParameter_Engine_descriptor_ = NULL; -const ::google::protobuf::Descriptor* SliceParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SliceParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* SoftmaxParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SoftmaxParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* SoftmaxParameter_Engine_descriptor_ = NULL; -const ::google::protobuf::Descriptor* TanHParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TanHParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* TanHParameter_Engine_descriptor_ = NULL; -const ::google::protobuf::Descriptor* TileParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TileParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ThresholdParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ThresholdParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* WindowDataParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - WindowDataParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* SPPParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - SPPParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* SPPParameter_PoolMethod_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* SPPParameter_Engine_descriptor_ = NULL; -const ::google::protobuf::Descriptor* V1LayerParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - V1LayerParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* V1LayerParameter_LayerType_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* V1LayerParameter_DimCheckMode_descriptor_ = NULL; -const ::google::protobuf::Descriptor* V0LayerParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - V0LayerParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* V0LayerParameter_PoolMethod_descriptor_ = NULL; -const ::google::protobuf::Descriptor* PReLUParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PReLUParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* NormalizedBBox_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - NormalizedBBox_reflection_ = NULL; -const ::google::protobuf::Descriptor* ROIPoolingParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ROIPoolingParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* ProposalParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - ProposalParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* PSROIPoolingParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - PSROIPoolingParameter_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* Type_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* Phase_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_opencv_2dcaffe_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_opencv_2dcaffe_2eproto() { - protobuf_AddDesc_opencv_2dcaffe_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "opencv-caffe.proto"); - GOOGLE_CHECK(file != NULL); - BlobShape_descriptor_ = file->message_type(0); - static const int BlobShape_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobShape, dim_), - }; - BlobShape_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - BlobShape_descriptor_, - BlobShape::internal_default_instance(), - BlobShape_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobShape, _has_bits_), - -1, - -1, - sizeof(BlobShape), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobShape, _internal_metadata_)); - BlobProto_descriptor_ = file->message_type(1); - static const int BlobProto_offsets_[11] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, shape_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, diff_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, double_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, double_diff_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, raw_data_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, raw_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, num_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, channels_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, height_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, width_), - }; - BlobProto_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - BlobProto_descriptor_, - BlobProto::internal_default_instance(), - BlobProto_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, _has_bits_), - -1, - -1, - sizeof(BlobProto), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProto, _internal_metadata_)); - BlobProtoVector_descriptor_ = file->message_type(2); - static const int BlobProtoVector_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProtoVector, blobs_), - }; - BlobProtoVector_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - BlobProtoVector_descriptor_, - BlobProtoVector::internal_default_instance(), - BlobProtoVector_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProtoVector, _has_bits_), - -1, - -1, - sizeof(BlobProtoVector), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlobProtoVector, _internal_metadata_)); - PermuteParameter_descriptor_ = file->message_type(3); - static const int PermuteParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PermuteParameter, order_), - }; - PermuteParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PermuteParameter_descriptor_, - PermuteParameter::internal_default_instance(), - PermuteParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PermuteParameter, _has_bits_), - -1, - -1, - sizeof(PermuteParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PermuteParameter, _internal_metadata_)); - NormalizeBBoxParameter_descriptor_ = file->message_type(4); - static const int NormalizeBBoxParameter_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeBBoxParameter, across_spatial_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeBBoxParameter, scale_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeBBoxParameter, channel_shared_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeBBoxParameter, eps_), - }; - NormalizeBBoxParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - NormalizeBBoxParameter_descriptor_, - NormalizeBBoxParameter::internal_default_instance(), - NormalizeBBoxParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeBBoxParameter, _has_bits_), - -1, - -1, - sizeof(NormalizeBBoxParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizeBBoxParameter, _internal_metadata_)); - PriorBoxParameter_descriptor_ = file->message_type(5); - static const int PriorBoxParameter_offsets_[17] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, min_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, max_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, aspect_ratio_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, flip_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, clip_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, variance_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, img_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, img_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, img_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, step_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, step_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, step_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, offset_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, offset_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, offset_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, width_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, height_), - }; - PriorBoxParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PriorBoxParameter_descriptor_, - PriorBoxParameter::internal_default_instance(), - PriorBoxParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, _has_bits_), - -1, - -1, - sizeof(PriorBoxParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PriorBoxParameter, _internal_metadata_)); - PriorBoxParameter_CodeType_descriptor_ = PriorBoxParameter_descriptor_->enum_type(0); - DetectionOutputParameter_descriptor_ = file->message_type(6); - static const int DetectionOutputParameter_offsets_[10] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, num_classes_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, share_location_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, background_label_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, nms_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, save_output_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, code_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, variance_encoded_in_target_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, keep_top_k_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, confidence_threshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, normalized_bbox_), - }; - DetectionOutputParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - DetectionOutputParameter_descriptor_, - DetectionOutputParameter::internal_default_instance(), - DetectionOutputParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, _has_bits_), - -1, - -1, - sizeof(DetectionOutputParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DetectionOutputParameter, _internal_metadata_)); - Datum_descriptor_ = file->message_type(7); - static const int Datum_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, channels_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, height_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, width_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, label_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, float_data_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, encoded_), - }; - Datum_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - Datum_descriptor_, - Datum::internal_default_instance(), - Datum_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, _has_bits_), - -1, - -1, - sizeof(Datum), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Datum, _internal_metadata_)); - FillerParameter_descriptor_ = file->message_type(8); - static const int FillerParameter_offsets_[8] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, min_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, max_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, mean_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, std_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, sparse_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, variance_norm_), - }; - FillerParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FillerParameter_descriptor_, - FillerParameter::internal_default_instance(), - FillerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, _has_bits_), - -1, - -1, - sizeof(FillerParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FillerParameter, _internal_metadata_)); - FillerParameter_VarianceNorm_descriptor_ = FillerParameter_descriptor_->enum_type(0); - NetParameter_descriptor_ = file->message_type(9); - static const int NetParameter_offsets_[9] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, input_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, input_shape_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, input_dim_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, force_backward_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, state_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, debug_info_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, layer_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, layers_), - }; - NetParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - NetParameter_descriptor_, - NetParameter::internal_default_instance(), - NetParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, _has_bits_), - -1, - -1, - sizeof(NetParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetParameter, _internal_metadata_)); - SolverParameter_descriptor_ = file->message_type(10); - static const int SolverParameter_offsets_[40] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, net_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, net_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, train_net_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, test_net_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, train_net_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, test_net_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, train_state_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, test_state_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, test_iter_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, test_interval_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, test_compute_loss_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, test_initialization_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, base_lr_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, display_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, average_loss_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, max_iter_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, iter_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, lr_policy_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, gamma_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, power_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, momentum_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, weight_decay_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, regularization_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, stepsize_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, stepvalue_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, clip_gradients_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, snapshot_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, snapshot_prefix_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, snapshot_diff_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, snapshot_format_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, solver_mode_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, device_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, random_seed_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, delta_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, momentum2_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, rms_decay_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, debug_info_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, snapshot_after_train_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, solver_type_), - }; - SolverParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SolverParameter_descriptor_, - SolverParameter::internal_default_instance(), - SolverParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, _has_bits_), - -1, - -1, - sizeof(SolverParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverParameter, _internal_metadata_)); - SolverParameter_SnapshotFormat_descriptor_ = SolverParameter_descriptor_->enum_type(0); - SolverParameter_SolverMode_descriptor_ = SolverParameter_descriptor_->enum_type(1); - SolverParameter_SolverType_descriptor_ = SolverParameter_descriptor_->enum_type(2); - SolverState_descriptor_ = file->message_type(11); - static const int SolverState_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverState, iter_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverState, learned_net_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverState, history_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverState, current_step_), - }; - SolverState_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SolverState_descriptor_, - SolverState::internal_default_instance(), - SolverState_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverState, _has_bits_), - -1, - -1, - sizeof(SolverState), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SolverState, _internal_metadata_)); - NetState_descriptor_ = file->message_type(12); - static const int NetState_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetState, phase_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetState, level_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetState, stage_), - }; - NetState_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - NetState_descriptor_, - NetState::internal_default_instance(), - NetState_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetState, _has_bits_), - -1, - -1, - sizeof(NetState), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetState, _internal_metadata_)); - NetStateRule_descriptor_ = file->message_type(13); - static const int NetStateRule_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetStateRule, phase_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetStateRule, min_level_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetStateRule, max_level_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetStateRule, stage_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetStateRule, not_stage_), - }; - NetStateRule_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - NetStateRule_descriptor_, - NetStateRule::internal_default_instance(), - NetStateRule_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetStateRule, _has_bits_), - -1, - -1, - sizeof(NetStateRule), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetStateRule, _internal_metadata_)); - ParamSpec_descriptor_ = file->message_type(14); - static const int ParamSpec_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParamSpec, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParamSpec, share_mode_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParamSpec, lr_mult_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParamSpec, decay_mult_), - }; - ParamSpec_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ParamSpec_descriptor_, - ParamSpec::internal_default_instance(), - ParamSpec_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParamSpec, _has_bits_), - -1, - -1, - sizeof(ParamSpec), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParamSpec, _internal_metadata_)); - ParamSpec_DimCheckMode_descriptor_ = ParamSpec_descriptor_->enum_type(0); - LayerParameter_descriptor_ = file->message_type(15); - static const int LayerParameter_offsets_[65] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, bottom_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, top_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, phase_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, loss_weight_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, blobs_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, propagate_down_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, include_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, exclude_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, transform_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, loss_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, accuracy_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, argmax_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, batch_norm_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, bias_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, concat_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, contrastive_loss_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, convolution_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, crop_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, detection_output_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, dropout_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, dummy_data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, eltwise_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, elu_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, embed_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, exp_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, flatten_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, hdf5_data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, hdf5_output_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, hinge_loss_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, image_data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, infogain_loss_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, inner_product_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, input_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, log_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, lrn_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, memory_data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, mvn_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, norm_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, permute_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, parameter_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, pooling_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, power_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, prelu_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, prior_box_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, proposal_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, psroi_pooling_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, python_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, recurrent_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, reduction_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, relu_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, reshape_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, roi_pooling_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, scale_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, sigmoid_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, softmax_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, spp_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, slice_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, tanh_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, threshold_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, tile_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, window_data_param_), - }; - LayerParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - LayerParameter_descriptor_, - LayerParameter::internal_default_instance(), - LayerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, _has_bits_), - -1, - -1, - sizeof(LayerParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayerParameter, _internal_metadata_)); - TransformationParameter_descriptor_ = file->message_type(16); - static const int TransformationParameter_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, mirror_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, crop_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, mean_file_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, mean_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, force_color_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, force_gray_), - }; - TransformationParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TransformationParameter_descriptor_, - TransformationParameter::internal_default_instance(), - TransformationParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, _has_bits_), - -1, - -1, - sizeof(TransformationParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransformationParameter, _internal_metadata_)); - LossParameter_descriptor_ = file->message_type(17); - static const int LossParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LossParameter, ignore_label_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LossParameter, normalization_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LossParameter, normalize_), - }; - LossParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - LossParameter_descriptor_, - LossParameter::internal_default_instance(), - LossParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LossParameter, _has_bits_), - -1, - -1, - sizeof(LossParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LossParameter, _internal_metadata_)); - LossParameter_NormalizationMode_descriptor_ = LossParameter_descriptor_->enum_type(0); - AccuracyParameter_descriptor_ = file->message_type(18); - static const int AccuracyParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccuracyParameter, top_k_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccuracyParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccuracyParameter, ignore_label_), - }; - AccuracyParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - AccuracyParameter_descriptor_, - AccuracyParameter::internal_default_instance(), - AccuracyParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccuracyParameter, _has_bits_), - -1, - -1, - sizeof(AccuracyParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AccuracyParameter, _internal_metadata_)); - ArgMaxParameter_descriptor_ = file->message_type(19); - static const int ArgMaxParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgMaxParameter, out_max_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgMaxParameter, top_k_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgMaxParameter, axis_), - }; - ArgMaxParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ArgMaxParameter_descriptor_, - ArgMaxParameter::internal_default_instance(), - ArgMaxParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgMaxParameter, _has_bits_), - -1, - -1, - sizeof(ArgMaxParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgMaxParameter, _internal_metadata_)); - ConcatParameter_descriptor_ = file->message_type(20); - static const int ConcatParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConcatParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConcatParameter, concat_dim_), - }; - ConcatParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ConcatParameter_descriptor_, - ConcatParameter::internal_default_instance(), - ConcatParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConcatParameter, _has_bits_), - -1, - -1, - sizeof(ConcatParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConcatParameter, _internal_metadata_)); - BatchNormParameter_descriptor_ = file->message_type(21); - static const int BatchNormParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BatchNormParameter, use_global_stats_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BatchNormParameter, moving_average_fraction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BatchNormParameter, eps_), - }; - BatchNormParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - BatchNormParameter_descriptor_, - BatchNormParameter::internal_default_instance(), - BatchNormParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BatchNormParameter, _has_bits_), - -1, - -1, - sizeof(BatchNormParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BatchNormParameter, _internal_metadata_)); - BiasParameter_descriptor_ = file->message_type(22); - static const int BiasParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BiasParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BiasParameter, num_axes_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BiasParameter, filler_), - }; - BiasParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - BiasParameter_descriptor_, - BiasParameter::internal_default_instance(), - BiasParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BiasParameter, _has_bits_), - -1, - -1, - sizeof(BiasParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BiasParameter, _internal_metadata_)); - ContrastiveLossParameter_descriptor_ = file->message_type(23); - static const int ContrastiveLossParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ContrastiveLossParameter, margin_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ContrastiveLossParameter, legacy_version_), - }; - ContrastiveLossParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ContrastiveLossParameter_descriptor_, - ContrastiveLossParameter::internal_default_instance(), - ContrastiveLossParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ContrastiveLossParameter, _has_bits_), - -1, - -1, - sizeof(ContrastiveLossParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ContrastiveLossParameter, _internal_metadata_)); - ConvolutionParameter_descriptor_ = file->message_type(24); - static const int ConvolutionParameter_offsets_[18] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, num_output_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, bias_term_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, pad_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, kernel_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, stride_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, dilation_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, pad_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, pad_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, kernel_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, kernel_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, stride_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, stride_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, group_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, weight_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, bias_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, engine_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, force_nd_im2col_), - }; - ConvolutionParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ConvolutionParameter_descriptor_, - ConvolutionParameter::internal_default_instance(), - ConvolutionParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, _has_bits_), - -1, - -1, - sizeof(ConvolutionParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConvolutionParameter, _internal_metadata_)); - ConvolutionParameter_Engine_descriptor_ = ConvolutionParameter_descriptor_->enum_type(0); - CropParameter_descriptor_ = file->message_type(25); - static const int CropParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CropParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CropParameter, offset_), - }; - CropParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - CropParameter_descriptor_, - CropParameter::internal_default_instance(), - CropParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CropParameter, _has_bits_), - -1, - -1, - sizeof(CropParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CropParameter, _internal_metadata_)); - DataParameter_descriptor_ = file->message_type(26); - static const int DataParameter_offsets_[10] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, source_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, batch_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, rand_skip_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, backend_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, mean_file_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, crop_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, mirror_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, force_encoded_color_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, prefetch_), - }; - DataParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - DataParameter_descriptor_, - DataParameter::internal_default_instance(), - DataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, _has_bits_), - -1, - -1, - sizeof(DataParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataParameter, _internal_metadata_)); - DataParameter_DB_descriptor_ = DataParameter_descriptor_->enum_type(0); - NonMaximumSuppressionParameter_descriptor_ = file->message_type(27); - static const int NonMaximumSuppressionParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NonMaximumSuppressionParameter, nms_threshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NonMaximumSuppressionParameter, top_k_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NonMaximumSuppressionParameter, eta_), - }; - NonMaximumSuppressionParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - NonMaximumSuppressionParameter_descriptor_, - NonMaximumSuppressionParameter::internal_default_instance(), - NonMaximumSuppressionParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NonMaximumSuppressionParameter, _has_bits_), - -1, - -1, - sizeof(NonMaximumSuppressionParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NonMaximumSuppressionParameter, _internal_metadata_)); - SaveOutputParameter_descriptor_ = file->message_type(28); - static const int SaveOutputParameter_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaveOutputParameter, output_directory_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaveOutputParameter, output_name_prefix_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaveOutputParameter, output_format_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaveOutputParameter, label_map_file_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaveOutputParameter, name_size_file_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaveOutputParameter, num_test_image_), - }; - SaveOutputParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SaveOutputParameter_descriptor_, - SaveOutputParameter::internal_default_instance(), - SaveOutputParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaveOutputParameter, _has_bits_), - -1, - -1, - sizeof(SaveOutputParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SaveOutputParameter, _internal_metadata_)); - DropoutParameter_descriptor_ = file->message_type(29); - static const int DropoutParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DropoutParameter, dropout_ratio_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DropoutParameter, scale_train_), - }; - DropoutParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - DropoutParameter_descriptor_, - DropoutParameter::internal_default_instance(), - DropoutParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DropoutParameter, _has_bits_), - -1, - -1, - sizeof(DropoutParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DropoutParameter, _internal_metadata_)); - DummyDataParameter_descriptor_ = file->message_type(30); - static const int DummyDataParameter_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, data_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, shape_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, num_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, channels_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, height_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, width_), - }; - DummyDataParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - DummyDataParameter_descriptor_, - DummyDataParameter::internal_default_instance(), - DummyDataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, _has_bits_), - -1, - -1, - sizeof(DummyDataParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DummyDataParameter, _internal_metadata_)); - EltwiseParameter_descriptor_ = file->message_type(31); - static const int EltwiseParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EltwiseParameter, operation_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EltwiseParameter, coeff_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EltwiseParameter, stable_prod_grad_), - }; - EltwiseParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - EltwiseParameter_descriptor_, - EltwiseParameter::internal_default_instance(), - EltwiseParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EltwiseParameter, _has_bits_), - -1, - -1, - sizeof(EltwiseParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EltwiseParameter, _internal_metadata_)); - EltwiseParameter_EltwiseOp_descriptor_ = EltwiseParameter_descriptor_->enum_type(0); - ELUParameter_descriptor_ = file->message_type(32); - static const int ELUParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ELUParameter, alpha_), - }; - ELUParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ELUParameter_descriptor_, - ELUParameter::internal_default_instance(), - ELUParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ELUParameter, _has_bits_), - -1, - -1, - sizeof(ELUParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ELUParameter, _internal_metadata_)); - EmbedParameter_descriptor_ = file->message_type(33); - static const int EmbedParameter_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmbedParameter, num_output_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmbedParameter, input_dim_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmbedParameter, bias_term_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmbedParameter, weight_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmbedParameter, bias_filler_), - }; - EmbedParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - EmbedParameter_descriptor_, - EmbedParameter::internal_default_instance(), - EmbedParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmbedParameter, _has_bits_), - -1, - -1, - sizeof(EmbedParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmbedParameter, _internal_metadata_)); - ExpParameter_descriptor_ = file->message_type(34); - static const int ExpParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpParameter, base_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpParameter, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpParameter, shift_), - }; - ExpParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ExpParameter_descriptor_, - ExpParameter::internal_default_instance(), - ExpParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpParameter, _has_bits_), - -1, - -1, - sizeof(ExpParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpParameter, _internal_metadata_)); - FlattenParameter_descriptor_ = file->message_type(35); - static const int FlattenParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlattenParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlattenParameter, end_axis_), - }; - FlattenParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FlattenParameter_descriptor_, - FlattenParameter::internal_default_instance(), - FlattenParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlattenParameter, _has_bits_), - -1, - -1, - sizeof(FlattenParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FlattenParameter, _internal_metadata_)); - HDF5DataParameter_descriptor_ = file->message_type(36); - static const int HDF5DataParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5DataParameter, source_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5DataParameter, batch_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5DataParameter, shuffle_), - }; - HDF5DataParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - HDF5DataParameter_descriptor_, - HDF5DataParameter::internal_default_instance(), - HDF5DataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5DataParameter, _has_bits_), - -1, - -1, - sizeof(HDF5DataParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5DataParameter, _internal_metadata_)); - HDF5OutputParameter_descriptor_ = file->message_type(37); - static const int HDF5OutputParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5OutputParameter, file_name_), - }; - HDF5OutputParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - HDF5OutputParameter_descriptor_, - HDF5OutputParameter::internal_default_instance(), - HDF5OutputParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5OutputParameter, _has_bits_), - -1, - -1, - sizeof(HDF5OutputParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HDF5OutputParameter, _internal_metadata_)); - HingeLossParameter_descriptor_ = file->message_type(38); - static const int HingeLossParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HingeLossParameter, norm_), - }; - HingeLossParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - HingeLossParameter_descriptor_, - HingeLossParameter::internal_default_instance(), - HingeLossParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HingeLossParameter, _has_bits_), - -1, - -1, - sizeof(HingeLossParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HingeLossParameter, _internal_metadata_)); - HingeLossParameter_Norm_descriptor_ = HingeLossParameter_descriptor_->enum_type(0); - ImageDataParameter_descriptor_ = file->message_type(39); - static const int ImageDataParameter_offsets_[12] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, source_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, batch_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, rand_skip_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, shuffle_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, new_height_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, new_width_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, is_color_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, mean_file_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, crop_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, mirror_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, root_folder_), - }; - ImageDataParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ImageDataParameter_descriptor_, - ImageDataParameter::internal_default_instance(), - ImageDataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, _has_bits_), - -1, - -1, - sizeof(ImageDataParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ImageDataParameter, _internal_metadata_)); - InfogainLossParameter_descriptor_ = file->message_type(40); - static const int InfogainLossParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InfogainLossParameter, source_), - }; - InfogainLossParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - InfogainLossParameter_descriptor_, - InfogainLossParameter::internal_default_instance(), - InfogainLossParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InfogainLossParameter, _has_bits_), - -1, - -1, - sizeof(InfogainLossParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InfogainLossParameter, _internal_metadata_)); - InnerProductParameter_descriptor_ = file->message_type(41); - static const int InnerProductParameter_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, num_output_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, bias_term_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, weight_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, bias_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, transpose_), - }; - InnerProductParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - InnerProductParameter_descriptor_, - InnerProductParameter::internal_default_instance(), - InnerProductParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, _has_bits_), - -1, - -1, - sizeof(InnerProductParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InnerProductParameter, _internal_metadata_)); - InputParameter_descriptor_ = file->message_type(42); - static const int InputParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputParameter, shape_), - }; - InputParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - InputParameter_descriptor_, - InputParameter::internal_default_instance(), - InputParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputParameter, _has_bits_), - -1, - -1, - sizeof(InputParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InputParameter, _internal_metadata_)); - LogParameter_descriptor_ = file->message_type(43); - static const int LogParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogParameter, base_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogParameter, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogParameter, shift_), - }; - LogParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - LogParameter_descriptor_, - LogParameter::internal_default_instance(), - LogParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogParameter, _has_bits_), - -1, - -1, - sizeof(LogParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LogParameter, _internal_metadata_)); - LRNParameter_descriptor_ = file->message_type(44); - static const int LRNParameter_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, local_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, alpha_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, beta_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, norm_region_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, k_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, engine_), - }; - LRNParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - LRNParameter_descriptor_, - LRNParameter::internal_default_instance(), - LRNParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, _has_bits_), - -1, - -1, - sizeof(LRNParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LRNParameter, _internal_metadata_)); - LRNParameter_NormRegion_descriptor_ = LRNParameter_descriptor_->enum_type(0); - LRNParameter_Engine_descriptor_ = LRNParameter_descriptor_->enum_type(1); - MemoryDataParameter_descriptor_ = file->message_type(45); - static const int MemoryDataParameter_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemoryDataParameter, batch_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemoryDataParameter, channels_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemoryDataParameter, height_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemoryDataParameter, width_), - }; - MemoryDataParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - MemoryDataParameter_descriptor_, - MemoryDataParameter::internal_default_instance(), - MemoryDataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemoryDataParameter, _has_bits_), - -1, - -1, - sizeof(MemoryDataParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemoryDataParameter, _internal_metadata_)); - MVNParameter_descriptor_ = file->message_type(46); - static const int MVNParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MVNParameter, normalize_variance_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MVNParameter, across_channels_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MVNParameter, eps_), - }; - MVNParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - MVNParameter_descriptor_, - MVNParameter::internal_default_instance(), - MVNParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MVNParameter, _has_bits_), - -1, - -1, - sizeof(MVNParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MVNParameter, _internal_metadata_)); - ParameterParameter_descriptor_ = file->message_type(47); - static const int ParameterParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParameterParameter, shape_), - }; - ParameterParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ParameterParameter_descriptor_, - ParameterParameter::internal_default_instance(), - ParameterParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParameterParameter, _has_bits_), - -1, - -1, - sizeof(ParameterParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ParameterParameter, _internal_metadata_)); - PoolingParameter_descriptor_ = file->message_type(48); - static const int PoolingParameter_offsets_[13] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, pool_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, pad_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, pad_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, pad_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, kernel_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, kernel_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, kernel_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, stride_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, stride_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, stride_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, engine_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, global_pooling_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, ceil_mode_), - }; - PoolingParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PoolingParameter_descriptor_, - PoolingParameter::internal_default_instance(), - PoolingParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, _has_bits_), - -1, - -1, - sizeof(PoolingParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PoolingParameter, _internal_metadata_)); - PoolingParameter_PoolMethod_descriptor_ = PoolingParameter_descriptor_->enum_type(0); - PoolingParameter_Engine_descriptor_ = PoolingParameter_descriptor_->enum_type(1); - PowerParameter_descriptor_ = file->message_type(49); - static const int PowerParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PowerParameter, power_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PowerParameter, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PowerParameter, shift_), - }; - PowerParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PowerParameter_descriptor_, - PowerParameter::internal_default_instance(), - PowerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PowerParameter, _has_bits_), - -1, - -1, - sizeof(PowerParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PowerParameter, _internal_metadata_)); - PythonParameter_descriptor_ = file->message_type(50); - static const int PythonParameter_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, module_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, layer_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, param_str_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, share_in_parallel_), - }; - PythonParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PythonParameter_descriptor_, - PythonParameter::internal_default_instance(), - PythonParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, _has_bits_), - -1, - -1, - sizeof(PythonParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PythonParameter, _internal_metadata_)); - RecurrentParameter_descriptor_ = file->message_type(51); - static const int RecurrentParameter_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecurrentParameter, num_output_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecurrentParameter, weight_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecurrentParameter, bias_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecurrentParameter, debug_info_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecurrentParameter, expose_hidden_), - }; - RecurrentParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - RecurrentParameter_descriptor_, - RecurrentParameter::internal_default_instance(), - RecurrentParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecurrentParameter, _has_bits_), - -1, - -1, - sizeof(RecurrentParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RecurrentParameter, _internal_metadata_)); - ReductionParameter_descriptor_ = file->message_type(52); - static const int ReductionParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReductionParameter, operation_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReductionParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReductionParameter, coeff_), - }; - ReductionParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ReductionParameter_descriptor_, - ReductionParameter::internal_default_instance(), - ReductionParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReductionParameter, _has_bits_), - -1, - -1, - sizeof(ReductionParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReductionParameter, _internal_metadata_)); - ReductionParameter_ReductionOp_descriptor_ = ReductionParameter_descriptor_->enum_type(0); - ReLUParameter_descriptor_ = file->message_type(53); - static const int ReLUParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReLUParameter, negative_slope_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReLUParameter, engine_), - }; - ReLUParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ReLUParameter_descriptor_, - ReLUParameter::internal_default_instance(), - ReLUParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReLUParameter, _has_bits_), - -1, - -1, - sizeof(ReLUParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReLUParameter, _internal_metadata_)); - ReLUParameter_Engine_descriptor_ = ReLUParameter_descriptor_->enum_type(0); - ReshapeParameter_descriptor_ = file->message_type(54); - static const int ReshapeParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReshapeParameter, shape_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReshapeParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReshapeParameter, num_axes_), - }; - ReshapeParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ReshapeParameter_descriptor_, - ReshapeParameter::internal_default_instance(), - ReshapeParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReshapeParameter, _has_bits_), - -1, - -1, - sizeof(ReshapeParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReshapeParameter, _internal_metadata_)); - ScaleParameter_descriptor_ = file->message_type(55); - static const int ScaleParameter_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScaleParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScaleParameter, num_axes_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScaleParameter, filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScaleParameter, bias_term_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScaleParameter, bias_filler_), - }; - ScaleParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ScaleParameter_descriptor_, - ScaleParameter::internal_default_instance(), - ScaleParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScaleParameter, _has_bits_), - -1, - -1, - sizeof(ScaleParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ScaleParameter, _internal_metadata_)); - SigmoidParameter_descriptor_ = file->message_type(56); - static const int SigmoidParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SigmoidParameter, engine_), - }; - SigmoidParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SigmoidParameter_descriptor_, - SigmoidParameter::internal_default_instance(), - SigmoidParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SigmoidParameter, _has_bits_), - -1, - -1, - sizeof(SigmoidParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SigmoidParameter, _internal_metadata_)); - SigmoidParameter_Engine_descriptor_ = SigmoidParameter_descriptor_->enum_type(0); - SliceParameter_descriptor_ = file->message_type(57); - static const int SliceParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SliceParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SliceParameter, slice_point_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SliceParameter, slice_dim_), - }; - SliceParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SliceParameter_descriptor_, - SliceParameter::internal_default_instance(), - SliceParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SliceParameter, _has_bits_), - -1, - -1, - sizeof(SliceParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SliceParameter, _internal_metadata_)); - SoftmaxParameter_descriptor_ = file->message_type(58); - static const int SoftmaxParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SoftmaxParameter, engine_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SoftmaxParameter, axis_), - }; - SoftmaxParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SoftmaxParameter_descriptor_, - SoftmaxParameter::internal_default_instance(), - SoftmaxParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SoftmaxParameter, _has_bits_), - -1, - -1, - sizeof(SoftmaxParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SoftmaxParameter, _internal_metadata_)); - SoftmaxParameter_Engine_descriptor_ = SoftmaxParameter_descriptor_->enum_type(0); - TanHParameter_descriptor_ = file->message_type(59); - static const int TanHParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TanHParameter, engine_), - }; - TanHParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TanHParameter_descriptor_, - TanHParameter::internal_default_instance(), - TanHParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TanHParameter, _has_bits_), - -1, - -1, - sizeof(TanHParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TanHParameter, _internal_metadata_)); - TanHParameter_Engine_descriptor_ = TanHParameter_descriptor_->enum_type(0); - TileParameter_descriptor_ = file->message_type(60); - static const int TileParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileParameter, axis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileParameter, tiles_), - }; - TileParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TileParameter_descriptor_, - TileParameter::internal_default_instance(), - TileParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileParameter, _has_bits_), - -1, - -1, - sizeof(TileParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileParameter, _internal_metadata_)); - ThresholdParameter_descriptor_ = file->message_type(61); - static const int ThresholdParameter_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThresholdParameter, threshold_), - }; - ThresholdParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ThresholdParameter_descriptor_, - ThresholdParameter::internal_default_instance(), - ThresholdParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThresholdParameter, _has_bits_), - -1, - -1, - sizeof(ThresholdParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ThresholdParameter, _internal_metadata_)); - WindowDataParameter_descriptor_ = file->message_type(62); - static const int WindowDataParameter_offsets_[13] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, source_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, mean_file_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, batch_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, crop_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, mirror_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, fg_threshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, bg_threshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, fg_fraction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, context_pad_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, crop_mode_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, cache_images_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, root_folder_), - }; - WindowDataParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - WindowDataParameter_descriptor_, - WindowDataParameter::internal_default_instance(), - WindowDataParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, _has_bits_), - -1, - -1, - sizeof(WindowDataParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WindowDataParameter, _internal_metadata_)); - SPPParameter_descriptor_ = file->message_type(63); - static const int SPPParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SPPParameter, pyramid_height_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SPPParameter, pool_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SPPParameter, engine_), - }; - SPPParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - SPPParameter_descriptor_, - SPPParameter::internal_default_instance(), - SPPParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SPPParameter, _has_bits_), - -1, - -1, - sizeof(SPPParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SPPParameter, _internal_metadata_)); - SPPParameter_PoolMethod_descriptor_ = SPPParameter_descriptor_->enum_type(0); - SPPParameter_Engine_descriptor_ = SPPParameter_descriptor_->enum_type(1); - V1LayerParameter_descriptor_ = file->message_type(64); - static const int V1LayerParameter_offsets_[43] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, bottom_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, top_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, include_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, exclude_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, blobs_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, blob_share_mode_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, blobs_lr_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, weight_decay_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, loss_weight_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, accuracy_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, argmax_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, concat_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, contrastive_loss_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, convolution_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, dropout_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, dummy_data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, eltwise_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, exp_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, hdf5_data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, hdf5_output_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, hinge_loss_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, image_data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, infogain_loss_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, inner_product_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, lrn_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, memory_data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, mvn_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, pooling_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, power_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, relu_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, sigmoid_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, softmax_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, slice_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, tanh_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, threshold_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, window_data_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, transform_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, loss_param_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, layer_), - }; - V1LayerParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - V1LayerParameter_descriptor_, - V1LayerParameter::internal_default_instance(), - V1LayerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, _has_bits_), - -1, - -1, - sizeof(V1LayerParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V1LayerParameter, _internal_metadata_)); - V1LayerParameter_LayerType_descriptor_ = V1LayerParameter_descriptor_->enum_type(0); - V1LayerParameter_DimCheckMode_descriptor_ = V1LayerParameter_descriptor_->enum_type(1); - V0LayerParameter_descriptor_ = file->message_type(65); - static const int V0LayerParameter_offsets_[38] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, num_output_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, biasterm_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, weight_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, bias_filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, pad_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, kernelsize_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, group_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, stride_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, pool_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, dropout_ratio_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, local_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, alpha_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, beta_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, k_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, source_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, meanfile_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, batchsize_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, cropsize_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, mirror_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, blobs_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, blobs_lr_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, weight_decay_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, rand_skip_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, det_fg_threshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, det_bg_threshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, det_fg_fraction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, det_context_pad_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, det_crop_mode_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, new_num_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, new_channels_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, new_height_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, new_width_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, shuffle_images_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, concat_dim_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, hdf5_output_param_), - }; - V0LayerParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - V0LayerParameter_descriptor_, - V0LayerParameter::internal_default_instance(), - V0LayerParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, _has_bits_), - -1, - -1, - sizeof(V0LayerParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(V0LayerParameter, _internal_metadata_)); - V0LayerParameter_PoolMethod_descriptor_ = V0LayerParameter_descriptor_->enum_type(0); - PReLUParameter_descriptor_ = file->message_type(66); - static const int PReLUParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PReLUParameter, filler_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PReLUParameter, channel_shared_), - }; - PReLUParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PReLUParameter_descriptor_, - PReLUParameter::internal_default_instance(), - PReLUParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PReLUParameter, _has_bits_), - -1, - -1, - sizeof(PReLUParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PReLUParameter, _internal_metadata_)); - NormalizedBBox_descriptor_ = file->message_type(67); - static const int NormalizedBBox_offsets_[8] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, xmin_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, ymin_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, xmax_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, ymax_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, label_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, difficult_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, score_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, size_), - }; - NormalizedBBox_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - NormalizedBBox_descriptor_, - NormalizedBBox::internal_default_instance(), - NormalizedBBox_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, _has_bits_), - -1, - -1, - sizeof(NormalizedBBox), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NormalizedBBox, _internal_metadata_)); - ROIPoolingParameter_descriptor_ = file->message_type(68); - static const int ROIPoolingParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROIPoolingParameter, pooled_h_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROIPoolingParameter, pooled_w_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROIPoolingParameter, spatial_scale_), - }; - ROIPoolingParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ROIPoolingParameter_descriptor_, - ROIPoolingParameter::internal_default_instance(), - ROIPoolingParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROIPoolingParameter, _has_bits_), - -1, - -1, - sizeof(ROIPoolingParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROIPoolingParameter, _internal_metadata_)); - ProposalParameter_descriptor_ = file->message_type(69); - static const int ProposalParameter_offsets_[8] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, feat_stride_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, base_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, min_size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, ratio_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, pre_nms_topn_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, post_nms_topn_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, nms_thresh_), - }; - ProposalParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - ProposalParameter_descriptor_, - ProposalParameter::internal_default_instance(), - ProposalParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, _has_bits_), - -1, - -1, - sizeof(ProposalParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProposalParameter, _internal_metadata_)); - PSROIPoolingParameter_descriptor_ = file->message_type(70); - static const int PSROIPoolingParameter_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PSROIPoolingParameter, spatial_scale_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PSROIPoolingParameter, output_dim_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PSROIPoolingParameter, group_size_), - }; - PSROIPoolingParameter_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - PSROIPoolingParameter_descriptor_, - PSROIPoolingParameter::internal_default_instance(), - PSROIPoolingParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PSROIPoolingParameter, _has_bits_), - -1, - -1, - sizeof(PSROIPoolingParameter), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PSROIPoolingParameter, _internal_metadata_)); - Type_descriptor_ = file->enum_type(0); - Phase_descriptor_ = file->enum_type(1); +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_BlobShape_default_instance_; + new (ptr) ::opencv_caffe::BlobShape(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::BlobShape::InitAsDefaultInstance(); } -namespace { +void InitDefaultsBlobShape() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlobShapeImpl); +} + +void InitDefaultsBlobProtoImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape(); + { + void* ptr = &::opencv_caffe::_BlobProto_default_instance_; + new (ptr) ::opencv_caffe::BlobProto(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::BlobProto::InitAsDefaultInstance(); +} + +void InitDefaultsBlobProto() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlobProtoImpl); +} + +void InitDefaultsBlobProtoVectorImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto(); + { + void* ptr = &::opencv_caffe::_BlobProtoVector_default_instance_; + new (ptr) ::opencv_caffe::BlobProtoVector(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::BlobProtoVector::InitAsDefaultInstance(); +} + +void InitDefaultsBlobProtoVector() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlobProtoVectorImpl); +} + +void InitDefaultsPermuteParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_PermuteParameter_default_instance_; + new (ptr) ::opencv_caffe::PermuteParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::PermuteParameter::InitAsDefaultInstance(); +} + +void InitDefaultsPermuteParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPermuteParameterImpl); +} + +void InitDefaultsNormalizeBBoxParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + { + void* ptr = &::opencv_caffe::_NormalizeBBoxParameter_default_instance_; + new (ptr) ::opencv_caffe::NormalizeBBoxParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::NormalizeBBoxParameter::InitAsDefaultInstance(); +} + +void InitDefaultsNormalizeBBoxParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNormalizeBBoxParameterImpl); +} + +void InitDefaultsPriorBoxParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_PriorBoxParameter_default_instance_; + new (ptr) ::opencv_caffe::PriorBoxParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::PriorBoxParameter::InitAsDefaultInstance(); +} + +void InitDefaultsPriorBoxParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPriorBoxParameterImpl); +} + +void InitDefaultsDetectionOutputParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsNonMaximumSuppressionParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsSaveOutputParameter(); + { + void* ptr = &::opencv_caffe::_DetectionOutputParameter_default_instance_; + new (ptr) ::opencv_caffe::DetectionOutputParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::DetectionOutputParameter::InitAsDefaultInstance(); +} + +void InitDefaultsDetectionOutputParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDetectionOutputParameterImpl); +} + +void InitDefaultsDatumImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_Datum_default_instance_; + new (ptr) ::opencv_caffe::Datum(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::Datum::InitAsDefaultInstance(); +} + +void InitDefaultsDatum() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDatumImpl); +} + +void InitDefaultsFillerParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::opencv_caffe::FillerParameter::_default_type_.DefaultConstruct(); + *::opencv_caffe::FillerParameter::_default_type_.get_mutable() = ::std::string("constant", 8); + ::google::protobuf::internal::OnShutdownDestroyString( + ::opencv_caffe::FillerParameter::_default_type_.get_mutable()); + { + void* ptr = &::opencv_caffe::_FillerParameter_default_instance_; + new (ptr) ::opencv_caffe::FillerParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::FillerParameter::InitAsDefaultInstance(); +} + +void InitDefaultsFillerParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFillerParameterImpl); +} + +void InitDefaultsNetParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetState(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsLayerParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsV1LayerParameter(); + { + void* ptr = &::opencv_caffe::_NetParameter_default_instance_; + new (ptr) ::opencv_caffe::NetParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::NetParameter::InitAsDefaultInstance(); +} + +void InitDefaultsNetParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetParameterImpl); +} + +void InitDefaultsSolverParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetState(); + ::opencv_caffe::SolverParameter::_default_regularization_type_.DefaultConstruct(); + *::opencv_caffe::SolverParameter::_default_regularization_type_.get_mutable() = ::std::string("L2", 2); + ::google::protobuf::internal::OnShutdownDestroyString( + ::opencv_caffe::SolverParameter::_default_regularization_type_.get_mutable()); + ::opencv_caffe::SolverParameter::_default_type_.DefaultConstruct(); + *::opencv_caffe::SolverParameter::_default_type_.get_mutable() = ::std::string("SGD", 3); + ::google::protobuf::internal::OnShutdownDestroyString( + ::opencv_caffe::SolverParameter::_default_type_.get_mutable()); + { + void* ptr = &::opencv_caffe::_SolverParameter_default_instance_; + new (ptr) ::opencv_caffe::SolverParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::SolverParameter::InitAsDefaultInstance(); +} + +void InitDefaultsSolverParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSolverParameterImpl); +} + +void InitDefaultsSolverStateImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto(); + { + void* ptr = &::opencv_caffe::_SolverState_default_instance_; + new (ptr) ::opencv_caffe::SolverState(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::SolverState::InitAsDefaultInstance(); +} + +void InitDefaultsSolverState() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSolverStateImpl); +} + +void InitDefaultsNetStateImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_NetState_default_instance_; + new (ptr) ::opencv_caffe::NetState(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::NetState::InitAsDefaultInstance(); +} + +void InitDefaultsNetState() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetStateImpl); +} + +void InitDefaultsNetStateRuleImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_NetStateRule_default_instance_; + new (ptr) ::opencv_caffe::NetStateRule(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::NetStateRule::InitAsDefaultInstance(); +} + +void InitDefaultsNetStateRule() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetStateRuleImpl); +} + +void InitDefaultsParamSpecImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ParamSpec_default_instance_; + new (ptr) ::opencv_caffe::ParamSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ParamSpec::InitAsDefaultInstance(); +} + +void InitDefaultsParamSpec() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParamSpecImpl); +} + +void InitDefaultsLayerParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsParamSpec(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateRule(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsTransformationParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsLossParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsAccuracyParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsArgMaxParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBatchNormParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBiasParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsConcatParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsContrastiveLossParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsConvolutionParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsCropParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsDataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsDetectionOutputParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsDropoutParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsDummyDataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsEltwiseParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsELUParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsEmbedParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsExpParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFlattenParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5DataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsHingeLossParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsImageDataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsInfogainLossParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsInnerProductParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsInputParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsLogParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsLRNParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsMemoryDataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsMVNParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizeBBoxParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsPermuteParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsParameterParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsPoolingParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsPowerParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsPReLUParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsPriorBoxParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsProposalParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsPSROIPoolingParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsPythonParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsRecurrentParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsReductionParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsReLUParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsReshapeParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsROIPoolingParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsScaleParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsSigmoidParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsSoftmaxParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsSPPParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsSliceParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsTanHParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsThresholdParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsTileParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsWindowDataParameter(); + { + void* ptr = &::opencv_caffe::_LayerParameter_default_instance_; + new (ptr) ::opencv_caffe::LayerParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::LayerParameter::InitAsDefaultInstance(); +} + +void InitDefaultsLayerParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLayerParameterImpl); +} + +void InitDefaultsTransformationParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_TransformationParameter_default_instance_; + new (ptr) ::opencv_caffe::TransformationParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::TransformationParameter::InitAsDefaultInstance(); +} + +void InitDefaultsTransformationParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransformationParameterImpl); +} + +void InitDefaultsLossParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_LossParameter_default_instance_; + new (ptr) ::opencv_caffe::LossParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::LossParameter::InitAsDefaultInstance(); +} + +void InitDefaultsLossParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLossParameterImpl); +} + +void InitDefaultsAccuracyParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_AccuracyParameter_default_instance_; + new (ptr) ::opencv_caffe::AccuracyParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::AccuracyParameter::InitAsDefaultInstance(); +} + +void InitDefaultsAccuracyParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAccuracyParameterImpl); +} + +void InitDefaultsArgMaxParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ArgMaxParameter_default_instance_; + new (ptr) ::opencv_caffe::ArgMaxParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ArgMaxParameter::InitAsDefaultInstance(); +} + +void InitDefaultsArgMaxParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsArgMaxParameterImpl); +} + +void InitDefaultsConcatParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ConcatParameter_default_instance_; + new (ptr) ::opencv_caffe::ConcatParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ConcatParameter::InitAsDefaultInstance(); +} + +void InitDefaultsConcatParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConcatParameterImpl); +} + +void InitDefaultsBatchNormParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_BatchNormParameter_default_instance_; + new (ptr) ::opencv_caffe::BatchNormParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::BatchNormParameter::InitAsDefaultInstance(); +} + +void InitDefaultsBatchNormParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBatchNormParameterImpl); +} + +void InitDefaultsBiasParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + { + void* ptr = &::opencv_caffe::_BiasParameter_default_instance_; + new (ptr) ::opencv_caffe::BiasParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::BiasParameter::InitAsDefaultInstance(); +} + +void InitDefaultsBiasParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBiasParameterImpl); +} + +void InitDefaultsContrastiveLossParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ContrastiveLossParameter_default_instance_; + new (ptr) ::opencv_caffe::ContrastiveLossParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ContrastiveLossParameter::InitAsDefaultInstance(); +} + +void InitDefaultsContrastiveLossParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsContrastiveLossParameterImpl); +} + +void InitDefaultsConvolutionParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + { + void* ptr = &::opencv_caffe::_ConvolutionParameter_default_instance_; + new (ptr) ::opencv_caffe::ConvolutionParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ConvolutionParameter::InitAsDefaultInstance(); +} + +void InitDefaultsConvolutionParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConvolutionParameterImpl); +} + +void InitDefaultsCropParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_CropParameter_default_instance_; + new (ptr) ::opencv_caffe::CropParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::CropParameter::InitAsDefaultInstance(); +} + +void InitDefaultsCropParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCropParameterImpl); +} + +void InitDefaultsDataParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_DataParameter_default_instance_; + new (ptr) ::opencv_caffe::DataParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::DataParameter::InitAsDefaultInstance(); +} + +void InitDefaultsDataParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDataParameterImpl); +} + +void InitDefaultsNonMaximumSuppressionParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_NonMaximumSuppressionParameter_default_instance_; + new (ptr) ::opencv_caffe::NonMaximumSuppressionParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::NonMaximumSuppressionParameter::InitAsDefaultInstance(); +} + +void InitDefaultsNonMaximumSuppressionParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNonMaximumSuppressionParameterImpl); +} + +void InitDefaultsSaveOutputParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_SaveOutputParameter_default_instance_; + new (ptr) ::opencv_caffe::SaveOutputParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::SaveOutputParameter::InitAsDefaultInstance(); +} + +void InitDefaultsSaveOutputParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSaveOutputParameterImpl); +} + +void InitDefaultsDropoutParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_DropoutParameter_default_instance_; + new (ptr) ::opencv_caffe::DropoutParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::DropoutParameter::InitAsDefaultInstance(); +} + +void InitDefaultsDropoutParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDropoutParameterImpl); +} + +void InitDefaultsDummyDataParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape(); + { + void* ptr = &::opencv_caffe::_DummyDataParameter_default_instance_; + new (ptr) ::opencv_caffe::DummyDataParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::DummyDataParameter::InitAsDefaultInstance(); +} + +void InitDefaultsDummyDataParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDummyDataParameterImpl); +} + +void InitDefaultsEltwiseParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_EltwiseParameter_default_instance_; + new (ptr) ::opencv_caffe::EltwiseParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::EltwiseParameter::InitAsDefaultInstance(); +} + +void InitDefaultsEltwiseParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEltwiseParameterImpl); +} + +void InitDefaultsELUParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ELUParameter_default_instance_; + new (ptr) ::opencv_caffe::ELUParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ELUParameter::InitAsDefaultInstance(); +} + +void InitDefaultsELUParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsELUParameterImpl); +} + +void InitDefaultsEmbedParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + { + void* ptr = &::opencv_caffe::_EmbedParameter_default_instance_; + new (ptr) ::opencv_caffe::EmbedParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::EmbedParameter::InitAsDefaultInstance(); +} + +void InitDefaultsEmbedParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEmbedParameterImpl); +} + +void InitDefaultsExpParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ExpParameter_default_instance_; + new (ptr) ::opencv_caffe::ExpParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ExpParameter::InitAsDefaultInstance(); +} + +void InitDefaultsExpParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExpParameterImpl); +} + +void InitDefaultsFlattenParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_FlattenParameter_default_instance_; + new (ptr) ::opencv_caffe::FlattenParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::FlattenParameter::InitAsDefaultInstance(); +} + +void InitDefaultsFlattenParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFlattenParameterImpl); +} + +void InitDefaultsHDF5DataParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_HDF5DataParameter_default_instance_; + new (ptr) ::opencv_caffe::HDF5DataParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::HDF5DataParameter::InitAsDefaultInstance(); +} + +void InitDefaultsHDF5DataParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHDF5DataParameterImpl); +} + +void InitDefaultsHDF5OutputParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_HDF5OutputParameter_default_instance_; + new (ptr) ::opencv_caffe::HDF5OutputParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::HDF5OutputParameter::InitAsDefaultInstance(); +} + +void InitDefaultsHDF5OutputParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHDF5OutputParameterImpl); +} + +void InitDefaultsHingeLossParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_HingeLossParameter_default_instance_; + new (ptr) ::opencv_caffe::HingeLossParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::HingeLossParameter::InitAsDefaultInstance(); +} + +void InitDefaultsHingeLossParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHingeLossParameterImpl); +} + +void InitDefaultsImageDataParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ImageDataParameter_default_instance_; + new (ptr) ::opencv_caffe::ImageDataParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ImageDataParameter::InitAsDefaultInstance(); +} + +void InitDefaultsImageDataParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsImageDataParameterImpl); +} + +void InitDefaultsInfogainLossParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_InfogainLossParameter_default_instance_; + new (ptr) ::opencv_caffe::InfogainLossParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::InfogainLossParameter::InitAsDefaultInstance(); +} + +void InitDefaultsInfogainLossParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInfogainLossParameterImpl); +} + +void InitDefaultsInnerProductParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + { + void* ptr = &::opencv_caffe::_InnerProductParameter_default_instance_; + new (ptr) ::opencv_caffe::InnerProductParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::InnerProductParameter::InitAsDefaultInstance(); +} + +void InitDefaultsInnerProductParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInnerProductParameterImpl); +} + +void InitDefaultsInputParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape(); + { + void* ptr = &::opencv_caffe::_InputParameter_default_instance_; + new (ptr) ::opencv_caffe::InputParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::InputParameter::InitAsDefaultInstance(); +} + +void InitDefaultsInputParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInputParameterImpl); +} + +void InitDefaultsLogParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_LogParameter_default_instance_; + new (ptr) ::opencv_caffe::LogParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::LogParameter::InitAsDefaultInstance(); +} + +void InitDefaultsLogParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLogParameterImpl); +} + +void InitDefaultsLRNParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_LRNParameter_default_instance_; + new (ptr) ::opencv_caffe::LRNParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::LRNParameter::InitAsDefaultInstance(); +} + +void InitDefaultsLRNParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLRNParameterImpl); +} + +void InitDefaultsMemoryDataParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_MemoryDataParameter_default_instance_; + new (ptr) ::opencv_caffe::MemoryDataParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::MemoryDataParameter::InitAsDefaultInstance(); +} + +void InitDefaultsMemoryDataParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMemoryDataParameterImpl); +} + +void InitDefaultsMVNParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_MVNParameter_default_instance_; + new (ptr) ::opencv_caffe::MVNParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::MVNParameter::InitAsDefaultInstance(); +} + +void InitDefaultsMVNParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMVNParameterImpl); +} + +void InitDefaultsParameterParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape(); + { + void* ptr = &::opencv_caffe::_ParameterParameter_default_instance_; + new (ptr) ::opencv_caffe::ParameterParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ParameterParameter::InitAsDefaultInstance(); +} + +void InitDefaultsParameterParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParameterParameterImpl); +} + +void InitDefaultsPoolingParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_PoolingParameter_default_instance_; + new (ptr) ::opencv_caffe::PoolingParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::PoolingParameter::InitAsDefaultInstance(); +} + +void InitDefaultsPoolingParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPoolingParameterImpl); +} + +void InitDefaultsPowerParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_PowerParameter_default_instance_; + new (ptr) ::opencv_caffe::PowerParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::PowerParameter::InitAsDefaultInstance(); +} + +void InitDefaultsPowerParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPowerParameterImpl); +} + +void InitDefaultsPythonParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_PythonParameter_default_instance_; + new (ptr) ::opencv_caffe::PythonParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::PythonParameter::InitAsDefaultInstance(); +} + +void InitDefaultsPythonParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPythonParameterImpl); +} + +void InitDefaultsRecurrentParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + { + void* ptr = &::opencv_caffe::_RecurrentParameter_default_instance_; + new (ptr) ::opencv_caffe::RecurrentParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::RecurrentParameter::InitAsDefaultInstance(); +} + +void InitDefaultsRecurrentParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRecurrentParameterImpl); +} + +void InitDefaultsReductionParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ReductionParameter_default_instance_; + new (ptr) ::opencv_caffe::ReductionParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ReductionParameter::InitAsDefaultInstance(); +} + +void InitDefaultsReductionParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReductionParameterImpl); +} + +void InitDefaultsReLUParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ReLUParameter_default_instance_; + new (ptr) ::opencv_caffe::ReLUParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ReLUParameter::InitAsDefaultInstance(); +} + +void InitDefaultsReLUParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReLUParameterImpl); +} + +void InitDefaultsReshapeParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape(); + { + void* ptr = &::opencv_caffe::_ReshapeParameter_default_instance_; + new (ptr) ::opencv_caffe::ReshapeParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ReshapeParameter::InitAsDefaultInstance(); +} + +void InitDefaultsReshapeParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReshapeParameterImpl); +} + +void InitDefaultsScaleParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + { + void* ptr = &::opencv_caffe::_ScaleParameter_default_instance_; + new (ptr) ::opencv_caffe::ScaleParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ScaleParameter::InitAsDefaultInstance(); +} + +void InitDefaultsScaleParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsScaleParameterImpl); +} + +void InitDefaultsSigmoidParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_SigmoidParameter_default_instance_; + new (ptr) ::opencv_caffe::SigmoidParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::SigmoidParameter::InitAsDefaultInstance(); +} + +void InitDefaultsSigmoidParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSigmoidParameterImpl); +} + +void InitDefaultsSliceParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_SliceParameter_default_instance_; + new (ptr) ::opencv_caffe::SliceParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::SliceParameter::InitAsDefaultInstance(); +} + +void InitDefaultsSliceParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSliceParameterImpl); +} + +void InitDefaultsSoftmaxParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_SoftmaxParameter_default_instance_; + new (ptr) ::opencv_caffe::SoftmaxParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::SoftmaxParameter::InitAsDefaultInstance(); +} + +void InitDefaultsSoftmaxParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSoftmaxParameterImpl); +} + +void InitDefaultsTanHParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_TanHParameter_default_instance_; + new (ptr) ::opencv_caffe::TanHParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::TanHParameter::InitAsDefaultInstance(); +} + +void InitDefaultsTanHParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTanHParameterImpl); +} + +void InitDefaultsTileParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_TileParameter_default_instance_; + new (ptr) ::opencv_caffe::TileParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::TileParameter::InitAsDefaultInstance(); +} + +void InitDefaultsTileParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTileParameterImpl); +} + +void InitDefaultsThresholdParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ThresholdParameter_default_instance_; + new (ptr) ::opencv_caffe::ThresholdParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ThresholdParameter::InitAsDefaultInstance(); +} + +void InitDefaultsThresholdParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsThresholdParameterImpl); +} + +void InitDefaultsWindowDataParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::opencv_caffe::WindowDataParameter::_default_crop_mode_.DefaultConstruct(); + *::opencv_caffe::WindowDataParameter::_default_crop_mode_.get_mutable() = ::std::string("warp", 4); + ::google::protobuf::internal::OnShutdownDestroyString( + ::opencv_caffe::WindowDataParameter::_default_crop_mode_.get_mutable()); + { + void* ptr = &::opencv_caffe::_WindowDataParameter_default_instance_; + new (ptr) ::opencv_caffe::WindowDataParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::WindowDataParameter::InitAsDefaultInstance(); +} + +void InitDefaultsWindowDataParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWindowDataParameterImpl); +} + +void InitDefaultsSPPParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_SPPParameter_default_instance_; + new (ptr) ::opencv_caffe::SPPParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::SPPParameter::InitAsDefaultInstance(); +} + +void InitDefaultsSPPParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSPPParameterImpl); +} + +void InitDefaultsV1LayerParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateRule(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsAccuracyParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsArgMaxParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsConcatParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsContrastiveLossParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsConvolutionParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsDataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsDropoutParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsDummyDataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsEltwiseParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsExpParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5DataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsHingeLossParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsImageDataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsInfogainLossParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsInnerProductParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsLRNParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsMemoryDataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsMVNParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsPoolingParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsPowerParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsReLUParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsSigmoidParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsSoftmaxParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsSliceParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsTanHParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsThresholdParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsWindowDataParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsTransformationParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsLossParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsV0LayerParameter(); + { + void* ptr = &::opencv_caffe::_V1LayerParameter_default_instance_; + new (ptr) ::opencv_caffe::V1LayerParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::V1LayerParameter::InitAsDefaultInstance(); +} + +void InitDefaultsV1LayerParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsV1LayerParameterImpl); +} + +void InitDefaultsV0LayerParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto(); + protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter(); + ::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.DefaultConstruct(); + *::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get_mutable() = ::std::string("warp", 4); + ::google::protobuf::internal::OnShutdownDestroyString( + ::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get_mutable()); + { + void* ptr = &::opencv_caffe::_V0LayerParameter_default_instance_; + new (ptr) ::opencv_caffe::V0LayerParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::V0LayerParameter::InitAsDefaultInstance(); +} + +void InitDefaultsV0LayerParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsV0LayerParameterImpl); +} + +void InitDefaultsPReLUParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + { + void* ptr = &::opencv_caffe::_PReLUParameter_default_instance_; + new (ptr) ::opencv_caffe::PReLUParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::PReLUParameter::InitAsDefaultInstance(); +} + +void InitDefaultsPReLUParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPReLUParameterImpl); +} + +void InitDefaultsNormalizedBBoxImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_NormalizedBBox_default_instance_; + new (ptr) ::opencv_caffe::NormalizedBBox(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::NormalizedBBox::InitAsDefaultInstance(); +} + +void InitDefaultsNormalizedBBox() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNormalizedBBoxImpl); +} + +void InitDefaultsROIPoolingParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ROIPoolingParameter_default_instance_; + new (ptr) ::opencv_caffe::ROIPoolingParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ROIPoolingParameter::InitAsDefaultInstance(); +} + +void InitDefaultsROIPoolingParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsROIPoolingParameterImpl); +} + +void InitDefaultsProposalParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_ProposalParameter_default_instance_; + new (ptr) ::opencv_caffe::ProposalParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::ProposalParameter::InitAsDefaultInstance(); +} + +void InitDefaultsProposalParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProposalParameterImpl); +} + +void InitDefaultsPSROIPoolingParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::opencv_caffe::_PSROIPoolingParameter_default_instance_; + new (ptr) ::opencv_caffe::PSROIPoolingParameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::opencv_caffe::PSROIPoolingParameter::InitAsDefaultInstance(); +} + +void InitDefaultsPSROIPoolingParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPSROIPoolingParameterImpl); +} + +::google::protobuf::Metadata file_level_metadata[71]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[27]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobShape, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobShape, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobShape, dim_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, shape_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, diff_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, double_data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, double_diff_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, raw_data_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, raw_data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, channels_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, height_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, width_), + 1, + ~0u, + ~0u, + ~0u, + ~0u, + 6, + 0, + 2, + 3, + 4, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProtoVector, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProtoVector, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProtoVector, blobs_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PermuteParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PermuteParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PermuteParameter, order_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, across_spatial_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, scale_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, channel_shared_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, eps_), + 1, + 0, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, min_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, max_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, aspect_ratio_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, flip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, clip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, variance_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, img_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, img_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, img_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, step_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, step_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, step_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, offset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, offset_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, offset_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, width_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, height_), + 0, + 1, + ~0u, + 8, + 9, + ~0u, + 2, + 3, + 4, + 5, + 6, + 7, + 10, + ~0u, + ~0u, + ~0u, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, num_classes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, share_location_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, background_label_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, nms_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, save_output_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, code_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, variance_encoded_in_target_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, keep_top_k_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, confidence_threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, normalized_bbox_), + 2, + 8, + 3, + 0, + 1, + 7, + 4, + 6, + 5, + 9, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, channels_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, height_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, width_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, float_data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, encoded_), + 1, + 2, + 3, + 0, + 4, + ~0u, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, min_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, max_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, mean_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, std_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, sparse_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, variance_norm_), + 0, + 1, + 2, + 6, + 3, + 7, + 5, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, input_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, input_shape_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, input_dim_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, force_backward_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, debug_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, layer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, layers_), + 0, + ~0u, + ~0u, + ~0u, + 2, + 1, + 3, + ~0u, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, net_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, net_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, train_net_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_net_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, train_net_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_net_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, train_state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_iter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_interval_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_compute_loss_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_initialization_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, base_lr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, display_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, average_loss_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, max_iter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, iter_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, lr_policy_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, gamma_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, power_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, momentum_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, weight_decay_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, regularization_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, stepsize_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, stepvalue_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, clip_gradients_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_prefix_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_diff_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_format_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, solver_mode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, device_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, random_seed_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, delta_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, momentum2_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, rms_decay_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, debug_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_after_train_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, solver_type_), + 3, + 7, + 0, + ~0u, + 6, + ~0u, + 8, + ~0u, + ~0u, + 9, + 20, + 27, + 10, + 11, + 30, + 12, + 32, + 1, + 13, + 14, + 15, + 16, + 4, + 17, + ~0u, + 31, + 18, + 2, + 21, + 33, + 26, + 19, + 25, + 5, + 29, + 24, + 34, + 22, + 28, + 23, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, iter_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, learned_net_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, history_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, current_step_), + 1, + 0, + ~0u, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, level_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, stage_), + 1, + 0, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, min_level_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, max_level_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, stage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, not_stage_), + 0, + 1, + 2, + ~0u, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, share_mode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, lr_mult_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, decay_mult_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, bottom_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, top_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, loss_weight_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, blobs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, propagate_down_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, include_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, exclude_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, transform_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, loss_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, accuracy_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, argmax_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, batch_norm_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, bias_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, concat_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, contrastive_loss_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, convolution_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, crop_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, detection_output_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, dropout_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, dummy_data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, eltwise_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, elu_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, embed_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, exp_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, flatten_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, hdf5_data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, hdf5_output_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, hinge_loss_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, image_data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, infogain_loss_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, inner_product_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, input_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, log_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, lrn_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, memory_data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, mvn_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, norm_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, permute_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, parameter_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, pooling_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, power_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, prelu_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, prior_box_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, proposal_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, psroi_pooling_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, python_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, recurrent_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, reduction_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, relu_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, reshape_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, roi_pooling_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, scale_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, sigmoid_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, softmax_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, spp_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, slice_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, tanh_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, threshold_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, tile_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, window_data_param_), + 0, + 1, + ~0u, + ~0u, + 56, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 2, + 3, + 4, + 5, + 41, + 43, + 6, + 7, + 8, + 46, + 9, + 49, + 10, + 11, + 12, + 42, + 39, + 13, + 37, + 14, + 15, + 16, + 17, + 18, + 19, + 45, + 36, + 20, + 21, + 22, + 51, + 50, + 47, + 23, + 24, + 33, + 52, + 53, + 54, + 32, + 48, + 38, + 25, + 35, + 55, + 44, + 26, + 27, + 34, + 28, + 29, + 30, + 40, + 31, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, mirror_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, crop_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, mean_file_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, mean_value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, force_color_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, force_gray_), + 5, + 2, + 1, + 0, + ~0u, + 3, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, ignore_label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, normalization_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, normalize_), + 0, + 2, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, top_k_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, ignore_label_), + 1, + 2, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, out_max_val_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, top_k_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, axis_), + 0, + 2, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConcatParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConcatParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConcatParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConcatParameter, concat_dim_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, use_global_stats_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, moving_average_fraction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, eps_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, num_axes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, filler_), + 1, + 2, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ContrastiveLossParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ContrastiveLossParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ContrastiveLossParameter, margin_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ContrastiveLossParameter, legacy_version_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, num_output_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, bias_term_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, pad_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, kernel_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, stride_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, dilation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, pad_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, pad_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, kernel_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, kernel_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, stride_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, stride_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, weight_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, bias_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, engine_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, force_nd_im2col_), + 2, + 12, + ~0u, + ~0u, + ~0u, + ~0u, + 3, + 4, + 5, + 6, + 7, + 8, + 13, + 0, + 1, + 9, + 11, + 10, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::CropParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::CropParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::CropParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::CropParameter, offset_), + 0, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, batch_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, rand_skip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, backend_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, mean_file_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, crop_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, mirror_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, force_encoded_color_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, prefetch_), + 0, + 2, + 4, + 7, + 8, + 1, + 3, + 5, + 6, + 9, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, nms_threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, top_k_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, eta_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, output_directory_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, output_name_prefix_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, output_format_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, label_map_file_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, name_size_file_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, num_test_image_), + 0, + 1, + 2, + 3, + 4, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DropoutParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DropoutParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DropoutParameter, dropout_ratio_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DropoutParameter, scale_train_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, data_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, shape_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, channels_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, height_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, width_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, operation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, coeff_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, stable_prod_grad_), + 0, + ~0u, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ELUParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ELUParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ELUParameter, alpha_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, num_output_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, input_dim_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, bias_term_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, weight_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, bias_filler_), + 2, + 3, + 4, + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, base_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, shift_), + 1, + 2, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FlattenParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FlattenParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FlattenParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FlattenParameter, end_axis_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, batch_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, shuffle_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5OutputParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5OutputParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5OutputParameter, file_name_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HingeLossParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HingeLossParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HingeLossParameter, norm_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, batch_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, rand_skip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, shuffle_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, new_height_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, new_width_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, is_color_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, mean_file_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, crop_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, mirror_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, root_folder_), + 0, + 11, + 4, + 5, + 7, + 8, + 9, + 10, + 1, + 3, + 6, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InfogainLossParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InfogainLossParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InfogainLossParameter, source_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, num_output_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, bias_term_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, weight_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, bias_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, transpose_), + 2, + 4, + 0, + 1, + 5, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InputParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InputParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InputParameter, shape_), + ~0u, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, base_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, shift_), + 1, + 2, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, local_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, alpha_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, beta_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, norm_region_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, k_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, engine_), + 2, + 3, + 4, + 0, + 5, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, batch_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, channels_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, height_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, width_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, normalize_variance_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, across_channels_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, eps_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParameterParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParameterParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParameterParameter, shape_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, pool_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, pad_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, pad_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, pad_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, kernel_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, kernel_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, kernel_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, stride_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, stride_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, stride_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, engine_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, global_pooling_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, ceil_mode_), + 0, + 2, + 7, + 8, + 1, + 3, + 4, + 11, + 5, + 6, + 9, + 10, + 12, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, power_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, shift_), + 1, + 2, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, module_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, layer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, param_str_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, share_in_parallel_), + 0, + 1, + 2, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, num_output_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, weight_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, bias_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, debug_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, expose_hidden_), + 2, + 0, + 1, + 3, + 4, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, operation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, coeff_), + 1, + 0, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReLUParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReLUParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReLUParameter, negative_slope_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReLUParameter, engine_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, shape_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, num_axes_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, num_axes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, bias_term_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, bias_filler_), + 3, + 4, + 0, + 2, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SigmoidParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SigmoidParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SigmoidParameter, engine_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, slice_point_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, slice_dim_), + 1, + ~0u, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SoftmaxParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SoftmaxParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SoftmaxParameter, engine_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SoftmaxParameter, axis_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TanHParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TanHParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TanHParameter, engine_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TileParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TileParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TileParameter, axis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TileParameter, tiles_), + 1, + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ThresholdParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ThresholdParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ThresholdParameter, threshold_), + 0, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, mean_file_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, batch_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, crop_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, mirror_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, fg_threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, bg_threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, fg_fraction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, context_pad_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, crop_mode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, cache_images_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, root_folder_), + 0, + 9, + 1, + 4, + 5, + 6, + 10, + 11, + 12, + 8, + 2, + 7, + 3, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, pyramid_height_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, pool_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, engine_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, bottom_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, top_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, include_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, exclude_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, blobs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, blob_share_mode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, blobs_lr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, weight_decay_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, loss_weight_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, accuracy_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, argmax_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, concat_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, contrastive_loss_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, convolution_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, dropout_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, dummy_data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, eltwise_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, exp_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, hdf5_data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, hdf5_output_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, hinge_loss_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, image_data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, infogain_loss_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, inner_product_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, lrn_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, memory_data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, mvn_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, pooling_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, power_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, relu_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, sigmoid_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, softmax_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, slice_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, tanh_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, threshold_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, window_data_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, transform_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, loss_param_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, layer_), + ~0u, + ~0u, + 0, + ~0u, + ~0u, + 32, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 20, + 16, + 2, + 29, + 3, + 4, + 5, + 19, + 17, + 30, + 6, + 7, + 21, + 8, + 9, + 10, + 11, + 15, + 24, + 12, + 14, + 22, + 27, + 28, + 23, + 26, + 18, + 13, + 25, + 31, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, num_output_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, biasterm_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, weight_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, bias_filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, pad_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, kernelsize_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, group_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, stride_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, pool_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, dropout_ratio_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, local_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, alpha_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, beta_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, k_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, source_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, meanfile_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, batchsize_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, cropsize_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, mirror_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, blobs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, blobs_lr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, weight_decay_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, rand_skip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_fg_threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_bg_threshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_fg_fraction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_context_pad_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_crop_mode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, new_num_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, new_channels_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, new_height_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, new_width_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, shuffle_images_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, concat_dim_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, hdf5_output_param_), + 0, + 1, + 8, + 23, + 5, + 6, + 9, + 10, + 24, + 25, + 11, + 26, + 27, + 28, + 29, + 31, + 2, + 30, + 3, + 12, + 13, + 15, + ~0u, + ~0u, + ~0u, + 17, + 32, + 33, + 34, + 18, + 4, + 19, + 20, + 21, + 14, + 16, + 22, + 7, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PReLUParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PReLUParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PReLUParameter, filler_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PReLUParameter, channel_shared_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, xmin_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, ymin_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, xmax_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, ymax_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, difficult_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, score_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, size_), + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, pooled_h_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, pooled_w_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, spatial_scale_), + 0, + 1, + 2, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, feat_stride_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, base_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, min_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, ratio_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, pre_nms_topn_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, post_nms_topn_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, nms_thresh_), + 0, + 1, + 2, + ~0u, + ~0u, + 3, + 4, + 5, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, spatial_scale_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, output_dim_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, group_size_), + 0, + 1, + 2, +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, 6, sizeof(::opencv_caffe::BlobShape)}, + { 7, 23, sizeof(::opencv_caffe::BlobProto)}, + { 34, 40, sizeof(::opencv_caffe::BlobProtoVector)}, + { 41, 47, sizeof(::opencv_caffe::PermuteParameter)}, + { 48, 57, sizeof(::opencv_caffe::NormalizeBBoxParameter)}, + { 61, 83, sizeof(::opencv_caffe::PriorBoxParameter)}, + { 100, 115, sizeof(::opencv_caffe::DetectionOutputParameter)}, + { 125, 137, sizeof(::opencv_caffe::Datum)}, + { 144, 157, sizeof(::opencv_caffe::FillerParameter)}, + { 165, 179, sizeof(::opencv_caffe::NetParameter)}, + { 188, 233, sizeof(::opencv_caffe::SolverParameter)}, + { 273, 282, sizeof(::opencv_caffe::SolverState)}, + { 286, 294, sizeof(::opencv_caffe::NetState)}, + { 297, 307, sizeof(::opencv_caffe::NetStateRule)}, + { 312, 321, sizeof(::opencv_caffe::ParamSpec)}, + { 325, 395, sizeof(::opencv_caffe::LayerParameter)}, + { 460, 472, sizeof(::opencv_caffe::TransformationParameter)}, + { 479, 487, sizeof(::opencv_caffe::LossParameter)}, + { 490, 498, sizeof(::opencv_caffe::AccuracyParameter)}, + { 501, 509, sizeof(::opencv_caffe::ArgMaxParameter)}, + { 512, 519, sizeof(::opencv_caffe::ConcatParameter)}, + { 521, 529, sizeof(::opencv_caffe::BatchNormParameter)}, + { 532, 540, sizeof(::opencv_caffe::BiasParameter)}, + { 543, 550, sizeof(::opencv_caffe::ContrastiveLossParameter)}, + { 552, 575, sizeof(::opencv_caffe::ConvolutionParameter)}, + { 593, 600, sizeof(::opencv_caffe::CropParameter)}, + { 602, 617, sizeof(::opencv_caffe::DataParameter)}, + { 627, 635, sizeof(::opencv_caffe::NonMaximumSuppressionParameter)}, + { 638, 649, sizeof(::opencv_caffe::SaveOutputParameter)}, + { 655, 662, sizeof(::opencv_caffe::DropoutParameter)}, + { 664, 675, sizeof(::opencv_caffe::DummyDataParameter)}, + { 681, 689, sizeof(::opencv_caffe::EltwiseParameter)}, + { 692, 698, sizeof(::opencv_caffe::ELUParameter)}, + { 699, 709, sizeof(::opencv_caffe::EmbedParameter)}, + { 714, 722, sizeof(::opencv_caffe::ExpParameter)}, + { 725, 732, sizeof(::opencv_caffe::FlattenParameter)}, + { 734, 742, sizeof(::opencv_caffe::HDF5DataParameter)}, + { 745, 751, sizeof(::opencv_caffe::HDF5OutputParameter)}, + { 752, 758, sizeof(::opencv_caffe::HingeLossParameter)}, + { 759, 776, sizeof(::opencv_caffe::ImageDataParameter)}, + { 788, 794, sizeof(::opencv_caffe::InfogainLossParameter)}, + { 795, 806, sizeof(::opencv_caffe::InnerProductParameter)}, + { 812, 818, sizeof(::opencv_caffe::InputParameter)}, + { 819, 827, sizeof(::opencv_caffe::LogParameter)}, + { 830, 841, sizeof(::opencv_caffe::LRNParameter)}, + { 847, 856, sizeof(::opencv_caffe::MemoryDataParameter)}, + { 860, 868, sizeof(::opencv_caffe::MVNParameter)}, + { 871, 877, sizeof(::opencv_caffe::ParameterParameter)}, + { 878, 896, sizeof(::opencv_caffe::PoolingParameter)}, + { 909, 917, sizeof(::opencv_caffe::PowerParameter)}, + { 920, 929, sizeof(::opencv_caffe::PythonParameter)}, + { 933, 943, sizeof(::opencv_caffe::RecurrentParameter)}, + { 948, 956, sizeof(::opencv_caffe::ReductionParameter)}, + { 959, 966, sizeof(::opencv_caffe::ReLUParameter)}, + { 968, 976, sizeof(::opencv_caffe::ReshapeParameter)}, + { 979, 989, sizeof(::opencv_caffe::ScaleParameter)}, + { 994, 1000, sizeof(::opencv_caffe::SigmoidParameter)}, + { 1001, 1009, sizeof(::opencv_caffe::SliceParameter)}, + { 1012, 1019, sizeof(::opencv_caffe::SoftmaxParameter)}, + { 1021, 1027, sizeof(::opencv_caffe::TanHParameter)}, + { 1028, 1035, sizeof(::opencv_caffe::TileParameter)}, + { 1037, 1043, sizeof(::opencv_caffe::ThresholdParameter)}, + { 1044, 1062, sizeof(::opencv_caffe::WindowDataParameter)}, + { 1075, 1083, sizeof(::opencv_caffe::SPPParameter)}, + { 1086, 1134, sizeof(::opencv_caffe::V1LayerParameter)}, + { 1177, 1220, sizeof(::opencv_caffe::V0LayerParameter)}, + { 1258, 1265, sizeof(::opencv_caffe::PReLUParameter)}, + { 1267, 1280, sizeof(::opencv_caffe::NormalizedBBox)}, + { 1288, 1296, sizeof(::opencv_caffe::ROIPoolingParameter)}, + { 1299, 1312, sizeof(::opencv_caffe::ProposalParameter)}, + { 1320, 1328, sizeof(::opencv_caffe::PSROIPoolingParameter)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::opencv_caffe::_BlobShape_default_instance_), + reinterpret_cast(&::opencv_caffe::_BlobProto_default_instance_), + reinterpret_cast(&::opencv_caffe::_BlobProtoVector_default_instance_), + reinterpret_cast(&::opencv_caffe::_PermuteParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_NormalizeBBoxParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_PriorBoxParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_DetectionOutputParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_Datum_default_instance_), + reinterpret_cast(&::opencv_caffe::_FillerParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_NetParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_SolverParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_SolverState_default_instance_), + reinterpret_cast(&::opencv_caffe::_NetState_default_instance_), + reinterpret_cast(&::opencv_caffe::_NetStateRule_default_instance_), + reinterpret_cast(&::opencv_caffe::_ParamSpec_default_instance_), + reinterpret_cast(&::opencv_caffe::_LayerParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_TransformationParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_LossParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_AccuracyParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ArgMaxParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ConcatParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_BatchNormParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_BiasParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ContrastiveLossParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ConvolutionParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_CropParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_DataParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_NonMaximumSuppressionParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_SaveOutputParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_DropoutParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_DummyDataParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_EltwiseParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ELUParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_EmbedParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ExpParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_FlattenParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_HDF5DataParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_HDF5OutputParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_HingeLossParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ImageDataParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_InfogainLossParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_InnerProductParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_InputParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_LogParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_LRNParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_MemoryDataParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_MVNParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ParameterParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_PoolingParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_PowerParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_PythonParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_RecurrentParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ReductionParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ReLUParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ReshapeParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ScaleParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_SigmoidParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_SliceParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_SoftmaxParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_TanHParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_TileParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ThresholdParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_WindowDataParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_SPPParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_V1LayerParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_V0LayerParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_PReLUParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_NormalizedBBox_default_instance_), + reinterpret_cast(&::opencv_caffe::_ROIPoolingParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_ProposalParameter_default_instance_), + reinterpret_cast(&::opencv_caffe::_PSROIPoolingParameter_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "opencv-caffe.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_opencv_2dcaffe_2eproto); + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BlobShape_descriptor_, BlobShape::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BlobProto_descriptor_, BlobProto::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BlobProtoVector_descriptor_, BlobProtoVector::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PermuteParameter_descriptor_, PermuteParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NormalizeBBoxParameter_descriptor_, NormalizeBBoxParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PriorBoxParameter_descriptor_, PriorBoxParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DetectionOutputParameter_descriptor_, DetectionOutputParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Datum_descriptor_, Datum::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FillerParameter_descriptor_, FillerParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NetParameter_descriptor_, NetParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SolverParameter_descriptor_, SolverParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SolverState_descriptor_, SolverState::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NetState_descriptor_, NetState::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NetStateRule_descriptor_, NetStateRule::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ParamSpec_descriptor_, ParamSpec::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LayerParameter_descriptor_, LayerParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TransformationParameter_descriptor_, TransformationParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LossParameter_descriptor_, LossParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AccuracyParameter_descriptor_, AccuracyParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ArgMaxParameter_descriptor_, ArgMaxParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ConcatParameter_descriptor_, ConcatParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BatchNormParameter_descriptor_, BatchNormParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - BiasParameter_descriptor_, BiasParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ContrastiveLossParameter_descriptor_, ContrastiveLossParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ConvolutionParameter_descriptor_, ConvolutionParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CropParameter_descriptor_, CropParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DataParameter_descriptor_, DataParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NonMaximumSuppressionParameter_descriptor_, NonMaximumSuppressionParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SaveOutputParameter_descriptor_, SaveOutputParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DropoutParameter_descriptor_, DropoutParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - DummyDataParameter_descriptor_, DummyDataParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - EltwiseParameter_descriptor_, EltwiseParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ELUParameter_descriptor_, ELUParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - EmbedParameter_descriptor_, EmbedParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ExpParameter_descriptor_, ExpParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FlattenParameter_descriptor_, FlattenParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - HDF5DataParameter_descriptor_, HDF5DataParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - HDF5OutputParameter_descriptor_, HDF5OutputParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - HingeLossParameter_descriptor_, HingeLossParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ImageDataParameter_descriptor_, ImageDataParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InfogainLossParameter_descriptor_, InfogainLossParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InnerProductParameter_descriptor_, InnerProductParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - InputParameter_descriptor_, InputParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LogParameter_descriptor_, LogParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - LRNParameter_descriptor_, LRNParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MemoryDataParameter_descriptor_, MemoryDataParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MVNParameter_descriptor_, MVNParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ParameterParameter_descriptor_, ParameterParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PoolingParameter_descriptor_, PoolingParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PowerParameter_descriptor_, PowerParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PythonParameter_descriptor_, PythonParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - RecurrentParameter_descriptor_, RecurrentParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ReductionParameter_descriptor_, ReductionParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ReLUParameter_descriptor_, ReLUParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ReshapeParameter_descriptor_, ReshapeParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ScaleParameter_descriptor_, ScaleParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SigmoidParameter_descriptor_, SigmoidParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SliceParameter_descriptor_, SliceParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SoftmaxParameter_descriptor_, SoftmaxParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TanHParameter_descriptor_, TanHParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TileParameter_descriptor_, TileParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ThresholdParameter_descriptor_, ThresholdParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - WindowDataParameter_descriptor_, WindowDataParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - SPPParameter_descriptor_, SPPParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - V1LayerParameter_descriptor_, V1LayerParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - V0LayerParameter_descriptor_, V0LayerParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PReLUParameter_descriptor_, PReLUParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NormalizedBBox_descriptor_, NormalizedBBox::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ROIPoolingParameter_descriptor_, ROIPoolingParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ProposalParameter_descriptor_, ProposalParameter::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - PSROIPoolingParameter_descriptor_, PSROIPoolingParameter::internal_default_instance()); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 71); } -} // namespace - -void protobuf_ShutdownFile_opencv_2dcaffe_2eproto() { - BlobShape_default_instance_.Shutdown(); - delete BlobShape_reflection_; - BlobProto_default_instance_.Shutdown(); - delete BlobProto_reflection_; - BlobProtoVector_default_instance_.Shutdown(); - delete BlobProtoVector_reflection_; - PermuteParameter_default_instance_.Shutdown(); - delete PermuteParameter_reflection_; - NormalizeBBoxParameter_default_instance_.Shutdown(); - delete NormalizeBBoxParameter_reflection_; - PriorBoxParameter_default_instance_.Shutdown(); - delete PriorBoxParameter_reflection_; - DetectionOutputParameter_default_instance_.Shutdown(); - delete DetectionOutputParameter_reflection_; - Datum_default_instance_.Shutdown(); - delete Datum_reflection_; - FillerParameter_default_instance_.Shutdown(); - delete FillerParameter_reflection_; - delete FillerParameter::_default_type_; - NetParameter_default_instance_.Shutdown(); - delete NetParameter_reflection_; - SolverParameter_default_instance_.Shutdown(); - delete SolverParameter_reflection_; - delete SolverParameter::_default_regularization_type_; - delete SolverParameter::_default_type_; - SolverState_default_instance_.Shutdown(); - delete SolverState_reflection_; - NetState_default_instance_.Shutdown(); - delete NetState_reflection_; - NetStateRule_default_instance_.Shutdown(); - delete NetStateRule_reflection_; - ParamSpec_default_instance_.Shutdown(); - delete ParamSpec_reflection_; - LayerParameter_default_instance_.Shutdown(); - delete LayerParameter_reflection_; - TransformationParameter_default_instance_.Shutdown(); - delete TransformationParameter_reflection_; - LossParameter_default_instance_.Shutdown(); - delete LossParameter_reflection_; - AccuracyParameter_default_instance_.Shutdown(); - delete AccuracyParameter_reflection_; - ArgMaxParameter_default_instance_.Shutdown(); - delete ArgMaxParameter_reflection_; - ConcatParameter_default_instance_.Shutdown(); - delete ConcatParameter_reflection_; - BatchNormParameter_default_instance_.Shutdown(); - delete BatchNormParameter_reflection_; - BiasParameter_default_instance_.Shutdown(); - delete BiasParameter_reflection_; - ContrastiveLossParameter_default_instance_.Shutdown(); - delete ContrastiveLossParameter_reflection_; - ConvolutionParameter_default_instance_.Shutdown(); - delete ConvolutionParameter_reflection_; - CropParameter_default_instance_.Shutdown(); - delete CropParameter_reflection_; - DataParameter_default_instance_.Shutdown(); - delete DataParameter_reflection_; - NonMaximumSuppressionParameter_default_instance_.Shutdown(); - delete NonMaximumSuppressionParameter_reflection_; - SaveOutputParameter_default_instance_.Shutdown(); - delete SaveOutputParameter_reflection_; - DropoutParameter_default_instance_.Shutdown(); - delete DropoutParameter_reflection_; - DummyDataParameter_default_instance_.Shutdown(); - delete DummyDataParameter_reflection_; - EltwiseParameter_default_instance_.Shutdown(); - delete EltwiseParameter_reflection_; - ELUParameter_default_instance_.Shutdown(); - delete ELUParameter_reflection_; - EmbedParameter_default_instance_.Shutdown(); - delete EmbedParameter_reflection_; - ExpParameter_default_instance_.Shutdown(); - delete ExpParameter_reflection_; - FlattenParameter_default_instance_.Shutdown(); - delete FlattenParameter_reflection_; - HDF5DataParameter_default_instance_.Shutdown(); - delete HDF5DataParameter_reflection_; - HDF5OutputParameter_default_instance_.Shutdown(); - delete HDF5OutputParameter_reflection_; - HingeLossParameter_default_instance_.Shutdown(); - delete HingeLossParameter_reflection_; - ImageDataParameter_default_instance_.Shutdown(); - delete ImageDataParameter_reflection_; - InfogainLossParameter_default_instance_.Shutdown(); - delete InfogainLossParameter_reflection_; - InnerProductParameter_default_instance_.Shutdown(); - delete InnerProductParameter_reflection_; - InputParameter_default_instance_.Shutdown(); - delete InputParameter_reflection_; - LogParameter_default_instance_.Shutdown(); - delete LogParameter_reflection_; - LRNParameter_default_instance_.Shutdown(); - delete LRNParameter_reflection_; - MemoryDataParameter_default_instance_.Shutdown(); - delete MemoryDataParameter_reflection_; - MVNParameter_default_instance_.Shutdown(); - delete MVNParameter_reflection_; - ParameterParameter_default_instance_.Shutdown(); - delete ParameterParameter_reflection_; - PoolingParameter_default_instance_.Shutdown(); - delete PoolingParameter_reflection_; - PowerParameter_default_instance_.Shutdown(); - delete PowerParameter_reflection_; - PythonParameter_default_instance_.Shutdown(); - delete PythonParameter_reflection_; - RecurrentParameter_default_instance_.Shutdown(); - delete RecurrentParameter_reflection_; - ReductionParameter_default_instance_.Shutdown(); - delete ReductionParameter_reflection_; - ReLUParameter_default_instance_.Shutdown(); - delete ReLUParameter_reflection_; - ReshapeParameter_default_instance_.Shutdown(); - delete ReshapeParameter_reflection_; - ScaleParameter_default_instance_.Shutdown(); - delete ScaleParameter_reflection_; - SigmoidParameter_default_instance_.Shutdown(); - delete SigmoidParameter_reflection_; - SliceParameter_default_instance_.Shutdown(); - delete SliceParameter_reflection_; - SoftmaxParameter_default_instance_.Shutdown(); - delete SoftmaxParameter_reflection_; - TanHParameter_default_instance_.Shutdown(); - delete TanHParameter_reflection_; - TileParameter_default_instance_.Shutdown(); - delete TileParameter_reflection_; - ThresholdParameter_default_instance_.Shutdown(); - delete ThresholdParameter_reflection_; - WindowDataParameter_default_instance_.Shutdown(); - delete WindowDataParameter_reflection_; - delete WindowDataParameter::_default_crop_mode_; - SPPParameter_default_instance_.Shutdown(); - delete SPPParameter_reflection_; - V1LayerParameter_default_instance_.Shutdown(); - delete V1LayerParameter_reflection_; - V0LayerParameter_default_instance_.Shutdown(); - delete V0LayerParameter_reflection_; - delete V0LayerParameter::_default_det_crop_mode_; - PReLUParameter_default_instance_.Shutdown(); - delete PReLUParameter_reflection_; - NormalizedBBox_default_instance_.Shutdown(); - delete NormalizedBBox_reflection_; - ROIPoolingParameter_default_instance_.Shutdown(); - delete ROIPoolingParameter_reflection_; - ProposalParameter_default_instance_.Shutdown(); - delete ProposalParameter_reflection_; - PSROIPoolingParameter_default_instance_.Shutdown(); - delete PSROIPoolingParameter_reflection_; -} - -void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - BlobShape_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - BlobProto_default_instance_.DefaultConstruct(); - BlobProtoVector_default_instance_.DefaultConstruct(); - PermuteParameter_default_instance_.DefaultConstruct(); - NormalizeBBoxParameter_default_instance_.DefaultConstruct(); - PriorBoxParameter_default_instance_.DefaultConstruct(); - DetectionOutputParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - Datum_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - FillerParameter::_default_type_ = - new ::std::string("constant", 8); - FillerParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - NetParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - SolverParameter::_default_regularization_type_ = - new ::std::string("L2", 2); - SolverParameter::_default_type_ = - new ::std::string("SGD", 3); - SolverParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - SolverState_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - NetState_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - NetStateRule_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - ParamSpec_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - LayerParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - TransformationParameter_default_instance_.DefaultConstruct(); - LossParameter_default_instance_.DefaultConstruct(); - AccuracyParameter_default_instance_.DefaultConstruct(); - ArgMaxParameter_default_instance_.DefaultConstruct(); - ConcatParameter_default_instance_.DefaultConstruct(); - BatchNormParameter_default_instance_.DefaultConstruct(); - BiasParameter_default_instance_.DefaultConstruct(); - ContrastiveLossParameter_default_instance_.DefaultConstruct(); - ConvolutionParameter_default_instance_.DefaultConstruct(); - CropParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - DataParameter_default_instance_.DefaultConstruct(); - NonMaximumSuppressionParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - SaveOutputParameter_default_instance_.DefaultConstruct(); - DropoutParameter_default_instance_.DefaultConstruct(); - DummyDataParameter_default_instance_.DefaultConstruct(); - EltwiseParameter_default_instance_.DefaultConstruct(); - ELUParameter_default_instance_.DefaultConstruct(); - EmbedParameter_default_instance_.DefaultConstruct(); - ExpParameter_default_instance_.DefaultConstruct(); - FlattenParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - HDF5DataParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - HDF5OutputParameter_default_instance_.DefaultConstruct(); - HingeLossParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - ImageDataParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - InfogainLossParameter_default_instance_.DefaultConstruct(); - InnerProductParameter_default_instance_.DefaultConstruct(); - InputParameter_default_instance_.DefaultConstruct(); - LogParameter_default_instance_.DefaultConstruct(); - LRNParameter_default_instance_.DefaultConstruct(); - MemoryDataParameter_default_instance_.DefaultConstruct(); - MVNParameter_default_instance_.DefaultConstruct(); - ParameterParameter_default_instance_.DefaultConstruct(); - PoolingParameter_default_instance_.DefaultConstruct(); - PowerParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - PythonParameter_default_instance_.DefaultConstruct(); - RecurrentParameter_default_instance_.DefaultConstruct(); - ReductionParameter_default_instance_.DefaultConstruct(); - ReLUParameter_default_instance_.DefaultConstruct(); - ReshapeParameter_default_instance_.DefaultConstruct(); - ScaleParameter_default_instance_.DefaultConstruct(); - SigmoidParameter_default_instance_.DefaultConstruct(); - SliceParameter_default_instance_.DefaultConstruct(); - SoftmaxParameter_default_instance_.DefaultConstruct(); - TanHParameter_default_instance_.DefaultConstruct(); - TileParameter_default_instance_.DefaultConstruct(); - ThresholdParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - WindowDataParameter::_default_crop_mode_ = - new ::std::string("warp", 4); - WindowDataParameter_default_instance_.DefaultConstruct(); - SPPParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - V1LayerParameter_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - V0LayerParameter::_default_det_crop_mode_ = - new ::std::string("warp", 4); - V0LayerParameter_default_instance_.DefaultConstruct(); - PReLUParameter_default_instance_.DefaultConstruct(); - NormalizedBBox_default_instance_.DefaultConstruct(); - ROIPoolingParameter_default_instance_.DefaultConstruct(); - ProposalParameter_default_instance_.DefaultConstruct(); - PSROIPoolingParameter_default_instance_.DefaultConstruct(); - BlobShape_default_instance_.get_mutable()->InitAsDefaultInstance(); - BlobProto_default_instance_.get_mutable()->InitAsDefaultInstance(); - BlobProtoVector_default_instance_.get_mutable()->InitAsDefaultInstance(); - PermuteParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - NormalizeBBoxParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - PriorBoxParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - DetectionOutputParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - Datum_default_instance_.get_mutable()->InitAsDefaultInstance(); - FillerParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - NetParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - SolverParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - SolverState_default_instance_.get_mutable()->InitAsDefaultInstance(); - NetState_default_instance_.get_mutable()->InitAsDefaultInstance(); - NetStateRule_default_instance_.get_mutable()->InitAsDefaultInstance(); - ParamSpec_default_instance_.get_mutable()->InitAsDefaultInstance(); - LayerParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - TransformationParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - LossParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - AccuracyParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ArgMaxParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ConcatParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - BatchNormParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - BiasParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ContrastiveLossParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ConvolutionParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - CropParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - DataParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - NonMaximumSuppressionParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - SaveOutputParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - DropoutParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - DummyDataParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - EltwiseParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ELUParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - EmbedParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ExpParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - FlattenParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - HDF5DataParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - HDF5OutputParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - HingeLossParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ImageDataParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - InfogainLossParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - InnerProductParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - InputParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - LogParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - LRNParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - MemoryDataParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - MVNParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ParameterParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - PoolingParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - PowerParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - PythonParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - RecurrentParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ReductionParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ReLUParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ReshapeParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ScaleParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - SigmoidParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - SliceParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - SoftmaxParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - TanHParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - TileParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ThresholdParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - WindowDataParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - SPPParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - V1LayerParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - V0LayerParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - PReLUParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - NormalizedBBox_default_instance_.get_mutable()->InitAsDefaultInstance(); - ROIPoolingParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - ProposalParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); - PSROIPoolingParameter_default_instance_.get_mutable()->InitAsDefaultInstance(); -} - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_opencv_2dcaffe_2eproto_once_); -void protobuf_InitDefaults_opencv_2dcaffe_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_opencv_2dcaffe_2eproto_once_, - &protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl); -} -void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\022opencv-caffe.proto\022\014opencv_caffe\"\034\n\tBl" + "obShape\022\017\n\003dim\030\001 \003(\003B\002\020\001\"\224\002\n\tBlobProto\022&" + "\n\005shape\030\007 \001(\0132\027.opencv_caffe.BlobShape\022\020" + "\n\004data\030\005 \003(\002B\002\020\001\022\020\n\004diff\030\006 \003(\002B\002\020\001\022\027\n\013do" + "uble_data\030\010 \003(\001B\002\020\001\022\027\n\013double_diff\030\t \003(\001" + "B\002\020\001\022)\n\rraw_data_type\030\n \001(\0162\022.opencv_caf" + "fe.Type\022\024\n\010raw_data\030\014 \001(\014B\002\020\000\022\016\n\003num\030\001 \001" + "(\005:\0010\022\023\n\010channels\030\002 \001(\005:\0010\022\021\n\006height\030\003 \001" + "(\005:\0010\022\020\n\005width\030\004 \001(\005:\0010\"9\n\017BlobProtoVect" + "or\022&\n\005blobs\030\001 \003(\0132\027.opencv_caffe.BlobPro" + "to\"!\n\020PermuteParameter\022\r\n\005order\030\001 \003(\r\"\235\001" + "\n\026NormalizeBBoxParameter\022\034\n\016across_spati" + "al\030\001 \001(\010:\004true\0223\n\014scale_filler\030\002 \001(\0132\035.o" + "pencv_caffe.FillerParameter\022\034\n\016channel_s" + "hared\030\003 \001(\010:\004true\022\022\n\003eps\030\004 \001(\002:\0051e-10\"\346\002" + "\n\021PriorBoxParameter\022\020\n\010min_size\030\001 \001(\002\022\020\n" + "\010max_size\030\002 \001(\002\022\024\n\014aspect_ratio\030\003 \003(\002\022\022\n" + "\004flip\030\004 \001(\010:\004true\022\022\n\004clip\030\005 \001(\010:\004true\022\020\n" + "\010variance\030\006 \003(\002\022\020\n\010img_size\030\007 \001(\r\022\r\n\005img" + "_h\030\010 \001(\r\022\r\n\005img_w\030\t \001(\r\022\014\n\004step\030\n \001(\002\022\016\n" + "\006step_h\030\013 \001(\002\022\016\n\006step_w\030\014 \001(\002\022\023\n\006offset\030" + "\r \001(\002:\0030.5\022\020\n\010offset_h\030\016 \003(\002\022\020\n\010offset_w" + "\030\017 \003(\002\022\r\n\005width\030\020 \003(\002\022\016\n\006height\030\021 \003(\002\"\'\n" + "\010CodeType\022\n\n\006CORNER\020\001\022\017\n\013CENTER_SIZE\020\002\"\261" + "\003\n\030DetectionOutputParameter\022\023\n\013num_class" + "es\030\001 \001(\r\022\034\n\016share_location\030\002 \001(\010:\004true\022\036" + "\n\023background_label_id\030\003 \001(\005:\0010\022\?\n\tnms_pa" + "ram\030\004 \001(\0132,.opencv_caffe.NonMaximumSuppr" + "essionParameter\022<\n\021save_output_param\030\005 \001" + "(\0132!.opencv_caffe.SaveOutputParameter\022C\n" + "\tcode_type\030\006 \001(\0162(.opencv_caffe.PriorBox" + "Parameter.CodeType:\006CORNER\022)\n\032variance_e" + "ncoded_in_target\030\010 \001(\010:\005false\022\026\n\nkeep_to" + "p_k\030\007 \001(\005:\002-1\022\034\n\024confidence_threshold\030\t " + "\001(\002\022\035\n\017normalized_bbox\030\n \001(\010:\004true\"\201\001\n\005D" + "atum\022\020\n\010channels\030\001 \001(\005\022\016\n\006height\030\002 \001(\005\022\r" + "\n\005width\030\003 \001(\005\022\014\n\004data\030\004 \001(\014\022\r\n\005label\030\005 \001" + "(\005\022\022\n\nfloat_data\030\006 \003(\002\022\026\n\007encoded\030\007 \001(\010:" + "\005false\"\221\002\n\017FillerParameter\022\026\n\004type\030\001 \001(\t" + ":\010constant\022\020\n\005value\030\002 \001(\002:\0010\022\016\n\003min\030\003 \001(" + "\002:\0010\022\016\n\003max\030\004 \001(\002:\0011\022\017\n\004mean\030\005 \001(\002:\0010\022\016\n" + "\003std\030\006 \001(\002:\0011\022\022\n\006sparse\030\007 \001(\005:\002-1\022I\n\rvar" + "iance_norm\030\010 \001(\0162*.opencv_caffe.FillerPa" + "rameter.VarianceNorm:\006FAN_IN\"4\n\014Variance" + "Norm\022\n\n\006FAN_IN\020\000\022\013\n\007FAN_OUT\020\001\022\013\n\007AVERAGE" + "\020\002\"\252\002\n\014NetParameter\022\014\n\004name\030\001 \001(\t\022\r\n\005inp" + "ut\030\003 \003(\t\022,\n\013input_shape\030\010 \003(\0132\027.opencv_c" + "affe.BlobShape\022\021\n\tinput_dim\030\004 \003(\005\022\035\n\016for" + "ce_backward\030\005 \001(\010:\005false\022%\n\005state\030\006 \001(\0132" + "\026.opencv_caffe.NetState\022\031\n\ndebug_info\030\007 " + "\001(\010:\005false\022+\n\005layer\030d \003(\0132\034.opencv_caffe" + ".LayerParameter\022.\n\006layers\030\002 \003(\0132\036.opencv" + "_caffe.V1LayerParameter\"\332\n\n\017SolverParame" + "ter\022\013\n\003net\030\030 \001(\t\022-\n\tnet_param\030\031 \001(\0132\032.op" + "encv_caffe.NetParameter\022\021\n\ttrain_net\030\001 \001" + "(\t\022\020\n\010test_net\030\002 \003(\t\0223\n\017train_net_param\030" + "\025 \001(\0132\032.opencv_caffe.NetParameter\0222\n\016tes" + "t_net_param\030\026 \003(\0132\032.opencv_caffe.NetPara" + "meter\022+\n\013train_state\030\032 \001(\0132\026.opencv_caff" + "e.NetState\022*\n\ntest_state\030\033 \003(\0132\026.opencv_" + "caffe.NetState\022\021\n\ttest_iter\030\003 \003(\005\022\030\n\rtes" + "t_interval\030\004 \001(\005:\0010\022 \n\021test_compute_loss" + "\030\023 \001(\010:\005false\022!\n\023test_initialization\030 \001" + "(\010:\004true\022\017\n\007base_lr\030\005 \001(\002\022\017\n\007display\030\006 \001" + "(\005\022\027\n\014average_loss\030! \001(\005:\0011\022\020\n\010max_iter\030" + "\007 \001(\005\022\024\n\titer_size\030$ \001(\005:\0011\022\021\n\tlr_policy" + "\030\010 \001(\t\022\r\n\005gamma\030\t \001(\002\022\r\n\005power\030\n \001(\002\022\020\n\010" + "momentum\030\013 \001(\002\022\024\n\014weight_decay\030\014 \001(\002\022\037\n\023" + "regularization_type\030\035 \001(\t:\002L2\022\020\n\010stepsiz" + "e\030\r \001(\005\022\021\n\tstepvalue\030\" \003(\005\022\032\n\016clip_gradi" + "ents\030# \001(\002:\002-1\022\023\n\010snapshot\030\016 \001(\005:\0010\022\027\n\017s" + "napshot_prefix\030\017 \001(\t\022\034\n\rsnapshot_diff\030\020 " + "\001(\010:\005false\022R\n\017snapshot_format\030% \001(\0162,.op" + "encv_caffe.SolverParameter.SnapshotForma" + "t:\013BINARYPROTO\022B\n\013solver_mode\030\021 \001(\0162(.op" + "encv_caffe.SolverParameter.SolverMode:\003G" + "PU\022\024\n\tdevice_id\030\022 \001(\005:\0010\022\027\n\013random_seed\030" + "\024 \001(\003:\002-1\022\021\n\004type\030( \001(\t:\003SGD\022\024\n\005delta\030\037 " + "\001(\002:\0051e-08\022\030\n\tmomentum2\030\' \001(\002:\0050.999\022\027\n\t" + "rms_decay\030& \001(\002:\0040.99\022\031\n\ndebug_info\030\027 \001(" + "\010:\005false\022\"\n\024snapshot_after_train\030\034 \001(\010:\004" + "true\022B\n\013solver_type\030\036 \001(\0162(.opencv_caffe" + ".SolverParameter.SolverType:\003SGD\"+\n\016Snap" + "shotFormat\022\010\n\004HDF5\020\000\022\017\n\013BINARYPROTO\020\001\"\036\n" + "\nSolverMode\022\007\n\003CPU\020\000\022\007\n\003GPU\020\001\"U\n\nSolverT" + "ype\022\007\n\003SGD\020\000\022\014\n\010NESTEROV\020\001\022\013\n\007ADAGRAD\020\002\022" + "\013\n\007RMSPROP\020\003\022\014\n\010ADADELTA\020\004\022\010\n\004ADAM\020\005\"s\n\013" + "SolverState\022\014\n\004iter\030\001 \001(\005\022\023\n\013learned_net" + "\030\002 \001(\t\022(\n\007history\030\003 \003(\0132\027.opencv_caffe.B" + "lobProto\022\027\n\014current_step\030\004 \001(\005:\0010\"U\n\010Net" + "State\022(\n\005phase\030\001 \001(\0162\023.opencv_caffe.Phas" + "e:\004TEST\022\020\n\005level\030\002 \001(\005:\0010\022\r\n\005stage\030\003 \003(\t" + "\"z\n\014NetStateRule\022\"\n\005phase\030\001 \001(\0162\023.opencv" + "_caffe.Phase\022\021\n\tmin_level\030\002 \001(\005\022\021\n\tmax_l" + "evel\030\003 \001(\005\022\r\n\005stage\030\004 \003(\t\022\021\n\tnot_stage\030\005" + " \003(\t\"\252\001\n\tParamSpec\022\014\n\004name\030\001 \001(\t\0228\n\nshar" + "e_mode\030\002 \001(\0162$.opencv_caffe.ParamSpec.Di" + "mCheckMode\022\022\n\007lr_mult\030\003 \001(\002:\0011\022\025\n\ndecay_" + "mult\030\004 \001(\002:\0011\"*\n\014DimCheckMode\022\n\n\006STRICT\020" + "\000\022\016\n\nPERMISSIVE\020\001\"\243\032\n\016LayerParameter\022\014\n\004" + "name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\016\n\006bottom\030\003 \003(\t" + "\022\013\n\003top\030\004 \003(\t\022\"\n\005phase\030\n \001(\0162\023.opencv_ca" + "ffe.Phase\022\023\n\013loss_weight\030\005 \003(\002\022&\n\005param\030" + "\006 \003(\0132\027.opencv_caffe.ParamSpec\022&\n\005blobs\030" + "\007 \003(\0132\027.opencv_caffe.BlobProto\022\026\n\016propag" + "ate_down\030\013 \003(\010\022+\n\007include\030\010 \003(\0132\032.opencv" + "_caffe.NetStateRule\022+\n\007exclude\030\t \003(\0132\032.o" + "pencv_caffe.NetStateRule\022>\n\017transform_pa" + "ram\030d \001(\0132%.opencv_caffe.TransformationP" + "arameter\022/\n\nloss_param\030e \001(\0132\033.opencv_ca" + "ffe.LossParameter\0227\n\016accuracy_param\030f \001(" + "\0132\037.opencv_caffe.AccuracyParameter\0223\n\014ar" + "gmax_param\030g \001(\0132\035.opencv_caffe.ArgMaxPa" + "rameter\022;\n\020batch_norm_param\030\213\001 \001(\0132 .ope" + "ncv_caffe.BatchNormParameter\0220\n\nbias_par" + "am\030\215\001 \001(\0132\033.opencv_caffe.BiasParameter\0223" + "\n\014concat_param\030h \001(\0132\035.opencv_caffe.Conc" + "atParameter\022F\n\026contrastive_loss_param\030i " + "\001(\0132&.opencv_caffe.ContrastiveLossParame" + "ter\022=\n\021convolution_param\030j \001(\0132\".opencv_" + "caffe.ConvolutionParameter\0220\n\ncrop_param" + "\030\220\001 \001(\0132\033.opencv_caffe.CropParameter\022/\n\n" + "data_param\030k \001(\0132\033.opencv_caffe.DataPara" + "meter\022G\n\026detection_output_param\030\223\001 \001(\0132&" + ".opencv_caffe.DetectionOutputParameter\0225" + "\n\rdropout_param\030l \001(\0132\036.opencv_caffe.Dro" + "poutParameter\022:\n\020dummy_data_param\030m \001(\0132" + " .opencv_caffe.DummyDataParameter\0225\n\relt" + "wise_param\030n \001(\0132\036.opencv_caffe.EltwiseP" + "arameter\022.\n\telu_param\030\214\001 \001(\0132\032.opencv_ca" + "ffe.ELUParameter\0222\n\013embed_param\030\211\001 \001(\0132\034" + ".opencv_caffe.EmbedParameter\022-\n\texp_para" + "m\030o \001(\0132\032.opencv_caffe.ExpParameter\0226\n\rf" + "latten_param\030\207\001 \001(\0132\036.opencv_caffe.Flatt" + "enParameter\0228\n\017hdf5_data_param\030p \001(\0132\037.o" + "pencv_caffe.HDF5DataParameter\022<\n\021hdf5_ou" + "tput_param\030q \001(\0132!.opencv_caffe.HDF5Outp" + "utParameter\022:\n\020hinge_loss_param\030r \001(\0132 ." + "opencv_caffe.HingeLossParameter\022:\n\020image" + "_data_param\030s \001(\0132 .opencv_caffe.ImageDa" + "taParameter\022@\n\023infogain_loss_param\030t \001(\013" + "2#.opencv_caffe.InfogainLossParameter\022@\n" + "\023inner_product_param\030u \001(\0132#.opencv_caff" + "e.InnerProductParameter\0222\n\013input_param\030\217" + "\001 \001(\0132\034.opencv_caffe.InputParameter\022.\n\tl" + "og_param\030\206\001 \001(\0132\032.opencv_caffe.LogParame" + "ter\022-\n\tlrn_param\030v \001(\0132\032.opencv_caffe.LR" + "NParameter\022<\n\021memory_data_param\030w \001(\0132!." + "opencv_caffe.MemoryDataParameter\022-\n\tmvn_" + "param\030x \001(\0132\032.opencv_caffe.MVNParameter\022" + "9\n\nnorm_param\030\225\001 \001(\0132$.opencv_caffe.Norm" + "alizeBBoxParameter\0226\n\rpermute_param\030\224\001 \001" + "(\0132\036.opencv_caffe.PermuteParameter\022:\n\017pa" + "rameter_param\030\221\001 \001(\0132 .opencv_caffe.Para" + "meterParameter\0225\n\rpooling_param\030y \001(\0132\036." + "opencv_caffe.PoolingParameter\0221\n\013power_p" + "aram\030z \001(\0132\034.opencv_caffe.PowerParameter" + "\0222\n\013prelu_param\030\203\001 \001(\0132\034.opencv_caffe.PR" + "eLUParameter\0229\n\017prior_box_param\030\226\001 \001(\0132\037" + ".opencv_caffe.PriorBoxParameter\0228\n\016propo" + "sal_param\030\311\001 \001(\0132\037.opencv_caffe.Proposal" + "Parameter\022A\n\023psroi_pooling_param\030\222N \001(\0132" + "#.opencv_caffe.PSROIPoolingParameter\0224\n\014" + "python_param\030\202\001 \001(\0132\035.opencv_caffe.Pytho" + "nParameter\022:\n\017recurrent_param\030\222\001 \001(\0132 .o" + "pencv_caffe.RecurrentParameter\022:\n\017reduct" + "ion_param\030\210\001 \001(\0132 .opencv_caffe.Reductio" + "nParameter\022/\n\nrelu_param\030{ \001(\0132\033.opencv_" + "caffe.ReLUParameter\0226\n\rreshape_param\030\205\001 " + "\001(\0132\036.opencv_caffe.ReshapeParameter\022\?\n\021r" + "oi_pooling_param\030\327\307\370\003 \001(\0132!.opencv_caffe" + ".ROIPoolingParameter\0222\n\013scale_param\030\216\001 \001" + "(\0132\034.opencv_caffe.ScaleParameter\0225\n\rsigm" + "oid_param\030| \001(\0132\036.opencv_caffe.SigmoidPa" + "rameter\0225\n\rsoftmax_param\030} \001(\0132\036.opencv_" + "caffe.SoftmaxParameter\022.\n\tspp_param\030\204\001 \001" + "(\0132\032.opencv_caffe.SPPParameter\0221\n\013slice_" + "param\030~ \001(\0132\034.opencv_caffe.SliceParamete" + "r\022/\n\ntanh_param\030\177 \001(\0132\033.opencv_caffe.Tan" + "HParameter\022:\n\017threshold_param\030\200\001 \001(\0132 .o" + "pencv_caffe.ThresholdParameter\0220\n\ntile_p" + "aram\030\212\001 \001(\0132\033.opencv_caffe.TileParameter" + "\022=\n\021window_data_param\030\201\001 \001(\0132!.opencv_ca" + "ffe.WindowDataParameter\"\266\001\n\027Transformati" + "onParameter\022\020\n\005scale\030\001 \001(\002:\0011\022\025\n\006mirror\030" + "\002 \001(\010:\005false\022\024\n\tcrop_size\030\003 \001(\r:\0010\022\021\n\tme" + "an_file\030\004 \001(\t\022\022\n\nmean_value\030\005 \003(\002\022\032\n\013for" + "ce_color\030\006 \001(\010:\005false\022\031\n\nforce_gray\030\007 \001(" + "\010:\005false\"\311\001\n\rLossParameter\022\024\n\014ignore_lab" + "el\030\001 \001(\005\022K\n\rnormalization\030\003 \001(\0162-.opencv" + "_caffe.LossParameter.NormalizationMode:\005" + "VALID\022\021\n\tnormalize\030\002 \001(\010\"B\n\021Normalizatio" + "nMode\022\010\n\004FULL\020\000\022\t\n\005VALID\020\001\022\016\n\nBATCH_SIZE" + "\020\002\022\010\n\004NONE\020\003\"L\n\021AccuracyParameter\022\020\n\005top" + "_k\030\001 \001(\r:\0011\022\017\n\004axis\030\002 \001(\005:\0011\022\024\n\014ignore_l" + "abel\030\003 \001(\005\"M\n\017ArgMaxParameter\022\032\n\013out_max" + "_val\030\001 \001(\010:\005false\022\020\n\005top_k\030\002 \001(\r:\0011\022\014\n\004a" + "xis\030\003 \001(\005\"9\n\017ConcatParameter\022\017\n\004axis\030\002 \001" + "(\005:\0011\022\025\n\nconcat_dim\030\001 \001(\r:\0011\"j\n\022BatchNor" + "mParameter\022\030\n\020use_global_stats\030\001 \001(\010\022&\n\027" + "moving_average_fraction\030\002 \001(\002:\0050.999\022\022\n\003" + "eps\030\003 \001(\002:\0051e-05\"d\n\rBiasParameter\022\017\n\004axi" + "s\030\001 \001(\005:\0011\022\023\n\010num_axes\030\002 \001(\005:\0011\022-\n\006fille" + "r\030\003 \001(\0132\035.opencv_caffe.FillerParameter\"L" + "\n\030ContrastiveLossParameter\022\021\n\006margin\030\001 \001" + "(\002:\0011\022\035\n\016legacy_version\030\002 \001(\010:\005false\"\221\004\n" + "\024ConvolutionParameter\022\022\n\nnum_output\030\001 \001(" + "\r\022\027\n\tbias_term\030\002 \001(\010:\004true\022\013\n\003pad\030\003 \003(\r\022" + "\023\n\013kernel_size\030\004 \003(\r\022\016\n\006stride\030\006 \003(\r\022\020\n\010" + "dilation\030\022 \003(\r\022\020\n\005pad_h\030\t \001(\r:\0010\022\020\n\005pad_" + "w\030\n \001(\r:\0010\022\020\n\010kernel_h\030\013 \001(\r\022\020\n\010kernel_w" + "\030\014 \001(\r\022\020\n\010stride_h\030\r \001(\r\022\020\n\010stride_w\030\016 \001" + "(\r\022\020\n\005group\030\005 \001(\r:\0011\0224\n\rweight_filler\030\007 " + "\001(\0132\035.opencv_caffe.FillerParameter\0222\n\013bi" + "as_filler\030\010 \001(\0132\035.opencv_caffe.FillerPar" + "ameter\022B\n\006engine\030\017 \001(\0162).opencv_caffe.Co" + "nvolutionParameter.Engine:\007DEFAULT\022\017\n\004ax" + "is\030\020 \001(\005:\0011\022\036\n\017force_nd_im2col\030\021 \001(\010:\005fa" + "lse\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n" + "\005CUDNN\020\002\"0\n\rCropParameter\022\017\n\004axis\030\001 \001(\005:" + "\0012\022\016\n\006offset\030\002 \003(\r\"\253\002\n\rDataParameter\022\016\n\006" + "source\030\001 \001(\t\022\022\n\nbatch_size\030\004 \001(\r\022\024\n\trand" + "_skip\030\007 \001(\r:\0010\0228\n\007backend\030\010 \001(\0162\036.opencv" + "_caffe.DataParameter.DB:\007LEVELDB\022\020\n\005scal" + "e\030\002 \001(\002:\0011\022\021\n\tmean_file\030\003 \001(\t\022\024\n\tcrop_si" + "ze\030\005 \001(\r:\0010\022\025\n\006mirror\030\006 \001(\010:\005false\022\"\n\023fo" + "rce_encoded_color\030\t \001(\010:\005false\022\023\n\010prefet" + "ch\030\n \001(\r:\0014\"\033\n\002DB\022\013\n\007LEVELDB\020\000\022\010\n\004LMDB\020\001" + "\"[\n\036NonMaximumSuppressionParameter\022\032\n\rnm" + "s_threshold\030\001 \001(\002:\0030.3\022\r\n\005top_k\030\002 \001(\005\022\016\n" + "\003eta\030\003 \001(\002:\0011\"\252\001\n\023SaveOutputParameter\022\030\n" + "\020output_directory\030\001 \001(\t\022\032\n\022output_name_p" + "refix\030\002 \001(\t\022\025\n\routput_format\030\003 \001(\t\022\026\n\016la" + "bel_map_file\030\004 \001(\t\022\026\n\016name_size_file\030\005 \001" + "(\t\022\026\n\016num_test_image\030\006 \001(\r\"I\n\020DropoutPar" + "ameter\022\032\n\rdropout_ratio\030\001 \001(\002:\0030.5\022\031\n\013sc" + "ale_train\030\002 \001(\010:\004true\"\256\001\n\022DummyDataParam" + "eter\0222\n\013data_filler\030\001 \003(\0132\035.opencv_caffe" + ".FillerParameter\022&\n\005shape\030\006 \003(\0132\027.opencv" + "_caffe.BlobShape\022\013\n\003num\030\002 \003(\r\022\020\n\010channel" + "s\030\003 \003(\r\022\016\n\006height\030\004 \003(\r\022\r\n\005width\030\005 \003(\r\"\254" + "\001\n\020EltwiseParameter\022@\n\toperation\030\001 \001(\0162(" + ".opencv_caffe.EltwiseParameter.EltwiseOp" + ":\003SUM\022\r\n\005coeff\030\002 \003(\002\022\036\n\020stable_prod_grad" + "\030\003 \001(\010:\004true\"\'\n\tEltwiseOp\022\010\n\004PROD\020\000\022\007\n\003S" + "UM\020\001\022\007\n\003MAX\020\002\" \n\014ELUParameter\022\020\n\005alpha\030\001" + " \001(\002:\0011\"\272\001\n\016EmbedParameter\022\022\n\nnum_output" + "\030\001 \001(\r\022\021\n\tinput_dim\030\002 \001(\r\022\027\n\tbias_term\030\003" + " \001(\010:\004true\0224\n\rweight_filler\030\004 \001(\0132\035.open" + "cv_caffe.FillerParameter\0222\n\013bias_filler\030" + "\005 \001(\0132\035.opencv_caffe.FillerParameter\"D\n\014" + "ExpParameter\022\020\n\004base\030\001 \001(\002:\002-1\022\020\n\005scale\030" + "\002 \001(\002:\0011\022\020\n\005shift\030\003 \001(\002:\0010\"9\n\020FlattenPar" + "ameter\022\017\n\004axis\030\001 \001(\005:\0011\022\024\n\010end_axis\030\002 \001(" + "\005:\002-1\"O\n\021HDF5DataParameter\022\016\n\006source\030\001 \001" + "(\t\022\022\n\nbatch_size\030\002 \001(\r\022\026\n\007shuffle\030\003 \001(\010:" + "\005false\"(\n\023HDF5OutputParameter\022\021\n\tfile_na" + "me\030\001 \001(\t\"e\n\022HingeLossParameter\0227\n\004norm\030\001" + " \001(\0162%.opencv_caffe.HingeLossParameter.N" + "orm:\002L1\"\026\n\004Norm\022\006\n\002L1\020\001\022\006\n\002L2\020\002\"\227\002\n\022Imag" + "eDataParameter\022\016\n\006source\030\001 \001(\t\022\025\n\nbatch_" + "size\030\004 \001(\r:\0011\022\024\n\trand_skip\030\007 \001(\r:\0010\022\026\n\007s" + "huffle\030\010 \001(\010:\005false\022\025\n\nnew_height\030\t \001(\r:" + "\0010\022\024\n\tnew_width\030\n \001(\r:\0010\022\026\n\010is_color\030\013 \001" + "(\010:\004true\022\020\n\005scale\030\002 \001(\002:\0011\022\021\n\tmean_file\030" + "\003 \001(\t\022\024\n\tcrop_size\030\005 \001(\r:\0010\022\025\n\006mirror\030\006 " + "\001(\010:\005false\022\025\n\013root_folder\030\014 \001(\t:\000\"\'\n\025Inf" + "ogainLossParameter\022\016\n\006source\030\001 \001(\t\"\331\001\n\025I" + "nnerProductParameter\022\022\n\nnum_output\030\001 \001(\r" + "\022\027\n\tbias_term\030\002 \001(\010:\004true\0224\n\rweight_fill" + "er\030\003 \001(\0132\035.opencv_caffe.FillerParameter\022" + "2\n\013bias_filler\030\004 \001(\0132\035.opencv_caffe.Fill" + "erParameter\022\017\n\004axis\030\005 \001(\005:\0011\022\030\n\ttranspos" + "e\030\006 \001(\010:\005false\"8\n\016InputParameter\022&\n\005shap" + "e\030\001 \003(\0132\027.opencv_caffe.BlobShape\"D\n\014LogP" + "arameter\022\020\n\004base\030\001 \001(\002:\002-1\022\020\n\005scale\030\002 \001(" + "\002:\0011\022\020\n\005shift\030\003 \001(\002:\0010\"\306\002\n\014LRNParameter\022" + "\025\n\nlocal_size\030\001 \001(\r:\0015\022\020\n\005alpha\030\002 \001(\002:\0011" + "\022\022\n\004beta\030\003 \001(\002:\0040.75\022K\n\013norm_region\030\004 \001(" + "\0162%.opencv_caffe.LRNParameter.NormRegion" + ":\017ACROSS_CHANNELS\022\014\n\001k\030\005 \001(\002:\0011\022:\n\006engin" + "e\030\006 \001(\0162!.opencv_caffe.LRNParameter.Engi" + "ne:\007DEFAULT\"5\n\nNormRegion\022\023\n\017ACROSS_CHAN" + "NELS\020\000\022\022\n\016WITHIN_CHANNEL\020\001\"+\n\006Engine\022\013\n\007" + "DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"Z\n\023Memor" + "yDataParameter\022\022\n\nbatch_size\030\001 \001(\r\022\020\n\010ch" + "annels\030\002 \001(\r\022\016\n\006height\030\003 \001(\r\022\r\n\005width\030\004 " + "\001(\r\"d\n\014MVNParameter\022 \n\022normalize_varianc" + "e\030\001 \001(\010:\004true\022\036\n\017across_channels\030\002 \001(\010:\005" + "false\022\022\n\003eps\030\003 \001(\002:\0051e-09\"<\n\022ParameterPa" + "rameter\022&\n\005shape\030\001 \001(\0132\027.opencv_caffe.Bl" + "obShape\"\311\003\n\020PoolingParameter\022<\n\004pool\030\001 \001" + "(\0162).opencv_caffe.PoolingParameter.PoolM" + "ethod:\003MAX\022\016\n\003pad\030\004 \001(\r:\0010\022\020\n\005pad_h\030\t \001(" + "\r:\0010\022\020\n\005pad_w\030\n \001(\r:\0010\022\023\n\013kernel_size\030\002 " + "\001(\r\022\020\n\010kernel_h\030\005 \001(\r\022\020\n\010kernel_w\030\006 \001(\r\022" + "\021\n\006stride\030\003 \001(\r:\0011\022\020\n\010stride_h\030\007 \001(\r\022\020\n\010" + "stride_w\030\010 \001(\r\022>\n\006engine\030\013 \001(\0162%.opencv_" + "caffe.PoolingParameter.Engine:\007DEFAULT\022\035" + "\n\016global_pooling\030\014 \001(\010:\005false\022\027\n\tceil_mo" + "de\030\r \001(\010:\004true\".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n" + "\003AVE\020\001\022\016\n\nSTOCHASTIC\020\002\"+\n\006Engine\022\013\n\007DEFA" + "ULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"F\n\016PowerPara" + "meter\022\020\n\005power\030\001 \001(\002:\0011\022\020\n\005scale\030\002 \001(\002:\001" + "1\022\020\n\005shift\030\003 \001(\002:\0010\"g\n\017PythonParameter\022\016" + "\n\006module\030\001 \001(\t\022\r\n\005layer\030\002 \001(\t\022\023\n\tparam_s" + "tr\030\003 \001(\t:\000\022 \n\021share_in_parallel\030\004 \001(\010:\005f" + "alse\"\316\001\n\022RecurrentParameter\022\025\n\nnum_outpu" + "t\030\001 \001(\r:\0010\0224\n\rweight_filler\030\002 \001(\0132\035.open" + "cv_caffe.FillerParameter\0222\n\013bias_filler\030" + "\003 \001(\0132\035.opencv_caffe.FillerParameter\022\031\n\n" + "debug_info\030\004 \001(\010:\005false\022\034\n\rexpose_hidden" + "\030\005 \001(\010:\005false\"\264\001\n\022ReductionParameter\022D\n\t" + "operation\030\001 \001(\0162,.opencv_caffe.Reduction" + "Parameter.ReductionOp:\003SUM\022\017\n\004axis\030\002 \001(\005" + ":\0010\022\020\n\005coeff\030\003 \001(\002:\0011\"5\n\013ReductionOp\022\007\n\003" + "SUM\020\001\022\010\n\004ASUM\020\002\022\t\n\005SUMSQ\020\003\022\010\n\004MEAN\020\004\"\224\001\n" + "\rReLUParameter\022\031\n\016negative_slope\030\001 \001(\002:\001" + "0\022;\n\006engine\030\002 \001(\0162\".opencv_caffe.ReLUPar" + "ameter.Engine:\007DEFAULT\"+\n\006Engine\022\013\n\007DEFA" + "ULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"a\n\020ReshapePa" + "rameter\022&\n\005shape\030\001 \001(\0132\027.opencv_caffe.Bl" + "obShape\022\017\n\004axis\030\002 \001(\005:\0010\022\024\n\010num_axes\030\003 \001" + "(\005:\002-1\"\263\001\n\016ScaleParameter\022\017\n\004axis\030\001 \001(\005:" + "\0011\022\023\n\010num_axes\030\002 \001(\005:\0011\022-\n\006filler\030\003 \001(\0132" + "\035.opencv_caffe.FillerParameter\022\030\n\tbias_t" + "erm\030\004 \001(\010:\005false\0222\n\013bias_filler\030\005 \001(\0132\035." + "opencv_caffe.FillerParameter\"\177\n\020SigmoidP" + "arameter\022>\n\006engine\030\001 \001(\0162%.opencv_caffe." + "SigmoidParameter.Engine:\007DEFAULT\"+\n\006Engi" + "ne\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"L\n" + "\016SliceParameter\022\017\n\004axis\030\003 \001(\005:\0011\022\023\n\013slic" + "e_point\030\002 \003(\r\022\024\n\tslice_dim\030\001 \001(\r:\0011\"\220\001\n\020" + "SoftmaxParameter\022>\n\006engine\030\001 \001(\0162%.openc" + "v_caffe.SoftmaxParameter.Engine:\007DEFAULT" + "\022\017\n\004axis\030\002 \001(\005:\0011\"+\n\006Engine\022\013\n\007DEFAULT\020\000" + "\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"y\n\rTanHParameter\022" + ";\n\006engine\030\001 \001(\0162\".opencv_caffe.TanHParam" + "eter.Engine:\007DEFAULT\"+\n\006Engine\022\013\n\007DEFAUL" + "T\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"/\n\rTileParamet" + "er\022\017\n\004axis\030\001 \001(\005:\0011\022\r\n\005tiles\030\002 \001(\005\"*\n\022Th" + "resholdParameter\022\024\n\tthreshold\030\001 \001(\002:\0010\"\301" + "\002\n\023WindowDataParameter\022\016\n\006source\030\001 \001(\t\022\020" + "\n\005scale\030\002 \001(\002:\0011\022\021\n\tmean_file\030\003 \001(\t\022\022\n\nb" + "atch_size\030\004 \001(\r\022\024\n\tcrop_size\030\005 \001(\r:\0010\022\025\n" + "\006mirror\030\006 \001(\010:\005false\022\031\n\014fg_threshold\030\007 \001" + "(\002:\0030.5\022\031\n\014bg_threshold\030\010 \001(\002:\0030.5\022\031\n\013fg" + "_fraction\030\t \001(\002:\0040.25\022\026\n\013context_pad\030\n \001" + "(\r:\0010\022\027\n\tcrop_mode\030\013 \001(\t:\004warp\022\033\n\014cache_" + "images\030\014 \001(\010:\005false\022\025\n\013root_folder\030\r \001(\t" + ":\000\"\371\001\n\014SPPParameter\022\026\n\016pyramid_height\030\001 " + "\001(\r\0228\n\004pool\030\002 \001(\0162%.opencv_caffe.SPPPara" + "meter.PoolMethod:\003MAX\022:\n\006engine\030\006 \001(\0162!." + "opencv_caffe.SPPParameter.Engine:\007DEFAUL" + "T\".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001\022\016\n\nSTO" + "CHASTIC\020\002\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFF" + "E\020\001\022\t\n\005CUDNN\020\002\"\334\025\n\020V1LayerParameter\022\016\n\006b" + "ottom\030\002 \003(\t\022\013\n\003top\030\003 \003(\t\022\014\n\004name\030\004 \001(\t\022+" + "\n\007include\030 \003(\0132\032.opencv_caffe.NetStateR" + "ule\022+\n\007exclude\030! \003(\0132\032.opencv_caffe.NetS" + "tateRule\0226\n\004type\030\005 \001(\0162(.opencv_caffe.V1" + "LayerParameter.LayerType\022&\n\005blobs\030\006 \003(\0132" + "\027.opencv_caffe.BlobProto\022\016\n\005param\030\351\007 \003(\t" + "\022E\n\017blob_share_mode\030\352\007 \003(\0162+.opencv_caff" + "e.V1LayerParameter.DimCheckMode\022\020\n\010blobs" + "_lr\030\007 \003(\002\022\024\n\014weight_decay\030\010 \003(\002\022\023\n\013loss_" + "weight\030# \003(\002\0227\n\016accuracy_param\030\033 \001(\0132\037.o" + "pencv_caffe.AccuracyParameter\0223\n\014argmax_" + "param\030\027 \001(\0132\035.opencv_caffe.ArgMaxParamet" + "er\0223\n\014concat_param\030\t \001(\0132\035.opencv_caffe." + "ConcatParameter\022F\n\026contrastive_loss_para" + "m\030( \001(\0132&.opencv_caffe.ContrastiveLossPa" + "rameter\022=\n\021convolution_param\030\n \001(\0132\".ope" + "ncv_caffe.ConvolutionParameter\022/\n\ndata_p" + "aram\030\013 \001(\0132\033.opencv_caffe.DataParameter\022" + "5\n\rdropout_param\030\014 \001(\0132\036.opencv_caffe.Dr" + "opoutParameter\022:\n\020dummy_data_param\030\032 \001(\013" + "2 .opencv_caffe.DummyDataParameter\0225\n\rel" + "twise_param\030\030 \001(\0132\036.opencv_caffe.Eltwise" + "Parameter\022-\n\texp_param\030) \001(\0132\032.opencv_ca" + "ffe.ExpParameter\0228\n\017hdf5_data_param\030\r \001(" + "\0132\037.opencv_caffe.HDF5DataParameter\022<\n\021hd" + "f5_output_param\030\016 \001(\0132!.opencv_caffe.HDF" + "5OutputParameter\022:\n\020hinge_loss_param\030\035 \001" + "(\0132 .opencv_caffe.HingeLossParameter\022:\n\020" + "image_data_param\030\017 \001(\0132 .opencv_caffe.Im" + "ageDataParameter\022@\n\023infogain_loss_param\030" + "\020 \001(\0132#.opencv_caffe.InfogainLossParamet" + "er\022@\n\023inner_product_param\030\021 \001(\0132#.opencv" + "_caffe.InnerProductParameter\022-\n\tlrn_para" + "m\030\022 \001(\0132\032.opencv_caffe.LRNParameter\022<\n\021m" + "emory_data_param\030\026 \001(\0132!.opencv_caffe.Me" + "moryDataParameter\022-\n\tmvn_param\030\" \001(\0132\032.o" + "pencv_caffe.MVNParameter\0225\n\rpooling_para" + "m\030\023 \001(\0132\036.opencv_caffe.PoolingParameter\022" + "1\n\013power_param\030\025 \001(\0132\034.opencv_caffe.Powe" + "rParameter\022/\n\nrelu_param\030\036 \001(\0132\033.opencv_" + "caffe.ReLUParameter\0225\n\rsigmoid_param\030& \001" + "(\0132\036.opencv_caffe.SigmoidParameter\0225\n\rso" + "ftmax_param\030\' \001(\0132\036.opencv_caffe.Softmax" + "Parameter\0221\n\013slice_param\030\037 \001(\0132\034.opencv_" + "caffe.SliceParameter\022/\n\ntanh_param\030% \001(\013" + "2\033.opencv_caffe.TanHParameter\0229\n\017thresho" + "ld_param\030\031 \001(\0132 .opencv_caffe.ThresholdP" + "arameter\022<\n\021window_data_param\030\024 \001(\0132!.op" + "encv_caffe.WindowDataParameter\022>\n\017transf" + "orm_param\030$ \001(\0132%.opencv_caffe.Transform" + "ationParameter\022/\n\nloss_param\030* \001(\0132\033.ope" + "ncv_caffe.LossParameter\022-\n\005layer\030\001 \001(\0132\036" + ".opencv_caffe.V0LayerParameter\"\330\004\n\tLayer" + "Type\022\010\n\004NONE\020\000\022\n\n\006ABSVAL\020#\022\014\n\010ACCURACY\020\001" + "\022\n\n\006ARGMAX\020\036\022\010\n\004BNLL\020\002\022\n\n\006CONCAT\020\003\022\024\n\020CO" + "NTRASTIVE_LOSS\020%\022\017\n\013CONVOLUTION\020\004\022\010\n\004DAT" + "A\020\005\022\021\n\rDECONVOLUTION\020\'\022\013\n\007DROPOUT\020\006\022\016\n\nD" + "UMMY_DATA\020 \022\022\n\016EUCLIDEAN_LOSS\020\007\022\013\n\007ELTWI" + "SE\020\031\022\007\n\003EXP\020&\022\013\n\007FLATTEN\020\010\022\r\n\tHDF5_DATA\020" + "\t\022\017\n\013HDF5_OUTPUT\020\n\022\016\n\nHINGE_LOSS\020\034\022\n\n\006IM" + "2COL\020\013\022\016\n\nIMAGE_DATA\020\014\022\021\n\rINFOGAIN_LOSS\020" + "\r\022\021\n\rINNER_PRODUCT\020\016\022\007\n\003LRN\020\017\022\017\n\013MEMORY_" + "DATA\020\035\022\035\n\031MULTINOMIAL_LOGISTIC_LOSS\020\020\022\007\n" + "\003MVN\020\"\022\013\n\007POOLING\020\021\022\t\n\005POWER\020\032\022\010\n\004RELU\020\022" + "\022\013\n\007SIGMOID\020\023\022\036\n\032SIGMOID_CROSS_ENTROPY_L" + "OSS\020\033\022\013\n\007SILENCE\020$\022\013\n\007SOFTMAX\020\024\022\020\n\014SOFTM" + "AX_LOSS\020\025\022\t\n\005SPLIT\020\026\022\t\n\005SLICE\020!\022\010\n\004TANH\020" + "\027\022\017\n\013WINDOW_DATA\020\030\022\r\n\tTHRESHOLD\020\037\"*\n\014Dim" + "CheckMode\022\n\n\006STRICT\020\000\022\016\n\nPERMISSIVE\020\001\"\240\010" + "\n\020V0LayerParameter\022\014\n\004name\030\001 \001(\t\022\014\n\004type" + "\030\002 \001(\t\022\022\n\nnum_output\030\003 \001(\r\022\026\n\010biasterm\030\004" + " \001(\010:\004true\0224\n\rweight_filler\030\005 \001(\0132\035.open" + "cv_caffe.FillerParameter\0222\n\013bias_filler\030" + "\006 \001(\0132\035.opencv_caffe.FillerParameter\022\016\n\003" + "pad\030\007 \001(\r:\0010\022\022\n\nkernelsize\030\010 \001(\r\022\020\n\005grou" + "p\030\t \001(\r:\0011\022\021\n\006stride\030\n \001(\r:\0011\022<\n\004pool\030\013 " + "\001(\0162).opencv_caffe.V0LayerParameter.Pool" + "Method:\003MAX\022\032\n\rdropout_ratio\030\014 \001(\002:\0030.5\022" + "\025\n\nlocal_size\030\r \001(\r:\0015\022\020\n\005alpha\030\016 \001(\002:\0011" + "\022\022\n\004beta\030\017 \001(\002:\0040.75\022\014\n\001k\030\026 \001(\002:\0011\022\016\n\006so" + "urce\030\020 \001(\t\022\020\n\005scale\030\021 \001(\002:\0011\022\020\n\010meanfile" + "\030\022 \001(\t\022\021\n\tbatchsize\030\023 \001(\r\022\023\n\010cropsize\030\024 " + "\001(\r:\0010\022\025\n\006mirror\030\025 \001(\010:\005false\022&\n\005blobs\0302" + " \003(\0132\027.opencv_caffe.BlobProto\022\020\n\010blobs_l" + "r\0303 \003(\002\022\024\n\014weight_decay\0304 \003(\002\022\024\n\trand_sk" + "ip\0305 \001(\r:\0010\022\035\n\020det_fg_threshold\0306 \001(\002:\0030" + ".5\022\035\n\020det_bg_threshold\0307 \001(\002:\0030.5\022\035\n\017det" + "_fg_fraction\0308 \001(\002:\0040.25\022\032\n\017det_context_" + "pad\030: \001(\r:\0010\022\033\n\rdet_crop_mode\030; \001(\t:\004war" + "p\022\022\n\007new_num\030< \001(\005:\0010\022\027\n\014new_channels\030= " + "\001(\005:\0010\022\025\n\nnew_height\030> \001(\005:\0010\022\024\n\tnew_wid" + "th\030\? \001(\005:\0010\022\035\n\016shuffle_images\030@ \001(\010:\005fal" + "se\022\025\n\nconcat_dim\030A \001(\r:\0011\022=\n\021hdf5_output" + "_param\030\351\007 \001(\0132!.opencv_caffe.HDF5OutputP" + "arameter\".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001" + "\022\016\n\nSTOCHASTIC\020\002\"^\n\016PReLUParameter\022-\n\006fi" + "ller\030\001 \001(\0132\035.opencv_caffe.FillerParamete" + "r\022\035\n\016channel_shared\030\002 \001(\010:\005false\"\207\001\n\016Nor" + "malizedBBox\022\014\n\004xmin\030\001 \001(\002\022\014\n\004ymin\030\002 \001(\002\022" + "\014\n\004xmax\030\003 \001(\002\022\014\n\004ymax\030\004 \001(\002\022\r\n\005label\030\005 \001" + "(\005\022\021\n\tdifficult\030\006 \001(\010\022\r\n\005score\030\007 \001(\002\022\014\n\004" + "size\030\010 \001(\002\"Y\n\023ROIPoolingParameter\022\023\n\010poo" + "led_h\030\001 \001(\r:\0010\022\023\n\010pooled_w\030\002 \001(\r:\0010\022\030\n\rs" + "patial_scale\030\003 \001(\002:\0011\"\310\001\n\021ProposalParame" + "ter\022\027\n\013feat_stride\030\001 \001(\r:\00216\022\025\n\tbase_siz" + "e\030\002 \001(\r:\00216\022\024\n\010min_size\030\003 \001(\r:\00216\022\r\n\005rat" + "io\030\004 \003(\002\022\r\n\005scale\030\005 \003(\002\022\032\n\014pre_nms_topn\030" + "\006 \001(\r:\0046000\022\032\n\rpost_nms_topn\030\007 \001(\r:\003300\022" + "\027\n\nnms_thresh\030\010 \001(\002:\0030.7\"V\n\025PSROIPooling" + "Parameter\022\025\n\rspatial_scale\030\001 \002(\002\022\022\n\noutp" + "ut_dim\030\002 \002(\005\022\022\n\ngroup_size\030\003 \002(\005*=\n\004Type" + "\022\n\n\006DOUBLE\020\000\022\t\n\005FLOAT\020\001\022\013\n\007FLOAT16\020\002\022\007\n\003" + "INT\020\003\022\010\n\004UINT\020\004*\034\n\005Phase\022\t\n\005TRAIN\020\000\022\010\n\004T" + "EST\020\001" + }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\022opencv-caffe.proto\022\014opencv_caffe\"\034\n\tBl" - "obShape\022\017\n\003dim\030\001 \003(\003B\002\020\001\"\224\002\n\tBlobProto\022&" - "\n\005shape\030\007 \001(\0132\027.opencv_caffe.BlobShape\022\020" - "\n\004data\030\005 \003(\002B\002\020\001\022\020\n\004diff\030\006 \003(\002B\002\020\001\022\027\n\013do" - "uble_data\030\010 \003(\001B\002\020\001\022\027\n\013double_diff\030\t \003(\001" - "B\002\020\001\022)\n\rraw_data_type\030\n \001(\0162\022.opencv_caf" - "fe.Type\022\024\n\010raw_data\030\014 \001(\014B\002\020\000\022\016\n\003num\030\001 \001" - "(\005:\0010\022\023\n\010channels\030\002 \001(\005:\0010\022\021\n\006height\030\003 \001" - "(\005:\0010\022\020\n\005width\030\004 \001(\005:\0010\"9\n\017BlobProtoVect" - "or\022&\n\005blobs\030\001 \003(\0132\027.opencv_caffe.BlobPro" - "to\"!\n\020PermuteParameter\022\r\n\005order\030\001 \003(\r\"\235\001" - "\n\026NormalizeBBoxParameter\022\034\n\016across_spati" - "al\030\001 \001(\010:\004true\0223\n\014scale_filler\030\002 \001(\0132\035.o" - "pencv_caffe.FillerParameter\022\034\n\016channel_s" - "hared\030\003 \001(\010:\004true\022\022\n\003eps\030\004 \001(\002:\0051e-10\"\346\002" - "\n\021PriorBoxParameter\022\020\n\010min_size\030\001 \001(\002\022\020\n" - "\010max_size\030\002 \001(\002\022\024\n\014aspect_ratio\030\003 \003(\002\022\022\n" - "\004flip\030\004 \001(\010:\004true\022\022\n\004clip\030\005 \001(\010:\004true\022\020\n" - "\010variance\030\006 \003(\002\022\020\n\010img_size\030\007 \001(\r\022\r\n\005img" - "_h\030\010 \001(\r\022\r\n\005img_w\030\t \001(\r\022\014\n\004step\030\n \001(\002\022\016\n" - "\006step_h\030\013 \001(\002\022\016\n\006step_w\030\014 \001(\002\022\023\n\006offset\030" - "\r \001(\002:\0030.5\022\020\n\010offset_h\030\016 \003(\002\022\020\n\010offset_w" - "\030\017 \003(\002\022\r\n\005width\030\020 \003(\002\022\016\n\006height\030\021 \003(\002\"\'\n" - "\010CodeType\022\n\n\006CORNER\020\001\022\017\n\013CENTER_SIZE\020\002\"\261" - "\003\n\030DetectionOutputParameter\022\023\n\013num_class" - "es\030\001 \001(\r\022\034\n\016share_location\030\002 \001(\010:\004true\022\036" - "\n\023background_label_id\030\003 \001(\005:\0010\022\?\n\tnms_pa" - "ram\030\004 \001(\0132,.opencv_caffe.NonMaximumSuppr" - "essionParameter\022<\n\021save_output_param\030\005 \001" - "(\0132!.opencv_caffe.SaveOutputParameter\022C\n" - "\tcode_type\030\006 \001(\0162(.opencv_caffe.PriorBox" - "Parameter.CodeType:\006CORNER\022)\n\032variance_e" - "ncoded_in_target\030\010 \001(\010:\005false\022\026\n\nkeep_to" - "p_k\030\007 \001(\005:\002-1\022\034\n\024confidence_threshold\030\t " - "\001(\002\022\035\n\017normalized_bbox\030\n \001(\010:\004true\"\201\001\n\005D" - "atum\022\020\n\010channels\030\001 \001(\005\022\016\n\006height\030\002 \001(\005\022\r" - "\n\005width\030\003 \001(\005\022\014\n\004data\030\004 \001(\014\022\r\n\005label\030\005 \001" - "(\005\022\022\n\nfloat_data\030\006 \003(\002\022\026\n\007encoded\030\007 \001(\010:" - "\005false\"\221\002\n\017FillerParameter\022\026\n\004type\030\001 \001(\t" - ":\010constant\022\020\n\005value\030\002 \001(\002:\0010\022\016\n\003min\030\003 \001(" - "\002:\0010\022\016\n\003max\030\004 \001(\002:\0011\022\017\n\004mean\030\005 \001(\002:\0010\022\016\n" - "\003std\030\006 \001(\002:\0011\022\022\n\006sparse\030\007 \001(\005:\002-1\022I\n\rvar" - "iance_norm\030\010 \001(\0162*.opencv_caffe.FillerPa" - "rameter.VarianceNorm:\006FAN_IN\"4\n\014Variance" - "Norm\022\n\n\006FAN_IN\020\000\022\013\n\007FAN_OUT\020\001\022\013\n\007AVERAGE" - "\020\002\"\252\002\n\014NetParameter\022\014\n\004name\030\001 \001(\t\022\r\n\005inp" - "ut\030\003 \003(\t\022,\n\013input_shape\030\010 \003(\0132\027.opencv_c" - "affe.BlobShape\022\021\n\tinput_dim\030\004 \003(\005\022\035\n\016for" - "ce_backward\030\005 \001(\010:\005false\022%\n\005state\030\006 \001(\0132" - "\026.opencv_caffe.NetState\022\031\n\ndebug_info\030\007 " - "\001(\010:\005false\022+\n\005layer\030d \003(\0132\034.opencv_caffe" - ".LayerParameter\022.\n\006layers\030\002 \003(\0132\036.opencv" - "_caffe.V1LayerParameter\"\332\n\n\017SolverParame" - "ter\022\013\n\003net\030\030 \001(\t\022-\n\tnet_param\030\031 \001(\0132\032.op" - "encv_caffe.NetParameter\022\021\n\ttrain_net\030\001 \001" - "(\t\022\020\n\010test_net\030\002 \003(\t\0223\n\017train_net_param\030" - "\025 \001(\0132\032.opencv_caffe.NetParameter\0222\n\016tes" - "t_net_param\030\026 \003(\0132\032.opencv_caffe.NetPara" - "meter\022+\n\013train_state\030\032 \001(\0132\026.opencv_caff" - "e.NetState\022*\n\ntest_state\030\033 \003(\0132\026.opencv_" - "caffe.NetState\022\021\n\ttest_iter\030\003 \003(\005\022\030\n\rtes" - "t_interval\030\004 \001(\005:\0010\022 \n\021test_compute_loss" - "\030\023 \001(\010:\005false\022!\n\023test_initialization\030 \001" - "(\010:\004true\022\017\n\007base_lr\030\005 \001(\002\022\017\n\007display\030\006 \001" - "(\005\022\027\n\014average_loss\030! \001(\005:\0011\022\020\n\010max_iter\030" - "\007 \001(\005\022\024\n\titer_size\030$ \001(\005:\0011\022\021\n\tlr_policy" - "\030\010 \001(\t\022\r\n\005gamma\030\t \001(\002\022\r\n\005power\030\n \001(\002\022\020\n\010" - "momentum\030\013 \001(\002\022\024\n\014weight_decay\030\014 \001(\002\022\037\n\023" - "regularization_type\030\035 \001(\t:\002L2\022\020\n\010stepsiz" - "e\030\r \001(\005\022\021\n\tstepvalue\030\" \003(\005\022\032\n\016clip_gradi" - "ents\030# \001(\002:\002-1\022\023\n\010snapshot\030\016 \001(\005:\0010\022\027\n\017s" - "napshot_prefix\030\017 \001(\t\022\034\n\rsnapshot_diff\030\020 " - "\001(\010:\005false\022R\n\017snapshot_format\030% \001(\0162,.op" - "encv_caffe.SolverParameter.SnapshotForma" - "t:\013BINARYPROTO\022B\n\013solver_mode\030\021 \001(\0162(.op" - "encv_caffe.SolverParameter.SolverMode:\003G" - "PU\022\024\n\tdevice_id\030\022 \001(\005:\0010\022\027\n\013random_seed\030" - "\024 \001(\003:\002-1\022\021\n\004type\030( \001(\t:\003SGD\022\024\n\005delta\030\037 " - "\001(\002:\0051e-08\022\030\n\tmomentum2\030\' \001(\002:\0050.999\022\027\n\t" - "rms_decay\030& \001(\002:\0040.99\022\031\n\ndebug_info\030\027 \001(" - "\010:\005false\022\"\n\024snapshot_after_train\030\034 \001(\010:\004" - "true\022B\n\013solver_type\030\036 \001(\0162(.opencv_caffe" - ".SolverParameter.SolverType:\003SGD\"+\n\016Snap" - "shotFormat\022\010\n\004HDF5\020\000\022\017\n\013BINARYPROTO\020\001\"\036\n" - "\nSolverMode\022\007\n\003CPU\020\000\022\007\n\003GPU\020\001\"U\n\nSolverT" - "ype\022\007\n\003SGD\020\000\022\014\n\010NESTEROV\020\001\022\013\n\007ADAGRAD\020\002\022" - "\013\n\007RMSPROP\020\003\022\014\n\010ADADELTA\020\004\022\010\n\004ADAM\020\005\"s\n\013" - "SolverState\022\014\n\004iter\030\001 \001(\005\022\023\n\013learned_net" - "\030\002 \001(\t\022(\n\007history\030\003 \003(\0132\027.opencv_caffe.B" - "lobProto\022\027\n\014current_step\030\004 \001(\005:\0010\"U\n\010Net" - "State\022(\n\005phase\030\001 \001(\0162\023.opencv_caffe.Phas" - "e:\004TEST\022\020\n\005level\030\002 \001(\005:\0010\022\r\n\005stage\030\003 \003(\t" - "\"z\n\014NetStateRule\022\"\n\005phase\030\001 \001(\0162\023.opencv" - "_caffe.Phase\022\021\n\tmin_level\030\002 \001(\005\022\021\n\tmax_l" - "evel\030\003 \001(\005\022\r\n\005stage\030\004 \003(\t\022\021\n\tnot_stage\030\005" - " \003(\t\"\252\001\n\tParamSpec\022\014\n\004name\030\001 \001(\t\0228\n\nshar" - "e_mode\030\002 \001(\0162$.opencv_caffe.ParamSpec.Di" - "mCheckMode\022\022\n\007lr_mult\030\003 \001(\002:\0011\022\025\n\ndecay_" - "mult\030\004 \001(\002:\0011\"*\n\014DimCheckMode\022\n\n\006STRICT\020" - "\000\022\016\n\nPERMISSIVE\020\001\"\243\032\n\016LayerParameter\022\014\n\004" - "name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\016\n\006bottom\030\003 \003(\t" - "\022\013\n\003top\030\004 \003(\t\022\"\n\005phase\030\n \001(\0162\023.opencv_ca" - "ffe.Phase\022\023\n\013loss_weight\030\005 \003(\002\022&\n\005param\030" - "\006 \003(\0132\027.opencv_caffe.ParamSpec\022&\n\005blobs\030" - "\007 \003(\0132\027.opencv_caffe.BlobProto\022\026\n\016propag" - "ate_down\030\013 \003(\010\022+\n\007include\030\010 \003(\0132\032.opencv" - "_caffe.NetStateRule\022+\n\007exclude\030\t \003(\0132\032.o" - "pencv_caffe.NetStateRule\022>\n\017transform_pa" - "ram\030d \001(\0132%.opencv_caffe.TransformationP" - "arameter\022/\n\nloss_param\030e \001(\0132\033.opencv_ca" - "ffe.LossParameter\0227\n\016accuracy_param\030f \001(" - "\0132\037.opencv_caffe.AccuracyParameter\0223\n\014ar" - "gmax_param\030g \001(\0132\035.opencv_caffe.ArgMaxPa" - "rameter\022;\n\020batch_norm_param\030\213\001 \001(\0132 .ope" - "ncv_caffe.BatchNormParameter\0220\n\nbias_par" - "am\030\215\001 \001(\0132\033.opencv_caffe.BiasParameter\0223" - "\n\014concat_param\030h \001(\0132\035.opencv_caffe.Conc" - "atParameter\022F\n\026contrastive_loss_param\030i " - "\001(\0132&.opencv_caffe.ContrastiveLossParame" - "ter\022=\n\021convolution_param\030j \001(\0132\".opencv_" - "caffe.ConvolutionParameter\0220\n\ncrop_param" - "\030\220\001 \001(\0132\033.opencv_caffe.CropParameter\022/\n\n" - "data_param\030k \001(\0132\033.opencv_caffe.DataPara" - "meter\022G\n\026detection_output_param\030\223\001 \001(\0132&" - ".opencv_caffe.DetectionOutputParameter\0225" - "\n\rdropout_param\030l \001(\0132\036.opencv_caffe.Dro" - "poutParameter\022:\n\020dummy_data_param\030m \001(\0132" - " .opencv_caffe.DummyDataParameter\0225\n\relt" - "wise_param\030n \001(\0132\036.opencv_caffe.EltwiseP" - "arameter\022.\n\telu_param\030\214\001 \001(\0132\032.opencv_ca" - "ffe.ELUParameter\0222\n\013embed_param\030\211\001 \001(\0132\034" - ".opencv_caffe.EmbedParameter\022-\n\texp_para" - "m\030o \001(\0132\032.opencv_caffe.ExpParameter\0226\n\rf" - "latten_param\030\207\001 \001(\0132\036.opencv_caffe.Flatt" - "enParameter\0228\n\017hdf5_data_param\030p \001(\0132\037.o" - "pencv_caffe.HDF5DataParameter\022<\n\021hdf5_ou" - "tput_param\030q \001(\0132!.opencv_caffe.HDF5Outp" - "utParameter\022:\n\020hinge_loss_param\030r \001(\0132 ." - "opencv_caffe.HingeLossParameter\022:\n\020image" - "_data_param\030s \001(\0132 .opencv_caffe.ImageDa" - "taParameter\022@\n\023infogain_loss_param\030t \001(\013" - "2#.opencv_caffe.InfogainLossParameter\022@\n" - "\023inner_product_param\030u \001(\0132#.opencv_caff" - "e.InnerProductParameter\0222\n\013input_param\030\217" - "\001 \001(\0132\034.opencv_caffe.InputParameter\022.\n\tl" - "og_param\030\206\001 \001(\0132\032.opencv_caffe.LogParame" - "ter\022-\n\tlrn_param\030v \001(\0132\032.opencv_caffe.LR" - "NParameter\022<\n\021memory_data_param\030w \001(\0132!." - "opencv_caffe.MemoryDataParameter\022-\n\tmvn_" - "param\030x \001(\0132\032.opencv_caffe.MVNParameter\022" - "9\n\nnorm_param\030\225\001 \001(\0132$.opencv_caffe.Norm" - "alizeBBoxParameter\0226\n\rpermute_param\030\224\001 \001" - "(\0132\036.opencv_caffe.PermuteParameter\022:\n\017pa" - "rameter_param\030\221\001 \001(\0132 .opencv_caffe.Para" - "meterParameter\0225\n\rpooling_param\030y \001(\0132\036." - "opencv_caffe.PoolingParameter\0221\n\013power_p" - "aram\030z \001(\0132\034.opencv_caffe.PowerParameter" - "\0222\n\013prelu_param\030\203\001 \001(\0132\034.opencv_caffe.PR" - "eLUParameter\0229\n\017prior_box_param\030\226\001 \001(\0132\037" - ".opencv_caffe.PriorBoxParameter\0228\n\016propo" - "sal_param\030\311\001 \001(\0132\037.opencv_caffe.Proposal" - "Parameter\022A\n\023psroi_pooling_param\030\222N \001(\0132" - "#.opencv_caffe.PSROIPoolingParameter\0224\n\014" - "python_param\030\202\001 \001(\0132\035.opencv_caffe.Pytho" - "nParameter\022:\n\017recurrent_param\030\222\001 \001(\0132 .o" - "pencv_caffe.RecurrentParameter\022:\n\017reduct" - "ion_param\030\210\001 \001(\0132 .opencv_caffe.Reductio" - "nParameter\022/\n\nrelu_param\030{ \001(\0132\033.opencv_" - "caffe.ReLUParameter\0226\n\rreshape_param\030\205\001 " - "\001(\0132\036.opencv_caffe.ReshapeParameter\022\?\n\021r" - "oi_pooling_param\030\327\307\370\003 \001(\0132!.opencv_caffe" - ".ROIPoolingParameter\0222\n\013scale_param\030\216\001 \001" - "(\0132\034.opencv_caffe.ScaleParameter\0225\n\rsigm" - "oid_param\030| \001(\0132\036.opencv_caffe.SigmoidPa" - "rameter\0225\n\rsoftmax_param\030} \001(\0132\036.opencv_" - "caffe.SoftmaxParameter\022.\n\tspp_param\030\204\001 \001" - "(\0132\032.opencv_caffe.SPPParameter\0221\n\013slice_" - "param\030~ \001(\0132\034.opencv_caffe.SliceParamete" - "r\022/\n\ntanh_param\030\177 \001(\0132\033.opencv_caffe.Tan" - "HParameter\022:\n\017threshold_param\030\200\001 \001(\0132 .o" - "pencv_caffe.ThresholdParameter\0220\n\ntile_p" - "aram\030\212\001 \001(\0132\033.opencv_caffe.TileParameter" - "\022=\n\021window_data_param\030\201\001 \001(\0132!.opencv_ca" - "ffe.WindowDataParameter\"\266\001\n\027Transformati" - "onParameter\022\020\n\005scale\030\001 \001(\002:\0011\022\025\n\006mirror\030" - "\002 \001(\010:\005false\022\024\n\tcrop_size\030\003 \001(\r:\0010\022\021\n\tme" - "an_file\030\004 \001(\t\022\022\n\nmean_value\030\005 \003(\002\022\032\n\013for" - "ce_color\030\006 \001(\010:\005false\022\031\n\nforce_gray\030\007 \001(" - "\010:\005false\"\311\001\n\rLossParameter\022\024\n\014ignore_lab" - "el\030\001 \001(\005\022K\n\rnormalization\030\003 \001(\0162-.opencv" - "_caffe.LossParameter.NormalizationMode:\005" - "VALID\022\021\n\tnormalize\030\002 \001(\010\"B\n\021Normalizatio" - "nMode\022\010\n\004FULL\020\000\022\t\n\005VALID\020\001\022\016\n\nBATCH_SIZE" - "\020\002\022\010\n\004NONE\020\003\"L\n\021AccuracyParameter\022\020\n\005top" - "_k\030\001 \001(\r:\0011\022\017\n\004axis\030\002 \001(\005:\0011\022\024\n\014ignore_l" - "abel\030\003 \001(\005\"M\n\017ArgMaxParameter\022\032\n\013out_max" - "_val\030\001 \001(\010:\005false\022\020\n\005top_k\030\002 \001(\r:\0011\022\014\n\004a" - "xis\030\003 \001(\005\"9\n\017ConcatParameter\022\017\n\004axis\030\002 \001" - "(\005:\0011\022\025\n\nconcat_dim\030\001 \001(\r:\0011\"j\n\022BatchNor" - "mParameter\022\030\n\020use_global_stats\030\001 \001(\010\022&\n\027" - "moving_average_fraction\030\002 \001(\002:\0050.999\022\022\n\003" - "eps\030\003 \001(\002:\0051e-05\"d\n\rBiasParameter\022\017\n\004axi" - "s\030\001 \001(\005:\0011\022\023\n\010num_axes\030\002 \001(\005:\0011\022-\n\006fille" - "r\030\003 \001(\0132\035.opencv_caffe.FillerParameter\"L" - "\n\030ContrastiveLossParameter\022\021\n\006margin\030\001 \001" - "(\002:\0011\022\035\n\016legacy_version\030\002 \001(\010:\005false\"\221\004\n" - "\024ConvolutionParameter\022\022\n\nnum_output\030\001 \001(" - "\r\022\027\n\tbias_term\030\002 \001(\010:\004true\022\013\n\003pad\030\003 \003(\r\022" - "\023\n\013kernel_size\030\004 \003(\r\022\016\n\006stride\030\006 \003(\r\022\020\n\010" - "dilation\030\022 \003(\r\022\020\n\005pad_h\030\t \001(\r:\0010\022\020\n\005pad_" - "w\030\n \001(\r:\0010\022\020\n\010kernel_h\030\013 \001(\r\022\020\n\010kernel_w" - "\030\014 \001(\r\022\020\n\010stride_h\030\r \001(\r\022\020\n\010stride_w\030\016 \001" - "(\r\022\020\n\005group\030\005 \001(\r:\0011\0224\n\rweight_filler\030\007 " - "\001(\0132\035.opencv_caffe.FillerParameter\0222\n\013bi" - "as_filler\030\010 \001(\0132\035.opencv_caffe.FillerPar" - "ameter\022B\n\006engine\030\017 \001(\0162).opencv_caffe.Co" - "nvolutionParameter.Engine:\007DEFAULT\022\017\n\004ax" - "is\030\020 \001(\005:\0011\022\036\n\017force_nd_im2col\030\021 \001(\010:\005fa" - "lse\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n" - "\005CUDNN\020\002\"0\n\rCropParameter\022\017\n\004axis\030\001 \001(\005:" - "\0012\022\016\n\006offset\030\002 \003(\r\"\253\002\n\rDataParameter\022\016\n\006" - "source\030\001 \001(\t\022\022\n\nbatch_size\030\004 \001(\r\022\024\n\trand" - "_skip\030\007 \001(\r:\0010\0228\n\007backend\030\010 \001(\0162\036.opencv" - "_caffe.DataParameter.DB:\007LEVELDB\022\020\n\005scal" - "e\030\002 \001(\002:\0011\022\021\n\tmean_file\030\003 \001(\t\022\024\n\tcrop_si" - "ze\030\005 \001(\r:\0010\022\025\n\006mirror\030\006 \001(\010:\005false\022\"\n\023fo" - "rce_encoded_color\030\t \001(\010:\005false\022\023\n\010prefet" - "ch\030\n \001(\r:\0014\"\033\n\002DB\022\013\n\007LEVELDB\020\000\022\010\n\004LMDB\020\001" - "\"[\n\036NonMaximumSuppressionParameter\022\032\n\rnm" - "s_threshold\030\001 \001(\002:\0030.3\022\r\n\005top_k\030\002 \001(\005\022\016\n" - "\003eta\030\003 \001(\002:\0011\"\252\001\n\023SaveOutputParameter\022\030\n" - "\020output_directory\030\001 \001(\t\022\032\n\022output_name_p" - "refix\030\002 \001(\t\022\025\n\routput_format\030\003 \001(\t\022\026\n\016la" - "bel_map_file\030\004 \001(\t\022\026\n\016name_size_file\030\005 \001" - "(\t\022\026\n\016num_test_image\030\006 \001(\r\"I\n\020DropoutPar" - "ameter\022\032\n\rdropout_ratio\030\001 \001(\002:\0030.5\022\031\n\013sc" - "ale_train\030\002 \001(\010:\004true\"\256\001\n\022DummyDataParam" - "eter\0222\n\013data_filler\030\001 \003(\0132\035.opencv_caffe" - ".FillerParameter\022&\n\005shape\030\006 \003(\0132\027.opencv" - "_caffe.BlobShape\022\013\n\003num\030\002 \003(\r\022\020\n\010channel" - "s\030\003 \003(\r\022\016\n\006height\030\004 \003(\r\022\r\n\005width\030\005 \003(\r\"\254" - "\001\n\020EltwiseParameter\022@\n\toperation\030\001 \001(\0162(" - ".opencv_caffe.EltwiseParameter.EltwiseOp" - ":\003SUM\022\r\n\005coeff\030\002 \003(\002\022\036\n\020stable_prod_grad" - "\030\003 \001(\010:\004true\"\'\n\tEltwiseOp\022\010\n\004PROD\020\000\022\007\n\003S" - "UM\020\001\022\007\n\003MAX\020\002\" \n\014ELUParameter\022\020\n\005alpha\030\001" - " \001(\002:\0011\"\272\001\n\016EmbedParameter\022\022\n\nnum_output" - "\030\001 \001(\r\022\021\n\tinput_dim\030\002 \001(\r\022\027\n\tbias_term\030\003" - " \001(\010:\004true\0224\n\rweight_filler\030\004 \001(\0132\035.open" - "cv_caffe.FillerParameter\0222\n\013bias_filler\030" - "\005 \001(\0132\035.opencv_caffe.FillerParameter\"D\n\014" - "ExpParameter\022\020\n\004base\030\001 \001(\002:\002-1\022\020\n\005scale\030" - "\002 \001(\002:\0011\022\020\n\005shift\030\003 \001(\002:\0010\"9\n\020FlattenPar" - "ameter\022\017\n\004axis\030\001 \001(\005:\0011\022\024\n\010end_axis\030\002 \001(" - "\005:\002-1\"O\n\021HDF5DataParameter\022\016\n\006source\030\001 \001" - "(\t\022\022\n\nbatch_size\030\002 \001(\r\022\026\n\007shuffle\030\003 \001(\010:" - "\005false\"(\n\023HDF5OutputParameter\022\021\n\tfile_na" - "me\030\001 \001(\t\"e\n\022HingeLossParameter\0227\n\004norm\030\001" - " \001(\0162%.opencv_caffe.HingeLossParameter.N" - "orm:\002L1\"\026\n\004Norm\022\006\n\002L1\020\001\022\006\n\002L2\020\002\"\227\002\n\022Imag" - "eDataParameter\022\016\n\006source\030\001 \001(\t\022\025\n\nbatch_" - "size\030\004 \001(\r:\0011\022\024\n\trand_skip\030\007 \001(\r:\0010\022\026\n\007s" - "huffle\030\010 \001(\010:\005false\022\025\n\nnew_height\030\t \001(\r:" - "\0010\022\024\n\tnew_width\030\n \001(\r:\0010\022\026\n\010is_color\030\013 \001" - "(\010:\004true\022\020\n\005scale\030\002 \001(\002:\0011\022\021\n\tmean_file\030" - "\003 \001(\t\022\024\n\tcrop_size\030\005 \001(\r:\0010\022\025\n\006mirror\030\006 " - "\001(\010:\005false\022\025\n\013root_folder\030\014 \001(\t:\000\"\'\n\025Inf" - "ogainLossParameter\022\016\n\006source\030\001 \001(\t\"\331\001\n\025I" - "nnerProductParameter\022\022\n\nnum_output\030\001 \001(\r" - "\022\027\n\tbias_term\030\002 \001(\010:\004true\0224\n\rweight_fill" - "er\030\003 \001(\0132\035.opencv_caffe.FillerParameter\022" - "2\n\013bias_filler\030\004 \001(\0132\035.opencv_caffe.Fill" - "erParameter\022\017\n\004axis\030\005 \001(\005:\0011\022\030\n\ttranspos" - "e\030\006 \001(\010:\005false\"8\n\016InputParameter\022&\n\005shap" - "e\030\001 \003(\0132\027.opencv_caffe.BlobShape\"D\n\014LogP" - "arameter\022\020\n\004base\030\001 \001(\002:\002-1\022\020\n\005scale\030\002 \001(" - "\002:\0011\022\020\n\005shift\030\003 \001(\002:\0010\"\306\002\n\014LRNParameter\022" - "\025\n\nlocal_size\030\001 \001(\r:\0015\022\020\n\005alpha\030\002 \001(\002:\0011" - "\022\022\n\004beta\030\003 \001(\002:\0040.75\022K\n\013norm_region\030\004 \001(" - "\0162%.opencv_caffe.LRNParameter.NormRegion" - ":\017ACROSS_CHANNELS\022\014\n\001k\030\005 \001(\002:\0011\022:\n\006engin" - "e\030\006 \001(\0162!.opencv_caffe.LRNParameter.Engi" - "ne:\007DEFAULT\"5\n\nNormRegion\022\023\n\017ACROSS_CHAN" - "NELS\020\000\022\022\n\016WITHIN_CHANNEL\020\001\"+\n\006Engine\022\013\n\007" - "DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"Z\n\023Memor" - "yDataParameter\022\022\n\nbatch_size\030\001 \001(\r\022\020\n\010ch" - "annels\030\002 \001(\r\022\016\n\006height\030\003 \001(\r\022\r\n\005width\030\004 " - "\001(\r\"d\n\014MVNParameter\022 \n\022normalize_varianc" - "e\030\001 \001(\010:\004true\022\036\n\017across_channels\030\002 \001(\010:\005" - "false\022\022\n\003eps\030\003 \001(\002:\0051e-09\"<\n\022ParameterPa" - "rameter\022&\n\005shape\030\001 \001(\0132\027.opencv_caffe.Bl" - "obShape\"\311\003\n\020PoolingParameter\022<\n\004pool\030\001 \001" - "(\0162).opencv_caffe.PoolingParameter.PoolM" - "ethod:\003MAX\022\016\n\003pad\030\004 \001(\r:\0010\022\020\n\005pad_h\030\t \001(" - "\r:\0010\022\020\n\005pad_w\030\n \001(\r:\0010\022\023\n\013kernel_size\030\002 " - "\001(\r\022\020\n\010kernel_h\030\005 \001(\r\022\020\n\010kernel_w\030\006 \001(\r\022" - "\021\n\006stride\030\003 \001(\r:\0011\022\020\n\010stride_h\030\007 \001(\r\022\020\n\010" - "stride_w\030\010 \001(\r\022>\n\006engine\030\013 \001(\0162%.opencv_" - "caffe.PoolingParameter.Engine:\007DEFAULT\022\035" - "\n\016global_pooling\030\014 \001(\010:\005false\022\027\n\tceil_mo" - "de\030\r \001(\010:\004true\".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n" - "\003AVE\020\001\022\016\n\nSTOCHASTIC\020\002\"+\n\006Engine\022\013\n\007DEFA" - "ULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"F\n\016PowerPara" - "meter\022\020\n\005power\030\001 \001(\002:\0011\022\020\n\005scale\030\002 \001(\002:\001" - "1\022\020\n\005shift\030\003 \001(\002:\0010\"g\n\017PythonParameter\022\016" - "\n\006module\030\001 \001(\t\022\r\n\005layer\030\002 \001(\t\022\023\n\tparam_s" - "tr\030\003 \001(\t:\000\022 \n\021share_in_parallel\030\004 \001(\010:\005f" - "alse\"\316\001\n\022RecurrentParameter\022\025\n\nnum_outpu" - "t\030\001 \001(\r:\0010\0224\n\rweight_filler\030\002 \001(\0132\035.open" - "cv_caffe.FillerParameter\0222\n\013bias_filler\030" - "\003 \001(\0132\035.opencv_caffe.FillerParameter\022\031\n\n" - "debug_info\030\004 \001(\010:\005false\022\034\n\rexpose_hidden" - "\030\005 \001(\010:\005false\"\264\001\n\022ReductionParameter\022D\n\t" - "operation\030\001 \001(\0162,.opencv_caffe.Reduction" - "Parameter.ReductionOp:\003SUM\022\017\n\004axis\030\002 \001(\005" - ":\0010\022\020\n\005coeff\030\003 \001(\002:\0011\"5\n\013ReductionOp\022\007\n\003" - "SUM\020\001\022\010\n\004ASUM\020\002\022\t\n\005SUMSQ\020\003\022\010\n\004MEAN\020\004\"\224\001\n" - "\rReLUParameter\022\031\n\016negative_slope\030\001 \001(\002:\001" - "0\022;\n\006engine\030\002 \001(\0162\".opencv_caffe.ReLUPar" - "ameter.Engine:\007DEFAULT\"+\n\006Engine\022\013\n\007DEFA" - "ULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"a\n\020ReshapePa" - "rameter\022&\n\005shape\030\001 \001(\0132\027.opencv_caffe.Bl" - "obShape\022\017\n\004axis\030\002 \001(\005:\0010\022\024\n\010num_axes\030\003 \001" - "(\005:\002-1\"\263\001\n\016ScaleParameter\022\017\n\004axis\030\001 \001(\005:" - "\0011\022\023\n\010num_axes\030\002 \001(\005:\0011\022-\n\006filler\030\003 \001(\0132" - "\035.opencv_caffe.FillerParameter\022\030\n\tbias_t" - "erm\030\004 \001(\010:\005false\0222\n\013bias_filler\030\005 \001(\0132\035." - "opencv_caffe.FillerParameter\"\177\n\020SigmoidP" - "arameter\022>\n\006engine\030\001 \001(\0162%.opencv_caffe." - "SigmoidParameter.Engine:\007DEFAULT\"+\n\006Engi" - "ne\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"L\n" - "\016SliceParameter\022\017\n\004axis\030\003 \001(\005:\0011\022\023\n\013slic" - "e_point\030\002 \003(\r\022\024\n\tslice_dim\030\001 \001(\r:\0011\"\220\001\n\020" - "SoftmaxParameter\022>\n\006engine\030\001 \001(\0162%.openc" - "v_caffe.SoftmaxParameter.Engine:\007DEFAULT" - "\022\017\n\004axis\030\002 \001(\005:\0011\"+\n\006Engine\022\013\n\007DEFAULT\020\000" - "\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"y\n\rTanHParameter\022" - ";\n\006engine\030\001 \001(\0162\".opencv_caffe.TanHParam" - "eter.Engine:\007DEFAULT\"+\n\006Engine\022\013\n\007DEFAUL" - "T\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"/\n\rTileParamet" - "er\022\017\n\004axis\030\001 \001(\005:\0011\022\r\n\005tiles\030\002 \001(\005\"*\n\022Th" - "resholdParameter\022\024\n\tthreshold\030\001 \001(\002:\0010\"\301" - "\002\n\023WindowDataParameter\022\016\n\006source\030\001 \001(\t\022\020" - "\n\005scale\030\002 \001(\002:\0011\022\021\n\tmean_file\030\003 \001(\t\022\022\n\nb" - "atch_size\030\004 \001(\r\022\024\n\tcrop_size\030\005 \001(\r:\0010\022\025\n" - "\006mirror\030\006 \001(\010:\005false\022\031\n\014fg_threshold\030\007 \001" - "(\002:\0030.5\022\031\n\014bg_threshold\030\010 \001(\002:\0030.5\022\031\n\013fg" - "_fraction\030\t \001(\002:\0040.25\022\026\n\013context_pad\030\n \001" - "(\r:\0010\022\027\n\tcrop_mode\030\013 \001(\t:\004warp\022\033\n\014cache_" - "images\030\014 \001(\010:\005false\022\025\n\013root_folder\030\r \001(\t" - ":\000\"\371\001\n\014SPPParameter\022\026\n\016pyramid_height\030\001 " - "\001(\r\0228\n\004pool\030\002 \001(\0162%.opencv_caffe.SPPPara" - "meter.PoolMethod:\003MAX\022:\n\006engine\030\006 \001(\0162!." - "opencv_caffe.SPPParameter.Engine:\007DEFAUL" - "T\".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001\022\016\n\nSTO" - "CHASTIC\020\002\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFF" - "E\020\001\022\t\n\005CUDNN\020\002\"\334\025\n\020V1LayerParameter\022\016\n\006b" - "ottom\030\002 \003(\t\022\013\n\003top\030\003 \003(\t\022\014\n\004name\030\004 \001(\t\022+" - "\n\007include\030 \003(\0132\032.opencv_caffe.NetStateR" - "ule\022+\n\007exclude\030! \003(\0132\032.opencv_caffe.NetS" - "tateRule\0226\n\004type\030\005 \001(\0162(.opencv_caffe.V1" - "LayerParameter.LayerType\022&\n\005blobs\030\006 \003(\0132" - "\027.opencv_caffe.BlobProto\022\016\n\005param\030\351\007 \003(\t" - "\022E\n\017blob_share_mode\030\352\007 \003(\0162+.opencv_caff" - "e.V1LayerParameter.DimCheckMode\022\020\n\010blobs" - "_lr\030\007 \003(\002\022\024\n\014weight_decay\030\010 \003(\002\022\023\n\013loss_" - "weight\030# \003(\002\0227\n\016accuracy_param\030\033 \001(\0132\037.o" - "pencv_caffe.AccuracyParameter\0223\n\014argmax_" - "param\030\027 \001(\0132\035.opencv_caffe.ArgMaxParamet" - "er\0223\n\014concat_param\030\t \001(\0132\035.opencv_caffe." - "ConcatParameter\022F\n\026contrastive_loss_para" - "m\030( \001(\0132&.opencv_caffe.ContrastiveLossPa" - "rameter\022=\n\021convolution_param\030\n \001(\0132\".ope" - "ncv_caffe.ConvolutionParameter\022/\n\ndata_p" - "aram\030\013 \001(\0132\033.opencv_caffe.DataParameter\022" - "5\n\rdropout_param\030\014 \001(\0132\036.opencv_caffe.Dr" - "opoutParameter\022:\n\020dummy_data_param\030\032 \001(\013" - "2 .opencv_caffe.DummyDataParameter\0225\n\rel" - "twise_param\030\030 \001(\0132\036.opencv_caffe.Eltwise" - "Parameter\022-\n\texp_param\030) \001(\0132\032.opencv_ca" - "ffe.ExpParameter\0228\n\017hdf5_data_param\030\r \001(" - "\0132\037.opencv_caffe.HDF5DataParameter\022<\n\021hd" - "f5_output_param\030\016 \001(\0132!.opencv_caffe.HDF" - "5OutputParameter\022:\n\020hinge_loss_param\030\035 \001" - "(\0132 .opencv_caffe.HingeLossParameter\022:\n\020" - "image_data_param\030\017 \001(\0132 .opencv_caffe.Im" - "ageDataParameter\022@\n\023infogain_loss_param\030" - "\020 \001(\0132#.opencv_caffe.InfogainLossParamet" - "er\022@\n\023inner_product_param\030\021 \001(\0132#.opencv" - "_caffe.InnerProductParameter\022-\n\tlrn_para" - "m\030\022 \001(\0132\032.opencv_caffe.LRNParameter\022<\n\021m" - "emory_data_param\030\026 \001(\0132!.opencv_caffe.Me" - "moryDataParameter\022-\n\tmvn_param\030\" \001(\0132\032.o" - "pencv_caffe.MVNParameter\0225\n\rpooling_para" - "m\030\023 \001(\0132\036.opencv_caffe.PoolingParameter\022" - "1\n\013power_param\030\025 \001(\0132\034.opencv_caffe.Powe" - "rParameter\022/\n\nrelu_param\030\036 \001(\0132\033.opencv_" - "caffe.ReLUParameter\0225\n\rsigmoid_param\030& \001" - "(\0132\036.opencv_caffe.SigmoidParameter\0225\n\rso" - "ftmax_param\030\' \001(\0132\036.opencv_caffe.Softmax" - "Parameter\0221\n\013slice_param\030\037 \001(\0132\034.opencv_" - "caffe.SliceParameter\022/\n\ntanh_param\030% \001(\013" - "2\033.opencv_caffe.TanHParameter\0229\n\017thresho" - "ld_param\030\031 \001(\0132 .opencv_caffe.ThresholdP" - "arameter\022<\n\021window_data_param\030\024 \001(\0132!.op" - "encv_caffe.WindowDataParameter\022>\n\017transf" - "orm_param\030$ \001(\0132%.opencv_caffe.Transform" - "ationParameter\022/\n\nloss_param\030* \001(\0132\033.ope" - "ncv_caffe.LossParameter\022-\n\005layer\030\001 \001(\0132\036" - ".opencv_caffe.V0LayerParameter\"\330\004\n\tLayer" - "Type\022\010\n\004NONE\020\000\022\n\n\006ABSVAL\020#\022\014\n\010ACCURACY\020\001" - "\022\n\n\006ARGMAX\020\036\022\010\n\004BNLL\020\002\022\n\n\006CONCAT\020\003\022\024\n\020CO" - "NTRASTIVE_LOSS\020%\022\017\n\013CONVOLUTION\020\004\022\010\n\004DAT" - "A\020\005\022\021\n\rDECONVOLUTION\020\'\022\013\n\007DROPOUT\020\006\022\016\n\nD" - "UMMY_DATA\020 \022\022\n\016EUCLIDEAN_LOSS\020\007\022\013\n\007ELTWI" - "SE\020\031\022\007\n\003EXP\020&\022\013\n\007FLATTEN\020\010\022\r\n\tHDF5_DATA\020" - "\t\022\017\n\013HDF5_OUTPUT\020\n\022\016\n\nHINGE_LOSS\020\034\022\n\n\006IM" - "2COL\020\013\022\016\n\nIMAGE_DATA\020\014\022\021\n\rINFOGAIN_LOSS\020" - "\r\022\021\n\rINNER_PRODUCT\020\016\022\007\n\003LRN\020\017\022\017\n\013MEMORY_" - "DATA\020\035\022\035\n\031MULTINOMIAL_LOGISTIC_LOSS\020\020\022\007\n" - "\003MVN\020\"\022\013\n\007POOLING\020\021\022\t\n\005POWER\020\032\022\010\n\004RELU\020\022" - "\022\013\n\007SIGMOID\020\023\022\036\n\032SIGMOID_CROSS_ENTROPY_L" - "OSS\020\033\022\013\n\007SILENCE\020$\022\013\n\007SOFTMAX\020\024\022\020\n\014SOFTM" - "AX_LOSS\020\025\022\t\n\005SPLIT\020\026\022\t\n\005SLICE\020!\022\010\n\004TANH\020" - "\027\022\017\n\013WINDOW_DATA\020\030\022\r\n\tTHRESHOLD\020\037\"*\n\014Dim" - "CheckMode\022\n\n\006STRICT\020\000\022\016\n\nPERMISSIVE\020\001\"\240\010" - "\n\020V0LayerParameter\022\014\n\004name\030\001 \001(\t\022\014\n\004type" - "\030\002 \001(\t\022\022\n\nnum_output\030\003 \001(\r\022\026\n\010biasterm\030\004" - " \001(\010:\004true\0224\n\rweight_filler\030\005 \001(\0132\035.open" - "cv_caffe.FillerParameter\0222\n\013bias_filler\030" - "\006 \001(\0132\035.opencv_caffe.FillerParameter\022\016\n\003" - "pad\030\007 \001(\r:\0010\022\022\n\nkernelsize\030\010 \001(\r\022\020\n\005grou" - "p\030\t \001(\r:\0011\022\021\n\006stride\030\n \001(\r:\0011\022<\n\004pool\030\013 " - "\001(\0162).opencv_caffe.V0LayerParameter.Pool" - "Method:\003MAX\022\032\n\rdropout_ratio\030\014 \001(\002:\0030.5\022" - "\025\n\nlocal_size\030\r \001(\r:\0015\022\020\n\005alpha\030\016 \001(\002:\0011" - "\022\022\n\004beta\030\017 \001(\002:\0040.75\022\014\n\001k\030\026 \001(\002:\0011\022\016\n\006so" - "urce\030\020 \001(\t\022\020\n\005scale\030\021 \001(\002:\0011\022\020\n\010meanfile" - "\030\022 \001(\t\022\021\n\tbatchsize\030\023 \001(\r\022\023\n\010cropsize\030\024 " - "\001(\r:\0010\022\025\n\006mirror\030\025 \001(\010:\005false\022&\n\005blobs\0302" - " \003(\0132\027.opencv_caffe.BlobProto\022\020\n\010blobs_l" - "r\0303 \003(\002\022\024\n\014weight_decay\0304 \003(\002\022\024\n\trand_sk" - "ip\0305 \001(\r:\0010\022\035\n\020det_fg_threshold\0306 \001(\002:\0030" - ".5\022\035\n\020det_bg_threshold\0307 \001(\002:\0030.5\022\035\n\017det" - "_fg_fraction\0308 \001(\002:\0040.25\022\032\n\017det_context_" - "pad\030: \001(\r:\0010\022\033\n\rdet_crop_mode\030; \001(\t:\004war" - "p\022\022\n\007new_num\030< \001(\005:\0010\022\027\n\014new_channels\030= " - "\001(\005:\0010\022\025\n\nnew_height\030> \001(\005:\0010\022\024\n\tnew_wid" - "th\030\? \001(\005:\0010\022\035\n\016shuffle_images\030@ \001(\010:\005fal" - "se\022\025\n\nconcat_dim\030A \001(\r:\0011\022=\n\021hdf5_output" - "_param\030\351\007 \001(\0132!.opencv_caffe.HDF5OutputP" - "arameter\".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001" - "\022\016\n\nSTOCHASTIC\020\002\"^\n\016PReLUParameter\022-\n\006fi" - "ller\030\001 \001(\0132\035.opencv_caffe.FillerParamete" - "r\022\035\n\016channel_shared\030\002 \001(\010:\005false\"\207\001\n\016Nor" - "malizedBBox\022\014\n\004xmin\030\001 \001(\002\022\014\n\004ymin\030\002 \001(\002\022" - "\014\n\004xmax\030\003 \001(\002\022\014\n\004ymax\030\004 \001(\002\022\r\n\005label\030\005 \001" - "(\005\022\021\n\tdifficult\030\006 \001(\010\022\r\n\005score\030\007 \001(\002\022\014\n\004" - "size\030\010 \001(\002\"Y\n\023ROIPoolingParameter\022\023\n\010poo" - "led_h\030\001 \001(\r:\0010\022\023\n\010pooled_w\030\002 \001(\r:\0010\022\030\n\rs" - "patial_scale\030\003 \001(\002:\0011\"\310\001\n\021ProposalParame" - "ter\022\027\n\013feat_stride\030\001 \001(\r:\00216\022\025\n\tbase_siz" - "e\030\002 \001(\r:\00216\022\024\n\010min_size\030\003 \001(\r:\00216\022\r\n\005rat" - "io\030\004 \003(\002\022\r\n\005scale\030\005 \003(\002\022\032\n\014pre_nms_topn\030" - "\006 \001(\r:\0046000\022\032\n\rpost_nms_topn\030\007 \001(\r:\003300\022" - "\027\n\nnms_thresh\030\010 \001(\002:\0030.7\"V\n\025PSROIPooling" - "Parameter\022\025\n\rspatial_scale\030\001 \002(\002\022\022\n\noutp" - "ut_dim\030\002 \002(\005\022\022\n\ngroup_size\030\003 \002(\005*=\n\004Type" - "\022\n\n\006DOUBLE\020\000\022\t\n\005FLOAT\020\001\022\013\n\007FLOAT16\020\002\022\007\n\003" - "INT\020\003\022\010\n\004UINT\020\004*\034\n\005Phase\022\t\n\005TRAIN\020\000\022\010\n\004T" - "EST\020\001", 18805); + descriptor, 18805); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "opencv-caffe.proto", &protobuf_RegisterTypes); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_opencv_2dcaffe_2eproto); } -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_opencv_2dcaffe_2eproto_once_); -void protobuf_AddDesc_opencv_2dcaffe_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_opencv_2dcaffe_2eproto_once_, - &protobuf_AddDesc_opencv_2dcaffe_2eproto_impl); +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_opencv_2dcaffe_2eproto { - StaticDescriptorInitializer_opencv_2dcaffe_2eproto() { - protobuf_AddDesc_opencv_2dcaffe_2eproto(); +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); } -} static_descriptor_initializer_opencv_2dcaffe_2eproto_; -const ::google::protobuf::EnumDescriptor* Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return Type_descriptor_; -} -bool Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* Phase_descriptor() { - protobuf_AssignDescriptorsOnce(); - return Phase_descriptor_; -} -bool Phase_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - - -namespace { - -static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; -static void MergeFromFail(int line) { - ::google::protobuf::internal::MergeFromFail(__FILE__, line); -} - -} // namespace - - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BlobShape::kDimFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BlobShape::BlobShape() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.BlobShape) -} - -void BlobShape::InitAsDefaultInstance() { -} - -BlobShape::BlobShape(const BlobShape& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.BlobShape) -} - -void BlobShape::SharedCtor() { - _cached_size_ = 0; -} - -BlobShape::~BlobShape() { - // @@protoc_insertion_point(destructor:opencv_caffe.BlobShape) - SharedDtor(); -} - -void BlobShape::SharedDtor() { -} - -void BlobShape::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* BlobShape::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BlobShape_descriptor_; -} - -const BlobShape& BlobShape::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed BlobShape_default_instance_; - -BlobShape* BlobShape::New(::google::protobuf::Arena* arena) const { - BlobShape* n = new BlobShape; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void BlobShape::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.BlobShape) - dim_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool BlobShape::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.BlobShape) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated int64 dim = 1 [packed = true]; - case 1: { - if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_dim()))); - } else if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 10, input, this->mutable_dim()))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.BlobShape) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.BlobShape) - return false; -#undef DO_ -} - -void BlobShape::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.BlobShape) - // repeated int64 dim = 1 [packed = true]; - if (this->dim_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_dim_cached_byte_size_); - } - for (int i = 0; i < this->dim_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( - this->dim(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.BlobShape) -} - -::google::protobuf::uint8* BlobShape::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BlobShape) - // repeated int64 dim = 1 [packed = true]; - if (this->dim_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _dim_cached_byte_size_, target); - } - for (int i = 0; i < this->dim_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->dim(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BlobShape) - return target; -} - -size_t BlobShape::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BlobShape) - size_t total_size = 0; - - // repeated int64 dim = 1 [packed = true]; - { - size_t data_size = 0; - unsigned int count = this->dim_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->dim(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _dim_cached_byte_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BlobShape::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BlobShape) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const BlobShape* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BlobShape) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BlobShape) - UnsafeMergeFrom(*source); - } -} - -void BlobShape::MergeFrom(const BlobShape& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BlobShape) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void BlobShape::UnsafeMergeFrom(const BlobShape& from) { - GOOGLE_DCHECK(&from != this); - dim_.UnsafeMergeFrom(from.dim_); - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void BlobShape::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BlobShape) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlobShape::CopyFrom(const BlobShape& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BlobShape) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool BlobShape::IsInitialized() const { - - return true; -} - -void BlobShape::Swap(BlobShape* other) { - if (other == this) return; - InternalSwap(other); -} -void BlobShape::InternalSwap(BlobShape* other) { - dim_.UnsafeArenaSwap(&other->dim_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata BlobShape::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = BlobShape_descriptor_; - metadata.reflection = BlobShape_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// BlobShape - -// repeated int64 dim = 1 [packed = true]; -int BlobShape::dim_size() const { - return dim_.size(); -} -void BlobShape::clear_dim() { - dim_.Clear(); -} -::google::protobuf::int64 BlobShape::dim(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobShape.dim) - return dim_.Get(index); -} -void BlobShape::set_dim(int index, ::google::protobuf::int64 value) { - dim_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.BlobShape.dim) -} -void BlobShape::add_dim(::google::protobuf::int64 value) { - dim_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.BlobShape.dim) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -BlobShape::dim() const { - // @@protoc_insertion_point(field_list:opencv_caffe.BlobShape.dim) - return dim_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -BlobShape::mutable_dim() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.BlobShape.dim) - return &dim_; -} - -inline const BlobShape* BlobShape::internal_default_instance() { - return &BlobShape_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BlobProto::kShapeFieldNumber; -const int BlobProto::kDataFieldNumber; -const int BlobProto::kDiffFieldNumber; -const int BlobProto::kDoubleDataFieldNumber; -const int BlobProto::kDoubleDiffFieldNumber; -const int BlobProto::kRawDataTypeFieldNumber; -const int BlobProto::kRawDataFieldNumber; -const int BlobProto::kNumFieldNumber; -const int BlobProto::kChannelsFieldNumber; -const int BlobProto::kHeightFieldNumber; -const int BlobProto::kWidthFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BlobProto::BlobProto() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.BlobProto) -} - -void BlobProto::InitAsDefaultInstance() { - shape_ = const_cast< ::opencv_caffe::BlobShape*>( - ::opencv_caffe::BlobShape::internal_default_instance()); -} - -BlobProto::BlobProto(const BlobProto& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.BlobProto) -} - -void BlobProto::SharedCtor() { - _cached_size_ = 0; - raw_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - shape_ = NULL; - ::memset(&raw_data_type_, 0, reinterpret_cast(&width_) - - reinterpret_cast(&raw_data_type_) + sizeof(width_)); -} - -BlobProto::~BlobProto() { - // @@protoc_insertion_point(destructor:opencv_caffe.BlobProto) - SharedDtor(); -} - -void BlobProto::SharedDtor() { - raw_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != &BlobProto_default_instance_.get()) { - delete shape_; - } -} - -void BlobProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* BlobProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BlobProto_descriptor_; -} - -const BlobProto& BlobProto::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed BlobProto_default_instance_; - -BlobProto* BlobProto::New(::google::protobuf::Arena* arena) const { - BlobProto* n = new BlobProto; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void BlobProto::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.BlobProto) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(BlobProto, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 225u) { - ZR_(raw_data_type_, num_); - if (has_shape()) { - if (shape_ != NULL) shape_->::opencv_caffe::BlobShape::Clear(); - } - if (has_raw_data()) { - raw_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - } - ZR_(channels_, width_); - -#undef ZR_HELPER_ -#undef ZR_ - - data_.Clear(); - diff_.Clear(); - double_data_.Clear(); - double_diff_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool BlobProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.BlobProto) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 num = 1 [default = 0]; - case 1: { - if (tag == 8) { - set_has_num(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &num_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_channels; - break; - } - - // optional int32 channels = 2 [default = 0]; - case 2: { - if (tag == 16) { - parse_channels: - set_has_channels(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &channels_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_height; - break; - } - - // optional int32 height = 3 [default = 0]; - case 3: { - if (tag == 24) { - parse_height: - set_has_height(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &height_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_width; - break; - } - - // optional int32 width = 4 [default = 0]; - case 4: { - if (tag == 32) { - parse_width: - set_has_width(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &width_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_data; - break; - } - - // repeated float data = 5 [packed = true]; - case 5: { - if (tag == 42) { - parse_data: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_data()))); - } else if (tag == 45) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 42, input, this->mutable_data()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_diff; - break; - } - - // repeated float diff = 6 [packed = true]; - case 6: { - if (tag == 50) { - parse_diff: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_diff()))); - } else if (tag == 53) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 50, input, this->mutable_diff()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_shape; - break; - } - - // optional .opencv_caffe.BlobShape shape = 7; - case 7: { - if (tag == 58) { - parse_shape: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_shape())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_double_data; - break; - } - - // repeated double double_data = 8 [packed = true]; - case 8: { - if (tag == 66) { - parse_double_data: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, this->mutable_double_data()))); - } else if (tag == 65) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 66, input, this->mutable_double_data()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_double_diff; - break; - } - - // repeated double double_diff = 9 [packed = true]; - case 9: { - if (tag == 74) { - parse_double_diff: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, this->mutable_double_diff()))); - } else if (tag == 73) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 74, input, this->mutable_double_diff()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_raw_data_type; - break; - } - - // optional .opencv_caffe.Type raw_data_type = 10; - case 10: { - if (tag == 80) { - parse_raw_data_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::Type_IsValid(value)) { - set_raw_data_type(static_cast< ::opencv_caffe::Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(10, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(98)) goto parse_raw_data; - break; - } - - // optional bytes raw_data = 12 [packed = false]; - case 12: { - if (tag == 98) { - parse_raw_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_raw_data())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.BlobProto) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.BlobProto) - return false; -#undef DO_ -} - -void BlobProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.BlobProto) - // optional int32 num = 1 [default = 0]; - if (has_num()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->num(), output); - } - - // optional int32 channels = 2 [default = 0]; - if (has_channels()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->channels(), output); - } - - // optional int32 height = 3 [default = 0]; - if (has_height()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->height(), output); - } - - // optional int32 width = 4 [default = 0]; - if (has_width()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->width(), output); - } - - // repeated float data = 5 [packed = true]; - if (this->data_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_data_cached_byte_size_); - } - for (int i = 0; i < this->data_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->data(i), output); - } - - // repeated float diff = 6 [packed = true]; - if (this->diff_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_diff_cached_byte_size_); - } - for (int i = 0; i < this->diff_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->diff(i), output); - } - - // optional .opencv_caffe.BlobShape shape = 7; - if (has_shape()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, *this->shape_, output); - } - - // repeated double double_data = 8 [packed = true]; - if (this->double_data_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_double_data_cached_byte_size_); - } - for (int i = 0; i < this->double_data_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteDoubleNoTag( - this->double_data(i), output); - } - - // repeated double double_diff = 9 [packed = true]; - if (this->double_diff_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_double_diff_cached_byte_size_); - } - for (int i = 0; i < this->double_diff_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteDoubleNoTag( - this->double_diff(i), output); - } - - // optional .opencv_caffe.Type raw_data_type = 10; - if (has_raw_data_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 10, this->raw_data_type(), output); - } - - // optional bytes raw_data = 12 [packed = false]; - if (has_raw_data()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 12, this->raw_data(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.BlobProto) -} - -::google::protobuf::uint8* BlobProto::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BlobProto) - // optional int32 num = 1 [default = 0]; - if (has_num()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->num(), target); - } - - // optional int32 channels = 2 [default = 0]; - if (has_channels()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->channels(), target); - } - - // optional int32 height = 3 [default = 0]; - if (has_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->height(), target); - } - - // optional int32 width = 4 [default = 0]; - if (has_width()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->width(), target); - } - - // repeated float data = 5 [packed = true]; - if (this->data_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 5, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _data_cached_byte_size_, target); - } - for (int i = 0; i < this->data_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->data(i), target); - } - - // repeated float diff = 6 [packed = true]; - if (this->diff_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 6, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _diff_cached_byte_size_, target); - } - for (int i = 0; i < this->diff_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->diff(i), target); - } - - // optional .opencv_caffe.BlobShape shape = 7; - if (has_shape()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, *this->shape_, false, target); - } - - // repeated double double_data = 8 [packed = true]; - if (this->double_data_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 8, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _double_data_cached_byte_size_, target); - } - for (int i = 0; i < this->double_data_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->double_data(i), target); - } - - // repeated double double_diff = 9 [packed = true]; - if (this->double_diff_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 9, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _double_diff_cached_byte_size_, target); - } - for (int i = 0; i < this->double_diff_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->double_diff(i), target); - } - - // optional .opencv_caffe.Type raw_data_type = 10; - if (has_raw_data_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 10, this->raw_data_type(), target); - } - - // optional bytes raw_data = 12 [packed = false]; - if (has_raw_data()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 12, this->raw_data(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BlobProto) - return target; -} - -size_t BlobProto::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BlobProto) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 225u) { - // optional .opencv_caffe.BlobShape shape = 7; - if (has_shape()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->shape_); - } - - // optional .opencv_caffe.Type raw_data_type = 10; - if (has_raw_data_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->raw_data_type()); - } - - // optional bytes raw_data = 12 [packed = false]; - if (has_raw_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->raw_data()); - } - - // optional int32 num = 1 [default = 0]; - if (has_num()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->num()); - } - - } - if (_has_bits_[8 / 32] & 1792u) { - // optional int32 channels = 2 [default = 0]; - if (has_channels()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->channels()); - } - - // optional int32 height = 3 [default = 0]; - if (has_height()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->height()); - } - - // optional int32 width = 4 [default = 0]; - if (has_width()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->width()); - } - - } - // repeated float data = 5 [packed = true]; - { - size_t data_size = 0; - unsigned int count = this->data_size(); - data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _data_cached_byte_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated float diff = 6 [packed = true]; - { - size_t data_size = 0; - unsigned int count = this->diff_size(); - data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _diff_cached_byte_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated double double_data = 8 [packed = true]; - { - size_t data_size = 0; - unsigned int count = this->double_data_size(); - data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _double_data_cached_byte_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated double double_diff = 9 [packed = true]; - { - size_t data_size = 0; - unsigned int count = this->double_diff_size(); - data_size = 8UL * count; - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _double_diff_cached_byte_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BlobProto::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BlobProto) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const BlobProto* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BlobProto) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BlobProto) - UnsafeMergeFrom(*source); - } -} - -void BlobProto::MergeFrom(const BlobProto& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BlobProto) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void BlobProto::UnsafeMergeFrom(const BlobProto& from) { - GOOGLE_DCHECK(&from != this); - data_.UnsafeMergeFrom(from.data_); - diff_.UnsafeMergeFrom(from.diff_); - double_data_.UnsafeMergeFrom(from.double_data_); - double_diff_.UnsafeMergeFrom(from.double_diff_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_shape()) { - mutable_shape()->::opencv_caffe::BlobShape::MergeFrom(from.shape()); - } - if (from.has_raw_data_type()) { - set_raw_data_type(from.raw_data_type()); - } - if (from.has_raw_data()) { - set_has_raw_data(); - raw_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_data_); - } - if (from.has_num()) { - set_num(from.num()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_channels()) { - set_channels(from.channels()); - } - if (from.has_height()) { - set_height(from.height()); - } - if (from.has_width()) { - set_width(from.width()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void BlobProto::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BlobProto) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlobProto::CopyFrom(const BlobProto& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BlobProto) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool BlobProto::IsInitialized() const { - - return true; -} - -void BlobProto::Swap(BlobProto* other) { - if (other == this) return; - InternalSwap(other); -} -void BlobProto::InternalSwap(BlobProto* other) { - std::swap(shape_, other->shape_); - data_.UnsafeArenaSwap(&other->data_); - diff_.UnsafeArenaSwap(&other->diff_); - double_data_.UnsafeArenaSwap(&other->double_data_); - double_diff_.UnsafeArenaSwap(&other->double_diff_); - std::swap(raw_data_type_, other->raw_data_type_); - raw_data_.Swap(&other->raw_data_); - std::swap(num_, other->num_); - std::swap(channels_, other->channels_); - std::swap(height_, other->height_); - std::swap(width_, other->width_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata BlobProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = BlobProto_descriptor_; - metadata.reflection = BlobProto_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// BlobProto - -// optional .opencv_caffe.BlobShape shape = 7; -bool BlobProto::has_shape() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void BlobProto::set_has_shape() { - _has_bits_[0] |= 0x00000001u; -} -void BlobProto::clear_has_shape() { - _has_bits_[0] &= ~0x00000001u; -} -void BlobProto::clear_shape() { - if (shape_ != NULL) shape_->::opencv_caffe::BlobShape::Clear(); - clear_has_shape(); -} -const ::opencv_caffe::BlobShape& BlobProto::shape() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.shape) - return shape_ != NULL ? *shape_ - : *::opencv_caffe::BlobShape::internal_default_instance(); -} -::opencv_caffe::BlobShape* BlobProto::mutable_shape() { - set_has_shape(); - if (shape_ == NULL) { - shape_ = new ::opencv_caffe::BlobShape; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.BlobProto.shape) - return shape_; -} -::opencv_caffe::BlobShape* BlobProto::release_shape() { - // @@protoc_insertion_point(field_release:opencv_caffe.BlobProto.shape) - clear_has_shape(); - ::opencv_caffe::BlobShape* temp = shape_; - shape_ = NULL; - return temp; -} -void BlobProto::set_allocated_shape(::opencv_caffe::BlobShape* shape) { - delete shape_; - shape_ = shape; - if (shape) { - set_has_shape(); - } else { - clear_has_shape(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.BlobProto.shape) -} - -// repeated float data = 5 [packed = true]; -int BlobProto::data_size() const { - return data_.size(); -} -void BlobProto::clear_data() { - data_.Clear(); -} -float BlobProto::data(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.data) - return data_.Get(index); -} -void BlobProto::set_data(int index, float value) { - data_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.data) -} -void BlobProto::add_data(float value) { - data_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.BlobProto.data) -} -const ::google::protobuf::RepeatedField< float >& -BlobProto::data() const { - // @@protoc_insertion_point(field_list:opencv_caffe.BlobProto.data) - return data_; -} -::google::protobuf::RepeatedField< float >* -BlobProto::mutable_data() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.BlobProto.data) - return &data_; -} - -// repeated float diff = 6 [packed = true]; -int BlobProto::diff_size() const { - return diff_.size(); -} -void BlobProto::clear_diff() { - diff_.Clear(); -} -float BlobProto::diff(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.diff) - return diff_.Get(index); -} -void BlobProto::set_diff(int index, float value) { - diff_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.diff) -} -void BlobProto::add_diff(float value) { - diff_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.BlobProto.diff) -} -const ::google::protobuf::RepeatedField< float >& -BlobProto::diff() const { - // @@protoc_insertion_point(field_list:opencv_caffe.BlobProto.diff) - return diff_; -} -::google::protobuf::RepeatedField< float >* -BlobProto::mutable_diff() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.BlobProto.diff) - return &diff_; -} - -// repeated double double_data = 8 [packed = true]; -int BlobProto::double_data_size() const { - return double_data_.size(); -} -void BlobProto::clear_double_data() { - double_data_.Clear(); -} -double BlobProto::double_data(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.double_data) - return double_data_.Get(index); -} -void BlobProto::set_double_data(int index, double value) { - double_data_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.double_data) -} -void BlobProto::add_double_data(double value) { - double_data_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.BlobProto.double_data) -} -const ::google::protobuf::RepeatedField< double >& -BlobProto::double_data() const { - // @@protoc_insertion_point(field_list:opencv_caffe.BlobProto.double_data) - return double_data_; -} -::google::protobuf::RepeatedField< double >* -BlobProto::mutable_double_data() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.BlobProto.double_data) - return &double_data_; -} - -// repeated double double_diff = 9 [packed = true]; -int BlobProto::double_diff_size() const { - return double_diff_.size(); -} -void BlobProto::clear_double_diff() { - double_diff_.Clear(); -} -double BlobProto::double_diff(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.double_diff) - return double_diff_.Get(index); -} -void BlobProto::set_double_diff(int index, double value) { - double_diff_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.double_diff) -} -void BlobProto::add_double_diff(double value) { - double_diff_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.BlobProto.double_diff) -} -const ::google::protobuf::RepeatedField< double >& -BlobProto::double_diff() const { - // @@protoc_insertion_point(field_list:opencv_caffe.BlobProto.double_diff) - return double_diff_; -} -::google::protobuf::RepeatedField< double >* -BlobProto::mutable_double_diff() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.BlobProto.double_diff) - return &double_diff_; -} - -// optional .opencv_caffe.Type raw_data_type = 10; -bool BlobProto::has_raw_data_type() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void BlobProto::set_has_raw_data_type() { - _has_bits_[0] |= 0x00000020u; -} -void BlobProto::clear_has_raw_data_type() { - _has_bits_[0] &= ~0x00000020u; -} -void BlobProto::clear_raw_data_type() { - raw_data_type_ = 0; - clear_has_raw_data_type(); -} -::opencv_caffe::Type BlobProto::raw_data_type() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.raw_data_type) - return static_cast< ::opencv_caffe::Type >(raw_data_type_); -} -void BlobProto::set_raw_data_type(::opencv_caffe::Type value) { - assert(::opencv_caffe::Type_IsValid(value)); - set_has_raw_data_type(); - raw_data_type_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.raw_data_type) -} - -// optional bytes raw_data = 12 [packed = false]; -bool BlobProto::has_raw_data() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void BlobProto::set_has_raw_data() { - _has_bits_[0] |= 0x00000040u; -} -void BlobProto::clear_has_raw_data() { - _has_bits_[0] &= ~0x00000040u; -} -void BlobProto::clear_raw_data() { - raw_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_raw_data(); -} -const ::std::string& BlobProto::raw_data() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.raw_data) - return raw_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void BlobProto::set_raw_data(const ::std::string& value) { - set_has_raw_data(); - raw_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.raw_data) -} -void BlobProto::set_raw_data(const char* value) { - set_has_raw_data(); - raw_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.BlobProto.raw_data) -} -void BlobProto::set_raw_data(const void* value, size_t size) { - set_has_raw_data(); - raw_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.BlobProto.raw_data) -} -::std::string* BlobProto::mutable_raw_data() { - set_has_raw_data(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.BlobProto.raw_data) - return raw_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* BlobProto::release_raw_data() { - // @@protoc_insertion_point(field_release:opencv_caffe.BlobProto.raw_data) - clear_has_raw_data(); - return raw_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void BlobProto::set_allocated_raw_data(::std::string* raw_data) { - if (raw_data != NULL) { - set_has_raw_data(); - } else { - clear_has_raw_data(); - } - raw_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), raw_data); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.BlobProto.raw_data) -} - -// optional int32 num = 1 [default = 0]; -bool BlobProto::has_num() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void BlobProto::set_has_num() { - _has_bits_[0] |= 0x00000080u; -} -void BlobProto::clear_has_num() { - _has_bits_[0] &= ~0x00000080u; -} -void BlobProto::clear_num() { - num_ = 0; - clear_has_num(); -} -::google::protobuf::int32 BlobProto::num() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.num) - return num_; -} -void BlobProto::set_num(::google::protobuf::int32 value) { - set_has_num(); - num_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.num) -} - -// optional int32 channels = 2 [default = 0]; -bool BlobProto::has_channels() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -void BlobProto::set_has_channels() { - _has_bits_[0] |= 0x00000100u; -} -void BlobProto::clear_has_channels() { - _has_bits_[0] &= ~0x00000100u; -} -void BlobProto::clear_channels() { - channels_ = 0; - clear_has_channels(); -} -::google::protobuf::int32 BlobProto::channels() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.channels) - return channels_; -} -void BlobProto::set_channels(::google::protobuf::int32 value) { - set_has_channels(); - channels_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.channels) -} - -// optional int32 height = 3 [default = 0]; -bool BlobProto::has_height() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void BlobProto::set_has_height() { - _has_bits_[0] |= 0x00000200u; -} -void BlobProto::clear_has_height() { - _has_bits_[0] &= ~0x00000200u; -} -void BlobProto::clear_height() { - height_ = 0; - clear_has_height(); -} -::google::protobuf::int32 BlobProto::height() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.height) - return height_; -} -void BlobProto::set_height(::google::protobuf::int32 value) { - set_has_height(); - height_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.height) -} - -// optional int32 width = 4 [default = 0]; -bool BlobProto::has_width() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -void BlobProto::set_has_width() { - _has_bits_[0] |= 0x00000400u; -} -void BlobProto::clear_has_width() { - _has_bits_[0] &= ~0x00000400u; -} -void BlobProto::clear_width() { - width_ = 0; - clear_has_width(); -} -::google::protobuf::int32 BlobProto::width() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.width) - return width_; -} -void BlobProto::set_width(::google::protobuf::int32 value) { - set_has_width(); - width_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.width) -} - -inline const BlobProto* BlobProto::internal_default_instance() { - return &BlobProto_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BlobProtoVector::kBlobsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BlobProtoVector::BlobProtoVector() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.BlobProtoVector) -} - -void BlobProtoVector::InitAsDefaultInstance() { -} - -BlobProtoVector::BlobProtoVector(const BlobProtoVector& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.BlobProtoVector) -} - -void BlobProtoVector::SharedCtor() { - _cached_size_ = 0; -} - -BlobProtoVector::~BlobProtoVector() { - // @@protoc_insertion_point(destructor:opencv_caffe.BlobProtoVector) - SharedDtor(); -} - -void BlobProtoVector::SharedDtor() { -} - -void BlobProtoVector::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* BlobProtoVector::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BlobProtoVector_descriptor_; -} - -const BlobProtoVector& BlobProtoVector::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed BlobProtoVector_default_instance_; - -BlobProtoVector* BlobProtoVector::New(::google::protobuf::Arena* arena) const { - BlobProtoVector* n = new BlobProtoVector; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void BlobProtoVector::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.BlobProtoVector) - blobs_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool BlobProtoVector::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.BlobProtoVector) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .opencv_caffe.BlobProto blobs = 1; - case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_blobs: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_blobs())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_loop_blobs; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.BlobProtoVector) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.BlobProtoVector) - return false; -#undef DO_ -} - -void BlobProtoVector::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.BlobProtoVector) - // repeated .opencv_caffe.BlobProto blobs = 1; - for (unsigned int i = 0, n = this->blobs_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->blobs(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.BlobProtoVector) -} - -::google::protobuf::uint8* BlobProtoVector::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BlobProtoVector) - // repeated .opencv_caffe.BlobProto blobs = 1; - for (unsigned int i = 0, n = this->blobs_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->blobs(i), false, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BlobProtoVector) - return target; -} - -size_t BlobProtoVector::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BlobProtoVector) - size_t total_size = 0; - - // repeated .opencv_caffe.BlobProto blobs = 1; - { - unsigned int count = this->blobs_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->blobs(i)); - } - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BlobProtoVector::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BlobProtoVector) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const BlobProtoVector* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BlobProtoVector) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BlobProtoVector) - UnsafeMergeFrom(*source); - } -} - -void BlobProtoVector::MergeFrom(const BlobProtoVector& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BlobProtoVector) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void BlobProtoVector::UnsafeMergeFrom(const BlobProtoVector& from) { - GOOGLE_DCHECK(&from != this); - blobs_.MergeFrom(from.blobs_); - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void BlobProtoVector::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BlobProtoVector) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlobProtoVector::CopyFrom(const BlobProtoVector& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BlobProtoVector) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool BlobProtoVector::IsInitialized() const { - - return true; -} - -void BlobProtoVector::Swap(BlobProtoVector* other) { - if (other == this) return; - InternalSwap(other); -} -void BlobProtoVector::InternalSwap(BlobProtoVector* other) { - blobs_.UnsafeArenaSwap(&other->blobs_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata BlobProtoVector::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = BlobProtoVector_descriptor_; - metadata.reflection = BlobProtoVector_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// BlobProtoVector - -// repeated .opencv_caffe.BlobProto blobs = 1; -int BlobProtoVector::blobs_size() const { - return blobs_.size(); -} -void BlobProtoVector::clear_blobs() { - blobs_.Clear(); -} -const ::opencv_caffe::BlobProto& BlobProtoVector::blobs(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.BlobProtoVector.blobs) - return blobs_.Get(index); -} -::opencv_caffe::BlobProto* BlobProtoVector::mutable_blobs(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.BlobProtoVector.blobs) - return blobs_.Mutable(index); -} -::opencv_caffe::BlobProto* BlobProtoVector::add_blobs() { - // @@protoc_insertion_point(field_add:opencv_caffe.BlobProtoVector.blobs) - return blobs_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >* -BlobProtoVector::mutable_blobs() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.BlobProtoVector.blobs) - return &blobs_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >& -BlobProtoVector::blobs() const { - // @@protoc_insertion_point(field_list:opencv_caffe.BlobProtoVector.blobs) - return blobs_; -} - -inline const BlobProtoVector* BlobProtoVector::internal_default_instance() { - return &BlobProtoVector_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PermuteParameter::kOrderFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PermuteParameter::PermuteParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.PermuteParameter) -} - -void PermuteParameter::InitAsDefaultInstance() { -} - -PermuteParameter::PermuteParameter(const PermuteParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.PermuteParameter) -} - -void PermuteParameter::SharedCtor() { - _cached_size_ = 0; -} - -PermuteParameter::~PermuteParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.PermuteParameter) - SharedDtor(); -} - -void PermuteParameter::SharedDtor() { -} - -void PermuteParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PermuteParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PermuteParameter_descriptor_; -} - -const PermuteParameter& PermuteParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed PermuteParameter_default_instance_; - -PermuteParameter* PermuteParameter::New(::google::protobuf::Arena* arena) const { - PermuteParameter* n = new PermuteParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void PermuteParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.PermuteParameter) - order_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool PermuteParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.PermuteParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated uint32 order = 1; - case 1: { - if (tag == 8) { - parse_order: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 8, input, this->mutable_order()))); - } else if (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_order()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(8)) goto parse_order; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.PermuteParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.PermuteParameter) - return false; -#undef DO_ -} - -void PermuteParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.PermuteParameter) - // repeated uint32 order = 1; - for (int i = 0; i < this->order_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 1, this->order(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.PermuteParameter) -} - -::google::protobuf::uint8* PermuteParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PermuteParameter) - // repeated uint32 order = 1; - for (int i = 0; i < this->order_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(1, this->order(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PermuteParameter) - return target; -} - -size_t PermuteParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PermuteParameter) - size_t total_size = 0; - - // repeated uint32 order = 1; - { - size_t data_size = 0; - unsigned int count = this->order_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->order(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->order_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PermuteParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PermuteParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const PermuteParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PermuteParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PermuteParameter) - UnsafeMergeFrom(*source); - } -} - -void PermuteParameter::MergeFrom(const PermuteParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PermuteParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void PermuteParameter::UnsafeMergeFrom(const PermuteParameter& from) { - GOOGLE_DCHECK(&from != this); - order_.UnsafeMergeFrom(from.order_); - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void PermuteParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PermuteParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PermuteParameter::CopyFrom(const PermuteParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PermuteParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool PermuteParameter::IsInitialized() const { - - return true; -} - -void PermuteParameter::Swap(PermuteParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void PermuteParameter::InternalSwap(PermuteParameter* other) { - order_.UnsafeArenaSwap(&other->order_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata PermuteParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PermuteParameter_descriptor_; - metadata.reflection = PermuteParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PermuteParameter - -// repeated uint32 order = 1; -int PermuteParameter::order_size() const { - return order_.size(); -} -void PermuteParameter::clear_order() { - order_.Clear(); -} -::google::protobuf::uint32 PermuteParameter::order(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.PermuteParameter.order) - return order_.Get(index); -} -void PermuteParameter::set_order(int index, ::google::protobuf::uint32 value) { - order_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.PermuteParameter.order) -} -void PermuteParameter::add_order(::google::protobuf::uint32 value) { - order_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.PermuteParameter.order) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -PermuteParameter::order() const { - // @@protoc_insertion_point(field_list:opencv_caffe.PermuteParameter.order) - return order_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -PermuteParameter::mutable_order() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.PermuteParameter.order) - return &order_; -} - -inline const PermuteParameter* PermuteParameter::internal_default_instance() { - return &PermuteParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NormalizeBBoxParameter::kAcrossSpatialFieldNumber; -const int NormalizeBBoxParameter::kScaleFillerFieldNumber; -const int NormalizeBBoxParameter::kChannelSharedFieldNumber; -const int NormalizeBBoxParameter::kEpsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NormalizeBBoxParameter::NormalizeBBoxParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.NormalizeBBoxParameter) -} - -void NormalizeBBoxParameter::InitAsDefaultInstance() { - scale_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); -} - -NormalizeBBoxParameter::NormalizeBBoxParameter(const NormalizeBBoxParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.NormalizeBBoxParameter) -} - -void NormalizeBBoxParameter::SharedCtor() { - _cached_size_ = 0; - scale_filler_ = NULL; - across_spatial_ = true; - channel_shared_ = true; - eps_ = 1e-10f; -} - -NormalizeBBoxParameter::~NormalizeBBoxParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.NormalizeBBoxParameter) - SharedDtor(); -} - -void NormalizeBBoxParameter::SharedDtor() { - if (this != &NormalizeBBoxParameter_default_instance_.get()) { - delete scale_filler_; - } -} - -void NormalizeBBoxParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* NormalizeBBoxParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return NormalizeBBoxParameter_descriptor_; -} - -const NormalizeBBoxParameter& NormalizeBBoxParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed NormalizeBBoxParameter_default_instance_; - -NormalizeBBoxParameter* NormalizeBBoxParameter::New(::google::protobuf::Arena* arena) const { - NormalizeBBoxParameter* n = new NormalizeBBoxParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void NormalizeBBoxParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.NormalizeBBoxParameter) - if (_has_bits_[0 / 32] & 15u) { - across_spatial_ = true; - if (has_scale_filler()) { - if (scale_filler_ != NULL) scale_filler_->::opencv_caffe::FillerParameter::Clear(); - } - channel_shared_ = true; - eps_ = 1e-10f; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool NormalizeBBoxParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.NormalizeBBoxParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional bool across_spatial = 1 [default = true]; - case 1: { - if (tag == 8) { - set_has_across_spatial(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &across_spatial_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_scale_filler; - break; - } - - // optional .opencv_caffe.FillerParameter scale_filler = 2; - case 2: { - if (tag == 18) { - parse_scale_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_scale_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_channel_shared; - break; - } - - // optional bool channel_shared = 3 [default = true]; - case 3: { - if (tag == 24) { - parse_channel_shared: - set_has_channel_shared(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &channel_shared_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(37)) goto parse_eps; - break; - } - - // optional float eps = 4 [default = 1e-10]; - case 4: { - if (tag == 37) { - parse_eps: - set_has_eps(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &eps_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.NormalizeBBoxParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.NormalizeBBoxParameter) - return false; -#undef DO_ -} - -void NormalizeBBoxParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.NormalizeBBoxParameter) - // optional bool across_spatial = 1 [default = true]; - if (has_across_spatial()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->across_spatial(), output); - } - - // optional .opencv_caffe.FillerParameter scale_filler = 2; - if (has_scale_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->scale_filler_, output); - } - - // optional bool channel_shared = 3 [default = true]; - if (has_channel_shared()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->channel_shared(), output); - } - - // optional float eps = 4 [default = 1e-10]; - if (has_eps()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->eps(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.NormalizeBBoxParameter) -} - -::google::protobuf::uint8* NormalizeBBoxParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NormalizeBBoxParameter) - // optional bool across_spatial = 1 [default = true]; - if (has_across_spatial()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->across_spatial(), target); - } - - // optional .opencv_caffe.FillerParameter scale_filler = 2; - if (has_scale_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->scale_filler_, false, target); - } - - // optional bool channel_shared = 3 [default = true]; - if (has_channel_shared()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->channel_shared(), target); - } - - // optional float eps = 4 [default = 1e-10]; - if (has_eps()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->eps(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NormalizeBBoxParameter) - return target; -} - -size_t NormalizeBBoxParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NormalizeBBoxParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 15u) { - // optional bool across_spatial = 1 [default = true]; - if (has_across_spatial()) { - total_size += 1 + 1; - } - - // optional .opencv_caffe.FillerParameter scale_filler = 2; - if (has_scale_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->scale_filler_); - } - - // optional bool channel_shared = 3 [default = true]; - if (has_channel_shared()) { - total_size += 1 + 1; - } - - // optional float eps = 4 [default = 1e-10]; - if (has_eps()) { - total_size += 1 + 4; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NormalizeBBoxParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NormalizeBBoxParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const NormalizeBBoxParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NormalizeBBoxParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NormalizeBBoxParameter) - UnsafeMergeFrom(*source); - } -} - -void NormalizeBBoxParameter::MergeFrom(const NormalizeBBoxParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NormalizeBBoxParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void NormalizeBBoxParameter::UnsafeMergeFrom(const NormalizeBBoxParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_across_spatial()) { - set_across_spatial(from.across_spatial()); - } - if (from.has_scale_filler()) { - mutable_scale_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.scale_filler()); - } - if (from.has_channel_shared()) { - set_channel_shared(from.channel_shared()); - } - if (from.has_eps()) { - set_eps(from.eps()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void NormalizeBBoxParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NormalizeBBoxParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NormalizeBBoxParameter::CopyFrom(const NormalizeBBoxParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NormalizeBBoxParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool NormalizeBBoxParameter::IsInitialized() const { - - return true; -} - -void NormalizeBBoxParameter::Swap(NormalizeBBoxParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void NormalizeBBoxParameter::InternalSwap(NormalizeBBoxParameter* other) { - std::swap(across_spatial_, other->across_spatial_); - std::swap(scale_filler_, other->scale_filler_); - std::swap(channel_shared_, other->channel_shared_); - std::swap(eps_, other->eps_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata NormalizeBBoxParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = NormalizeBBoxParameter_descriptor_; - metadata.reflection = NormalizeBBoxParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// NormalizeBBoxParameter - -// optional bool across_spatial = 1 [default = true]; -bool NormalizeBBoxParameter::has_across_spatial() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void NormalizeBBoxParameter::set_has_across_spatial() { - _has_bits_[0] |= 0x00000001u; -} -void NormalizeBBoxParameter::clear_has_across_spatial() { - _has_bits_[0] &= ~0x00000001u; -} -void NormalizeBBoxParameter::clear_across_spatial() { - across_spatial_ = true; - clear_has_across_spatial(); -} -bool NormalizeBBoxParameter::across_spatial() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizeBBoxParameter.across_spatial) - return across_spatial_; -} -void NormalizeBBoxParameter::set_across_spatial(bool value) { - set_has_across_spatial(); - across_spatial_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizeBBoxParameter.across_spatial) -} - -// optional .opencv_caffe.FillerParameter scale_filler = 2; -bool NormalizeBBoxParameter::has_scale_filler() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void NormalizeBBoxParameter::set_has_scale_filler() { - _has_bits_[0] |= 0x00000002u; -} -void NormalizeBBoxParameter::clear_has_scale_filler() { - _has_bits_[0] &= ~0x00000002u; -} -void NormalizeBBoxParameter::clear_scale_filler() { - if (scale_filler_ != NULL) scale_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_scale_filler(); -} -const ::opencv_caffe::FillerParameter& NormalizeBBoxParameter::scale_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizeBBoxParameter.scale_filler) - return scale_filler_ != NULL ? *scale_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* NormalizeBBoxParameter::mutable_scale_filler() { - set_has_scale_filler(); - if (scale_filler_ == NULL) { - scale_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.NormalizeBBoxParameter.scale_filler) - return scale_filler_; -} -::opencv_caffe::FillerParameter* NormalizeBBoxParameter::release_scale_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.NormalizeBBoxParameter.scale_filler) - clear_has_scale_filler(); - ::opencv_caffe::FillerParameter* temp = scale_filler_; - scale_filler_ = NULL; - return temp; -} -void NormalizeBBoxParameter::set_allocated_scale_filler(::opencv_caffe::FillerParameter* scale_filler) { - delete scale_filler_; - scale_filler_ = scale_filler; - if (scale_filler) { - set_has_scale_filler(); - } else { - clear_has_scale_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.NormalizeBBoxParameter.scale_filler) -} - -// optional bool channel_shared = 3 [default = true]; -bool NormalizeBBoxParameter::has_channel_shared() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void NormalizeBBoxParameter::set_has_channel_shared() { - _has_bits_[0] |= 0x00000004u; -} -void NormalizeBBoxParameter::clear_has_channel_shared() { - _has_bits_[0] &= ~0x00000004u; -} -void NormalizeBBoxParameter::clear_channel_shared() { - channel_shared_ = true; - clear_has_channel_shared(); -} -bool NormalizeBBoxParameter::channel_shared() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizeBBoxParameter.channel_shared) - return channel_shared_; -} -void NormalizeBBoxParameter::set_channel_shared(bool value) { - set_has_channel_shared(); - channel_shared_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizeBBoxParameter.channel_shared) -} - -// optional float eps = 4 [default = 1e-10]; -bool NormalizeBBoxParameter::has_eps() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void NormalizeBBoxParameter::set_has_eps() { - _has_bits_[0] |= 0x00000008u; -} -void NormalizeBBoxParameter::clear_has_eps() { - _has_bits_[0] &= ~0x00000008u; -} -void NormalizeBBoxParameter::clear_eps() { - eps_ = 1e-10f; - clear_has_eps(); -} -float NormalizeBBoxParameter::eps() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizeBBoxParameter.eps) - return eps_; -} -void NormalizeBBoxParameter::set_eps(float value) { - set_has_eps(); - eps_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizeBBoxParameter.eps) -} - -inline const NormalizeBBoxParameter* NormalizeBBoxParameter::internal_default_instance() { - return &NormalizeBBoxParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - +} static_descriptor_initializer; +} // namespace protobuf_opencv_2dcaffe_2eproto +namespace opencv_caffe { const ::google::protobuf::EnumDescriptor* PriorBoxParameter_CodeType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return PriorBoxParameter_CodeType_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[0]; } bool PriorBoxParameter_CodeType_IsValid(int value) { switch (value) { @@ -5263,3016 +4022,9 @@ const PriorBoxParameter_CodeType PriorBoxParameter::CodeType_MIN; const PriorBoxParameter_CodeType PriorBoxParameter::CodeType_MAX; const int PriorBoxParameter::CodeType_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PriorBoxParameter::kMinSizeFieldNumber; -const int PriorBoxParameter::kMaxSizeFieldNumber; -const int PriorBoxParameter::kAspectRatioFieldNumber; -const int PriorBoxParameter::kFlipFieldNumber; -const int PriorBoxParameter::kClipFieldNumber; -const int PriorBoxParameter::kVarianceFieldNumber; -const int PriorBoxParameter::kImgSizeFieldNumber; -const int PriorBoxParameter::kImgHFieldNumber; -const int PriorBoxParameter::kImgWFieldNumber; -const int PriorBoxParameter::kStepFieldNumber; -const int PriorBoxParameter::kStepHFieldNumber; -const int PriorBoxParameter::kStepWFieldNumber; -const int PriorBoxParameter::kOffsetFieldNumber; -const int PriorBoxParameter::kOffsetHFieldNumber; -const int PriorBoxParameter::kOffsetWFieldNumber; -const int PriorBoxParameter::kWidthFieldNumber; -const int PriorBoxParameter::kHeightFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PriorBoxParameter::PriorBoxParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.PriorBoxParameter) -} - -void PriorBoxParameter::InitAsDefaultInstance() { -} - -PriorBoxParameter::PriorBoxParameter(const PriorBoxParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.PriorBoxParameter) -} - -void PriorBoxParameter::SharedCtor() { - _cached_size_ = 0; - ::memset(&min_size_, 0, reinterpret_cast(&step_w_) - - reinterpret_cast(&min_size_) + sizeof(step_w_)); - flip_ = true; - clip_ = true; - offset_ = 0.5f; -} - -PriorBoxParameter::~PriorBoxParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.PriorBoxParameter) - SharedDtor(); -} - -void PriorBoxParameter::SharedDtor() { -} - -void PriorBoxParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PriorBoxParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PriorBoxParameter_descriptor_; -} - -const PriorBoxParameter& PriorBoxParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed PriorBoxParameter_default_instance_; - -PriorBoxParameter* PriorBoxParameter::New(::google::protobuf::Arena* arena) const { - PriorBoxParameter* n = new PriorBoxParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void PriorBoxParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.PriorBoxParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(PriorBoxParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 219u) { - ZR_(min_size_, img_h_); - flip_ = true; - clip_ = true; - } - if (_has_bits_[8 / 32] & 7936u) { - ZR_(img_w_, step_w_); - offset_ = 0.5f; - } - -#undef ZR_HELPER_ -#undef ZR_ - - aspect_ratio_.Clear(); - variance_.Clear(); - offset_h_.Clear(); - offset_w_.Clear(); - width_.Clear(); - height_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool PriorBoxParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.PriorBoxParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float min_size = 1; - case 1: { - if (tag == 13) { - set_has_min_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &min_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_max_size; - break; - } - - // optional float max_size = 2; - case 2: { - if (tag == 21) { - parse_max_size: - set_has_max_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &max_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_aspect_ratio; - break; - } - - // repeated float aspect_ratio = 3; - case 3: { - if (tag == 29) { - parse_aspect_ratio: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 29, input, this->mutable_aspect_ratio()))); - } else if (tag == 26) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_aspect_ratio()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_aspect_ratio; - if (input->ExpectTag(32)) goto parse_flip; - break; - } - - // optional bool flip = 4 [default = true]; - case 4: { - if (tag == 32) { - parse_flip: - set_has_flip(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &flip_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_clip; - break; - } - - // optional bool clip = 5 [default = true]; - case 5: { - if (tag == 40) { - parse_clip: - set_has_clip(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &clip_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(53)) goto parse_variance; - break; - } - - // repeated float variance = 6; - case 6: { - if (tag == 53) { - parse_variance: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 53, input, this->mutable_variance()))); - } else if (tag == 50) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_variance()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(53)) goto parse_variance; - if (input->ExpectTag(56)) goto parse_img_size; - break; - } - - // optional uint32 img_size = 7; - case 7: { - if (tag == 56) { - parse_img_size: - set_has_img_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &img_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_img_h; - break; - } - - // optional uint32 img_h = 8; - case 8: { - if (tag == 64) { - parse_img_h: - set_has_img_h(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &img_h_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_img_w; - break; - } - - // optional uint32 img_w = 9; - case 9: { - if (tag == 72) { - parse_img_w: - set_has_img_w(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &img_w_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(85)) goto parse_step; - break; - } - - // optional float step = 10; - case 10: { - if (tag == 85) { - parse_step: - set_has_step(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &step_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(93)) goto parse_step_h; - break; - } - - // optional float step_h = 11; - case 11: { - if (tag == 93) { - parse_step_h: - set_has_step_h(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &step_h_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(101)) goto parse_step_w; - break; - } - - // optional float step_w = 12; - case 12: { - if (tag == 101) { - parse_step_w: - set_has_step_w(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &step_w_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(109)) goto parse_offset; - break; - } - - // optional float offset = 13 [default = 0.5]; - case 13: { - if (tag == 109) { - parse_offset: - set_has_offset(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &offset_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(117)) goto parse_offset_h; - break; - } - - // repeated float offset_h = 14; - case 14: { - if (tag == 117) { - parse_offset_h: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 117, input, this->mutable_offset_h()))); - } else if (tag == 114) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_offset_h()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(117)) goto parse_offset_h; - if (input->ExpectTag(125)) goto parse_offset_w; - break; - } - - // repeated float offset_w = 15; - case 15: { - if (tag == 125) { - parse_offset_w: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 125, input, this->mutable_offset_w()))); - } else if (tag == 122) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_offset_w()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(125)) goto parse_offset_w; - if (input->ExpectTag(133)) goto parse_width; - break; - } - - // repeated float width = 16; - case 16: { - if (tag == 133) { - parse_width: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 2, 133, input, this->mutable_width()))); - } else if (tag == 130) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_width()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(133)) goto parse_width; - if (input->ExpectTag(141)) goto parse_height; - break; - } - - // repeated float height = 17; - case 17: { - if (tag == 141) { - parse_height: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 2, 141, input, this->mutable_height()))); - } else if (tag == 138) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_height()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(141)) goto parse_height; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.PriorBoxParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.PriorBoxParameter) - return false; -#undef DO_ -} - -void PriorBoxParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.PriorBoxParameter) - // optional float min_size = 1; - if (has_min_size()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->min_size(), output); - } - - // optional float max_size = 2; - if (has_max_size()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->max_size(), output); - } - - // repeated float aspect_ratio = 3; - for (int i = 0; i < this->aspect_ratio_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 3, this->aspect_ratio(i), output); - } - - // optional bool flip = 4 [default = true]; - if (has_flip()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->flip(), output); - } - - // optional bool clip = 5 [default = true]; - if (has_clip()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->clip(), output); - } - - // repeated float variance = 6; - for (int i = 0; i < this->variance_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 6, this->variance(i), output); - } - - // optional uint32 img_size = 7; - if (has_img_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->img_size(), output); - } - - // optional uint32 img_h = 8; - if (has_img_h()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->img_h(), output); - } - - // optional uint32 img_w = 9; - if (has_img_w()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->img_w(), output); - } - - // optional float step = 10; - if (has_step()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->step(), output); - } - - // optional float step_h = 11; - if (has_step_h()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->step_h(), output); - } - - // optional float step_w = 12; - if (has_step_w()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->step_w(), output); - } - - // optional float offset = 13 [default = 0.5]; - if (has_offset()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->offset(), output); - } - - // repeated float offset_h = 14; - for (int i = 0; i < this->offset_h_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 14, this->offset_h(i), output); - } - - // repeated float offset_w = 15; - for (int i = 0; i < this->offset_w_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 15, this->offset_w(i), output); - } - - // repeated float width = 16; - for (int i = 0; i < this->width_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 16, this->width(i), output); - } - - // repeated float height = 17; - for (int i = 0; i < this->height_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 17, this->height(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.PriorBoxParameter) -} - -::google::protobuf::uint8* PriorBoxParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PriorBoxParameter) - // optional float min_size = 1; - if (has_min_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->min_size(), target); - } - - // optional float max_size = 2; - if (has_max_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->max_size(), target); - } - - // repeated float aspect_ratio = 3; - for (int i = 0; i < this->aspect_ratio_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(3, this->aspect_ratio(i), target); - } - - // optional bool flip = 4 [default = true]; - if (has_flip()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->flip(), target); - } - - // optional bool clip = 5 [default = true]; - if (has_clip()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->clip(), target); - } - - // repeated float variance = 6; - for (int i = 0; i < this->variance_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(6, this->variance(i), target); - } - - // optional uint32 img_size = 7; - if (has_img_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->img_size(), target); - } - - // optional uint32 img_h = 8; - if (has_img_h()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->img_h(), target); - } - - // optional uint32 img_w = 9; - if (has_img_w()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->img_w(), target); - } - - // optional float step = 10; - if (has_step()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->step(), target); - } - - // optional float step_h = 11; - if (has_step_h()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->step_h(), target); - } - - // optional float step_w = 12; - if (has_step_w()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->step_w(), target); - } - - // optional float offset = 13 [default = 0.5]; - if (has_offset()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->offset(), target); - } - - // repeated float offset_h = 14; - for (int i = 0; i < this->offset_h_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(14, this->offset_h(i), target); - } - - // repeated float offset_w = 15; - for (int i = 0; i < this->offset_w_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(15, this->offset_w(i), target); - } - - // repeated float width = 16; - for (int i = 0; i < this->width_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(16, this->width(i), target); - } - - // repeated float height = 17; - for (int i = 0; i < this->height_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(17, this->height(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PriorBoxParameter) - return target; -} - -size_t PriorBoxParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PriorBoxParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 219u) { - // optional float min_size = 1; - if (has_min_size()) { - total_size += 1 + 4; - } - - // optional float max_size = 2; - if (has_max_size()) { - total_size += 1 + 4; - } - - // optional bool flip = 4 [default = true]; - if (has_flip()) { - total_size += 1 + 1; - } - - // optional bool clip = 5 [default = true]; - if (has_clip()) { - total_size += 1 + 1; - } - - // optional uint32 img_size = 7; - if (has_img_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->img_size()); - } - - // optional uint32 img_h = 8; - if (has_img_h()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->img_h()); - } - - } - if (_has_bits_[8 / 32] & 7936u) { - // optional uint32 img_w = 9; - if (has_img_w()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->img_w()); - } - - // optional float step = 10; - if (has_step()) { - total_size += 1 + 4; - } - - // optional float step_h = 11; - if (has_step_h()) { - total_size += 1 + 4; - } - - // optional float step_w = 12; - if (has_step_w()) { - total_size += 1 + 4; - } - - // optional float offset = 13 [default = 0.5]; - if (has_offset()) { - total_size += 1 + 4; - } - - } - // repeated float aspect_ratio = 3; - { - size_t data_size = 0; - unsigned int count = this->aspect_ratio_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->aspect_ratio_size()); - total_size += data_size; - } - - // repeated float variance = 6; - { - size_t data_size = 0; - unsigned int count = this->variance_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->variance_size()); - total_size += data_size; - } - - // repeated float offset_h = 14; - { - size_t data_size = 0; - unsigned int count = this->offset_h_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->offset_h_size()); - total_size += data_size; - } - - // repeated float offset_w = 15; - { - size_t data_size = 0; - unsigned int count = this->offset_w_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->offset_w_size()); - total_size += data_size; - } - - // repeated float width = 16; - { - size_t data_size = 0; - unsigned int count = this->width_size(); - data_size = 4UL * count; - total_size += 2 * - ::google::protobuf::internal::FromIntSize(this->width_size()); - total_size += data_size; - } - - // repeated float height = 17; - { - size_t data_size = 0; - unsigned int count = this->height_size(); - data_size = 4UL * count; - total_size += 2 * - ::google::protobuf::internal::FromIntSize(this->height_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PriorBoxParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PriorBoxParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const PriorBoxParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PriorBoxParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PriorBoxParameter) - UnsafeMergeFrom(*source); - } -} - -void PriorBoxParameter::MergeFrom(const PriorBoxParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PriorBoxParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void PriorBoxParameter::UnsafeMergeFrom(const PriorBoxParameter& from) { - GOOGLE_DCHECK(&from != this); - aspect_ratio_.UnsafeMergeFrom(from.aspect_ratio_); - variance_.UnsafeMergeFrom(from.variance_); - offset_h_.UnsafeMergeFrom(from.offset_h_); - offset_w_.UnsafeMergeFrom(from.offset_w_); - width_.UnsafeMergeFrom(from.width_); - height_.UnsafeMergeFrom(from.height_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_min_size()) { - set_min_size(from.min_size()); - } - if (from.has_max_size()) { - set_max_size(from.max_size()); - } - if (from.has_flip()) { - set_flip(from.flip()); - } - if (from.has_clip()) { - set_clip(from.clip()); - } - if (from.has_img_size()) { - set_img_size(from.img_size()); - } - if (from.has_img_h()) { - set_img_h(from.img_h()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_img_w()) { - set_img_w(from.img_w()); - } - if (from.has_step()) { - set_step(from.step()); - } - if (from.has_step_h()) { - set_step_h(from.step_h()); - } - if (from.has_step_w()) { - set_step_w(from.step_w()); - } - if (from.has_offset()) { - set_offset(from.offset()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void PriorBoxParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PriorBoxParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PriorBoxParameter::CopyFrom(const PriorBoxParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PriorBoxParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool PriorBoxParameter::IsInitialized() const { - - return true; -} - -void PriorBoxParameter::Swap(PriorBoxParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void PriorBoxParameter::InternalSwap(PriorBoxParameter* other) { - std::swap(min_size_, other->min_size_); - std::swap(max_size_, other->max_size_); - aspect_ratio_.UnsafeArenaSwap(&other->aspect_ratio_); - std::swap(flip_, other->flip_); - std::swap(clip_, other->clip_); - variance_.UnsafeArenaSwap(&other->variance_); - std::swap(img_size_, other->img_size_); - std::swap(img_h_, other->img_h_); - std::swap(img_w_, other->img_w_); - std::swap(step_, other->step_); - std::swap(step_h_, other->step_h_); - std::swap(step_w_, other->step_w_); - std::swap(offset_, other->offset_); - offset_h_.UnsafeArenaSwap(&other->offset_h_); - offset_w_.UnsafeArenaSwap(&other->offset_w_); - width_.UnsafeArenaSwap(&other->width_); - height_.UnsafeArenaSwap(&other->height_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata PriorBoxParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PriorBoxParameter_descriptor_; - metadata.reflection = PriorBoxParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PriorBoxParameter - -// optional float min_size = 1; -bool PriorBoxParameter::has_min_size() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void PriorBoxParameter::set_has_min_size() { - _has_bits_[0] |= 0x00000001u; -} -void PriorBoxParameter::clear_has_min_size() { - _has_bits_[0] &= ~0x00000001u; -} -void PriorBoxParameter::clear_min_size() { - min_size_ = 0; - clear_has_min_size(); -} -float PriorBoxParameter::min_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.min_size) - return min_size_; -} -void PriorBoxParameter::set_min_size(float value) { - set_has_min_size(); - min_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.min_size) -} - -// optional float max_size = 2; -bool PriorBoxParameter::has_max_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void PriorBoxParameter::set_has_max_size() { - _has_bits_[0] |= 0x00000002u; -} -void PriorBoxParameter::clear_has_max_size() { - _has_bits_[0] &= ~0x00000002u; -} -void PriorBoxParameter::clear_max_size() { - max_size_ = 0; - clear_has_max_size(); -} -float PriorBoxParameter::max_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.max_size) - return max_size_; -} -void PriorBoxParameter::set_max_size(float value) { - set_has_max_size(); - max_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.max_size) -} - -// repeated float aspect_ratio = 3; -int PriorBoxParameter::aspect_ratio_size() const { - return aspect_ratio_.size(); -} -void PriorBoxParameter::clear_aspect_ratio() { - aspect_ratio_.Clear(); -} -float PriorBoxParameter::aspect_ratio(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.aspect_ratio) - return aspect_ratio_.Get(index); -} -void PriorBoxParameter::set_aspect_ratio(int index, float value) { - aspect_ratio_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.aspect_ratio) -} -void PriorBoxParameter::add_aspect_ratio(float value) { - aspect_ratio_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.PriorBoxParameter.aspect_ratio) -} -const ::google::protobuf::RepeatedField< float >& -PriorBoxParameter::aspect_ratio() const { - // @@protoc_insertion_point(field_list:opencv_caffe.PriorBoxParameter.aspect_ratio) - return aspect_ratio_; -} -::google::protobuf::RepeatedField< float >* -PriorBoxParameter::mutable_aspect_ratio() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.PriorBoxParameter.aspect_ratio) - return &aspect_ratio_; -} - -// optional bool flip = 4 [default = true]; -bool PriorBoxParameter::has_flip() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void PriorBoxParameter::set_has_flip() { - _has_bits_[0] |= 0x00000008u; -} -void PriorBoxParameter::clear_has_flip() { - _has_bits_[0] &= ~0x00000008u; -} -void PriorBoxParameter::clear_flip() { - flip_ = true; - clear_has_flip(); -} -bool PriorBoxParameter::flip() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.flip) - return flip_; -} -void PriorBoxParameter::set_flip(bool value) { - set_has_flip(); - flip_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.flip) -} - -// optional bool clip = 5 [default = true]; -bool PriorBoxParameter::has_clip() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void PriorBoxParameter::set_has_clip() { - _has_bits_[0] |= 0x00000010u; -} -void PriorBoxParameter::clear_has_clip() { - _has_bits_[0] &= ~0x00000010u; -} -void PriorBoxParameter::clear_clip() { - clip_ = true; - clear_has_clip(); -} -bool PriorBoxParameter::clip() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.clip) - return clip_; -} -void PriorBoxParameter::set_clip(bool value) { - set_has_clip(); - clip_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.clip) -} - -// repeated float variance = 6; -int PriorBoxParameter::variance_size() const { - return variance_.size(); -} -void PriorBoxParameter::clear_variance() { - variance_.Clear(); -} -float PriorBoxParameter::variance(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.variance) - return variance_.Get(index); -} -void PriorBoxParameter::set_variance(int index, float value) { - variance_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.variance) -} -void PriorBoxParameter::add_variance(float value) { - variance_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.PriorBoxParameter.variance) -} -const ::google::protobuf::RepeatedField< float >& -PriorBoxParameter::variance() const { - // @@protoc_insertion_point(field_list:opencv_caffe.PriorBoxParameter.variance) - return variance_; -} -::google::protobuf::RepeatedField< float >* -PriorBoxParameter::mutable_variance() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.PriorBoxParameter.variance) - return &variance_; -} - -// optional uint32 img_size = 7; -bool PriorBoxParameter::has_img_size() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void PriorBoxParameter::set_has_img_size() { - _has_bits_[0] |= 0x00000040u; -} -void PriorBoxParameter::clear_has_img_size() { - _has_bits_[0] &= ~0x00000040u; -} -void PriorBoxParameter::clear_img_size() { - img_size_ = 0u; - clear_has_img_size(); -} -::google::protobuf::uint32 PriorBoxParameter::img_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.img_size) - return img_size_; -} -void PriorBoxParameter::set_img_size(::google::protobuf::uint32 value) { - set_has_img_size(); - img_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.img_size) -} - -// optional uint32 img_h = 8; -bool PriorBoxParameter::has_img_h() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void PriorBoxParameter::set_has_img_h() { - _has_bits_[0] |= 0x00000080u; -} -void PriorBoxParameter::clear_has_img_h() { - _has_bits_[0] &= ~0x00000080u; -} -void PriorBoxParameter::clear_img_h() { - img_h_ = 0u; - clear_has_img_h(); -} -::google::protobuf::uint32 PriorBoxParameter::img_h() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.img_h) - return img_h_; -} -void PriorBoxParameter::set_img_h(::google::protobuf::uint32 value) { - set_has_img_h(); - img_h_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.img_h) -} - -// optional uint32 img_w = 9; -bool PriorBoxParameter::has_img_w() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -void PriorBoxParameter::set_has_img_w() { - _has_bits_[0] |= 0x00000100u; -} -void PriorBoxParameter::clear_has_img_w() { - _has_bits_[0] &= ~0x00000100u; -} -void PriorBoxParameter::clear_img_w() { - img_w_ = 0u; - clear_has_img_w(); -} -::google::protobuf::uint32 PriorBoxParameter::img_w() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.img_w) - return img_w_; -} -void PriorBoxParameter::set_img_w(::google::protobuf::uint32 value) { - set_has_img_w(); - img_w_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.img_w) -} - -// optional float step = 10; -bool PriorBoxParameter::has_step() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void PriorBoxParameter::set_has_step() { - _has_bits_[0] |= 0x00000200u; -} -void PriorBoxParameter::clear_has_step() { - _has_bits_[0] &= ~0x00000200u; -} -void PriorBoxParameter::clear_step() { - step_ = 0; - clear_has_step(); -} -float PriorBoxParameter::step() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.step) - return step_; -} -void PriorBoxParameter::set_step(float value) { - set_has_step(); - step_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.step) -} - -// optional float step_h = 11; -bool PriorBoxParameter::has_step_h() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -void PriorBoxParameter::set_has_step_h() { - _has_bits_[0] |= 0x00000400u; -} -void PriorBoxParameter::clear_has_step_h() { - _has_bits_[0] &= ~0x00000400u; -} -void PriorBoxParameter::clear_step_h() { - step_h_ = 0; - clear_has_step_h(); -} -float PriorBoxParameter::step_h() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.step_h) - return step_h_; -} -void PriorBoxParameter::set_step_h(float value) { - set_has_step_h(); - step_h_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.step_h) -} - -// optional float step_w = 12; -bool PriorBoxParameter::has_step_w() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -void PriorBoxParameter::set_has_step_w() { - _has_bits_[0] |= 0x00000800u; -} -void PriorBoxParameter::clear_has_step_w() { - _has_bits_[0] &= ~0x00000800u; -} -void PriorBoxParameter::clear_step_w() { - step_w_ = 0; - clear_has_step_w(); -} -float PriorBoxParameter::step_w() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.step_w) - return step_w_; -} -void PriorBoxParameter::set_step_w(float value) { - set_has_step_w(); - step_w_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.step_w) -} - -// optional float offset = 13 [default = 0.5]; -bool PriorBoxParameter::has_offset() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -void PriorBoxParameter::set_has_offset() { - _has_bits_[0] |= 0x00001000u; -} -void PriorBoxParameter::clear_has_offset() { - _has_bits_[0] &= ~0x00001000u; -} -void PriorBoxParameter::clear_offset() { - offset_ = 0.5f; - clear_has_offset(); -} -float PriorBoxParameter::offset() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.offset) - return offset_; -} -void PriorBoxParameter::set_offset(float value) { - set_has_offset(); - offset_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.offset) -} - -// repeated float offset_h = 14; -int PriorBoxParameter::offset_h_size() const { - return offset_h_.size(); -} -void PriorBoxParameter::clear_offset_h() { - offset_h_.Clear(); -} -float PriorBoxParameter::offset_h(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.offset_h) - return offset_h_.Get(index); -} -void PriorBoxParameter::set_offset_h(int index, float value) { - offset_h_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.offset_h) -} -void PriorBoxParameter::add_offset_h(float value) { - offset_h_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.PriorBoxParameter.offset_h) -} -const ::google::protobuf::RepeatedField< float >& -PriorBoxParameter::offset_h() const { - // @@protoc_insertion_point(field_list:opencv_caffe.PriorBoxParameter.offset_h) - return offset_h_; -} -::google::protobuf::RepeatedField< float >* -PriorBoxParameter::mutable_offset_h() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.PriorBoxParameter.offset_h) - return &offset_h_; -} - -// repeated float offset_w = 15; -int PriorBoxParameter::offset_w_size() const { - return offset_w_.size(); -} -void PriorBoxParameter::clear_offset_w() { - offset_w_.Clear(); -} -float PriorBoxParameter::offset_w(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.offset_w) - return offset_w_.Get(index); -} -void PriorBoxParameter::set_offset_w(int index, float value) { - offset_w_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.offset_w) -} -void PriorBoxParameter::add_offset_w(float value) { - offset_w_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.PriorBoxParameter.offset_w) -} -const ::google::protobuf::RepeatedField< float >& -PriorBoxParameter::offset_w() const { - // @@protoc_insertion_point(field_list:opencv_caffe.PriorBoxParameter.offset_w) - return offset_w_; -} -::google::protobuf::RepeatedField< float >* -PriorBoxParameter::mutable_offset_w() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.PriorBoxParameter.offset_w) - return &offset_w_; -} - -// repeated float width = 16; -int PriorBoxParameter::width_size() const { - return width_.size(); -} -void PriorBoxParameter::clear_width() { - width_.Clear(); -} -float PriorBoxParameter::width(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.width) - return width_.Get(index); -} -void PriorBoxParameter::set_width(int index, float value) { - width_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.width) -} -void PriorBoxParameter::add_width(float value) { - width_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.PriorBoxParameter.width) -} -const ::google::protobuf::RepeatedField< float >& -PriorBoxParameter::width() const { - // @@protoc_insertion_point(field_list:opencv_caffe.PriorBoxParameter.width) - return width_; -} -::google::protobuf::RepeatedField< float >* -PriorBoxParameter::mutable_width() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.PriorBoxParameter.width) - return &width_; -} - -// repeated float height = 17; -int PriorBoxParameter::height_size() const { - return height_.size(); -} -void PriorBoxParameter::clear_height() { - height_.Clear(); -} -float PriorBoxParameter::height(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.PriorBoxParameter.height) - return height_.Get(index); -} -void PriorBoxParameter::set_height(int index, float value) { - height_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.PriorBoxParameter.height) -} -void PriorBoxParameter::add_height(float value) { - height_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.PriorBoxParameter.height) -} -const ::google::protobuf::RepeatedField< float >& -PriorBoxParameter::height() const { - // @@protoc_insertion_point(field_list:opencv_caffe.PriorBoxParameter.height) - return height_; -} -::google::protobuf::RepeatedField< float >* -PriorBoxParameter::mutable_height() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.PriorBoxParameter.height) - return &height_; -} - -inline const PriorBoxParameter* PriorBoxParameter::internal_default_instance() { - return &PriorBoxParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DetectionOutputParameter::kNumClassesFieldNumber; -const int DetectionOutputParameter::kShareLocationFieldNumber; -const int DetectionOutputParameter::kBackgroundLabelIdFieldNumber; -const int DetectionOutputParameter::kNmsParamFieldNumber; -const int DetectionOutputParameter::kSaveOutputParamFieldNumber; -const int DetectionOutputParameter::kCodeTypeFieldNumber; -const int DetectionOutputParameter::kVarianceEncodedInTargetFieldNumber; -const int DetectionOutputParameter::kKeepTopKFieldNumber; -const int DetectionOutputParameter::kConfidenceThresholdFieldNumber; -const int DetectionOutputParameter::kNormalizedBboxFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DetectionOutputParameter::DetectionOutputParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.DetectionOutputParameter) -} - -void DetectionOutputParameter::InitAsDefaultInstance() { - nms_param_ = const_cast< ::opencv_caffe::NonMaximumSuppressionParameter*>( - ::opencv_caffe::NonMaximumSuppressionParameter::internal_default_instance()); - save_output_param_ = const_cast< ::opencv_caffe::SaveOutputParameter*>( - ::opencv_caffe::SaveOutputParameter::internal_default_instance()); -} - -DetectionOutputParameter::DetectionOutputParameter(const DetectionOutputParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.DetectionOutputParameter) -} - -void DetectionOutputParameter::SharedCtor() { - _cached_size_ = 0; - nms_param_ = NULL; - save_output_param_ = NULL; - ::memset(&num_classes_, 0, reinterpret_cast(&confidence_threshold_) - - reinterpret_cast(&num_classes_) + sizeof(confidence_threshold_)); - keep_top_k_ = -1; - code_type_ = 1; - share_location_ = true; - normalized_bbox_ = true; -} - -DetectionOutputParameter::~DetectionOutputParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.DetectionOutputParameter) - SharedDtor(); -} - -void DetectionOutputParameter::SharedDtor() { - if (this != &DetectionOutputParameter_default_instance_.get()) { - delete nms_param_; - delete save_output_param_; - } -} - -void DetectionOutputParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* DetectionOutputParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DetectionOutputParameter_descriptor_; -} - -const DetectionOutputParameter& DetectionOutputParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed DetectionOutputParameter_default_instance_; - -DetectionOutputParameter* DetectionOutputParameter::New(::google::protobuf::Arena* arena) const { - DetectionOutputParameter* n = new DetectionOutputParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void DetectionOutputParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.DetectionOutputParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(DetectionOutputParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 255u) { - ZR_(num_classes_, variance_encoded_in_target_); - share_location_ = true; - if (has_nms_param()) { - if (nms_param_ != NULL) nms_param_->::opencv_caffe::NonMaximumSuppressionParameter::Clear(); - } - if (has_save_output_param()) { - if (save_output_param_ != NULL) save_output_param_->::opencv_caffe::SaveOutputParameter::Clear(); - } - code_type_ = 1; - keep_top_k_ = -1; - } - if (_has_bits_[8 / 32] & 768u) { - confidence_threshold_ = 0; - normalized_bbox_ = true; - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool DetectionOutputParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.DetectionOutputParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 num_classes = 1; - case 1: { - if (tag == 8) { - set_has_num_classes(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &num_classes_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_share_location; - break; - } - - // optional bool share_location = 2 [default = true]; - case 2: { - if (tag == 16) { - parse_share_location: - set_has_share_location(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &share_location_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_background_label_id; - break; - } - - // optional int32 background_label_id = 3 [default = 0]; - case 3: { - if (tag == 24) { - parse_background_label_id: - set_has_background_label_id(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &background_label_id_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_nms_param; - break; - } - - // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; - case 4: { - if (tag == 34) { - parse_nms_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_nms_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_save_output_param; - break; - } - - // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; - case 5: { - if (tag == 42) { - parse_save_output_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_save_output_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_code_type; - break; - } - - // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; - case 6: { - if (tag == 48) { - parse_code_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::PriorBoxParameter_CodeType_IsValid(value)) { - set_code_type(static_cast< ::opencv_caffe::PriorBoxParameter_CodeType >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_keep_top_k; - break; - } - - // optional int32 keep_top_k = 7 [default = -1]; - case 7: { - if (tag == 56) { - parse_keep_top_k: - set_has_keep_top_k(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &keep_top_k_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_variance_encoded_in_target; - break; - } - - // optional bool variance_encoded_in_target = 8 [default = false]; - case 8: { - if (tag == 64) { - parse_variance_encoded_in_target: - set_has_variance_encoded_in_target(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &variance_encoded_in_target_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(77)) goto parse_confidence_threshold; - break; - } - - // optional float confidence_threshold = 9; - case 9: { - if (tag == 77) { - parse_confidence_threshold: - set_has_confidence_threshold(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &confidence_threshold_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_normalized_bbox; - break; - } - - // optional bool normalized_bbox = 10 [default = true]; - case 10: { - if (tag == 80) { - parse_normalized_bbox: - set_has_normalized_bbox(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &normalized_bbox_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.DetectionOutputParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.DetectionOutputParameter) - return false; -#undef DO_ -} - -void DetectionOutputParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.DetectionOutputParameter) - // optional uint32 num_classes = 1; - if (has_num_classes()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_classes(), output); - } - - // optional bool share_location = 2 [default = true]; - if (has_share_location()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->share_location(), output); - } - - // optional int32 background_label_id = 3 [default = 0]; - if (has_background_label_id()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->background_label_id(), output); - } - - // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; - if (has_nms_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *this->nms_param_, output); - } - - // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; - if (has_save_output_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *this->save_output_param_, output); - } - - // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; - if (has_code_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->code_type(), output); - } - - // optional int32 keep_top_k = 7 [default = -1]; - if (has_keep_top_k()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->keep_top_k(), output); - } - - // optional bool variance_encoded_in_target = 8 [default = false]; - if (has_variance_encoded_in_target()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->variance_encoded_in_target(), output); - } - - // optional float confidence_threshold = 9; - if (has_confidence_threshold()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->confidence_threshold(), output); - } - - // optional bool normalized_bbox = 10 [default = true]; - if (has_normalized_bbox()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->normalized_bbox(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.DetectionOutputParameter) -} - -::google::protobuf::uint8* DetectionOutputParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DetectionOutputParameter) - // optional uint32 num_classes = 1; - if (has_num_classes()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_classes(), target); - } - - // optional bool share_location = 2 [default = true]; - if (has_share_location()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->share_location(), target); - } - - // optional int32 background_label_id = 3 [default = 0]; - if (has_background_label_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->background_label_id(), target); - } - - // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; - if (has_nms_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *this->nms_param_, false, target); - } - - // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; - if (has_save_output_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *this->save_output_param_, false, target); - } - - // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; - if (has_code_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->code_type(), target); - } - - // optional int32 keep_top_k = 7 [default = -1]; - if (has_keep_top_k()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->keep_top_k(), target); - } - - // optional bool variance_encoded_in_target = 8 [default = false]; - if (has_variance_encoded_in_target()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->variance_encoded_in_target(), target); - } - - // optional float confidence_threshold = 9; - if (has_confidence_threshold()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->confidence_threshold(), target); - } - - // optional bool normalized_bbox = 10 [default = true]; - if (has_normalized_bbox()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->normalized_bbox(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DetectionOutputParameter) - return target; -} - -size_t DetectionOutputParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DetectionOutputParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 255u) { - // optional uint32 num_classes = 1; - if (has_num_classes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->num_classes()); - } - - // optional bool share_location = 2 [default = true]; - if (has_share_location()) { - total_size += 1 + 1; - } - - // optional int32 background_label_id = 3 [default = 0]; - if (has_background_label_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->background_label_id()); - } - - // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; - if (has_nms_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->nms_param_); - } - - // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; - if (has_save_output_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->save_output_param_); - } - - // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; - if (has_code_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->code_type()); - } - - // optional bool variance_encoded_in_target = 8 [default = false]; - if (has_variance_encoded_in_target()) { - total_size += 1 + 1; - } - - // optional int32 keep_top_k = 7 [default = -1]; - if (has_keep_top_k()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->keep_top_k()); - } - - } - if (_has_bits_[8 / 32] & 768u) { - // optional float confidence_threshold = 9; - if (has_confidence_threshold()) { - total_size += 1 + 4; - } - - // optional bool normalized_bbox = 10 [default = true]; - if (has_normalized_bbox()) { - total_size += 1 + 1; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DetectionOutputParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DetectionOutputParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const DetectionOutputParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DetectionOutputParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DetectionOutputParameter) - UnsafeMergeFrom(*source); - } -} - -void DetectionOutputParameter::MergeFrom(const DetectionOutputParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DetectionOutputParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void DetectionOutputParameter::UnsafeMergeFrom(const DetectionOutputParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_num_classes()) { - set_num_classes(from.num_classes()); - } - if (from.has_share_location()) { - set_share_location(from.share_location()); - } - if (from.has_background_label_id()) { - set_background_label_id(from.background_label_id()); - } - if (from.has_nms_param()) { - mutable_nms_param()->::opencv_caffe::NonMaximumSuppressionParameter::MergeFrom(from.nms_param()); - } - if (from.has_save_output_param()) { - mutable_save_output_param()->::opencv_caffe::SaveOutputParameter::MergeFrom(from.save_output_param()); - } - if (from.has_code_type()) { - set_code_type(from.code_type()); - } - if (from.has_variance_encoded_in_target()) { - set_variance_encoded_in_target(from.variance_encoded_in_target()); - } - if (from.has_keep_top_k()) { - set_keep_top_k(from.keep_top_k()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_confidence_threshold()) { - set_confidence_threshold(from.confidence_threshold()); - } - if (from.has_normalized_bbox()) { - set_normalized_bbox(from.normalized_bbox()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void DetectionOutputParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DetectionOutputParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DetectionOutputParameter::CopyFrom(const DetectionOutputParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DetectionOutputParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool DetectionOutputParameter::IsInitialized() const { - - return true; -} - -void DetectionOutputParameter::Swap(DetectionOutputParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void DetectionOutputParameter::InternalSwap(DetectionOutputParameter* other) { - std::swap(num_classes_, other->num_classes_); - std::swap(share_location_, other->share_location_); - std::swap(background_label_id_, other->background_label_id_); - std::swap(nms_param_, other->nms_param_); - std::swap(save_output_param_, other->save_output_param_); - std::swap(code_type_, other->code_type_); - std::swap(variance_encoded_in_target_, other->variance_encoded_in_target_); - std::swap(keep_top_k_, other->keep_top_k_); - std::swap(confidence_threshold_, other->confidence_threshold_); - std::swap(normalized_bbox_, other->normalized_bbox_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata DetectionOutputParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DetectionOutputParameter_descriptor_; - metadata.reflection = DetectionOutputParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// DetectionOutputParameter - -// optional uint32 num_classes = 1; -bool DetectionOutputParameter::has_num_classes() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void DetectionOutputParameter::set_has_num_classes() { - _has_bits_[0] |= 0x00000001u; -} -void DetectionOutputParameter::clear_has_num_classes() { - _has_bits_[0] &= ~0x00000001u; -} -void DetectionOutputParameter::clear_num_classes() { - num_classes_ = 0u; - clear_has_num_classes(); -} -::google::protobuf::uint32 DetectionOutputParameter::num_classes() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.num_classes) - return num_classes_; -} -void DetectionOutputParameter::set_num_classes(::google::protobuf::uint32 value) { - set_has_num_classes(); - num_classes_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DetectionOutputParameter.num_classes) -} - -// optional bool share_location = 2 [default = true]; -bool DetectionOutputParameter::has_share_location() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void DetectionOutputParameter::set_has_share_location() { - _has_bits_[0] |= 0x00000002u; -} -void DetectionOutputParameter::clear_has_share_location() { - _has_bits_[0] &= ~0x00000002u; -} -void DetectionOutputParameter::clear_share_location() { - share_location_ = true; - clear_has_share_location(); -} -bool DetectionOutputParameter::share_location() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.share_location) - return share_location_; -} -void DetectionOutputParameter::set_share_location(bool value) { - set_has_share_location(); - share_location_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DetectionOutputParameter.share_location) -} - -// optional int32 background_label_id = 3 [default = 0]; -bool DetectionOutputParameter::has_background_label_id() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void DetectionOutputParameter::set_has_background_label_id() { - _has_bits_[0] |= 0x00000004u; -} -void DetectionOutputParameter::clear_has_background_label_id() { - _has_bits_[0] &= ~0x00000004u; -} -void DetectionOutputParameter::clear_background_label_id() { - background_label_id_ = 0; - clear_has_background_label_id(); -} -::google::protobuf::int32 DetectionOutputParameter::background_label_id() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.background_label_id) - return background_label_id_; -} -void DetectionOutputParameter::set_background_label_id(::google::protobuf::int32 value) { - set_has_background_label_id(); - background_label_id_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DetectionOutputParameter.background_label_id) -} - -// optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; -bool DetectionOutputParameter::has_nms_param() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void DetectionOutputParameter::set_has_nms_param() { - _has_bits_[0] |= 0x00000008u; -} -void DetectionOutputParameter::clear_has_nms_param() { - _has_bits_[0] &= ~0x00000008u; -} -void DetectionOutputParameter::clear_nms_param() { - if (nms_param_ != NULL) nms_param_->::opencv_caffe::NonMaximumSuppressionParameter::Clear(); - clear_has_nms_param(); -} -const ::opencv_caffe::NonMaximumSuppressionParameter& DetectionOutputParameter::nms_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.nms_param) - return nms_param_ != NULL ? *nms_param_ - : *::opencv_caffe::NonMaximumSuppressionParameter::internal_default_instance(); -} -::opencv_caffe::NonMaximumSuppressionParameter* DetectionOutputParameter::mutable_nms_param() { - set_has_nms_param(); - if (nms_param_ == NULL) { - nms_param_ = new ::opencv_caffe::NonMaximumSuppressionParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.DetectionOutputParameter.nms_param) - return nms_param_; -} -::opencv_caffe::NonMaximumSuppressionParameter* DetectionOutputParameter::release_nms_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.DetectionOutputParameter.nms_param) - clear_has_nms_param(); - ::opencv_caffe::NonMaximumSuppressionParameter* temp = nms_param_; - nms_param_ = NULL; - return temp; -} -void DetectionOutputParameter::set_allocated_nms_param(::opencv_caffe::NonMaximumSuppressionParameter* nms_param) { - delete nms_param_; - nms_param_ = nms_param; - if (nms_param) { - set_has_nms_param(); - } else { - clear_has_nms_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.DetectionOutputParameter.nms_param) -} - -// optional .opencv_caffe.SaveOutputParameter save_output_param = 5; -bool DetectionOutputParameter::has_save_output_param() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void DetectionOutputParameter::set_has_save_output_param() { - _has_bits_[0] |= 0x00000010u; -} -void DetectionOutputParameter::clear_has_save_output_param() { - _has_bits_[0] &= ~0x00000010u; -} -void DetectionOutputParameter::clear_save_output_param() { - if (save_output_param_ != NULL) save_output_param_->::opencv_caffe::SaveOutputParameter::Clear(); - clear_has_save_output_param(); -} -const ::opencv_caffe::SaveOutputParameter& DetectionOutputParameter::save_output_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.save_output_param) - return save_output_param_ != NULL ? *save_output_param_ - : *::opencv_caffe::SaveOutputParameter::internal_default_instance(); -} -::opencv_caffe::SaveOutputParameter* DetectionOutputParameter::mutable_save_output_param() { - set_has_save_output_param(); - if (save_output_param_ == NULL) { - save_output_param_ = new ::opencv_caffe::SaveOutputParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.DetectionOutputParameter.save_output_param) - return save_output_param_; -} -::opencv_caffe::SaveOutputParameter* DetectionOutputParameter::release_save_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.DetectionOutputParameter.save_output_param) - clear_has_save_output_param(); - ::opencv_caffe::SaveOutputParameter* temp = save_output_param_; - save_output_param_ = NULL; - return temp; -} -void DetectionOutputParameter::set_allocated_save_output_param(::opencv_caffe::SaveOutputParameter* save_output_param) { - delete save_output_param_; - save_output_param_ = save_output_param; - if (save_output_param) { - set_has_save_output_param(); - } else { - clear_has_save_output_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.DetectionOutputParameter.save_output_param) -} - -// optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; -bool DetectionOutputParameter::has_code_type() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void DetectionOutputParameter::set_has_code_type() { - _has_bits_[0] |= 0x00000020u; -} -void DetectionOutputParameter::clear_has_code_type() { - _has_bits_[0] &= ~0x00000020u; -} -void DetectionOutputParameter::clear_code_type() { - code_type_ = 1; - clear_has_code_type(); -} -::opencv_caffe::PriorBoxParameter_CodeType DetectionOutputParameter::code_type() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.code_type) - return static_cast< ::opencv_caffe::PriorBoxParameter_CodeType >(code_type_); -} -void DetectionOutputParameter::set_code_type(::opencv_caffe::PriorBoxParameter_CodeType value) { - assert(::opencv_caffe::PriorBoxParameter_CodeType_IsValid(value)); - set_has_code_type(); - code_type_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DetectionOutputParameter.code_type) -} - -// optional bool variance_encoded_in_target = 8 [default = false]; -bool DetectionOutputParameter::has_variance_encoded_in_target() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void DetectionOutputParameter::set_has_variance_encoded_in_target() { - _has_bits_[0] |= 0x00000040u; -} -void DetectionOutputParameter::clear_has_variance_encoded_in_target() { - _has_bits_[0] &= ~0x00000040u; -} -void DetectionOutputParameter::clear_variance_encoded_in_target() { - variance_encoded_in_target_ = false; - clear_has_variance_encoded_in_target(); -} -bool DetectionOutputParameter::variance_encoded_in_target() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.variance_encoded_in_target) - return variance_encoded_in_target_; -} -void DetectionOutputParameter::set_variance_encoded_in_target(bool value) { - set_has_variance_encoded_in_target(); - variance_encoded_in_target_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DetectionOutputParameter.variance_encoded_in_target) -} - -// optional int32 keep_top_k = 7 [default = -1]; -bool DetectionOutputParameter::has_keep_top_k() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void DetectionOutputParameter::set_has_keep_top_k() { - _has_bits_[0] |= 0x00000080u; -} -void DetectionOutputParameter::clear_has_keep_top_k() { - _has_bits_[0] &= ~0x00000080u; -} -void DetectionOutputParameter::clear_keep_top_k() { - keep_top_k_ = -1; - clear_has_keep_top_k(); -} -::google::protobuf::int32 DetectionOutputParameter::keep_top_k() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.keep_top_k) - return keep_top_k_; -} -void DetectionOutputParameter::set_keep_top_k(::google::protobuf::int32 value) { - set_has_keep_top_k(); - keep_top_k_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DetectionOutputParameter.keep_top_k) -} - -// optional float confidence_threshold = 9; -bool DetectionOutputParameter::has_confidence_threshold() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -void DetectionOutputParameter::set_has_confidence_threshold() { - _has_bits_[0] |= 0x00000100u; -} -void DetectionOutputParameter::clear_has_confidence_threshold() { - _has_bits_[0] &= ~0x00000100u; -} -void DetectionOutputParameter::clear_confidence_threshold() { - confidence_threshold_ = 0; - clear_has_confidence_threshold(); -} -float DetectionOutputParameter::confidence_threshold() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.confidence_threshold) - return confidence_threshold_; -} -void DetectionOutputParameter::set_confidence_threshold(float value) { - set_has_confidence_threshold(); - confidence_threshold_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DetectionOutputParameter.confidence_threshold) -} - -// optional bool normalized_bbox = 10 [default = true]; -bool DetectionOutputParameter::has_normalized_bbox() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void DetectionOutputParameter::set_has_normalized_bbox() { - _has_bits_[0] |= 0x00000200u; -} -void DetectionOutputParameter::clear_has_normalized_bbox() { - _has_bits_[0] &= ~0x00000200u; -} -void DetectionOutputParameter::clear_normalized_bbox() { - normalized_bbox_ = true; - clear_has_normalized_bbox(); -} -bool DetectionOutputParameter::normalized_bbox() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.normalized_bbox) - return normalized_bbox_; -} -void DetectionOutputParameter::set_normalized_bbox(bool value) { - set_has_normalized_bbox(); - normalized_bbox_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DetectionOutputParameter.normalized_bbox) -} - -inline const DetectionOutputParameter* DetectionOutputParameter::internal_default_instance() { - return &DetectionOutputParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Datum::kChannelsFieldNumber; -const int Datum::kHeightFieldNumber; -const int Datum::kWidthFieldNumber; -const int Datum::kDataFieldNumber; -const int Datum::kLabelFieldNumber; -const int Datum::kFloatDataFieldNumber; -const int Datum::kEncodedFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Datum::Datum() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.Datum) -} - -void Datum::InitAsDefaultInstance() { -} - -Datum::Datum(const Datum& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.Datum) -} - -void Datum::SharedCtor() { - _cached_size_ = 0; - data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&channels_, 0, reinterpret_cast(&encoded_) - - reinterpret_cast(&channels_) + sizeof(encoded_)); -} - -Datum::~Datum() { - // @@protoc_insertion_point(destructor:opencv_caffe.Datum) - SharedDtor(); -} - -void Datum::SharedDtor() { - data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Datum::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* Datum::descriptor() { - protobuf_AssignDescriptorsOnce(); - return Datum_descriptor_; -} - -const Datum& Datum::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed Datum_default_instance_; - -Datum* Datum::New(::google::protobuf::Arena* arena) const { - Datum* n = new Datum; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Datum::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.Datum) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(Datum, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 95u) { - ZR_(channels_, encoded_); - if (has_data()) { - data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - } - -#undef ZR_HELPER_ -#undef ZR_ - - float_data_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool Datum::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.Datum) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 channels = 1; - case 1: { - if (tag == 8) { - set_has_channels(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &channels_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_height; - break; - } - - // optional int32 height = 2; - case 2: { - if (tag == 16) { - parse_height: - set_has_height(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &height_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_width; - break; - } - - // optional int32 width = 3; - case 3: { - if (tag == 24) { - parse_width: - set_has_width(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &width_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_data; - break; - } - - // optional bytes data = 4; - case 4: { - if (tag == 34) { - parse_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_data())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_label; - break; - } - - // optional int32 label = 5; - case 5: { - if (tag == 40) { - parse_label: - set_has_label(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &label_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(53)) goto parse_float_data; - break; - } - - // repeated float float_data = 6; - case 6: { - if (tag == 53) { - parse_float_data: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 53, input, this->mutable_float_data()))); - } else if (tag == 50) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_float_data()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(53)) goto parse_float_data; - if (input->ExpectTag(56)) goto parse_encoded; - break; - } - - // optional bool encoded = 7 [default = false]; - case 7: { - if (tag == 56) { - parse_encoded: - set_has_encoded(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &encoded_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.Datum) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.Datum) - return false; -#undef DO_ -} - -void Datum::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.Datum) - // optional int32 channels = 1; - if (has_channels()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->channels(), output); - } - - // optional int32 height = 2; - if (has_height()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->height(), output); - } - - // optional int32 width = 3; - if (has_width()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->width(), output); - } - - // optional bytes data = 4; - if (has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 4, this->data(), output); - } - - // optional int32 label = 5; - if (has_label()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->label(), output); - } - - // repeated float float_data = 6; - for (int i = 0; i < this->float_data_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 6, this->float_data(i), output); - } - - // optional bool encoded = 7 [default = false]; - if (has_encoded()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->encoded(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.Datum) -} - -::google::protobuf::uint8* Datum::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.Datum) - // optional int32 channels = 1; - if (has_channels()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->channels(), target); - } - - // optional int32 height = 2; - if (has_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->height(), target); - } - - // optional int32 width = 3; - if (has_width()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->width(), target); - } - - // optional bytes data = 4; - if (has_data()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 4, this->data(), target); - } - - // optional int32 label = 5; - if (has_label()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->label(), target); - } - - // repeated float float_data = 6; - for (int i = 0; i < this->float_data_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(6, this->float_data(i), target); - } - - // optional bool encoded = 7 [default = false]; - if (has_encoded()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->encoded(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.Datum) - return target; -} - -size_t Datum::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.Datum) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 95u) { - // optional int32 channels = 1; - if (has_channels()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->channels()); - } - - // optional int32 height = 2; - if (has_height()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->height()); - } - - // optional int32 width = 3; - if (has_width()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->width()); - } - - // optional bytes data = 4; - if (has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->data()); - } - - // optional int32 label = 5; - if (has_label()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->label()); - } - - // optional bool encoded = 7 [default = false]; - if (has_encoded()) { - total_size += 1 + 1; - } - - } - // repeated float float_data = 6; - { - size_t data_size = 0; - unsigned int count = this->float_data_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->float_data_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Datum::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.Datum) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const Datum* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.Datum) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.Datum) - UnsafeMergeFrom(*source); - } -} - -void Datum::MergeFrom(const Datum& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.Datum) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void Datum::UnsafeMergeFrom(const Datum& from) { - GOOGLE_DCHECK(&from != this); - float_data_.UnsafeMergeFrom(from.float_data_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_channels()) { - set_channels(from.channels()); - } - if (from.has_height()) { - set_height(from.height()); - } - if (from.has_width()) { - set_width(from.width()); - } - if (from.has_data()) { - set_has_data(); - data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); - } - if (from.has_label()) { - set_label(from.label()); - } - if (from.has_encoded()) { - set_encoded(from.encoded()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void Datum::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.Datum) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Datum::CopyFrom(const Datum& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.Datum) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool Datum::IsInitialized() const { - - return true; -} - -void Datum::Swap(Datum* other) { - if (other == this) return; - InternalSwap(other); -} -void Datum::InternalSwap(Datum* other) { - std::swap(channels_, other->channels_); - std::swap(height_, other->height_); - std::swap(width_, other->width_); - data_.Swap(&other->data_); - std::swap(label_, other->label_); - float_data_.UnsafeArenaSwap(&other->float_data_); - std::swap(encoded_, other->encoded_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata Datum::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = Datum_descriptor_; - metadata.reflection = Datum_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Datum - -// optional int32 channels = 1; -bool Datum::has_channels() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void Datum::set_has_channels() { - _has_bits_[0] |= 0x00000001u; -} -void Datum::clear_has_channels() { - _has_bits_[0] &= ~0x00000001u; -} -void Datum::clear_channels() { - channels_ = 0; - clear_has_channels(); -} -::google::protobuf::int32 Datum::channels() const { - // @@protoc_insertion_point(field_get:opencv_caffe.Datum.channels) - return channels_; -} -void Datum::set_channels(::google::protobuf::int32 value) { - set_has_channels(); - channels_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.Datum.channels) -} - -// optional int32 height = 2; -bool Datum::has_height() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void Datum::set_has_height() { - _has_bits_[0] |= 0x00000002u; -} -void Datum::clear_has_height() { - _has_bits_[0] &= ~0x00000002u; -} -void Datum::clear_height() { - height_ = 0; - clear_has_height(); -} -::google::protobuf::int32 Datum::height() const { - // @@protoc_insertion_point(field_get:opencv_caffe.Datum.height) - return height_; -} -void Datum::set_height(::google::protobuf::int32 value) { - set_has_height(); - height_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.Datum.height) -} - -// optional int32 width = 3; -bool Datum::has_width() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void Datum::set_has_width() { - _has_bits_[0] |= 0x00000004u; -} -void Datum::clear_has_width() { - _has_bits_[0] &= ~0x00000004u; -} -void Datum::clear_width() { - width_ = 0; - clear_has_width(); -} -::google::protobuf::int32 Datum::width() const { - // @@protoc_insertion_point(field_get:opencv_caffe.Datum.width) - return width_; -} -void Datum::set_width(::google::protobuf::int32 value) { - set_has_width(); - width_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.Datum.width) -} - -// optional bytes data = 4; -bool Datum::has_data() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void Datum::set_has_data() { - _has_bits_[0] |= 0x00000008u; -} -void Datum::clear_has_data() { - _has_bits_[0] &= ~0x00000008u; -} -void Datum::clear_data() { - data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_data(); -} -const ::std::string& Datum::data() const { - // @@protoc_insertion_point(field_get:opencv_caffe.Datum.data) - return data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void Datum::set_data(const ::std::string& value) { - set_has_data(); - data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.Datum.data) -} -void Datum::set_data(const char* value) { - set_has_data(); - data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.Datum.data) -} -void Datum::set_data(const void* value, size_t size) { - set_has_data(); - data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.Datum.data) -} -::std::string* Datum::mutable_data() { - set_has_data(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.Datum.data) - return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* Datum::release_data() { - // @@protoc_insertion_point(field_release:opencv_caffe.Datum.data) - clear_has_data(); - return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void Datum::set_allocated_data(::std::string* data) { - if (data != NULL) { - set_has_data(); - } else { - clear_has_data(); - } - data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.Datum.data) -} - -// optional int32 label = 5; -bool Datum::has_label() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void Datum::set_has_label() { - _has_bits_[0] |= 0x00000010u; -} -void Datum::clear_has_label() { - _has_bits_[0] &= ~0x00000010u; -} -void Datum::clear_label() { - label_ = 0; - clear_has_label(); -} -::google::protobuf::int32 Datum::label() const { - // @@protoc_insertion_point(field_get:opencv_caffe.Datum.label) - return label_; -} -void Datum::set_label(::google::protobuf::int32 value) { - set_has_label(); - label_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.Datum.label) -} - -// repeated float float_data = 6; -int Datum::float_data_size() const { - return float_data_.size(); -} -void Datum::clear_float_data() { - float_data_.Clear(); -} -float Datum::float_data(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.Datum.float_data) - return float_data_.Get(index); -} -void Datum::set_float_data(int index, float value) { - float_data_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.Datum.float_data) -} -void Datum::add_float_data(float value) { - float_data_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.Datum.float_data) -} -const ::google::protobuf::RepeatedField< float >& -Datum::float_data() const { - // @@protoc_insertion_point(field_list:opencv_caffe.Datum.float_data) - return float_data_; -} -::google::protobuf::RepeatedField< float >* -Datum::mutable_float_data() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.Datum.float_data) - return &float_data_; -} - -// optional bool encoded = 7 [default = false]; -bool Datum::has_encoded() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void Datum::set_has_encoded() { - _has_bits_[0] |= 0x00000040u; -} -void Datum::clear_has_encoded() { - _has_bits_[0] &= ~0x00000040u; -} -void Datum::clear_encoded() { - encoded_ = false; - clear_has_encoded(); -} -bool Datum::encoded() const { - // @@protoc_insertion_point(field_get:opencv_caffe.Datum.encoded) - return encoded_; -} -void Datum::set_encoded(bool value) { - set_has_encoded(); - encoded_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.Datum.encoded) -} - -inline const Datum* Datum::internal_default_instance() { - return &Datum_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* FillerParameter_VarianceNorm_descriptor() { - protobuf_AssignDescriptorsOnce(); - return FillerParameter_VarianceNorm_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[1]; } bool FillerParameter_VarianceNorm_IsValid(int value) { switch (value) { @@ -8293,1765 +4045,9 @@ const FillerParameter_VarianceNorm FillerParameter::VarianceNorm_MIN; const FillerParameter_VarianceNorm FillerParameter::VarianceNorm_MAX; const int FillerParameter::VarianceNorm_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -::std::string* FillerParameter::_default_type_ = NULL; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FillerParameter::kTypeFieldNumber; -const int FillerParameter::kValueFieldNumber; -const int FillerParameter::kMinFieldNumber; -const int FillerParameter::kMaxFieldNumber; -const int FillerParameter::kMeanFieldNumber; -const int FillerParameter::kStdFieldNumber; -const int FillerParameter::kSparseFieldNumber; -const int FillerParameter::kVarianceNormFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FillerParameter::FillerParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.FillerParameter) -} - -void FillerParameter::InitAsDefaultInstance() { -} - -FillerParameter::FillerParameter(const FillerParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.FillerParameter) -} - -void FillerParameter::SharedCtor() { - _cached_size_ = 0; - type_.UnsafeSetDefault(_default_type_); - ::memset(&value_, 0, reinterpret_cast(&variance_norm_) - - reinterpret_cast(&value_) + sizeof(variance_norm_)); - sparse_ = -1; - max_ = 1; - std_ = 1; -} - -FillerParameter::~FillerParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.FillerParameter) - SharedDtor(); -} - -void FillerParameter::SharedDtor() { - type_.DestroyNoArena(_default_type_); -} - -void FillerParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FillerParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FillerParameter_descriptor_; -} - -const FillerParameter& FillerParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed FillerParameter_default_instance_; - -FillerParameter* FillerParameter::New(::google::protobuf::Arena* arena) const { - FillerParameter* n = new FillerParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void FillerParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.FillerParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(FillerParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 255u) { - ZR_(value_, variance_norm_); - if (has_type()) { - type_.ClearToDefaultNoArena(_default_type_); - } - max_ = 1; - std_ = 1; - sparse_ = -1; - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool FillerParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.FillerParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string type = 1 [default = "constant"]; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.FillerParameter.type"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_value; - break; - } - - // optional float value = 2 [default = 0]; - case 2: { - if (tag == 21) { - parse_value: - set_has_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &value_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_min; - break; - } - - // optional float min = 3 [default = 0]; - case 3: { - if (tag == 29) { - parse_min: - set_has_min(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &min_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(37)) goto parse_max; - break; - } - - // optional float max = 4 [default = 1]; - case 4: { - if (tag == 37) { - parse_max: - set_has_max(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &max_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_mean; - break; - } - - // optional float mean = 5 [default = 0]; - case 5: { - if (tag == 45) { - parse_mean: - set_has_mean(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &mean_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(53)) goto parse_std; - break; - } - - // optional float std = 6 [default = 1]; - case 6: { - if (tag == 53) { - parse_std: - set_has_std(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &std_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_sparse; - break; - } - - // optional int32 sparse = 7 [default = -1]; - case 7: { - if (tag == 56) { - parse_sparse: - set_has_sparse(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &sparse_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_variance_norm; - break; - } - - // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; - case 8: { - if (tag == 64) { - parse_variance_norm: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::FillerParameter_VarianceNorm_IsValid(value)) { - set_variance_norm(static_cast< ::opencv_caffe::FillerParameter_VarianceNorm >(value)); - } else { - mutable_unknown_fields()->AddVarint(8, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.FillerParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.FillerParameter) - return false; -#undef DO_ -} - -void FillerParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.FillerParameter) - // optional string type = 1 [default = "constant"]; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.FillerParameter.type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->type(), output); - } - - // optional float value = 2 [default = 0]; - if (has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->value(), output); - } - - // optional float min = 3 [default = 0]; - if (has_min()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->min(), output); - } - - // optional float max = 4 [default = 1]; - if (has_max()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->max(), output); - } - - // optional float mean = 5 [default = 0]; - if (has_mean()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->mean(), output); - } - - // optional float std = 6 [default = 1]; - if (has_std()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->std(), output); - } - - // optional int32 sparse = 7 [default = -1]; - if (has_sparse()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->sparse(), output); - } - - // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; - if (has_variance_norm()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 8, this->variance_norm(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.FillerParameter) -} - -::google::protobuf::uint8* FillerParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.FillerParameter) - // optional string type = 1 [default = "constant"]; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.FillerParameter.type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->type(), target); - } - - // optional float value = 2 [default = 0]; - if (has_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->value(), target); - } - - // optional float min = 3 [default = 0]; - if (has_min()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->min(), target); - } - - // optional float max = 4 [default = 1]; - if (has_max()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->max(), target); - } - - // optional float mean = 5 [default = 0]; - if (has_mean()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->mean(), target); - } - - // optional float std = 6 [default = 1]; - if (has_std()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->std(), target); - } - - // optional int32 sparse = 7 [default = -1]; - if (has_sparse()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->sparse(), target); - } - - // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; - if (has_variance_norm()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 8, this->variance_norm(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.FillerParameter) - return target; -} - -size_t FillerParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.FillerParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 255u) { - // optional string type = 1 [default = "constant"]; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->type()); - } - - // optional float value = 2 [default = 0]; - if (has_value()) { - total_size += 1 + 4; - } - - // optional float min = 3 [default = 0]; - if (has_min()) { - total_size += 1 + 4; - } - - // optional float max = 4 [default = 1]; - if (has_max()) { - total_size += 1 + 4; - } - - // optional float mean = 5 [default = 0]; - if (has_mean()) { - total_size += 1 + 4; - } - - // optional float std = 6 [default = 1]; - if (has_std()) { - total_size += 1 + 4; - } - - // optional int32 sparse = 7 [default = -1]; - if (has_sparse()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->sparse()); - } - - // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; - if (has_variance_norm()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->variance_norm()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FillerParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.FillerParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const FillerParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.FillerParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.FillerParameter) - UnsafeMergeFrom(*source); - } -} - -void FillerParameter::MergeFrom(const FillerParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.FillerParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void FillerParameter::UnsafeMergeFrom(const FillerParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_type()) { - set_has_type(); - type_.AssignWithDefault(_default_type_, from.type_); - } - if (from.has_value()) { - set_value(from.value()); - } - if (from.has_min()) { - set_min(from.min()); - } - if (from.has_max()) { - set_max(from.max()); - } - if (from.has_mean()) { - set_mean(from.mean()); - } - if (from.has_std()) { - set_std(from.std()); - } - if (from.has_sparse()) { - set_sparse(from.sparse()); - } - if (from.has_variance_norm()) { - set_variance_norm(from.variance_norm()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void FillerParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.FillerParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FillerParameter::CopyFrom(const FillerParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.FillerParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool FillerParameter::IsInitialized() const { - - return true; -} - -void FillerParameter::Swap(FillerParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void FillerParameter::InternalSwap(FillerParameter* other) { - type_.Swap(&other->type_); - std::swap(value_, other->value_); - std::swap(min_, other->min_); - std::swap(max_, other->max_); - std::swap(mean_, other->mean_); - std::swap(std_, other->std_); - std::swap(sparse_, other->sparse_); - std::swap(variance_norm_, other->variance_norm_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata FillerParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FillerParameter_descriptor_; - metadata.reflection = FillerParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FillerParameter - -// optional string type = 1 [default = "constant"]; -bool FillerParameter::has_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void FillerParameter::set_has_type() { - _has_bits_[0] |= 0x00000001u; -} -void FillerParameter::clear_has_type() { - _has_bits_[0] &= ~0x00000001u; -} -void FillerParameter::clear_type() { - type_.ClearToDefaultNoArena(_default_type_); - clear_has_type(); -} -const ::std::string& FillerParameter::type() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FillerParameter.type) - return type_.GetNoArena(_default_type_); -} -void FillerParameter::set_type(const ::std::string& value) { - set_has_type(); - type_.SetNoArena(_default_type_, value); - // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.type) -} -void FillerParameter::set_type(const char* value) { - set_has_type(); - type_.SetNoArena(_default_type_, ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.FillerParameter.type) -} -void FillerParameter::set_type(const char* value, size_t size) { - set_has_type(); - type_.SetNoArena(_default_type_, - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.FillerParameter.type) -} -::std::string* FillerParameter::mutable_type() { - set_has_type(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.FillerParameter.type) - return type_.MutableNoArena(_default_type_); -} -::std::string* FillerParameter::release_type() { - // @@protoc_insertion_point(field_release:opencv_caffe.FillerParameter.type) - clear_has_type(); - return type_.ReleaseNoArena(_default_type_); -} -void FillerParameter::set_allocated_type(::std::string* type) { - if (type != NULL) { - set_has_type(); - } else { - clear_has_type(); - } - type_.SetAllocatedNoArena(_default_type_, type); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.FillerParameter.type) -} - -// optional float value = 2 [default = 0]; -bool FillerParameter::has_value() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void FillerParameter::set_has_value() { - _has_bits_[0] |= 0x00000002u; -} -void FillerParameter::clear_has_value() { - _has_bits_[0] &= ~0x00000002u; -} -void FillerParameter::clear_value() { - value_ = 0; - clear_has_value(); -} -float FillerParameter::value() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FillerParameter.value) - return value_; -} -void FillerParameter::set_value(float value) { - set_has_value(); - value_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.value) -} - -// optional float min = 3 [default = 0]; -bool FillerParameter::has_min() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void FillerParameter::set_has_min() { - _has_bits_[0] |= 0x00000004u; -} -void FillerParameter::clear_has_min() { - _has_bits_[0] &= ~0x00000004u; -} -void FillerParameter::clear_min() { - min_ = 0; - clear_has_min(); -} -float FillerParameter::min() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FillerParameter.min) - return min_; -} -void FillerParameter::set_min(float value) { - set_has_min(); - min_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.min) -} - -// optional float max = 4 [default = 1]; -bool FillerParameter::has_max() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void FillerParameter::set_has_max() { - _has_bits_[0] |= 0x00000008u; -} -void FillerParameter::clear_has_max() { - _has_bits_[0] &= ~0x00000008u; -} -void FillerParameter::clear_max() { - max_ = 1; - clear_has_max(); -} -float FillerParameter::max() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FillerParameter.max) - return max_; -} -void FillerParameter::set_max(float value) { - set_has_max(); - max_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.max) -} - -// optional float mean = 5 [default = 0]; -bool FillerParameter::has_mean() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void FillerParameter::set_has_mean() { - _has_bits_[0] |= 0x00000010u; -} -void FillerParameter::clear_has_mean() { - _has_bits_[0] &= ~0x00000010u; -} -void FillerParameter::clear_mean() { - mean_ = 0; - clear_has_mean(); -} -float FillerParameter::mean() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FillerParameter.mean) - return mean_; -} -void FillerParameter::set_mean(float value) { - set_has_mean(); - mean_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.mean) -} - -// optional float std = 6 [default = 1]; -bool FillerParameter::has_std() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void FillerParameter::set_has_std() { - _has_bits_[0] |= 0x00000020u; -} -void FillerParameter::clear_has_std() { - _has_bits_[0] &= ~0x00000020u; -} -void FillerParameter::clear_std() { - std_ = 1; - clear_has_std(); -} -float FillerParameter::std() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FillerParameter.std) - return std_; -} -void FillerParameter::set_std(float value) { - set_has_std(); - std_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.std) -} - -// optional int32 sparse = 7 [default = -1]; -bool FillerParameter::has_sparse() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void FillerParameter::set_has_sparse() { - _has_bits_[0] |= 0x00000040u; -} -void FillerParameter::clear_has_sparse() { - _has_bits_[0] &= ~0x00000040u; -} -void FillerParameter::clear_sparse() { - sparse_ = -1; - clear_has_sparse(); -} -::google::protobuf::int32 FillerParameter::sparse() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FillerParameter.sparse) - return sparse_; -} -void FillerParameter::set_sparse(::google::protobuf::int32 value) { - set_has_sparse(); - sparse_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.sparse) -} - -// optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; -bool FillerParameter::has_variance_norm() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void FillerParameter::set_has_variance_norm() { - _has_bits_[0] |= 0x00000080u; -} -void FillerParameter::clear_has_variance_norm() { - _has_bits_[0] &= ~0x00000080u; -} -void FillerParameter::clear_variance_norm() { - variance_norm_ = 0; - clear_has_variance_norm(); -} -::opencv_caffe::FillerParameter_VarianceNorm FillerParameter::variance_norm() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FillerParameter.variance_norm) - return static_cast< ::opencv_caffe::FillerParameter_VarianceNorm >(variance_norm_); -} -void FillerParameter::set_variance_norm(::opencv_caffe::FillerParameter_VarianceNorm value) { - assert(::opencv_caffe::FillerParameter_VarianceNorm_IsValid(value)); - set_has_variance_norm(); - variance_norm_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.variance_norm) -} - -inline const FillerParameter* FillerParameter::internal_default_instance() { - return &FillerParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NetParameter::kNameFieldNumber; -const int NetParameter::kInputFieldNumber; -const int NetParameter::kInputShapeFieldNumber; -const int NetParameter::kInputDimFieldNumber; -const int NetParameter::kForceBackwardFieldNumber; -const int NetParameter::kStateFieldNumber; -const int NetParameter::kDebugInfoFieldNumber; -const int NetParameter::kLayerFieldNumber; -const int NetParameter::kLayersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NetParameter::NetParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.NetParameter) -} - -void NetParameter::InitAsDefaultInstance() { - state_ = const_cast< ::opencv_caffe::NetState*>( - ::opencv_caffe::NetState::internal_default_instance()); -} - -NetParameter::NetParameter(const NetParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.NetParameter) -} - -void NetParameter::SharedCtor() { - _cached_size_ = 0; - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - state_ = NULL; - ::memset(&force_backward_, 0, reinterpret_cast(&debug_info_) - - reinterpret_cast(&force_backward_) + sizeof(debug_info_)); -} - -NetParameter::~NetParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.NetParameter) - SharedDtor(); -} - -void NetParameter::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != &NetParameter_default_instance_.get()) { - delete state_; - } -} - -void NetParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* NetParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return NetParameter_descriptor_; -} - -const NetParameter& NetParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed NetParameter_default_instance_; - -NetParameter* NetParameter::New(::google::protobuf::Arena* arena) const { - NetParameter* n = new NetParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void NetParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.NetParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(NetParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 113u) { - ZR_(force_backward_, debug_info_); - if (has_name()) { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_state()) { - if (state_ != NULL) state_->::opencv_caffe::NetState::Clear(); - } - } - -#undef ZR_HELPER_ -#undef ZR_ - - input_.Clear(); - input_shape_.Clear(); - input_dim_.Clear(); - layer_.Clear(); - layers_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool NetParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.NetParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.NetParameter.name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_layers; - break; - } - - // repeated .opencv_caffe.V1LayerParameter layers = 2; - case 2: { - if (tag == 18) { - parse_layers: - DO_(input->IncrementRecursionDepth()); - parse_loop_layers: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_layers())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_loop_layers; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(26)) goto parse_input; - break; - } - - // repeated string input = 3; - case 3: { - if (tag == 26) { - parse_input: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_input())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->input(this->input_size() - 1).data(), - this->input(this->input_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.NetParameter.input"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_input; - if (input->ExpectTag(32)) goto parse_input_dim; - break; - } - - // repeated int32 input_dim = 4; - case 4: { - if (tag == 32) { - parse_input_dim: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - 1, 32, input, this->mutable_input_dim()))); - } else if (tag == 34) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, this->mutable_input_dim()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_input_dim; - if (input->ExpectTag(40)) goto parse_force_backward; - break; - } - - // optional bool force_backward = 5 [default = false]; - case 5: { - if (tag == 40) { - parse_force_backward: - set_has_force_backward(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &force_backward_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_state; - break; - } - - // optional .opencv_caffe.NetState state = 6; - case 6: { - if (tag == 50) { - parse_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_debug_info; - break; - } - - // optional bool debug_info = 7 [default = false]; - case 7: { - if (tag == 56) { - parse_debug_info: - set_has_debug_info(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &debug_info_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_input_shape; - break; - } - - // repeated .opencv_caffe.BlobShape input_shape = 8; - case 8: { - if (tag == 66) { - parse_input_shape: - DO_(input->IncrementRecursionDepth()); - parse_loop_input_shape: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_input_shape())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_loop_input_shape; - if (input->ExpectTag(802)) goto parse_loop_layer; - input->UnsafeDecrementRecursionDepth(); - break; - } - - // repeated .opencv_caffe.LayerParameter layer = 100; - case 100: { - if (tag == 802) { - DO_(input->IncrementRecursionDepth()); - parse_loop_layer: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_layer())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(802)) goto parse_loop_layer; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.NetParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.NetParameter) - return false; -#undef DO_ -} - -void NetParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.NetParameter) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetParameter.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // repeated .opencv_caffe.V1LayerParameter layers = 2; - for (unsigned int i = 0, n = this->layers_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->layers(i), output); - } - - // repeated string input = 3; - for (int i = 0; i < this->input_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->input(i).data(), this->input(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetParameter.input"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->input(i), output); - } - - // repeated int32 input_dim = 4; - for (int i = 0; i < this->input_dim_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt32( - 4, this->input_dim(i), output); - } - - // optional bool force_backward = 5 [default = false]; - if (has_force_backward()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->force_backward(), output); - } - - // optional .opencv_caffe.NetState state = 6; - if (has_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, *this->state_, output); - } - - // optional bool debug_info = 7 [default = false]; - if (has_debug_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->debug_info(), output); - } - - // repeated .opencv_caffe.BlobShape input_shape = 8; - for (unsigned int i = 0, n = this->input_shape_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->input_shape(i), output); - } - - // repeated .opencv_caffe.LayerParameter layer = 100; - for (unsigned int i = 0, n = this->layer_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 100, this->layer(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.NetParameter) -} - -::google::protobuf::uint8* NetParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NetParameter) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetParameter.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // repeated .opencv_caffe.V1LayerParameter layers = 2; - for (unsigned int i = 0, n = this->layers_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->layers(i), false, target); - } - - // repeated string input = 3; - for (int i = 0; i < this->input_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->input(i).data(), this->input(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetParameter.input"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->input(i), target); - } - - // repeated int32 input_dim = 4; - for (int i = 0; i < this->input_dim_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArray(4, this->input_dim(i), target); - } - - // optional bool force_backward = 5 [default = false]; - if (has_force_backward()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->force_backward(), target); - } - - // optional .opencv_caffe.NetState state = 6; - if (has_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, *this->state_, false, target); - } - - // optional bool debug_info = 7 [default = false]; - if (has_debug_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->debug_info(), target); - } - - // repeated .opencv_caffe.BlobShape input_shape = 8; - for (unsigned int i = 0, n = this->input_shape_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8, this->input_shape(i), false, target); - } - - // repeated .opencv_caffe.LayerParameter layer = 100; - for (unsigned int i = 0, n = this->layer_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 100, this->layer(i), false, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NetParameter) - return target; -} - -size_t NetParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NetParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 113u) { - // optional string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional bool force_backward = 5 [default = false]; - if (has_force_backward()) { - total_size += 1 + 1; - } - - // optional .opencv_caffe.NetState state = 6; - if (has_state()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->state_); - } - - // optional bool debug_info = 7 [default = false]; - if (has_debug_info()) { - total_size += 1 + 1; - } - - } - // repeated string input = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->input_size()); - for (int i = 0; i < this->input_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->input(i)); - } - - // repeated .opencv_caffe.BlobShape input_shape = 8; - { - unsigned int count = this->input_shape_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->input_shape(i)); - } - } - - // repeated int32 input_dim = 4; - { - size_t data_size = 0; - unsigned int count = this->input_dim_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->input_dim(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->input_dim_size()); - total_size += data_size; - } - - // repeated .opencv_caffe.LayerParameter layer = 100; - { - unsigned int count = this->layer_size(); - total_size += 2UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->layer(i)); - } - } - - // repeated .opencv_caffe.V1LayerParameter layers = 2; - { - unsigned int count = this->layers_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->layers(i)); - } - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NetParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NetParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const NetParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NetParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NetParameter) - UnsafeMergeFrom(*source); - } -} - -void NetParameter::MergeFrom(const NetParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NetParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void NetParameter::UnsafeMergeFrom(const NetParameter& from) { - GOOGLE_DCHECK(&from != this); - input_.UnsafeMergeFrom(from.input_); - input_shape_.MergeFrom(from.input_shape_); - input_dim_.UnsafeMergeFrom(from.input_dim_); - layer_.MergeFrom(from.layer_); - layers_.MergeFrom(from.layers_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_has_name(); - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_force_backward()) { - set_force_backward(from.force_backward()); - } - if (from.has_state()) { - mutable_state()->::opencv_caffe::NetState::MergeFrom(from.state()); - } - if (from.has_debug_info()) { - set_debug_info(from.debug_info()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void NetParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NetParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NetParameter::CopyFrom(const NetParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NetParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool NetParameter::IsInitialized() const { - - if (!::google::protobuf::internal::AllAreInitialized(this->layer())) return false; - return true; -} - -void NetParameter::Swap(NetParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void NetParameter::InternalSwap(NetParameter* other) { - name_.Swap(&other->name_); - input_.UnsafeArenaSwap(&other->input_); - input_shape_.UnsafeArenaSwap(&other->input_shape_); - input_dim_.UnsafeArenaSwap(&other->input_dim_); - std::swap(force_backward_, other->force_backward_); - std::swap(state_, other->state_); - std::swap(debug_info_, other->debug_info_); - layer_.UnsafeArenaSwap(&other->layer_); - layers_.UnsafeArenaSwap(&other->layers_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata NetParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = NetParameter_descriptor_; - metadata.reflection = NetParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// NetParameter - -// optional string name = 1; -bool NetParameter::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void NetParameter::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -void NetParameter::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -void NetParameter::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_name(); -} -const ::std::string& NetParameter::name() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void NetParameter::set_name(const ::std::string& value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.NetParameter.name) -} -void NetParameter::set_name(const char* value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.NetParameter.name) -} -void NetParameter::set_name(const char* value, size_t size) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.NetParameter.name) -} -::std::string* NetParameter::mutable_name() { - set_has_name(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.NetParameter.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* NetParameter::release_name() { - // @@protoc_insertion_point(field_release:opencv_caffe.NetParameter.name) - clear_has_name(); - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void NetParameter::set_allocated_name(::std::string* name) { - if (name != NULL) { - set_has_name(); - } else { - clear_has_name(); - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.NetParameter.name) -} - -// repeated string input = 3; -int NetParameter::input_size() const { - return input_.size(); -} -void NetParameter::clear_input() { - input_.Clear(); -} -const ::std::string& NetParameter::input(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.input) - return input_.Get(index); -} -::std::string* NetParameter::mutable_input(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.NetParameter.input) - return input_.Mutable(index); -} -void NetParameter::set_input(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.NetParameter.input) - input_.Mutable(index)->assign(value); -} -void NetParameter::set_input(int index, const char* value) { - input_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.NetParameter.input) -} -void NetParameter::set_input(int index, const char* value, size_t size) { - input_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.NetParameter.input) -} -::std::string* NetParameter::add_input() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.NetParameter.input) - return input_.Add(); -} -void NetParameter::add_input(const ::std::string& value) { - input_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.NetParameter.input) -} -void NetParameter::add_input(const char* value) { - input_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.NetParameter.input) -} -void NetParameter::add_input(const char* value, size_t size) { - input_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.NetParameter.input) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -NetParameter::input() const { - // @@protoc_insertion_point(field_list:opencv_caffe.NetParameter.input) - return input_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -NetParameter::mutable_input() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.NetParameter.input) - return &input_; -} - -// repeated .opencv_caffe.BlobShape input_shape = 8; -int NetParameter::input_shape_size() const { - return input_shape_.size(); -} -void NetParameter::clear_input_shape() { - input_shape_.Clear(); -} -const ::opencv_caffe::BlobShape& NetParameter::input_shape(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.input_shape) - return input_shape_.Get(index); -} -::opencv_caffe::BlobShape* NetParameter::mutable_input_shape(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.NetParameter.input_shape) - return input_shape_.Mutable(index); -} -::opencv_caffe::BlobShape* NetParameter::add_input_shape() { - // @@protoc_insertion_point(field_add:opencv_caffe.NetParameter.input_shape) - return input_shape_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >* -NetParameter::mutable_input_shape() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.NetParameter.input_shape) - return &input_shape_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >& -NetParameter::input_shape() const { - // @@protoc_insertion_point(field_list:opencv_caffe.NetParameter.input_shape) - return input_shape_; -} - -// repeated int32 input_dim = 4; -int NetParameter::input_dim_size() const { - return input_dim_.size(); -} -void NetParameter::clear_input_dim() { - input_dim_.Clear(); -} -::google::protobuf::int32 NetParameter::input_dim(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.input_dim) - return input_dim_.Get(index); -} -void NetParameter::set_input_dim(int index, ::google::protobuf::int32 value) { - input_dim_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.NetParameter.input_dim) -} -void NetParameter::add_input_dim(::google::protobuf::int32 value) { - input_dim_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.NetParameter.input_dim) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -NetParameter::input_dim() const { - // @@protoc_insertion_point(field_list:opencv_caffe.NetParameter.input_dim) - return input_dim_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -NetParameter::mutable_input_dim() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.NetParameter.input_dim) - return &input_dim_; -} - -// optional bool force_backward = 5 [default = false]; -bool NetParameter::has_force_backward() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void NetParameter::set_has_force_backward() { - _has_bits_[0] |= 0x00000010u; -} -void NetParameter::clear_has_force_backward() { - _has_bits_[0] &= ~0x00000010u; -} -void NetParameter::clear_force_backward() { - force_backward_ = false; - clear_has_force_backward(); -} -bool NetParameter::force_backward() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.force_backward) - return force_backward_; -} -void NetParameter::set_force_backward(bool value) { - set_has_force_backward(); - force_backward_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NetParameter.force_backward) -} - -// optional .opencv_caffe.NetState state = 6; -bool NetParameter::has_state() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void NetParameter::set_has_state() { - _has_bits_[0] |= 0x00000020u; -} -void NetParameter::clear_has_state() { - _has_bits_[0] &= ~0x00000020u; -} -void NetParameter::clear_state() { - if (state_ != NULL) state_->::opencv_caffe::NetState::Clear(); - clear_has_state(); -} -const ::opencv_caffe::NetState& NetParameter::state() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.state) - return state_ != NULL ? *state_ - : *::opencv_caffe::NetState::internal_default_instance(); -} -::opencv_caffe::NetState* NetParameter::mutable_state() { - set_has_state(); - if (state_ == NULL) { - state_ = new ::opencv_caffe::NetState; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.NetParameter.state) - return state_; -} -::opencv_caffe::NetState* NetParameter::release_state() { - // @@protoc_insertion_point(field_release:opencv_caffe.NetParameter.state) - clear_has_state(); - ::opencv_caffe::NetState* temp = state_; - state_ = NULL; - return temp; -} -void NetParameter::set_allocated_state(::opencv_caffe::NetState* state) { - delete state_; - state_ = state; - if (state) { - set_has_state(); - } else { - clear_has_state(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.NetParameter.state) -} - -// optional bool debug_info = 7 [default = false]; -bool NetParameter::has_debug_info() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void NetParameter::set_has_debug_info() { - _has_bits_[0] |= 0x00000040u; -} -void NetParameter::clear_has_debug_info() { - _has_bits_[0] &= ~0x00000040u; -} -void NetParameter::clear_debug_info() { - debug_info_ = false; - clear_has_debug_info(); -} -bool NetParameter::debug_info() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.debug_info) - return debug_info_; -} -void NetParameter::set_debug_info(bool value) { - set_has_debug_info(); - debug_info_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NetParameter.debug_info) -} - -// repeated .opencv_caffe.LayerParameter layer = 100; -int NetParameter::layer_size() const { - return layer_.size(); -} -void NetParameter::clear_layer() { - layer_.Clear(); -} -const ::opencv_caffe::LayerParameter& NetParameter::layer(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.layer) - return layer_.Get(index); -} -::opencv_caffe::LayerParameter* NetParameter::mutable_layer(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.NetParameter.layer) - return layer_.Mutable(index); -} -::opencv_caffe::LayerParameter* NetParameter::add_layer() { - // @@protoc_insertion_point(field_add:opencv_caffe.NetParameter.layer) - return layer_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::LayerParameter >* -NetParameter::mutable_layer() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.NetParameter.layer) - return &layer_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::LayerParameter >& -NetParameter::layer() const { - // @@protoc_insertion_point(field_list:opencv_caffe.NetParameter.layer) - return layer_; -} - -// repeated .opencv_caffe.V1LayerParameter layers = 2; -int NetParameter::layers_size() const { - return layers_.size(); -} -void NetParameter::clear_layers() { - layers_.Clear(); -} -const ::opencv_caffe::V1LayerParameter& NetParameter::layers(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.layers) - return layers_.Get(index); -} -::opencv_caffe::V1LayerParameter* NetParameter::mutable_layers(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.NetParameter.layers) - return layers_.Mutable(index); -} -::opencv_caffe::V1LayerParameter* NetParameter::add_layers() { - // @@protoc_insertion_point(field_add:opencv_caffe.NetParameter.layers) - return layers_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::V1LayerParameter >* -NetParameter::mutable_layers() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.NetParameter.layers) - return &layers_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::V1LayerParameter >& -NetParameter::layers() const { - // @@protoc_insertion_point(field_list:opencv_caffe.NetParameter.layers) - return layers_; -} - -inline const NetParameter* NetParameter::internal_default_instance() { - return &NetParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* SolverParameter_SnapshotFormat_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SolverParameter_SnapshotFormat_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[2]; } bool SolverParameter_SnapshotFormat_IsValid(int value) { switch (value) { @@ -10071,8 +4067,8 @@ const SolverParameter_SnapshotFormat SolverParameter::SnapshotFormat_MAX; const int SolverParameter::SnapshotFormat_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* SolverParameter_SolverMode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SolverParameter_SolverMode_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[3]; } bool SolverParameter_SolverMode_IsValid(int value) { switch (value) { @@ -10092,8 +4088,8 @@ const SolverParameter_SolverMode SolverParameter::SolverMode_MAX; const int SolverParameter::SolverMode_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* SolverParameter_SolverType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SolverParameter_SolverType_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[4]; } bool SolverParameter_SolverType_IsValid(int value) { switch (value) { @@ -10120,4889 +4116,9 @@ const SolverParameter_SolverType SolverParameter::SolverType_MIN; const SolverParameter_SolverType SolverParameter::SolverType_MAX; const int SolverParameter::SolverType_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -::std::string* SolverParameter::_default_regularization_type_ = NULL; -::std::string* SolverParameter::_default_type_ = NULL; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SolverParameter::kNetFieldNumber; -const int SolverParameter::kNetParamFieldNumber; -const int SolverParameter::kTrainNetFieldNumber; -const int SolverParameter::kTestNetFieldNumber; -const int SolverParameter::kTrainNetParamFieldNumber; -const int SolverParameter::kTestNetParamFieldNumber; -const int SolverParameter::kTrainStateFieldNumber; -const int SolverParameter::kTestStateFieldNumber; -const int SolverParameter::kTestIterFieldNumber; -const int SolverParameter::kTestIntervalFieldNumber; -const int SolverParameter::kTestComputeLossFieldNumber; -const int SolverParameter::kTestInitializationFieldNumber; -const int SolverParameter::kBaseLrFieldNumber; -const int SolverParameter::kDisplayFieldNumber; -const int SolverParameter::kAverageLossFieldNumber; -const int SolverParameter::kMaxIterFieldNumber; -const int SolverParameter::kIterSizeFieldNumber; -const int SolverParameter::kLrPolicyFieldNumber; -const int SolverParameter::kGammaFieldNumber; -const int SolverParameter::kPowerFieldNumber; -const int SolverParameter::kMomentumFieldNumber; -const int SolverParameter::kWeightDecayFieldNumber; -const int SolverParameter::kRegularizationTypeFieldNumber; -const int SolverParameter::kStepsizeFieldNumber; -const int SolverParameter::kStepvalueFieldNumber; -const int SolverParameter::kClipGradientsFieldNumber; -const int SolverParameter::kSnapshotFieldNumber; -const int SolverParameter::kSnapshotPrefixFieldNumber; -const int SolverParameter::kSnapshotDiffFieldNumber; -const int SolverParameter::kSnapshotFormatFieldNumber; -const int SolverParameter::kSolverModeFieldNumber; -const int SolverParameter::kDeviceIdFieldNumber; -const int SolverParameter::kRandomSeedFieldNumber; -const int SolverParameter::kTypeFieldNumber; -const int SolverParameter::kDeltaFieldNumber; -const int SolverParameter::kMomentum2FieldNumber; -const int SolverParameter::kRmsDecayFieldNumber; -const int SolverParameter::kDebugInfoFieldNumber; -const int SolverParameter::kSnapshotAfterTrainFieldNumber; -const int SolverParameter::kSolverTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SolverParameter::SolverParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.SolverParameter) -} - -void SolverParameter::InitAsDefaultInstance() { - net_param_ = const_cast< ::opencv_caffe::NetParameter*>( - ::opencv_caffe::NetParameter::internal_default_instance()); - train_net_param_ = const_cast< ::opencv_caffe::NetParameter*>( - ::opencv_caffe::NetParameter::internal_default_instance()); - train_state_ = const_cast< ::opencv_caffe::NetState*>( - ::opencv_caffe::NetState::internal_default_instance()); -} - -SolverParameter::SolverParameter(const SolverParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.SolverParameter) -} - -void SolverParameter::SharedCtor() { - net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - train_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - lr_policy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - regularization_type_.UnsafeSetDefault(_default_regularization_type_); - snapshot_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_.UnsafeSetDefault(_default_type_); - net_param_ = NULL; - train_net_param_ = NULL; - train_state_ = NULL; - ::memset(&test_interval_, 0, reinterpret_cast(&solver_type_) - - reinterpret_cast(&test_interval_) + sizeof(solver_type_)); - rms_decay_ = 0.99f; - average_loss_ = 1; - iter_size_ = 1; - test_initialization_ = true; - snapshot_after_train_ = true; - clip_gradients_ = -1; - snapshot_format_ = 1; - solver_mode_ = 1; - random_seed_ = GOOGLE_LONGLONG(-1); - delta_ = 1e-08f; - momentum2_ = 0.999f; - _cached_size_ = 0; -} - -SolverParameter::~SolverParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.SolverParameter) - SharedDtor(); -} - -void SolverParameter::SharedDtor() { - net_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - train_net_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - lr_policy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - regularization_type_.DestroyNoArena(_default_regularization_type_); - snapshot_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_.DestroyNoArena(_default_type_); - if (this != &SolverParameter_default_instance_.get()) { - delete net_param_; - delete train_net_param_; - delete train_state_; - } -} - -void SolverParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SolverParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SolverParameter_descriptor_; -} - -const SolverParameter& SolverParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed SolverParameter_default_instance_; - -SolverParameter* SolverParameter::New(::google::protobuf::Arena* arena) const { - SolverParameter* n = new SolverParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SolverParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.SolverParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(SolverParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 87u) { - if (has_net()) { - net_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_net_param()) { - if (net_param_ != NULL) net_param_->::opencv_caffe::NetParameter::Clear(); - } - if (has_train_net()) { - train_net_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_train_net_param()) { - if (train_net_param_ != NULL) train_net_param_->::opencv_caffe::NetParameter::Clear(); - } - if (has_train_state()) { - if (train_state_ != NULL) train_state_->::opencv_caffe::NetState::Clear(); - } - } - if (_has_bits_[8 / 32] & 65024u) { - ZR_(test_interval_, max_iter_); - test_compute_loss_ = false; - test_initialization_ = true; - average_loss_ = 1; - } - if (_has_bits_[16 / 32] & 16711680u) { - ZR_(gamma_, stepsize_); - iter_size_ = 1; - if (has_lr_policy()) { - lr_policy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_regularization_type()) { - regularization_type_.ClearToDefaultNoArena(_default_regularization_type_); - } - } - if (_has_bits_[24 / 32] & 4261412864u) { - ZR_(snapshot_, device_id_); - clip_gradients_ = -1; - if (has_snapshot_prefix()) { - snapshot_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - snapshot_diff_ = false; - snapshot_format_ = 1; - solver_mode_ = 1; - } - if (_has_bits_[32 / 32] & 255u) { - random_seed_ = GOOGLE_LONGLONG(-1); - if (has_type()) { - type_.ClearToDefaultNoArena(_default_type_); - } - delta_ = 1e-08f; - momentum2_ = 0.999f; - rms_decay_ = 0.99f; - debug_info_ = false; - snapshot_after_train_ = true; - solver_type_ = 0; - } - -#undef ZR_HELPER_ -#undef ZR_ - - test_net_.Clear(); - test_net_param_.Clear(); - test_state_.Clear(); - test_iter_.Clear(); - stepvalue_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool SolverParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.SolverParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string train_net = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_train_net())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->train_net().data(), this->train_net().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SolverParameter.train_net"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_test_net; - break; - } - - // repeated string test_net = 2; - case 2: { - if (tag == 18) { - parse_test_net: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_test_net())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->test_net(this->test_net_size() - 1).data(), - this->test_net(this->test_net_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SolverParameter.test_net"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_test_net; - if (input->ExpectTag(24)) goto parse_test_iter; - break; - } - - // repeated int32 test_iter = 3; - case 3: { - if (tag == 24) { - parse_test_iter: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - 1, 24, input, this->mutable_test_iter()))); - } else if (tag == 26) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, this->mutable_test_iter()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_test_iter; - if (input->ExpectTag(32)) goto parse_test_interval; - break; - } - - // optional int32 test_interval = 4 [default = 0]; - case 4: { - if (tag == 32) { - parse_test_interval: - set_has_test_interval(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &test_interval_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_base_lr; - break; - } - - // optional float base_lr = 5; - case 5: { - if (tag == 45) { - parse_base_lr: - set_has_base_lr(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &base_lr_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_display; - break; - } - - // optional int32 display = 6; - case 6: { - if (tag == 48) { - parse_display: - set_has_display(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &display_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_max_iter; - break; - } - - // optional int32 max_iter = 7; - case 7: { - if (tag == 56) { - parse_max_iter: - set_has_max_iter(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_iter_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_lr_policy; - break; - } - - // optional string lr_policy = 8; - case 8: { - if (tag == 66) { - parse_lr_policy: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_lr_policy())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->lr_policy().data(), this->lr_policy().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SolverParameter.lr_policy"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(77)) goto parse_gamma; - break; - } - - // optional float gamma = 9; - case 9: { - if (tag == 77) { - parse_gamma: - set_has_gamma(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &gamma_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(85)) goto parse_power; - break; - } - - // optional float power = 10; - case 10: { - if (tag == 85) { - parse_power: - set_has_power(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &power_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(93)) goto parse_momentum; - break; - } - - // optional float momentum = 11; - case 11: { - if (tag == 93) { - parse_momentum: - set_has_momentum(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &momentum_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(101)) goto parse_weight_decay; - break; - } - - // optional float weight_decay = 12; - case 12: { - if (tag == 101) { - parse_weight_decay: - set_has_weight_decay(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &weight_decay_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(104)) goto parse_stepsize; - break; - } - - // optional int32 stepsize = 13; - case 13: { - if (tag == 104) { - parse_stepsize: - set_has_stepsize(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &stepsize_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(112)) goto parse_snapshot; - break; - } - - // optional int32 snapshot = 14 [default = 0]; - case 14: { - if (tag == 112) { - parse_snapshot: - set_has_snapshot(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &snapshot_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(122)) goto parse_snapshot_prefix; - break; - } - - // optional string snapshot_prefix = 15; - case 15: { - if (tag == 122) { - parse_snapshot_prefix: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_snapshot_prefix())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->snapshot_prefix().data(), this->snapshot_prefix().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SolverParameter.snapshot_prefix"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(128)) goto parse_snapshot_diff; - break; - } - - // optional bool snapshot_diff = 16 [default = false]; - case 16: { - if (tag == 128) { - parse_snapshot_diff: - set_has_snapshot_diff(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &snapshot_diff_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(136)) goto parse_solver_mode; - break; - } - - // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; - case 17: { - if (tag == 136) { - parse_solver_mode: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::SolverParameter_SolverMode_IsValid(value)) { - set_solver_mode(static_cast< ::opencv_caffe::SolverParameter_SolverMode >(value)); - } else { - mutable_unknown_fields()->AddVarint(17, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(144)) goto parse_device_id; - break; - } - - // optional int32 device_id = 18 [default = 0]; - case 18: { - if (tag == 144) { - parse_device_id: - set_has_device_id(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &device_id_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(152)) goto parse_test_compute_loss; - break; - } - - // optional bool test_compute_loss = 19 [default = false]; - case 19: { - if (tag == 152) { - parse_test_compute_loss: - set_has_test_compute_loss(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &test_compute_loss_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(160)) goto parse_random_seed; - break; - } - - // optional int64 random_seed = 20 [default = -1]; - case 20: { - if (tag == 160) { - parse_random_seed: - set_has_random_seed(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &random_seed_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(170)) goto parse_train_net_param; - break; - } - - // optional .opencv_caffe.NetParameter train_net_param = 21; - case 21: { - if (tag == 170) { - parse_train_net_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_train_net_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(178)) goto parse_test_net_param; - break; - } - - // repeated .opencv_caffe.NetParameter test_net_param = 22; - case 22: { - if (tag == 178) { - parse_test_net_param: - DO_(input->IncrementRecursionDepth()); - parse_loop_test_net_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_test_net_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(178)) goto parse_loop_test_net_param; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(184)) goto parse_debug_info; - break; - } - - // optional bool debug_info = 23 [default = false]; - case 23: { - if (tag == 184) { - parse_debug_info: - set_has_debug_info(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &debug_info_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(194)) goto parse_net; - break; - } - - // optional string net = 24; - case 24: { - if (tag == 194) { - parse_net: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_net())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->net().data(), this->net().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SolverParameter.net"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(202)) goto parse_net_param; - break; - } - - // optional .opencv_caffe.NetParameter net_param = 25; - case 25: { - if (tag == 202) { - parse_net_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_net_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(210)) goto parse_train_state; - break; - } - - // optional .opencv_caffe.NetState train_state = 26; - case 26: { - if (tag == 210) { - parse_train_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_train_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(218)) goto parse_test_state; - break; - } - - // repeated .opencv_caffe.NetState test_state = 27; - case 27: { - if (tag == 218) { - parse_test_state: - DO_(input->IncrementRecursionDepth()); - parse_loop_test_state: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_test_state())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(218)) goto parse_loop_test_state; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(224)) goto parse_snapshot_after_train; - break; - } - - // optional bool snapshot_after_train = 28 [default = true]; - case 28: { - if (tag == 224) { - parse_snapshot_after_train: - set_has_snapshot_after_train(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &snapshot_after_train_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(234)) goto parse_regularization_type; - break; - } - - // optional string regularization_type = 29 [default = "L2"]; - case 29: { - if (tag == 234) { - parse_regularization_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_regularization_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->regularization_type().data(), this->regularization_type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SolverParameter.regularization_type"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(240)) goto parse_solver_type; - break; - } - - // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; - case 30: { - if (tag == 240) { - parse_solver_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::SolverParameter_SolverType_IsValid(value)) { - set_solver_type(static_cast< ::opencv_caffe::SolverParameter_SolverType >(value)); - } else { - mutable_unknown_fields()->AddVarint(30, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(253)) goto parse_delta; - break; - } - - // optional float delta = 31 [default = 1e-08]; - case 31: { - if (tag == 253) { - parse_delta: - set_has_delta(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &delta_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(256)) goto parse_test_initialization; - break; - } - - // optional bool test_initialization = 32 [default = true]; - case 32: { - if (tag == 256) { - parse_test_initialization: - set_has_test_initialization(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &test_initialization_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(264)) goto parse_average_loss; - break; - } - - // optional int32 average_loss = 33 [default = 1]; - case 33: { - if (tag == 264) { - parse_average_loss: - set_has_average_loss(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &average_loss_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(272)) goto parse_stepvalue; - break; - } - - // repeated int32 stepvalue = 34; - case 34: { - if (tag == 272) { - parse_stepvalue: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - 2, 272, input, this->mutable_stepvalue()))); - } else if (tag == 274) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, this->mutable_stepvalue()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(272)) goto parse_stepvalue; - if (input->ExpectTag(285)) goto parse_clip_gradients; - break; - } - - // optional float clip_gradients = 35 [default = -1]; - case 35: { - if (tag == 285) { - parse_clip_gradients: - set_has_clip_gradients(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &clip_gradients_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(288)) goto parse_iter_size; - break; - } - - // optional int32 iter_size = 36 [default = 1]; - case 36: { - if (tag == 288) { - parse_iter_size: - set_has_iter_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &iter_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(296)) goto parse_snapshot_format; - break; - } - - // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; - case 37: { - if (tag == 296) { - parse_snapshot_format: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::SolverParameter_SnapshotFormat_IsValid(value)) { - set_snapshot_format(static_cast< ::opencv_caffe::SolverParameter_SnapshotFormat >(value)); - } else { - mutable_unknown_fields()->AddVarint(37, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(309)) goto parse_rms_decay; - break; - } - - // optional float rms_decay = 38 [default = 0.99]; - case 38: { - if (tag == 309) { - parse_rms_decay: - set_has_rms_decay(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &rms_decay_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(317)) goto parse_momentum2; - break; - } - - // optional float momentum2 = 39 [default = 0.999]; - case 39: { - if (tag == 317) { - parse_momentum2: - set_has_momentum2(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &momentum2_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(322)) goto parse_type; - break; - } - - // optional string type = 40 [default = "SGD"]; - case 40: { - if (tag == 322) { - parse_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SolverParameter.type"); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.SolverParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.SolverParameter) - return false; -#undef DO_ -} - -void SolverParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.SolverParameter) - // optional string train_net = 1; - if (has_train_net()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->train_net().data(), this->train_net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.train_net"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->train_net(), output); - } - - // repeated string test_net = 2; - for (int i = 0; i < this->test_net_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->test_net(i).data(), this->test_net(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.test_net"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->test_net(i), output); - } - - // repeated int32 test_iter = 3; - for (int i = 0; i < this->test_iter_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt32( - 3, this->test_iter(i), output); - } - - // optional int32 test_interval = 4 [default = 0]; - if (has_test_interval()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->test_interval(), output); - } - - // optional float base_lr = 5; - if (has_base_lr()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->base_lr(), output); - } - - // optional int32 display = 6; - if (has_display()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->display(), output); - } - - // optional int32 max_iter = 7; - if (has_max_iter()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->max_iter(), output); - } - - // optional string lr_policy = 8; - if (has_lr_policy()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->lr_policy().data(), this->lr_policy().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.lr_policy"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->lr_policy(), output); - } - - // optional float gamma = 9; - if (has_gamma()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->gamma(), output); - } - - // optional float power = 10; - if (has_power()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->power(), output); - } - - // optional float momentum = 11; - if (has_momentum()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->momentum(), output); - } - - // optional float weight_decay = 12; - if (has_weight_decay()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->weight_decay(), output); - } - - // optional int32 stepsize = 13; - if (has_stepsize()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->stepsize(), output); - } - - // optional int32 snapshot = 14 [default = 0]; - if (has_snapshot()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->snapshot(), output); - } - - // optional string snapshot_prefix = 15; - if (has_snapshot_prefix()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->snapshot_prefix().data(), this->snapshot_prefix().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.snapshot_prefix"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 15, this->snapshot_prefix(), output); - } - - // optional bool snapshot_diff = 16 [default = false]; - if (has_snapshot_diff()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->snapshot_diff(), output); - } - - // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; - if (has_solver_mode()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 17, this->solver_mode(), output); - } - - // optional int32 device_id = 18 [default = 0]; - if (has_device_id()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->device_id(), output); - } - - // optional bool test_compute_loss = 19 [default = false]; - if (has_test_compute_loss()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->test_compute_loss(), output); - } - - // optional int64 random_seed = 20 [default = -1]; - if (has_random_seed()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(20, this->random_seed(), output); - } - - // optional .opencv_caffe.NetParameter train_net_param = 21; - if (has_train_net_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 21, *this->train_net_param_, output); - } - - // repeated .opencv_caffe.NetParameter test_net_param = 22; - for (unsigned int i = 0, n = this->test_net_param_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 22, this->test_net_param(i), output); - } - - // optional bool debug_info = 23 [default = false]; - if (has_debug_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->debug_info(), output); - } - - // optional string net = 24; - if (has_net()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->net().data(), this->net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.net"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 24, this->net(), output); - } - - // optional .opencv_caffe.NetParameter net_param = 25; - if (has_net_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 25, *this->net_param_, output); - } - - // optional .opencv_caffe.NetState train_state = 26; - if (has_train_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 26, *this->train_state_, output); - } - - // repeated .opencv_caffe.NetState test_state = 27; - for (unsigned int i = 0, n = this->test_state_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 27, this->test_state(i), output); - } - - // optional bool snapshot_after_train = 28 [default = true]; - if (has_snapshot_after_train()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(28, this->snapshot_after_train(), output); - } - - // optional string regularization_type = 29 [default = "L2"]; - if (has_regularization_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->regularization_type().data(), this->regularization_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.regularization_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 29, this->regularization_type(), output); - } - - // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; - if (has_solver_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 30, this->solver_type(), output); - } - - // optional float delta = 31 [default = 1e-08]; - if (has_delta()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(31, this->delta(), output); - } - - // optional bool test_initialization = 32 [default = true]; - if (has_test_initialization()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(32, this->test_initialization(), output); - } - - // optional int32 average_loss = 33 [default = 1]; - if (has_average_loss()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(33, this->average_loss(), output); - } - - // repeated int32 stepvalue = 34; - for (int i = 0; i < this->stepvalue_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt32( - 34, this->stepvalue(i), output); - } - - // optional float clip_gradients = 35 [default = -1]; - if (has_clip_gradients()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(35, this->clip_gradients(), output); - } - - // optional int32 iter_size = 36 [default = 1]; - if (has_iter_size()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(36, this->iter_size(), output); - } - - // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; - if (has_snapshot_format()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 37, this->snapshot_format(), output); - } - - // optional float rms_decay = 38 [default = 0.99]; - if (has_rms_decay()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(38, this->rms_decay(), output); - } - - // optional float momentum2 = 39 [default = 0.999]; - if (has_momentum2()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(39, this->momentum2(), output); - } - - // optional string type = 40 [default = "SGD"]; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 40, this->type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.SolverParameter) -} - -::google::protobuf::uint8* SolverParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SolverParameter) - // optional string train_net = 1; - if (has_train_net()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->train_net().data(), this->train_net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.train_net"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->train_net(), target); - } - - // repeated string test_net = 2; - for (int i = 0; i < this->test_net_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->test_net(i).data(), this->test_net(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.test_net"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->test_net(i), target); - } - - // repeated int32 test_iter = 3; - for (int i = 0; i < this->test_iter_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArray(3, this->test_iter(i), target); - } - - // optional int32 test_interval = 4 [default = 0]; - if (has_test_interval()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->test_interval(), target); - } - - // optional float base_lr = 5; - if (has_base_lr()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->base_lr(), target); - } - - // optional int32 display = 6; - if (has_display()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->display(), target); - } - - // optional int32 max_iter = 7; - if (has_max_iter()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->max_iter(), target); - } - - // optional string lr_policy = 8; - if (has_lr_policy()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->lr_policy().data(), this->lr_policy().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.lr_policy"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->lr_policy(), target); - } - - // optional float gamma = 9; - if (has_gamma()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->gamma(), target); - } - - // optional float power = 10; - if (has_power()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->power(), target); - } - - // optional float momentum = 11; - if (has_momentum()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->momentum(), target); - } - - // optional float weight_decay = 12; - if (has_weight_decay()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->weight_decay(), target); - } - - // optional int32 stepsize = 13; - if (has_stepsize()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->stepsize(), target); - } - - // optional int32 snapshot = 14 [default = 0]; - if (has_snapshot()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->snapshot(), target); - } - - // optional string snapshot_prefix = 15; - if (has_snapshot_prefix()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->snapshot_prefix().data(), this->snapshot_prefix().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.snapshot_prefix"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 15, this->snapshot_prefix(), target); - } - - // optional bool snapshot_diff = 16 [default = false]; - if (has_snapshot_diff()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->snapshot_diff(), target); - } - - // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; - if (has_solver_mode()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 17, this->solver_mode(), target); - } - - // optional int32 device_id = 18 [default = 0]; - if (has_device_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->device_id(), target); - } - - // optional bool test_compute_loss = 19 [default = false]; - if (has_test_compute_loss()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->test_compute_loss(), target); - } - - // optional int64 random_seed = 20 [default = -1]; - if (has_random_seed()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(20, this->random_seed(), target); - } - - // optional .opencv_caffe.NetParameter train_net_param = 21; - if (has_train_net_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 21, *this->train_net_param_, false, target); - } - - // repeated .opencv_caffe.NetParameter test_net_param = 22; - for (unsigned int i = 0, n = this->test_net_param_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 22, this->test_net_param(i), false, target); - } - - // optional bool debug_info = 23 [default = false]; - if (has_debug_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->debug_info(), target); - } - - // optional string net = 24; - if (has_net()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->net().data(), this->net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.net"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 24, this->net(), target); - } - - // optional .opencv_caffe.NetParameter net_param = 25; - if (has_net_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 25, *this->net_param_, false, target); - } - - // optional .opencv_caffe.NetState train_state = 26; - if (has_train_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 26, *this->train_state_, false, target); - } - - // repeated .opencv_caffe.NetState test_state = 27; - for (unsigned int i = 0, n = this->test_state_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 27, this->test_state(i), false, target); - } - - // optional bool snapshot_after_train = 28 [default = true]; - if (has_snapshot_after_train()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(28, this->snapshot_after_train(), target); - } - - // optional string regularization_type = 29 [default = "L2"]; - if (has_regularization_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->regularization_type().data(), this->regularization_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.regularization_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 29, this->regularization_type(), target); - } - - // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; - if (has_solver_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 30, this->solver_type(), target); - } - - // optional float delta = 31 [default = 1e-08]; - if (has_delta()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(31, this->delta(), target); - } - - // optional bool test_initialization = 32 [default = true]; - if (has_test_initialization()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(32, this->test_initialization(), target); - } - - // optional int32 average_loss = 33 [default = 1]; - if (has_average_loss()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(33, this->average_loss(), target); - } - - // repeated int32 stepvalue = 34; - for (int i = 0; i < this->stepvalue_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArray(34, this->stepvalue(i), target); - } - - // optional float clip_gradients = 35 [default = -1]; - if (has_clip_gradients()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(35, this->clip_gradients(), target); - } - - // optional int32 iter_size = 36 [default = 1]; - if (has_iter_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(36, this->iter_size(), target); - } - - // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; - if (has_snapshot_format()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 37, this->snapshot_format(), target); - } - - // optional float rms_decay = 38 [default = 0.99]; - if (has_rms_decay()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(38, this->rms_decay(), target); - } - - // optional float momentum2 = 39 [default = 0.999]; - if (has_momentum2()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(39, this->momentum2(), target); - } - - // optional string type = 40 [default = "SGD"]; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverParameter.type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 40, this->type(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SolverParameter) - return target; -} - -size_t SolverParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SolverParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 87u) { - // optional string net = 24; - if (has_net()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->net()); - } - - // optional .opencv_caffe.NetParameter net_param = 25; - if (has_net_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->net_param_); - } - - // optional string train_net = 1; - if (has_train_net()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->train_net()); - } - - // optional .opencv_caffe.NetParameter train_net_param = 21; - if (has_train_net_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->train_net_param_); - } - - // optional .opencv_caffe.NetState train_state = 26; - if (has_train_state()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->train_state_); - } - - } - if (_has_bits_[9 / 32] & 65024u) { - // optional int32 test_interval = 4 [default = 0]; - if (has_test_interval()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->test_interval()); - } - - // optional bool test_compute_loss = 19 [default = false]; - if (has_test_compute_loss()) { - total_size += 2 + 1; - } - - // optional bool test_initialization = 32 [default = true]; - if (has_test_initialization()) { - total_size += 2 + 1; - } - - // optional float base_lr = 5; - if (has_base_lr()) { - total_size += 1 + 4; - } - - // optional int32 display = 6; - if (has_display()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->display()); - } - - // optional int32 average_loss = 33 [default = 1]; - if (has_average_loss()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->average_loss()); - } - - // optional int32 max_iter = 7; - if (has_max_iter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_iter()); - } - - } - if (_has_bits_[16 / 32] & 16711680u) { - // optional int32 iter_size = 36 [default = 1]; - if (has_iter_size()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->iter_size()); - } - - // optional string lr_policy = 8; - if (has_lr_policy()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->lr_policy()); - } - - // optional float gamma = 9; - if (has_gamma()) { - total_size += 1 + 4; - } - - // optional float power = 10; - if (has_power()) { - total_size += 1 + 4; - } - - // optional float momentum = 11; - if (has_momentum()) { - total_size += 1 + 4; - } - - // optional float weight_decay = 12; - if (has_weight_decay()) { - total_size += 1 + 4; - } - - // optional string regularization_type = 29 [default = "L2"]; - if (has_regularization_type()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->regularization_type()); - } - - // optional int32 stepsize = 13; - if (has_stepsize()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->stepsize()); - } - - } - if (_has_bits_[25 / 32] & 4261412864u) { - // optional float clip_gradients = 35 [default = -1]; - if (has_clip_gradients()) { - total_size += 2 + 4; - } - - // optional int32 snapshot = 14 [default = 0]; - if (has_snapshot()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->snapshot()); - } - - // optional string snapshot_prefix = 15; - if (has_snapshot_prefix()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->snapshot_prefix()); - } - - // optional bool snapshot_diff = 16 [default = false]; - if (has_snapshot_diff()) { - total_size += 2 + 1; - } - - // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; - if (has_snapshot_format()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->snapshot_format()); - } - - // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; - if (has_solver_mode()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->solver_mode()); - } - - // optional int32 device_id = 18 [default = 0]; - if (has_device_id()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->device_id()); - } - - } - if (_has_bits_[32 / 32] & 255u) { - // optional int64 random_seed = 20 [default = -1]; - if (has_random_seed()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->random_seed()); - } - - // optional string type = 40 [default = "SGD"]; - if (has_type()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->type()); - } - - // optional float delta = 31 [default = 1e-08]; - if (has_delta()) { - total_size += 2 + 4; - } - - // optional float momentum2 = 39 [default = 0.999]; - if (has_momentum2()) { - total_size += 2 + 4; - } - - // optional float rms_decay = 38 [default = 0.99]; - if (has_rms_decay()) { - total_size += 2 + 4; - } - - // optional bool debug_info = 23 [default = false]; - if (has_debug_info()) { - total_size += 2 + 1; - } - - // optional bool snapshot_after_train = 28 [default = true]; - if (has_snapshot_after_train()) { - total_size += 2 + 1; - } - - // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; - if (has_solver_type()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->solver_type()); - } - - } - // repeated string test_net = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->test_net_size()); - for (int i = 0; i < this->test_net_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->test_net(i)); - } - - // repeated .opencv_caffe.NetParameter test_net_param = 22; - { - unsigned int count = this->test_net_param_size(); - total_size += 2UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->test_net_param(i)); - } - } - - // repeated .opencv_caffe.NetState test_state = 27; - { - unsigned int count = this->test_state_size(); - total_size += 2UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->test_state(i)); - } - } - - // repeated int32 test_iter = 3; - { - size_t data_size = 0; - unsigned int count = this->test_iter_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->test_iter(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->test_iter_size()); - total_size += data_size; - } - - // repeated int32 stepvalue = 34; - { - size_t data_size = 0; - unsigned int count = this->stepvalue_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->stepvalue(i)); - } - total_size += 2 * - ::google::protobuf::internal::FromIntSize(this->stepvalue_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SolverParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SolverParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const SolverParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SolverParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SolverParameter) - UnsafeMergeFrom(*source); - } -} - -void SolverParameter::MergeFrom(const SolverParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SolverParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void SolverParameter::UnsafeMergeFrom(const SolverParameter& from) { - GOOGLE_DCHECK(&from != this); - test_net_.UnsafeMergeFrom(from.test_net_); - test_net_param_.MergeFrom(from.test_net_param_); - test_state_.MergeFrom(from.test_state_); - test_iter_.UnsafeMergeFrom(from.test_iter_); - stepvalue_.UnsafeMergeFrom(from.stepvalue_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_net()) { - set_has_net(); - net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.net_); - } - if (from.has_net_param()) { - mutable_net_param()->::opencv_caffe::NetParameter::MergeFrom(from.net_param()); - } - if (from.has_train_net()) { - set_has_train_net(); - train_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.train_net_); - } - if (from.has_train_net_param()) { - mutable_train_net_param()->::opencv_caffe::NetParameter::MergeFrom(from.train_net_param()); - } - if (from.has_train_state()) { - mutable_train_state()->::opencv_caffe::NetState::MergeFrom(from.train_state()); - } - } - if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) { - if (from.has_test_interval()) { - set_test_interval(from.test_interval()); - } - if (from.has_test_compute_loss()) { - set_test_compute_loss(from.test_compute_loss()); - } - if (from.has_test_initialization()) { - set_test_initialization(from.test_initialization()); - } - if (from.has_base_lr()) { - set_base_lr(from.base_lr()); - } - if (from.has_display()) { - set_display(from.display()); - } - if (from.has_average_loss()) { - set_average_loss(from.average_loss()); - } - if (from.has_max_iter()) { - set_max_iter(from.max_iter()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_iter_size()) { - set_iter_size(from.iter_size()); - } - if (from.has_lr_policy()) { - set_has_lr_policy(); - lr_policy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lr_policy_); - } - if (from.has_gamma()) { - set_gamma(from.gamma()); - } - if (from.has_power()) { - set_power(from.power()); - } - if (from.has_momentum()) { - set_momentum(from.momentum()); - } - if (from.has_weight_decay()) { - set_weight_decay(from.weight_decay()); - } - if (from.has_regularization_type()) { - set_has_regularization_type(); - regularization_type_.AssignWithDefault(_default_regularization_type_, from.regularization_type_); - } - if (from.has_stepsize()) { - set_stepsize(from.stepsize()); - } - } - if (from._has_bits_[25 / 32] & (0xffu << (25 % 32))) { - if (from.has_clip_gradients()) { - set_clip_gradients(from.clip_gradients()); - } - if (from.has_snapshot()) { - set_snapshot(from.snapshot()); - } - if (from.has_snapshot_prefix()) { - set_has_snapshot_prefix(); - snapshot_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_prefix_); - } - if (from.has_snapshot_diff()) { - set_snapshot_diff(from.snapshot_diff()); - } - if (from.has_snapshot_format()) { - set_snapshot_format(from.snapshot_format()); - } - if (from.has_solver_mode()) { - set_solver_mode(from.solver_mode()); - } - if (from.has_device_id()) { - set_device_id(from.device_id()); - } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_random_seed()) { - set_random_seed(from.random_seed()); - } - if (from.has_type()) { - set_has_type(); - type_.AssignWithDefault(_default_type_, from.type_); - } - if (from.has_delta()) { - set_delta(from.delta()); - } - if (from.has_momentum2()) { - set_momentum2(from.momentum2()); - } - if (from.has_rms_decay()) { - set_rms_decay(from.rms_decay()); - } - if (from.has_debug_info()) { - set_debug_info(from.debug_info()); - } - if (from.has_snapshot_after_train()) { - set_snapshot_after_train(from.snapshot_after_train()); - } - if (from.has_solver_type()) { - set_solver_type(from.solver_type()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void SolverParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SolverParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SolverParameter::CopyFrom(const SolverParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SolverParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool SolverParameter::IsInitialized() const { - - if (has_net_param()) { - if (!this->net_param_->IsInitialized()) return false; - } - if (has_train_net_param()) { - if (!this->train_net_param_->IsInitialized()) return false; - } - if (!::google::protobuf::internal::AllAreInitialized(this->test_net_param())) return false; - return true; -} - -void SolverParameter::Swap(SolverParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void SolverParameter::InternalSwap(SolverParameter* other) { - net_.Swap(&other->net_); - std::swap(net_param_, other->net_param_); - train_net_.Swap(&other->train_net_); - test_net_.UnsafeArenaSwap(&other->test_net_); - std::swap(train_net_param_, other->train_net_param_); - test_net_param_.UnsafeArenaSwap(&other->test_net_param_); - std::swap(train_state_, other->train_state_); - test_state_.UnsafeArenaSwap(&other->test_state_); - test_iter_.UnsafeArenaSwap(&other->test_iter_); - std::swap(test_interval_, other->test_interval_); - std::swap(test_compute_loss_, other->test_compute_loss_); - std::swap(test_initialization_, other->test_initialization_); - std::swap(base_lr_, other->base_lr_); - std::swap(display_, other->display_); - std::swap(average_loss_, other->average_loss_); - std::swap(max_iter_, other->max_iter_); - std::swap(iter_size_, other->iter_size_); - lr_policy_.Swap(&other->lr_policy_); - std::swap(gamma_, other->gamma_); - std::swap(power_, other->power_); - std::swap(momentum_, other->momentum_); - std::swap(weight_decay_, other->weight_decay_); - regularization_type_.Swap(&other->regularization_type_); - std::swap(stepsize_, other->stepsize_); - stepvalue_.UnsafeArenaSwap(&other->stepvalue_); - std::swap(clip_gradients_, other->clip_gradients_); - std::swap(snapshot_, other->snapshot_); - snapshot_prefix_.Swap(&other->snapshot_prefix_); - std::swap(snapshot_diff_, other->snapshot_diff_); - std::swap(snapshot_format_, other->snapshot_format_); - std::swap(solver_mode_, other->solver_mode_); - std::swap(device_id_, other->device_id_); - std::swap(random_seed_, other->random_seed_); - type_.Swap(&other->type_); - std::swap(delta_, other->delta_); - std::swap(momentum2_, other->momentum2_); - std::swap(rms_decay_, other->rms_decay_); - std::swap(debug_info_, other->debug_info_); - std::swap(snapshot_after_train_, other->snapshot_after_train_); - std::swap(solver_type_, other->solver_type_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_has_bits_[1], other->_has_bits_[1]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SolverParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SolverParameter_descriptor_; - metadata.reflection = SolverParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SolverParameter - -// optional string net = 24; -bool SolverParameter::has_net() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void SolverParameter::set_has_net() { - _has_bits_[0] |= 0x00000001u; -} -void SolverParameter::clear_has_net() { - _has_bits_[0] &= ~0x00000001u; -} -void SolverParameter::clear_net() { - net_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_net(); -} -const ::std::string& SolverParameter::net() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.net) - return net_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverParameter::set_net(const ::std::string& value) { - set_has_net(); - net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.net) -} -void SolverParameter::set_net(const char* value) { - set_has_net(); - net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.net) -} -void SolverParameter::set_net(const char* value, size_t size) { - set_has_net(); - net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverParameter.net) -} -::std::string* SolverParameter::mutable_net() { - set_has_net(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.net) - return net_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SolverParameter::release_net() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.net) - clear_has_net(); - return net_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverParameter::set_allocated_net(::std::string* net) { - if (net != NULL) { - set_has_net(); - } else { - clear_has_net(); - } - net_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), net); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.net) -} - -// optional .opencv_caffe.NetParameter net_param = 25; -bool SolverParameter::has_net_param() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void SolverParameter::set_has_net_param() { - _has_bits_[0] |= 0x00000002u; -} -void SolverParameter::clear_has_net_param() { - _has_bits_[0] &= ~0x00000002u; -} -void SolverParameter::clear_net_param() { - if (net_param_ != NULL) net_param_->::opencv_caffe::NetParameter::Clear(); - clear_has_net_param(); -} -const ::opencv_caffe::NetParameter& SolverParameter::net_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.net_param) - return net_param_ != NULL ? *net_param_ - : *::opencv_caffe::NetParameter::internal_default_instance(); -} -::opencv_caffe::NetParameter* SolverParameter::mutable_net_param() { - set_has_net_param(); - if (net_param_ == NULL) { - net_param_ = new ::opencv_caffe::NetParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.net_param) - return net_param_; -} -::opencv_caffe::NetParameter* SolverParameter::release_net_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.net_param) - clear_has_net_param(); - ::opencv_caffe::NetParameter* temp = net_param_; - net_param_ = NULL; - return temp; -} -void SolverParameter::set_allocated_net_param(::opencv_caffe::NetParameter* net_param) { - delete net_param_; - net_param_ = net_param; - if (net_param) { - set_has_net_param(); - } else { - clear_has_net_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.net_param) -} - -// optional string train_net = 1; -bool SolverParameter::has_train_net() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void SolverParameter::set_has_train_net() { - _has_bits_[0] |= 0x00000004u; -} -void SolverParameter::clear_has_train_net() { - _has_bits_[0] &= ~0x00000004u; -} -void SolverParameter::clear_train_net() { - train_net_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_train_net(); -} -const ::std::string& SolverParameter::train_net() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.train_net) - return train_net_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverParameter::set_train_net(const ::std::string& value) { - set_has_train_net(); - train_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.train_net) -} -void SolverParameter::set_train_net(const char* value) { - set_has_train_net(); - train_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.train_net) -} -void SolverParameter::set_train_net(const char* value, size_t size) { - set_has_train_net(); - train_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverParameter.train_net) -} -::std::string* SolverParameter::mutable_train_net() { - set_has_train_net(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.train_net) - return train_net_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SolverParameter::release_train_net() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.train_net) - clear_has_train_net(); - return train_net_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverParameter::set_allocated_train_net(::std::string* train_net) { - if (train_net != NULL) { - set_has_train_net(); - } else { - clear_has_train_net(); - } - train_net_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), train_net); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.train_net) -} - -// repeated string test_net = 2; -int SolverParameter::test_net_size() const { - return test_net_.size(); -} -void SolverParameter::clear_test_net() { - test_net_.Clear(); -} -const ::std::string& SolverParameter::test_net(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.test_net) - return test_net_.Get(index); -} -::std::string* SolverParameter::mutable_test_net(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.test_net) - return test_net_.Mutable(index); -} -void SolverParameter::set_test_net(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.test_net) - test_net_.Mutable(index)->assign(value); -} -void SolverParameter::set_test_net(int index, const char* value) { - test_net_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.test_net) -} -void SolverParameter::set_test_net(int index, const char* value, size_t size) { - test_net_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverParameter.test_net) -} -::std::string* SolverParameter::add_test_net() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.SolverParameter.test_net) - return test_net_.Add(); -} -void SolverParameter::add_test_net(const ::std::string& value) { - test_net_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.SolverParameter.test_net) -} -void SolverParameter::add_test_net(const char* value) { - test_net_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.SolverParameter.test_net) -} -void SolverParameter::add_test_net(const char* value, size_t size) { - test_net_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.SolverParameter.test_net) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -SolverParameter::test_net() const { - // @@protoc_insertion_point(field_list:opencv_caffe.SolverParameter.test_net) - return test_net_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -SolverParameter::mutable_test_net() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.SolverParameter.test_net) - return &test_net_; -} - -// optional .opencv_caffe.NetParameter train_net_param = 21; -bool SolverParameter::has_train_net_param() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void SolverParameter::set_has_train_net_param() { - _has_bits_[0] |= 0x00000010u; -} -void SolverParameter::clear_has_train_net_param() { - _has_bits_[0] &= ~0x00000010u; -} -void SolverParameter::clear_train_net_param() { - if (train_net_param_ != NULL) train_net_param_->::opencv_caffe::NetParameter::Clear(); - clear_has_train_net_param(); -} -const ::opencv_caffe::NetParameter& SolverParameter::train_net_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.train_net_param) - return train_net_param_ != NULL ? *train_net_param_ - : *::opencv_caffe::NetParameter::internal_default_instance(); -} -::opencv_caffe::NetParameter* SolverParameter::mutable_train_net_param() { - set_has_train_net_param(); - if (train_net_param_ == NULL) { - train_net_param_ = new ::opencv_caffe::NetParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.train_net_param) - return train_net_param_; -} -::opencv_caffe::NetParameter* SolverParameter::release_train_net_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.train_net_param) - clear_has_train_net_param(); - ::opencv_caffe::NetParameter* temp = train_net_param_; - train_net_param_ = NULL; - return temp; -} -void SolverParameter::set_allocated_train_net_param(::opencv_caffe::NetParameter* train_net_param) { - delete train_net_param_; - train_net_param_ = train_net_param; - if (train_net_param) { - set_has_train_net_param(); - } else { - clear_has_train_net_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.train_net_param) -} - -// repeated .opencv_caffe.NetParameter test_net_param = 22; -int SolverParameter::test_net_param_size() const { - return test_net_param_.size(); -} -void SolverParameter::clear_test_net_param() { - test_net_param_.Clear(); -} -const ::opencv_caffe::NetParameter& SolverParameter::test_net_param(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.test_net_param) - return test_net_param_.Get(index); -} -::opencv_caffe::NetParameter* SolverParameter::mutable_test_net_param(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.test_net_param) - return test_net_param_.Mutable(index); -} -::opencv_caffe::NetParameter* SolverParameter::add_test_net_param() { - // @@protoc_insertion_point(field_add:opencv_caffe.SolverParameter.test_net_param) - return test_net_param_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetParameter >* -SolverParameter::mutable_test_net_param() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.SolverParameter.test_net_param) - return &test_net_param_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetParameter >& -SolverParameter::test_net_param() const { - // @@protoc_insertion_point(field_list:opencv_caffe.SolverParameter.test_net_param) - return test_net_param_; -} - -// optional .opencv_caffe.NetState train_state = 26; -bool SolverParameter::has_train_state() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void SolverParameter::set_has_train_state() { - _has_bits_[0] |= 0x00000040u; -} -void SolverParameter::clear_has_train_state() { - _has_bits_[0] &= ~0x00000040u; -} -void SolverParameter::clear_train_state() { - if (train_state_ != NULL) train_state_->::opencv_caffe::NetState::Clear(); - clear_has_train_state(); -} -const ::opencv_caffe::NetState& SolverParameter::train_state() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.train_state) - return train_state_ != NULL ? *train_state_ - : *::opencv_caffe::NetState::internal_default_instance(); -} -::opencv_caffe::NetState* SolverParameter::mutable_train_state() { - set_has_train_state(); - if (train_state_ == NULL) { - train_state_ = new ::opencv_caffe::NetState; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.train_state) - return train_state_; -} -::opencv_caffe::NetState* SolverParameter::release_train_state() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.train_state) - clear_has_train_state(); - ::opencv_caffe::NetState* temp = train_state_; - train_state_ = NULL; - return temp; -} -void SolverParameter::set_allocated_train_state(::opencv_caffe::NetState* train_state) { - delete train_state_; - train_state_ = train_state; - if (train_state) { - set_has_train_state(); - } else { - clear_has_train_state(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.train_state) -} - -// repeated .opencv_caffe.NetState test_state = 27; -int SolverParameter::test_state_size() const { - return test_state_.size(); -} -void SolverParameter::clear_test_state() { - test_state_.Clear(); -} -const ::opencv_caffe::NetState& SolverParameter::test_state(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.test_state) - return test_state_.Get(index); -} -::opencv_caffe::NetState* SolverParameter::mutable_test_state(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.test_state) - return test_state_.Mutable(index); -} -::opencv_caffe::NetState* SolverParameter::add_test_state() { - // @@protoc_insertion_point(field_add:opencv_caffe.SolverParameter.test_state) - return test_state_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetState >* -SolverParameter::mutable_test_state() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.SolverParameter.test_state) - return &test_state_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetState >& -SolverParameter::test_state() const { - // @@protoc_insertion_point(field_list:opencv_caffe.SolverParameter.test_state) - return test_state_; -} - -// repeated int32 test_iter = 3; -int SolverParameter::test_iter_size() const { - return test_iter_.size(); -} -void SolverParameter::clear_test_iter() { - test_iter_.Clear(); -} -::google::protobuf::int32 SolverParameter::test_iter(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.test_iter) - return test_iter_.Get(index); -} -void SolverParameter::set_test_iter(int index, ::google::protobuf::int32 value) { - test_iter_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.test_iter) -} -void SolverParameter::add_test_iter(::google::protobuf::int32 value) { - test_iter_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.SolverParameter.test_iter) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -SolverParameter::test_iter() const { - // @@protoc_insertion_point(field_list:opencv_caffe.SolverParameter.test_iter) - return test_iter_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -SolverParameter::mutable_test_iter() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.SolverParameter.test_iter) - return &test_iter_; -} - -// optional int32 test_interval = 4 [default = 0]; -bool SolverParameter::has_test_interval() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void SolverParameter::set_has_test_interval() { - _has_bits_[0] |= 0x00000200u; -} -void SolverParameter::clear_has_test_interval() { - _has_bits_[0] &= ~0x00000200u; -} -void SolverParameter::clear_test_interval() { - test_interval_ = 0; - clear_has_test_interval(); -} -::google::protobuf::int32 SolverParameter::test_interval() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.test_interval) - return test_interval_; -} -void SolverParameter::set_test_interval(::google::protobuf::int32 value) { - set_has_test_interval(); - test_interval_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.test_interval) -} - -// optional bool test_compute_loss = 19 [default = false]; -bool SolverParameter::has_test_compute_loss() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -void SolverParameter::set_has_test_compute_loss() { - _has_bits_[0] |= 0x00000400u; -} -void SolverParameter::clear_has_test_compute_loss() { - _has_bits_[0] &= ~0x00000400u; -} -void SolverParameter::clear_test_compute_loss() { - test_compute_loss_ = false; - clear_has_test_compute_loss(); -} -bool SolverParameter::test_compute_loss() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.test_compute_loss) - return test_compute_loss_; -} -void SolverParameter::set_test_compute_loss(bool value) { - set_has_test_compute_loss(); - test_compute_loss_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.test_compute_loss) -} - -// optional bool test_initialization = 32 [default = true]; -bool SolverParameter::has_test_initialization() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -void SolverParameter::set_has_test_initialization() { - _has_bits_[0] |= 0x00000800u; -} -void SolverParameter::clear_has_test_initialization() { - _has_bits_[0] &= ~0x00000800u; -} -void SolverParameter::clear_test_initialization() { - test_initialization_ = true; - clear_has_test_initialization(); -} -bool SolverParameter::test_initialization() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.test_initialization) - return test_initialization_; -} -void SolverParameter::set_test_initialization(bool value) { - set_has_test_initialization(); - test_initialization_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.test_initialization) -} - -// optional float base_lr = 5; -bool SolverParameter::has_base_lr() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -void SolverParameter::set_has_base_lr() { - _has_bits_[0] |= 0x00001000u; -} -void SolverParameter::clear_has_base_lr() { - _has_bits_[0] &= ~0x00001000u; -} -void SolverParameter::clear_base_lr() { - base_lr_ = 0; - clear_has_base_lr(); -} -float SolverParameter::base_lr() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.base_lr) - return base_lr_; -} -void SolverParameter::set_base_lr(float value) { - set_has_base_lr(); - base_lr_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.base_lr) -} - -// optional int32 display = 6; -bool SolverParameter::has_display() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -void SolverParameter::set_has_display() { - _has_bits_[0] |= 0x00002000u; -} -void SolverParameter::clear_has_display() { - _has_bits_[0] &= ~0x00002000u; -} -void SolverParameter::clear_display() { - display_ = 0; - clear_has_display(); -} -::google::protobuf::int32 SolverParameter::display() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.display) - return display_; -} -void SolverParameter::set_display(::google::protobuf::int32 value) { - set_has_display(); - display_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.display) -} - -// optional int32 average_loss = 33 [default = 1]; -bool SolverParameter::has_average_loss() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -void SolverParameter::set_has_average_loss() { - _has_bits_[0] |= 0x00004000u; -} -void SolverParameter::clear_has_average_loss() { - _has_bits_[0] &= ~0x00004000u; -} -void SolverParameter::clear_average_loss() { - average_loss_ = 1; - clear_has_average_loss(); -} -::google::protobuf::int32 SolverParameter::average_loss() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.average_loss) - return average_loss_; -} -void SolverParameter::set_average_loss(::google::protobuf::int32 value) { - set_has_average_loss(); - average_loss_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.average_loss) -} - -// optional int32 max_iter = 7; -bool SolverParameter::has_max_iter() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -void SolverParameter::set_has_max_iter() { - _has_bits_[0] |= 0x00008000u; -} -void SolverParameter::clear_has_max_iter() { - _has_bits_[0] &= ~0x00008000u; -} -void SolverParameter::clear_max_iter() { - max_iter_ = 0; - clear_has_max_iter(); -} -::google::protobuf::int32 SolverParameter::max_iter() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.max_iter) - return max_iter_; -} -void SolverParameter::set_max_iter(::google::protobuf::int32 value) { - set_has_max_iter(); - max_iter_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.max_iter) -} - -// optional int32 iter_size = 36 [default = 1]; -bool SolverParameter::has_iter_size() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -void SolverParameter::set_has_iter_size() { - _has_bits_[0] |= 0x00010000u; -} -void SolverParameter::clear_has_iter_size() { - _has_bits_[0] &= ~0x00010000u; -} -void SolverParameter::clear_iter_size() { - iter_size_ = 1; - clear_has_iter_size(); -} -::google::protobuf::int32 SolverParameter::iter_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.iter_size) - return iter_size_; -} -void SolverParameter::set_iter_size(::google::protobuf::int32 value) { - set_has_iter_size(); - iter_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.iter_size) -} - -// optional string lr_policy = 8; -bool SolverParameter::has_lr_policy() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -void SolverParameter::set_has_lr_policy() { - _has_bits_[0] |= 0x00020000u; -} -void SolverParameter::clear_has_lr_policy() { - _has_bits_[0] &= ~0x00020000u; -} -void SolverParameter::clear_lr_policy() { - lr_policy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_lr_policy(); -} -const ::std::string& SolverParameter::lr_policy() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.lr_policy) - return lr_policy_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverParameter::set_lr_policy(const ::std::string& value) { - set_has_lr_policy(); - lr_policy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.lr_policy) -} -void SolverParameter::set_lr_policy(const char* value) { - set_has_lr_policy(); - lr_policy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.lr_policy) -} -void SolverParameter::set_lr_policy(const char* value, size_t size) { - set_has_lr_policy(); - lr_policy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverParameter.lr_policy) -} -::std::string* SolverParameter::mutable_lr_policy() { - set_has_lr_policy(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.lr_policy) - return lr_policy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SolverParameter::release_lr_policy() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.lr_policy) - clear_has_lr_policy(); - return lr_policy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverParameter::set_allocated_lr_policy(::std::string* lr_policy) { - if (lr_policy != NULL) { - set_has_lr_policy(); - } else { - clear_has_lr_policy(); - } - lr_policy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), lr_policy); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.lr_policy) -} - -// optional float gamma = 9; -bool SolverParameter::has_gamma() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -void SolverParameter::set_has_gamma() { - _has_bits_[0] |= 0x00040000u; -} -void SolverParameter::clear_has_gamma() { - _has_bits_[0] &= ~0x00040000u; -} -void SolverParameter::clear_gamma() { - gamma_ = 0; - clear_has_gamma(); -} -float SolverParameter::gamma() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.gamma) - return gamma_; -} -void SolverParameter::set_gamma(float value) { - set_has_gamma(); - gamma_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.gamma) -} - -// optional float power = 10; -bool SolverParameter::has_power() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -void SolverParameter::set_has_power() { - _has_bits_[0] |= 0x00080000u; -} -void SolverParameter::clear_has_power() { - _has_bits_[0] &= ~0x00080000u; -} -void SolverParameter::clear_power() { - power_ = 0; - clear_has_power(); -} -float SolverParameter::power() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.power) - return power_; -} -void SolverParameter::set_power(float value) { - set_has_power(); - power_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.power) -} - -// optional float momentum = 11; -bool SolverParameter::has_momentum() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -void SolverParameter::set_has_momentum() { - _has_bits_[0] |= 0x00100000u; -} -void SolverParameter::clear_has_momentum() { - _has_bits_[0] &= ~0x00100000u; -} -void SolverParameter::clear_momentum() { - momentum_ = 0; - clear_has_momentum(); -} -float SolverParameter::momentum() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.momentum) - return momentum_; -} -void SolverParameter::set_momentum(float value) { - set_has_momentum(); - momentum_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.momentum) -} - -// optional float weight_decay = 12; -bool SolverParameter::has_weight_decay() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -void SolverParameter::set_has_weight_decay() { - _has_bits_[0] |= 0x00200000u; -} -void SolverParameter::clear_has_weight_decay() { - _has_bits_[0] &= ~0x00200000u; -} -void SolverParameter::clear_weight_decay() { - weight_decay_ = 0; - clear_has_weight_decay(); -} -float SolverParameter::weight_decay() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.weight_decay) - return weight_decay_; -} -void SolverParameter::set_weight_decay(float value) { - set_has_weight_decay(); - weight_decay_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.weight_decay) -} - -// optional string regularization_type = 29 [default = "L2"]; -bool SolverParameter::has_regularization_type() const { - return (_has_bits_[0] & 0x00400000u) != 0; -} -void SolverParameter::set_has_regularization_type() { - _has_bits_[0] |= 0x00400000u; -} -void SolverParameter::clear_has_regularization_type() { - _has_bits_[0] &= ~0x00400000u; -} -void SolverParameter::clear_regularization_type() { - regularization_type_.ClearToDefaultNoArena(_default_regularization_type_); - clear_has_regularization_type(); -} -const ::std::string& SolverParameter::regularization_type() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.regularization_type) - return regularization_type_.GetNoArena(_default_regularization_type_); -} -void SolverParameter::set_regularization_type(const ::std::string& value) { - set_has_regularization_type(); - regularization_type_.SetNoArena(_default_regularization_type_, value); - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.regularization_type) -} -void SolverParameter::set_regularization_type(const char* value) { - set_has_regularization_type(); - regularization_type_.SetNoArena(_default_regularization_type_, ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.regularization_type) -} -void SolverParameter::set_regularization_type(const char* value, size_t size) { - set_has_regularization_type(); - regularization_type_.SetNoArena(_default_regularization_type_, - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverParameter.regularization_type) -} -::std::string* SolverParameter::mutable_regularization_type() { - set_has_regularization_type(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.regularization_type) - return regularization_type_.MutableNoArena(_default_regularization_type_); -} -::std::string* SolverParameter::release_regularization_type() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.regularization_type) - clear_has_regularization_type(); - return regularization_type_.ReleaseNoArena(_default_regularization_type_); -} -void SolverParameter::set_allocated_regularization_type(::std::string* regularization_type) { - if (regularization_type != NULL) { - set_has_regularization_type(); - } else { - clear_has_regularization_type(); - } - regularization_type_.SetAllocatedNoArena(_default_regularization_type_, regularization_type); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.regularization_type) -} - -// optional int32 stepsize = 13; -bool SolverParameter::has_stepsize() const { - return (_has_bits_[0] & 0x00800000u) != 0; -} -void SolverParameter::set_has_stepsize() { - _has_bits_[0] |= 0x00800000u; -} -void SolverParameter::clear_has_stepsize() { - _has_bits_[0] &= ~0x00800000u; -} -void SolverParameter::clear_stepsize() { - stepsize_ = 0; - clear_has_stepsize(); -} -::google::protobuf::int32 SolverParameter::stepsize() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.stepsize) - return stepsize_; -} -void SolverParameter::set_stepsize(::google::protobuf::int32 value) { - set_has_stepsize(); - stepsize_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.stepsize) -} - -// repeated int32 stepvalue = 34; -int SolverParameter::stepvalue_size() const { - return stepvalue_.size(); -} -void SolverParameter::clear_stepvalue() { - stepvalue_.Clear(); -} -::google::protobuf::int32 SolverParameter::stepvalue(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.stepvalue) - return stepvalue_.Get(index); -} -void SolverParameter::set_stepvalue(int index, ::google::protobuf::int32 value) { - stepvalue_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.stepvalue) -} -void SolverParameter::add_stepvalue(::google::protobuf::int32 value) { - stepvalue_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.SolverParameter.stepvalue) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -SolverParameter::stepvalue() const { - // @@protoc_insertion_point(field_list:opencv_caffe.SolverParameter.stepvalue) - return stepvalue_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -SolverParameter::mutable_stepvalue() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.SolverParameter.stepvalue) - return &stepvalue_; -} - -// optional float clip_gradients = 35 [default = -1]; -bool SolverParameter::has_clip_gradients() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -void SolverParameter::set_has_clip_gradients() { - _has_bits_[0] |= 0x02000000u; -} -void SolverParameter::clear_has_clip_gradients() { - _has_bits_[0] &= ~0x02000000u; -} -void SolverParameter::clear_clip_gradients() { - clip_gradients_ = -1; - clear_has_clip_gradients(); -} -float SolverParameter::clip_gradients() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.clip_gradients) - return clip_gradients_; -} -void SolverParameter::set_clip_gradients(float value) { - set_has_clip_gradients(); - clip_gradients_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.clip_gradients) -} - -// optional int32 snapshot = 14 [default = 0]; -bool SolverParameter::has_snapshot() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -void SolverParameter::set_has_snapshot() { - _has_bits_[0] |= 0x04000000u; -} -void SolverParameter::clear_has_snapshot() { - _has_bits_[0] &= ~0x04000000u; -} -void SolverParameter::clear_snapshot() { - snapshot_ = 0; - clear_has_snapshot(); -} -::google::protobuf::int32 SolverParameter::snapshot() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.snapshot) - return snapshot_; -} -void SolverParameter::set_snapshot(::google::protobuf::int32 value) { - set_has_snapshot(); - snapshot_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.snapshot) -} - -// optional string snapshot_prefix = 15; -bool SolverParameter::has_snapshot_prefix() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -void SolverParameter::set_has_snapshot_prefix() { - _has_bits_[0] |= 0x08000000u; -} -void SolverParameter::clear_has_snapshot_prefix() { - _has_bits_[0] &= ~0x08000000u; -} -void SolverParameter::clear_snapshot_prefix() { - snapshot_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_snapshot_prefix(); -} -const ::std::string& SolverParameter::snapshot_prefix() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.snapshot_prefix) - return snapshot_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverParameter::set_snapshot_prefix(const ::std::string& value) { - set_has_snapshot_prefix(); - snapshot_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.snapshot_prefix) -} -void SolverParameter::set_snapshot_prefix(const char* value) { - set_has_snapshot_prefix(); - snapshot_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.snapshot_prefix) -} -void SolverParameter::set_snapshot_prefix(const char* value, size_t size) { - set_has_snapshot_prefix(); - snapshot_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverParameter.snapshot_prefix) -} -::std::string* SolverParameter::mutable_snapshot_prefix() { - set_has_snapshot_prefix(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.snapshot_prefix) - return snapshot_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SolverParameter::release_snapshot_prefix() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.snapshot_prefix) - clear_has_snapshot_prefix(); - return snapshot_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverParameter::set_allocated_snapshot_prefix(::std::string* snapshot_prefix) { - if (snapshot_prefix != NULL) { - set_has_snapshot_prefix(); - } else { - clear_has_snapshot_prefix(); - } - snapshot_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), snapshot_prefix); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.snapshot_prefix) -} - -// optional bool snapshot_diff = 16 [default = false]; -bool SolverParameter::has_snapshot_diff() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -void SolverParameter::set_has_snapshot_diff() { - _has_bits_[0] |= 0x10000000u; -} -void SolverParameter::clear_has_snapshot_diff() { - _has_bits_[0] &= ~0x10000000u; -} -void SolverParameter::clear_snapshot_diff() { - snapshot_diff_ = false; - clear_has_snapshot_diff(); -} -bool SolverParameter::snapshot_diff() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.snapshot_diff) - return snapshot_diff_; -} -void SolverParameter::set_snapshot_diff(bool value) { - set_has_snapshot_diff(); - snapshot_diff_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.snapshot_diff) -} - -// optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; -bool SolverParameter::has_snapshot_format() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -void SolverParameter::set_has_snapshot_format() { - _has_bits_[0] |= 0x20000000u; -} -void SolverParameter::clear_has_snapshot_format() { - _has_bits_[0] &= ~0x20000000u; -} -void SolverParameter::clear_snapshot_format() { - snapshot_format_ = 1; - clear_has_snapshot_format(); -} -::opencv_caffe::SolverParameter_SnapshotFormat SolverParameter::snapshot_format() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.snapshot_format) - return static_cast< ::opencv_caffe::SolverParameter_SnapshotFormat >(snapshot_format_); -} -void SolverParameter::set_snapshot_format(::opencv_caffe::SolverParameter_SnapshotFormat value) { - assert(::opencv_caffe::SolverParameter_SnapshotFormat_IsValid(value)); - set_has_snapshot_format(); - snapshot_format_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.snapshot_format) -} - -// optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; -bool SolverParameter::has_solver_mode() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -void SolverParameter::set_has_solver_mode() { - _has_bits_[0] |= 0x40000000u; -} -void SolverParameter::clear_has_solver_mode() { - _has_bits_[0] &= ~0x40000000u; -} -void SolverParameter::clear_solver_mode() { - solver_mode_ = 1; - clear_has_solver_mode(); -} -::opencv_caffe::SolverParameter_SolverMode SolverParameter::solver_mode() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.solver_mode) - return static_cast< ::opencv_caffe::SolverParameter_SolverMode >(solver_mode_); -} -void SolverParameter::set_solver_mode(::opencv_caffe::SolverParameter_SolverMode value) { - assert(::opencv_caffe::SolverParameter_SolverMode_IsValid(value)); - set_has_solver_mode(); - solver_mode_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.solver_mode) -} - -// optional int32 device_id = 18 [default = 0]; -bool SolverParameter::has_device_id() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -void SolverParameter::set_has_device_id() { - _has_bits_[0] |= 0x80000000u; -} -void SolverParameter::clear_has_device_id() { - _has_bits_[0] &= ~0x80000000u; -} -void SolverParameter::clear_device_id() { - device_id_ = 0; - clear_has_device_id(); -} -::google::protobuf::int32 SolverParameter::device_id() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.device_id) - return device_id_; -} -void SolverParameter::set_device_id(::google::protobuf::int32 value) { - set_has_device_id(); - device_id_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.device_id) -} - -// optional int64 random_seed = 20 [default = -1]; -bool SolverParameter::has_random_seed() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -void SolverParameter::set_has_random_seed() { - _has_bits_[1] |= 0x00000001u; -} -void SolverParameter::clear_has_random_seed() { - _has_bits_[1] &= ~0x00000001u; -} -void SolverParameter::clear_random_seed() { - random_seed_ = GOOGLE_LONGLONG(-1); - clear_has_random_seed(); -} -::google::protobuf::int64 SolverParameter::random_seed() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.random_seed) - return random_seed_; -} -void SolverParameter::set_random_seed(::google::protobuf::int64 value) { - set_has_random_seed(); - random_seed_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.random_seed) -} - -// optional string type = 40 [default = "SGD"]; -bool SolverParameter::has_type() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -void SolverParameter::set_has_type() { - _has_bits_[1] |= 0x00000002u; -} -void SolverParameter::clear_has_type() { - _has_bits_[1] &= ~0x00000002u; -} -void SolverParameter::clear_type() { - type_.ClearToDefaultNoArena(_default_type_); - clear_has_type(); -} -const ::std::string& SolverParameter::type() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.type) - return type_.GetNoArena(_default_type_); -} -void SolverParameter::set_type(const ::std::string& value) { - set_has_type(); - type_.SetNoArena(_default_type_, value); - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.type) -} -void SolverParameter::set_type(const char* value) { - set_has_type(); - type_.SetNoArena(_default_type_, ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.type) -} -void SolverParameter::set_type(const char* value, size_t size) { - set_has_type(); - type_.SetNoArena(_default_type_, - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverParameter.type) -} -::std::string* SolverParameter::mutable_type() { - set_has_type(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.type) - return type_.MutableNoArena(_default_type_); -} -::std::string* SolverParameter::release_type() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.type) - clear_has_type(); - return type_.ReleaseNoArena(_default_type_); -} -void SolverParameter::set_allocated_type(::std::string* type) { - if (type != NULL) { - set_has_type(); - } else { - clear_has_type(); - } - type_.SetAllocatedNoArena(_default_type_, type); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.type) -} - -// optional float delta = 31 [default = 1e-08]; -bool SolverParameter::has_delta() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -void SolverParameter::set_has_delta() { - _has_bits_[1] |= 0x00000004u; -} -void SolverParameter::clear_has_delta() { - _has_bits_[1] &= ~0x00000004u; -} -void SolverParameter::clear_delta() { - delta_ = 1e-08f; - clear_has_delta(); -} -float SolverParameter::delta() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.delta) - return delta_; -} -void SolverParameter::set_delta(float value) { - set_has_delta(); - delta_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.delta) -} - -// optional float momentum2 = 39 [default = 0.999]; -bool SolverParameter::has_momentum2() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -void SolverParameter::set_has_momentum2() { - _has_bits_[1] |= 0x00000008u; -} -void SolverParameter::clear_has_momentum2() { - _has_bits_[1] &= ~0x00000008u; -} -void SolverParameter::clear_momentum2() { - momentum2_ = 0.999f; - clear_has_momentum2(); -} -float SolverParameter::momentum2() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.momentum2) - return momentum2_; -} -void SolverParameter::set_momentum2(float value) { - set_has_momentum2(); - momentum2_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.momentum2) -} - -// optional float rms_decay = 38 [default = 0.99]; -bool SolverParameter::has_rms_decay() const { - return (_has_bits_[1] & 0x00000010u) != 0; -} -void SolverParameter::set_has_rms_decay() { - _has_bits_[1] |= 0x00000010u; -} -void SolverParameter::clear_has_rms_decay() { - _has_bits_[1] &= ~0x00000010u; -} -void SolverParameter::clear_rms_decay() { - rms_decay_ = 0.99f; - clear_has_rms_decay(); -} -float SolverParameter::rms_decay() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.rms_decay) - return rms_decay_; -} -void SolverParameter::set_rms_decay(float value) { - set_has_rms_decay(); - rms_decay_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.rms_decay) -} - -// optional bool debug_info = 23 [default = false]; -bool SolverParameter::has_debug_info() const { - return (_has_bits_[1] & 0x00000020u) != 0; -} -void SolverParameter::set_has_debug_info() { - _has_bits_[1] |= 0x00000020u; -} -void SolverParameter::clear_has_debug_info() { - _has_bits_[1] &= ~0x00000020u; -} -void SolverParameter::clear_debug_info() { - debug_info_ = false; - clear_has_debug_info(); -} -bool SolverParameter::debug_info() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.debug_info) - return debug_info_; -} -void SolverParameter::set_debug_info(bool value) { - set_has_debug_info(); - debug_info_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.debug_info) -} - -// optional bool snapshot_after_train = 28 [default = true]; -bool SolverParameter::has_snapshot_after_train() const { - return (_has_bits_[1] & 0x00000040u) != 0; -} -void SolverParameter::set_has_snapshot_after_train() { - _has_bits_[1] |= 0x00000040u; -} -void SolverParameter::clear_has_snapshot_after_train() { - _has_bits_[1] &= ~0x00000040u; -} -void SolverParameter::clear_snapshot_after_train() { - snapshot_after_train_ = true; - clear_has_snapshot_after_train(); -} -bool SolverParameter::snapshot_after_train() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.snapshot_after_train) - return snapshot_after_train_; -} -void SolverParameter::set_snapshot_after_train(bool value) { - set_has_snapshot_after_train(); - snapshot_after_train_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.snapshot_after_train) -} - -// optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; -bool SolverParameter::has_solver_type() const { - return (_has_bits_[1] & 0x00000080u) != 0; -} -void SolverParameter::set_has_solver_type() { - _has_bits_[1] |= 0x00000080u; -} -void SolverParameter::clear_has_solver_type() { - _has_bits_[1] &= ~0x00000080u; -} -void SolverParameter::clear_solver_type() { - solver_type_ = 0; - clear_has_solver_type(); -} -::opencv_caffe::SolverParameter_SolverType SolverParameter::solver_type() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.solver_type) - return static_cast< ::opencv_caffe::SolverParameter_SolverType >(solver_type_); -} -void SolverParameter::set_solver_type(::opencv_caffe::SolverParameter_SolverType value) { - assert(::opencv_caffe::SolverParameter_SolverType_IsValid(value)); - set_has_solver_type(); - solver_type_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.solver_type) -} - -inline const SolverParameter* SolverParameter::internal_default_instance() { - return &SolverParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SolverState::kIterFieldNumber; -const int SolverState::kLearnedNetFieldNumber; -const int SolverState::kHistoryFieldNumber; -const int SolverState::kCurrentStepFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SolverState::SolverState() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.SolverState) -} - -void SolverState::InitAsDefaultInstance() { -} - -SolverState::SolverState(const SolverState& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.SolverState) -} - -void SolverState::SharedCtor() { - _cached_size_ = 0; - learned_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&iter_, 0, reinterpret_cast(¤t_step_) - - reinterpret_cast(&iter_) + sizeof(current_step_)); -} - -SolverState::~SolverState() { - // @@protoc_insertion_point(destructor:opencv_caffe.SolverState) - SharedDtor(); -} - -void SolverState::SharedDtor() { - learned_net_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void SolverState::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SolverState::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SolverState_descriptor_; -} - -const SolverState& SolverState::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed SolverState_default_instance_; - -SolverState* SolverState::New(::google::protobuf::Arena* arena) const { - SolverState* n = new SolverState; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SolverState::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.SolverState) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(SolverState, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 11u) { - ZR_(iter_, current_step_); - if (has_learned_net()) { - learned_net_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - } - -#undef ZR_HELPER_ -#undef ZR_ - - history_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool SolverState::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.SolverState) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 iter = 1; - case 1: { - if (tag == 8) { - set_has_iter(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &iter_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_learned_net; - break; - } - - // optional string learned_net = 2; - case 2: { - if (tag == 18) { - parse_learned_net: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_learned_net())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->learned_net().data(), this->learned_net().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SolverState.learned_net"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_history; - break; - } - - // repeated .opencv_caffe.BlobProto history = 3; - case 3: { - if (tag == 26) { - parse_history: - DO_(input->IncrementRecursionDepth()); - parse_loop_history: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_history())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_loop_history; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(32)) goto parse_current_step; - break; - } - - // optional int32 current_step = 4 [default = 0]; - case 4: { - if (tag == 32) { - parse_current_step: - set_has_current_step(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, ¤t_step_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.SolverState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.SolverState) - return false; -#undef DO_ -} - -void SolverState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.SolverState) - // optional int32 iter = 1; - if (has_iter()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->iter(), output); - } - - // optional string learned_net = 2; - if (has_learned_net()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->learned_net().data(), this->learned_net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverState.learned_net"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->learned_net(), output); - } - - // repeated .opencv_caffe.BlobProto history = 3; - for (unsigned int i = 0, n = this->history_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->history(i), output); - } - - // optional int32 current_step = 4 [default = 0]; - if (has_current_step()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->current_step(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.SolverState) -} - -::google::protobuf::uint8* SolverState::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SolverState) - // optional int32 iter = 1; - if (has_iter()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->iter(), target); - } - - // optional string learned_net = 2; - if (has_learned_net()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->learned_net().data(), this->learned_net().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SolverState.learned_net"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->learned_net(), target); - } - - // repeated .opencv_caffe.BlobProto history = 3; - for (unsigned int i = 0, n = this->history_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, this->history(i), false, target); - } - - // optional int32 current_step = 4 [default = 0]; - if (has_current_step()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->current_step(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SolverState) - return target; -} - -size_t SolverState::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SolverState) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 11u) { - // optional int32 iter = 1; - if (has_iter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->iter()); - } - - // optional string learned_net = 2; - if (has_learned_net()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->learned_net()); - } - - // optional int32 current_step = 4 [default = 0]; - if (has_current_step()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->current_step()); - } - - } - // repeated .opencv_caffe.BlobProto history = 3; - { - unsigned int count = this->history_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->history(i)); - } - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SolverState::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SolverState) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const SolverState* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SolverState) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SolverState) - UnsafeMergeFrom(*source); - } -} - -void SolverState::MergeFrom(const SolverState& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SolverState) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void SolverState::UnsafeMergeFrom(const SolverState& from) { - GOOGLE_DCHECK(&from != this); - history_.MergeFrom(from.history_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_iter()) { - set_iter(from.iter()); - } - if (from.has_learned_net()) { - set_has_learned_net(); - learned_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.learned_net_); - } - if (from.has_current_step()) { - set_current_step(from.current_step()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void SolverState::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SolverState) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SolverState::CopyFrom(const SolverState& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SolverState) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool SolverState::IsInitialized() const { - - return true; -} - -void SolverState::Swap(SolverState* other) { - if (other == this) return; - InternalSwap(other); -} -void SolverState::InternalSwap(SolverState* other) { - std::swap(iter_, other->iter_); - learned_net_.Swap(&other->learned_net_); - history_.UnsafeArenaSwap(&other->history_); - std::swap(current_step_, other->current_step_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SolverState::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SolverState_descriptor_; - metadata.reflection = SolverState_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SolverState - -// optional int32 iter = 1; -bool SolverState::has_iter() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void SolverState::set_has_iter() { - _has_bits_[0] |= 0x00000001u; -} -void SolverState::clear_has_iter() { - _has_bits_[0] &= ~0x00000001u; -} -void SolverState::clear_iter() { - iter_ = 0; - clear_has_iter(); -} -::google::protobuf::int32 SolverState::iter() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverState.iter) - return iter_; -} -void SolverState::set_iter(::google::protobuf::int32 value) { - set_has_iter(); - iter_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverState.iter) -} - -// optional string learned_net = 2; -bool SolverState::has_learned_net() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void SolverState::set_has_learned_net() { - _has_bits_[0] |= 0x00000002u; -} -void SolverState::clear_has_learned_net() { - _has_bits_[0] &= ~0x00000002u; -} -void SolverState::clear_learned_net() { - learned_net_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_learned_net(); -} -const ::std::string& SolverState::learned_net() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverState.learned_net) - return learned_net_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverState::set_learned_net(const ::std::string& value) { - set_has_learned_net(); - learned_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SolverState.learned_net) -} -void SolverState::set_learned_net(const char* value) { - set_has_learned_net(); - learned_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverState.learned_net) -} -void SolverState::set_learned_net(const char* value, size_t size) { - set_has_learned_net(); - learned_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverState.learned_net) -} -::std::string* SolverState::mutable_learned_net() { - set_has_learned_net(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverState.learned_net) - return learned_net_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SolverState::release_learned_net() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverState.learned_net) - clear_has_learned_net(); - return learned_net_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SolverState::set_allocated_learned_net(::std::string* learned_net) { - if (learned_net != NULL) { - set_has_learned_net(); - } else { - clear_has_learned_net(); - } - learned_net_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), learned_net); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverState.learned_net) -} - -// repeated .opencv_caffe.BlobProto history = 3; -int SolverState::history_size() const { - return history_.size(); -} -void SolverState::clear_history() { - history_.Clear(); -} -const ::opencv_caffe::BlobProto& SolverState::history(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverState.history) - return history_.Get(index); -} -::opencv_caffe::BlobProto* SolverState::mutable_history(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverState.history) - return history_.Mutable(index); -} -::opencv_caffe::BlobProto* SolverState::add_history() { - // @@protoc_insertion_point(field_add:opencv_caffe.SolverState.history) - return history_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >* -SolverState::mutable_history() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.SolverState.history) - return &history_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >& -SolverState::history() const { - // @@protoc_insertion_point(field_list:opencv_caffe.SolverState.history) - return history_; -} - -// optional int32 current_step = 4 [default = 0]; -bool SolverState::has_current_step() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void SolverState::set_has_current_step() { - _has_bits_[0] |= 0x00000008u; -} -void SolverState::clear_has_current_step() { - _has_bits_[0] &= ~0x00000008u; -} -void SolverState::clear_current_step() { - current_step_ = 0; - clear_has_current_step(); -} -::google::protobuf::int32 SolverState::current_step() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SolverState.current_step) - return current_step_; -} -void SolverState::set_current_step(::google::protobuf::int32 value) { - set_has_current_step(); - current_step_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SolverState.current_step) -} - -inline const SolverState* SolverState::internal_default_instance() { - return &SolverState_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NetState::kPhaseFieldNumber; -const int NetState::kLevelFieldNumber; -const int NetState::kStageFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NetState::NetState() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.NetState) -} - -void NetState::InitAsDefaultInstance() { -} - -NetState::NetState(const NetState& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.NetState) -} - -void NetState::SharedCtor() { - _cached_size_ = 0; - level_ = 0; - phase_ = 1; -} - -NetState::~NetState() { - // @@protoc_insertion_point(destructor:opencv_caffe.NetState) - SharedDtor(); -} - -void NetState::SharedDtor() { -} - -void NetState::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* NetState::descriptor() { - protobuf_AssignDescriptorsOnce(); - return NetState_descriptor_; -} - -const NetState& NetState::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed NetState_default_instance_; - -NetState* NetState::New(::google::protobuf::Arena* arena) const { - NetState* n = new NetState; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void NetState::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.NetState) - if (_has_bits_[0 / 32] & 3u) { - phase_ = 1; - level_ = 0; - } - stage_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool NetState::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.NetState) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.Phase phase = 1 [default = TEST]; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::Phase_IsValid(value)) { - set_phase(static_cast< ::opencv_caffe::Phase >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_level; - break; - } - - // optional int32 level = 2 [default = 0]; - case 2: { - if (tag == 16) { - parse_level: - set_has_level(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &level_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_stage; - break; - } - - // repeated string stage = 3; - case 3: { - if (tag == 26) { - parse_stage: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_stage())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->stage(this->stage_size() - 1).data(), - this->stage(this->stage_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.NetState.stage"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_stage; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.NetState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.NetState) - return false; -#undef DO_ -} - -void NetState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.NetState) - // optional .opencv_caffe.Phase phase = 1 [default = TEST]; - if (has_phase()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->phase(), output); - } - - // optional int32 level = 2 [default = 0]; - if (has_level()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->level(), output); - } - - // repeated string stage = 3; - for (int i = 0; i < this->stage_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->stage(i).data(), this->stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetState.stage"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->stage(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.NetState) -} - -::google::protobuf::uint8* NetState::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NetState) - // optional .opencv_caffe.Phase phase = 1 [default = TEST]; - if (has_phase()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->phase(), target); - } - - // optional int32 level = 2 [default = 0]; - if (has_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->level(), target); - } - - // repeated string stage = 3; - for (int i = 0; i < this->stage_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->stage(i).data(), this->stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetState.stage"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->stage(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NetState) - return target; -} - -size_t NetState::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NetState) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 3u) { - // optional .opencv_caffe.Phase phase = 1 [default = TEST]; - if (has_phase()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - // optional int32 level = 2 [default = 0]; - if (has_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->level()); - } - - } - // repeated string stage = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->stage_size()); - for (int i = 0; i < this->stage_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->stage(i)); - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NetState::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NetState) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const NetState* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NetState) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NetState) - UnsafeMergeFrom(*source); - } -} - -void NetState::MergeFrom(const NetState& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NetState) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void NetState::UnsafeMergeFrom(const NetState& from) { - GOOGLE_DCHECK(&from != this); - stage_.UnsafeMergeFrom(from.stage_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_phase()) { - set_phase(from.phase()); - } - if (from.has_level()) { - set_level(from.level()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void NetState::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NetState) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NetState::CopyFrom(const NetState& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NetState) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool NetState::IsInitialized() const { - - return true; -} - -void NetState::Swap(NetState* other) { - if (other == this) return; - InternalSwap(other); -} -void NetState::InternalSwap(NetState* other) { - std::swap(phase_, other->phase_); - std::swap(level_, other->level_); - stage_.UnsafeArenaSwap(&other->stage_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata NetState::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = NetState_descriptor_; - metadata.reflection = NetState_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// NetState - -// optional .opencv_caffe.Phase phase = 1 [default = TEST]; -bool NetState::has_phase() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void NetState::set_has_phase() { - _has_bits_[0] |= 0x00000001u; -} -void NetState::clear_has_phase() { - _has_bits_[0] &= ~0x00000001u; -} -void NetState::clear_phase() { - phase_ = 1; - clear_has_phase(); -} -::opencv_caffe::Phase NetState::phase() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetState.phase) - return static_cast< ::opencv_caffe::Phase >(phase_); -} -void NetState::set_phase(::opencv_caffe::Phase value) { - assert(::opencv_caffe::Phase_IsValid(value)); - set_has_phase(); - phase_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NetState.phase) -} - -// optional int32 level = 2 [default = 0]; -bool NetState::has_level() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void NetState::set_has_level() { - _has_bits_[0] |= 0x00000002u; -} -void NetState::clear_has_level() { - _has_bits_[0] &= ~0x00000002u; -} -void NetState::clear_level() { - level_ = 0; - clear_has_level(); -} -::google::protobuf::int32 NetState::level() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetState.level) - return level_; -} -void NetState::set_level(::google::protobuf::int32 value) { - set_has_level(); - level_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NetState.level) -} - -// repeated string stage = 3; -int NetState::stage_size() const { - return stage_.size(); -} -void NetState::clear_stage() { - stage_.Clear(); -} -const ::std::string& NetState::stage(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetState.stage) - return stage_.Get(index); -} -::std::string* NetState::mutable_stage(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.NetState.stage) - return stage_.Mutable(index); -} -void NetState::set_stage(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.NetState.stage) - stage_.Mutable(index)->assign(value); -} -void NetState::set_stage(int index, const char* value) { - stage_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.NetState.stage) -} -void NetState::set_stage(int index, const char* value, size_t size) { - stage_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.NetState.stage) -} -::std::string* NetState::add_stage() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.NetState.stage) - return stage_.Add(); -} -void NetState::add_stage(const ::std::string& value) { - stage_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.NetState.stage) -} -void NetState::add_stage(const char* value) { - stage_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.NetState.stage) -} -void NetState::add_stage(const char* value, size_t size) { - stage_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.NetState.stage) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -NetState::stage() const { - // @@protoc_insertion_point(field_list:opencv_caffe.NetState.stage) - return stage_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -NetState::mutable_stage() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.NetState.stage) - return &stage_; -} - -inline const NetState* NetState::internal_default_instance() { - return &NetState_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NetStateRule::kPhaseFieldNumber; -const int NetStateRule::kMinLevelFieldNumber; -const int NetStateRule::kMaxLevelFieldNumber; -const int NetStateRule::kStageFieldNumber; -const int NetStateRule::kNotStageFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NetStateRule::NetStateRule() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.NetStateRule) -} - -void NetStateRule::InitAsDefaultInstance() { -} - -NetStateRule::NetStateRule(const NetStateRule& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.NetStateRule) -} - -void NetStateRule::SharedCtor() { - _cached_size_ = 0; - ::memset(&phase_, 0, reinterpret_cast(&max_level_) - - reinterpret_cast(&phase_) + sizeof(max_level_)); -} - -NetStateRule::~NetStateRule() { - // @@protoc_insertion_point(destructor:opencv_caffe.NetStateRule) - SharedDtor(); -} - -void NetStateRule::SharedDtor() { -} - -void NetStateRule::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* NetStateRule::descriptor() { - protobuf_AssignDescriptorsOnce(); - return NetStateRule_descriptor_; -} - -const NetStateRule& NetStateRule::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed NetStateRule_default_instance_; - -NetStateRule* NetStateRule::New(::google::protobuf::Arena* arena) const { - NetStateRule* n = new NetStateRule; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void NetStateRule::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.NetStateRule) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(NetStateRule, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(phase_, max_level_); - -#undef ZR_HELPER_ -#undef ZR_ - - stage_.Clear(); - not_stage_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool NetStateRule::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.NetStateRule) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.Phase phase = 1; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::Phase_IsValid(value)) { - set_phase(static_cast< ::opencv_caffe::Phase >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_min_level; - break; - } - - // optional int32 min_level = 2; - case 2: { - if (tag == 16) { - parse_min_level: - set_has_min_level(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &min_level_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_max_level; - break; - } - - // optional int32 max_level = 3; - case 3: { - if (tag == 24) { - parse_max_level: - set_has_max_level(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_level_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_stage; - break; - } - - // repeated string stage = 4; - case 4: { - if (tag == 34) { - parse_stage: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_stage())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->stage(this->stage_size() - 1).data(), - this->stage(this->stage_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.NetStateRule.stage"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_stage; - if (input->ExpectTag(42)) goto parse_not_stage; - break; - } - - // repeated string not_stage = 5; - case 5: { - if (tag == 42) { - parse_not_stage: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_not_stage())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->not_stage(this->not_stage_size() - 1).data(), - this->not_stage(this->not_stage_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.NetStateRule.not_stage"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_not_stage; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.NetStateRule) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.NetStateRule) - return false; -#undef DO_ -} - -void NetStateRule::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.NetStateRule) - // optional .opencv_caffe.Phase phase = 1; - if (has_phase()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->phase(), output); - } - - // optional int32 min_level = 2; - if (has_min_level()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_level(), output); - } - - // optional int32 max_level = 3; - if (has_max_level()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->max_level(), output); - } - - // repeated string stage = 4; - for (int i = 0; i < this->stage_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->stage(i).data(), this->stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetStateRule.stage"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->stage(i), output); - } - - // repeated string not_stage = 5; - for (int i = 0; i < this->not_stage_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->not_stage(i).data(), this->not_stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetStateRule.not_stage"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 5, this->not_stage(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.NetStateRule) -} - -::google::protobuf::uint8* NetStateRule::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NetStateRule) - // optional .opencv_caffe.Phase phase = 1; - if (has_phase()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->phase(), target); - } - - // optional int32 min_level = 2; - if (has_min_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_level(), target); - } - - // optional int32 max_level = 3; - if (has_max_level()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->max_level(), target); - } - - // repeated string stage = 4; - for (int i = 0; i < this->stage_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->stage(i).data(), this->stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetStateRule.stage"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(4, this->stage(i), target); - } - - // repeated string not_stage = 5; - for (int i = 0; i < this->not_stage_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->not_stage(i).data(), this->not_stage(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.NetStateRule.not_stage"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(5, this->not_stage(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NetStateRule) - return target; -} - -size_t NetStateRule::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NetStateRule) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional .opencv_caffe.Phase phase = 1; - if (has_phase()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - // optional int32 min_level = 2; - if (has_min_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->min_level()); - } - - // optional int32 max_level = 3; - if (has_max_level()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_level()); - } - - } - // repeated string stage = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->stage_size()); - for (int i = 0; i < this->stage_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->stage(i)); - } - - // repeated string not_stage = 5; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->not_stage_size()); - for (int i = 0; i < this->not_stage_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->not_stage(i)); - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NetStateRule::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NetStateRule) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const NetStateRule* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NetStateRule) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NetStateRule) - UnsafeMergeFrom(*source); - } -} - -void NetStateRule::MergeFrom(const NetStateRule& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NetStateRule) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void NetStateRule::UnsafeMergeFrom(const NetStateRule& from) { - GOOGLE_DCHECK(&from != this); - stage_.UnsafeMergeFrom(from.stage_); - not_stage_.UnsafeMergeFrom(from.not_stage_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_phase()) { - set_phase(from.phase()); - } - if (from.has_min_level()) { - set_min_level(from.min_level()); - } - if (from.has_max_level()) { - set_max_level(from.max_level()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void NetStateRule::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NetStateRule) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NetStateRule::CopyFrom(const NetStateRule& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NetStateRule) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool NetStateRule::IsInitialized() const { - - return true; -} - -void NetStateRule::Swap(NetStateRule* other) { - if (other == this) return; - InternalSwap(other); -} -void NetStateRule::InternalSwap(NetStateRule* other) { - std::swap(phase_, other->phase_); - std::swap(min_level_, other->min_level_); - std::swap(max_level_, other->max_level_); - stage_.UnsafeArenaSwap(&other->stage_); - not_stage_.UnsafeArenaSwap(&other->not_stage_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata NetStateRule::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = NetStateRule_descriptor_; - metadata.reflection = NetStateRule_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// NetStateRule - -// optional .opencv_caffe.Phase phase = 1; -bool NetStateRule::has_phase() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void NetStateRule::set_has_phase() { - _has_bits_[0] |= 0x00000001u; -} -void NetStateRule::clear_has_phase() { - _has_bits_[0] &= ~0x00000001u; -} -void NetStateRule::clear_phase() { - phase_ = 0; - clear_has_phase(); -} -::opencv_caffe::Phase NetStateRule::phase() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetStateRule.phase) - return static_cast< ::opencv_caffe::Phase >(phase_); -} -void NetStateRule::set_phase(::opencv_caffe::Phase value) { - assert(::opencv_caffe::Phase_IsValid(value)); - set_has_phase(); - phase_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NetStateRule.phase) -} - -// optional int32 min_level = 2; -bool NetStateRule::has_min_level() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void NetStateRule::set_has_min_level() { - _has_bits_[0] |= 0x00000002u; -} -void NetStateRule::clear_has_min_level() { - _has_bits_[0] &= ~0x00000002u; -} -void NetStateRule::clear_min_level() { - min_level_ = 0; - clear_has_min_level(); -} -::google::protobuf::int32 NetStateRule::min_level() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetStateRule.min_level) - return min_level_; -} -void NetStateRule::set_min_level(::google::protobuf::int32 value) { - set_has_min_level(); - min_level_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NetStateRule.min_level) -} - -// optional int32 max_level = 3; -bool NetStateRule::has_max_level() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void NetStateRule::set_has_max_level() { - _has_bits_[0] |= 0x00000004u; -} -void NetStateRule::clear_has_max_level() { - _has_bits_[0] &= ~0x00000004u; -} -void NetStateRule::clear_max_level() { - max_level_ = 0; - clear_has_max_level(); -} -::google::protobuf::int32 NetStateRule::max_level() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetStateRule.max_level) - return max_level_; -} -void NetStateRule::set_max_level(::google::protobuf::int32 value) { - set_has_max_level(); - max_level_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NetStateRule.max_level) -} - -// repeated string stage = 4; -int NetStateRule::stage_size() const { - return stage_.size(); -} -void NetStateRule::clear_stage() { - stage_.Clear(); -} -const ::std::string& NetStateRule::stage(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetStateRule.stage) - return stage_.Get(index); -} -::std::string* NetStateRule::mutable_stage(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.NetStateRule.stage) - return stage_.Mutable(index); -} -void NetStateRule::set_stage(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.NetStateRule.stage) - stage_.Mutable(index)->assign(value); -} -void NetStateRule::set_stage(int index, const char* value) { - stage_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.NetStateRule.stage) -} -void NetStateRule::set_stage(int index, const char* value, size_t size) { - stage_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.NetStateRule.stage) -} -::std::string* NetStateRule::add_stage() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.NetStateRule.stage) - return stage_.Add(); -} -void NetStateRule::add_stage(const ::std::string& value) { - stage_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.NetStateRule.stage) -} -void NetStateRule::add_stage(const char* value) { - stage_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.NetStateRule.stage) -} -void NetStateRule::add_stage(const char* value, size_t size) { - stage_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.NetStateRule.stage) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -NetStateRule::stage() const { - // @@protoc_insertion_point(field_list:opencv_caffe.NetStateRule.stage) - return stage_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -NetStateRule::mutable_stage() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.NetStateRule.stage) - return &stage_; -} - -// repeated string not_stage = 5; -int NetStateRule::not_stage_size() const { - return not_stage_.size(); -} -void NetStateRule::clear_not_stage() { - not_stage_.Clear(); -} -const ::std::string& NetStateRule::not_stage(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.NetStateRule.not_stage) - return not_stage_.Get(index); -} -::std::string* NetStateRule::mutable_not_stage(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.NetStateRule.not_stage) - return not_stage_.Mutable(index); -} -void NetStateRule::set_not_stage(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.NetStateRule.not_stage) - not_stage_.Mutable(index)->assign(value); -} -void NetStateRule::set_not_stage(int index, const char* value) { - not_stage_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.NetStateRule.not_stage) -} -void NetStateRule::set_not_stage(int index, const char* value, size_t size) { - not_stage_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.NetStateRule.not_stage) -} -::std::string* NetStateRule::add_not_stage() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.NetStateRule.not_stage) - return not_stage_.Add(); -} -void NetStateRule::add_not_stage(const ::std::string& value) { - not_stage_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.NetStateRule.not_stage) -} -void NetStateRule::add_not_stage(const char* value) { - not_stage_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.NetStateRule.not_stage) -} -void NetStateRule::add_not_stage(const char* value, size_t size) { - not_stage_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.NetStateRule.not_stage) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -NetStateRule::not_stage() const { - // @@protoc_insertion_point(field_list:opencv_caffe.NetStateRule.not_stage) - return not_stage_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -NetStateRule::mutable_not_stage() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.NetStateRule.not_stage) - return ¬_stage_; -} - -inline const NetStateRule* NetStateRule::internal_default_instance() { - return &NetStateRule_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* ParamSpec_DimCheckMode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ParamSpec_DimCheckMode_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[5]; } bool ParamSpec_DimCheckMode_IsValid(int value) { switch (value) { @@ -15021,7338 +4137,9 @@ const ParamSpec_DimCheckMode ParamSpec::DimCheckMode_MIN; const ParamSpec_DimCheckMode ParamSpec::DimCheckMode_MAX; const int ParamSpec::DimCheckMode_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ParamSpec::kNameFieldNumber; -const int ParamSpec::kShareModeFieldNumber; -const int ParamSpec::kLrMultFieldNumber; -const int ParamSpec::kDecayMultFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ParamSpec::ParamSpec() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ParamSpec) -} - -void ParamSpec::InitAsDefaultInstance() { -} - -ParamSpec::ParamSpec(const ParamSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ParamSpec) -} - -void ParamSpec::SharedCtor() { - _cached_size_ = 0; - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - share_mode_ = 0; - lr_mult_ = 1; - decay_mult_ = 1; -} - -ParamSpec::~ParamSpec() { - // @@protoc_insertion_point(destructor:opencv_caffe.ParamSpec) - SharedDtor(); -} - -void ParamSpec::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ParamSpec::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ParamSpec::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ParamSpec_descriptor_; -} - -const ParamSpec& ParamSpec::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ParamSpec_default_instance_; - -ParamSpec* ParamSpec::New(::google::protobuf::Arena* arena) const { - ParamSpec* n = new ParamSpec; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ParamSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ParamSpec) - if (_has_bits_[0 / 32] & 15u) { - if (has_name()) { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - share_mode_ = 0; - lr_mult_ = 1; - decay_mult_ = 1; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ParamSpec::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ParamSpec) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.ParamSpec.name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_share_mode; - break; - } - - // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2; - case 2: { - if (tag == 16) { - parse_share_mode: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::ParamSpec_DimCheckMode_IsValid(value)) { - set_share_mode(static_cast< ::opencv_caffe::ParamSpec_DimCheckMode >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_lr_mult; - break; - } - - // optional float lr_mult = 3 [default = 1]; - case 3: { - if (tag == 29) { - parse_lr_mult: - set_has_lr_mult(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &lr_mult_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(37)) goto parse_decay_mult; - break; - } - - // optional float decay_mult = 4 [default = 1]; - case 4: { - if (tag == 37) { - parse_decay_mult: - set_has_decay_mult(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &decay_mult_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ParamSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ParamSpec) - return false; -#undef DO_ -} - -void ParamSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ParamSpec) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.ParamSpec.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2; - if (has_share_mode()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->share_mode(), output); - } - - // optional float lr_mult = 3 [default = 1]; - if (has_lr_mult()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->lr_mult(), output); - } - - // optional float decay_mult = 4 [default = 1]; - if (has_decay_mult()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->decay_mult(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ParamSpec) -} - -::google::protobuf::uint8* ParamSpec::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ParamSpec) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.ParamSpec.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2; - if (has_share_mode()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->share_mode(), target); - } - - // optional float lr_mult = 3 [default = 1]; - if (has_lr_mult()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->lr_mult(), target); - } - - // optional float decay_mult = 4 [default = 1]; - if (has_decay_mult()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->decay_mult(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ParamSpec) - return target; -} - -size_t ParamSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ParamSpec) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 15u) { - // optional string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2; - if (has_share_mode()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->share_mode()); - } - - // optional float lr_mult = 3 [default = 1]; - if (has_lr_mult()) { - total_size += 1 + 4; - } - - // optional float decay_mult = 4 [default = 1]; - if (has_decay_mult()) { - total_size += 1 + 4; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ParamSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ParamSpec) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ParamSpec* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ParamSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ParamSpec) - UnsafeMergeFrom(*source); - } -} - -void ParamSpec::MergeFrom(const ParamSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ParamSpec) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ParamSpec::UnsafeMergeFrom(const ParamSpec& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_has_name(); - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_share_mode()) { - set_share_mode(from.share_mode()); - } - if (from.has_lr_mult()) { - set_lr_mult(from.lr_mult()); - } - if (from.has_decay_mult()) { - set_decay_mult(from.decay_mult()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ParamSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ParamSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParamSpec::CopyFrom(const ParamSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ParamSpec) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ParamSpec::IsInitialized() const { - - return true; -} - -void ParamSpec::Swap(ParamSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void ParamSpec::InternalSwap(ParamSpec* other) { - name_.Swap(&other->name_); - std::swap(share_mode_, other->share_mode_); - std::swap(lr_mult_, other->lr_mult_); - std::swap(decay_mult_, other->decay_mult_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ParamSpec::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ParamSpec_descriptor_; - metadata.reflection = ParamSpec_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ParamSpec - -// optional string name = 1; -bool ParamSpec::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ParamSpec::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -void ParamSpec::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -void ParamSpec::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_name(); -} -const ::std::string& ParamSpec::name() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ParamSpec.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void ParamSpec::set_name(const ::std::string& value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.ParamSpec.name) -} -void ParamSpec::set_name(const char* value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.ParamSpec.name) -} -void ParamSpec::set_name(const char* value, size_t size) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.ParamSpec.name) -} -::std::string* ParamSpec::mutable_name() { - set_has_name(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.ParamSpec.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* ParamSpec::release_name() { - // @@protoc_insertion_point(field_release:opencv_caffe.ParamSpec.name) - clear_has_name(); - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void ParamSpec::set_allocated_name(::std::string* name) { - if (name != NULL) { - set_has_name(); - } else { - clear_has_name(); - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ParamSpec.name) -} - -// optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2; -bool ParamSpec::has_share_mode() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ParamSpec::set_has_share_mode() { - _has_bits_[0] |= 0x00000002u; -} -void ParamSpec::clear_has_share_mode() { - _has_bits_[0] &= ~0x00000002u; -} -void ParamSpec::clear_share_mode() { - share_mode_ = 0; - clear_has_share_mode(); -} -::opencv_caffe::ParamSpec_DimCheckMode ParamSpec::share_mode() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ParamSpec.share_mode) - return static_cast< ::opencv_caffe::ParamSpec_DimCheckMode >(share_mode_); -} -void ParamSpec::set_share_mode(::opencv_caffe::ParamSpec_DimCheckMode value) { - assert(::opencv_caffe::ParamSpec_DimCheckMode_IsValid(value)); - set_has_share_mode(); - share_mode_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ParamSpec.share_mode) -} - -// optional float lr_mult = 3 [default = 1]; -bool ParamSpec::has_lr_mult() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void ParamSpec::set_has_lr_mult() { - _has_bits_[0] |= 0x00000004u; -} -void ParamSpec::clear_has_lr_mult() { - _has_bits_[0] &= ~0x00000004u; -} -void ParamSpec::clear_lr_mult() { - lr_mult_ = 1; - clear_has_lr_mult(); -} -float ParamSpec::lr_mult() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ParamSpec.lr_mult) - return lr_mult_; -} -void ParamSpec::set_lr_mult(float value) { - set_has_lr_mult(); - lr_mult_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ParamSpec.lr_mult) -} - -// optional float decay_mult = 4 [default = 1]; -bool ParamSpec::has_decay_mult() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void ParamSpec::set_has_decay_mult() { - _has_bits_[0] |= 0x00000008u; -} -void ParamSpec::clear_has_decay_mult() { - _has_bits_[0] &= ~0x00000008u; -} -void ParamSpec::clear_decay_mult() { - decay_mult_ = 1; - clear_has_decay_mult(); -} -float ParamSpec::decay_mult() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ParamSpec.decay_mult) - return decay_mult_; -} -void ParamSpec::set_decay_mult(float value) { - set_has_decay_mult(); - decay_mult_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ParamSpec.decay_mult) -} - -inline const ParamSpec* ParamSpec::internal_default_instance() { - return &ParamSpec_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LayerParameter::kNameFieldNumber; -const int LayerParameter::kTypeFieldNumber; -const int LayerParameter::kBottomFieldNumber; -const int LayerParameter::kTopFieldNumber; -const int LayerParameter::kPhaseFieldNumber; -const int LayerParameter::kLossWeightFieldNumber; -const int LayerParameter::kParamFieldNumber; -const int LayerParameter::kBlobsFieldNumber; -const int LayerParameter::kPropagateDownFieldNumber; -const int LayerParameter::kIncludeFieldNumber; -const int LayerParameter::kExcludeFieldNumber; -const int LayerParameter::kTransformParamFieldNumber; -const int LayerParameter::kLossParamFieldNumber; -const int LayerParameter::kAccuracyParamFieldNumber; -const int LayerParameter::kArgmaxParamFieldNumber; -const int LayerParameter::kBatchNormParamFieldNumber; -const int LayerParameter::kBiasParamFieldNumber; -const int LayerParameter::kConcatParamFieldNumber; -const int LayerParameter::kContrastiveLossParamFieldNumber; -const int LayerParameter::kConvolutionParamFieldNumber; -const int LayerParameter::kCropParamFieldNumber; -const int LayerParameter::kDataParamFieldNumber; -const int LayerParameter::kDetectionOutputParamFieldNumber; -const int LayerParameter::kDropoutParamFieldNumber; -const int LayerParameter::kDummyDataParamFieldNumber; -const int LayerParameter::kEltwiseParamFieldNumber; -const int LayerParameter::kEluParamFieldNumber; -const int LayerParameter::kEmbedParamFieldNumber; -const int LayerParameter::kExpParamFieldNumber; -const int LayerParameter::kFlattenParamFieldNumber; -const int LayerParameter::kHdf5DataParamFieldNumber; -const int LayerParameter::kHdf5OutputParamFieldNumber; -const int LayerParameter::kHingeLossParamFieldNumber; -const int LayerParameter::kImageDataParamFieldNumber; -const int LayerParameter::kInfogainLossParamFieldNumber; -const int LayerParameter::kInnerProductParamFieldNumber; -const int LayerParameter::kInputParamFieldNumber; -const int LayerParameter::kLogParamFieldNumber; -const int LayerParameter::kLrnParamFieldNumber; -const int LayerParameter::kMemoryDataParamFieldNumber; -const int LayerParameter::kMvnParamFieldNumber; -const int LayerParameter::kNormParamFieldNumber; -const int LayerParameter::kPermuteParamFieldNumber; -const int LayerParameter::kParameterParamFieldNumber; -const int LayerParameter::kPoolingParamFieldNumber; -const int LayerParameter::kPowerParamFieldNumber; -const int LayerParameter::kPreluParamFieldNumber; -const int LayerParameter::kPriorBoxParamFieldNumber; -const int LayerParameter::kProposalParamFieldNumber; -const int LayerParameter::kPsroiPoolingParamFieldNumber; -const int LayerParameter::kPythonParamFieldNumber; -const int LayerParameter::kRecurrentParamFieldNumber; -const int LayerParameter::kReductionParamFieldNumber; -const int LayerParameter::kReluParamFieldNumber; -const int LayerParameter::kReshapeParamFieldNumber; -const int LayerParameter::kRoiPoolingParamFieldNumber; -const int LayerParameter::kScaleParamFieldNumber; -const int LayerParameter::kSigmoidParamFieldNumber; -const int LayerParameter::kSoftmaxParamFieldNumber; -const int LayerParameter::kSppParamFieldNumber; -const int LayerParameter::kSliceParamFieldNumber; -const int LayerParameter::kTanhParamFieldNumber; -const int LayerParameter::kThresholdParamFieldNumber; -const int LayerParameter::kTileParamFieldNumber; -const int LayerParameter::kWindowDataParamFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LayerParameter::LayerParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.LayerParameter) -} - -void LayerParameter::InitAsDefaultInstance() { - transform_param_ = const_cast< ::opencv_caffe::TransformationParameter*>( - ::opencv_caffe::TransformationParameter::internal_default_instance()); - loss_param_ = const_cast< ::opencv_caffe::LossParameter*>( - ::opencv_caffe::LossParameter::internal_default_instance()); - accuracy_param_ = const_cast< ::opencv_caffe::AccuracyParameter*>( - ::opencv_caffe::AccuracyParameter::internal_default_instance()); - argmax_param_ = const_cast< ::opencv_caffe::ArgMaxParameter*>( - ::opencv_caffe::ArgMaxParameter::internal_default_instance()); - batch_norm_param_ = const_cast< ::opencv_caffe::BatchNormParameter*>( - ::opencv_caffe::BatchNormParameter::internal_default_instance()); - bias_param_ = const_cast< ::opencv_caffe::BiasParameter*>( - ::opencv_caffe::BiasParameter::internal_default_instance()); - concat_param_ = const_cast< ::opencv_caffe::ConcatParameter*>( - ::opencv_caffe::ConcatParameter::internal_default_instance()); - contrastive_loss_param_ = const_cast< ::opencv_caffe::ContrastiveLossParameter*>( - ::opencv_caffe::ContrastiveLossParameter::internal_default_instance()); - convolution_param_ = const_cast< ::opencv_caffe::ConvolutionParameter*>( - ::opencv_caffe::ConvolutionParameter::internal_default_instance()); - crop_param_ = const_cast< ::opencv_caffe::CropParameter*>( - ::opencv_caffe::CropParameter::internal_default_instance()); - data_param_ = const_cast< ::opencv_caffe::DataParameter*>( - ::opencv_caffe::DataParameter::internal_default_instance()); - detection_output_param_ = const_cast< ::opencv_caffe::DetectionOutputParameter*>( - ::opencv_caffe::DetectionOutputParameter::internal_default_instance()); - dropout_param_ = const_cast< ::opencv_caffe::DropoutParameter*>( - ::opencv_caffe::DropoutParameter::internal_default_instance()); - dummy_data_param_ = const_cast< ::opencv_caffe::DummyDataParameter*>( - ::opencv_caffe::DummyDataParameter::internal_default_instance()); - eltwise_param_ = const_cast< ::opencv_caffe::EltwiseParameter*>( - ::opencv_caffe::EltwiseParameter::internal_default_instance()); - elu_param_ = const_cast< ::opencv_caffe::ELUParameter*>( - ::opencv_caffe::ELUParameter::internal_default_instance()); - embed_param_ = const_cast< ::opencv_caffe::EmbedParameter*>( - ::opencv_caffe::EmbedParameter::internal_default_instance()); - exp_param_ = const_cast< ::opencv_caffe::ExpParameter*>( - ::opencv_caffe::ExpParameter::internal_default_instance()); - flatten_param_ = const_cast< ::opencv_caffe::FlattenParameter*>( - ::opencv_caffe::FlattenParameter::internal_default_instance()); - hdf5_data_param_ = const_cast< ::opencv_caffe::HDF5DataParameter*>( - ::opencv_caffe::HDF5DataParameter::internal_default_instance()); - hdf5_output_param_ = const_cast< ::opencv_caffe::HDF5OutputParameter*>( - ::opencv_caffe::HDF5OutputParameter::internal_default_instance()); - hinge_loss_param_ = const_cast< ::opencv_caffe::HingeLossParameter*>( - ::opencv_caffe::HingeLossParameter::internal_default_instance()); - image_data_param_ = const_cast< ::opencv_caffe::ImageDataParameter*>( - ::opencv_caffe::ImageDataParameter::internal_default_instance()); - infogain_loss_param_ = const_cast< ::opencv_caffe::InfogainLossParameter*>( - ::opencv_caffe::InfogainLossParameter::internal_default_instance()); - inner_product_param_ = const_cast< ::opencv_caffe::InnerProductParameter*>( - ::opencv_caffe::InnerProductParameter::internal_default_instance()); - input_param_ = const_cast< ::opencv_caffe::InputParameter*>( - ::opencv_caffe::InputParameter::internal_default_instance()); - log_param_ = const_cast< ::opencv_caffe::LogParameter*>( - ::opencv_caffe::LogParameter::internal_default_instance()); - lrn_param_ = const_cast< ::opencv_caffe::LRNParameter*>( - ::opencv_caffe::LRNParameter::internal_default_instance()); - memory_data_param_ = const_cast< ::opencv_caffe::MemoryDataParameter*>( - ::opencv_caffe::MemoryDataParameter::internal_default_instance()); - mvn_param_ = const_cast< ::opencv_caffe::MVNParameter*>( - ::opencv_caffe::MVNParameter::internal_default_instance()); - norm_param_ = const_cast< ::opencv_caffe::NormalizeBBoxParameter*>( - ::opencv_caffe::NormalizeBBoxParameter::internal_default_instance()); - permute_param_ = const_cast< ::opencv_caffe::PermuteParameter*>( - ::opencv_caffe::PermuteParameter::internal_default_instance()); - parameter_param_ = const_cast< ::opencv_caffe::ParameterParameter*>( - ::opencv_caffe::ParameterParameter::internal_default_instance()); - pooling_param_ = const_cast< ::opencv_caffe::PoolingParameter*>( - ::opencv_caffe::PoolingParameter::internal_default_instance()); - power_param_ = const_cast< ::opencv_caffe::PowerParameter*>( - ::opencv_caffe::PowerParameter::internal_default_instance()); - prelu_param_ = const_cast< ::opencv_caffe::PReLUParameter*>( - ::opencv_caffe::PReLUParameter::internal_default_instance()); - prior_box_param_ = const_cast< ::opencv_caffe::PriorBoxParameter*>( - ::opencv_caffe::PriorBoxParameter::internal_default_instance()); - proposal_param_ = const_cast< ::opencv_caffe::ProposalParameter*>( - ::opencv_caffe::ProposalParameter::internal_default_instance()); - psroi_pooling_param_ = const_cast< ::opencv_caffe::PSROIPoolingParameter*>( - ::opencv_caffe::PSROIPoolingParameter::internal_default_instance()); - python_param_ = const_cast< ::opencv_caffe::PythonParameter*>( - ::opencv_caffe::PythonParameter::internal_default_instance()); - recurrent_param_ = const_cast< ::opencv_caffe::RecurrentParameter*>( - ::opencv_caffe::RecurrentParameter::internal_default_instance()); - reduction_param_ = const_cast< ::opencv_caffe::ReductionParameter*>( - ::opencv_caffe::ReductionParameter::internal_default_instance()); - relu_param_ = const_cast< ::opencv_caffe::ReLUParameter*>( - ::opencv_caffe::ReLUParameter::internal_default_instance()); - reshape_param_ = const_cast< ::opencv_caffe::ReshapeParameter*>( - ::opencv_caffe::ReshapeParameter::internal_default_instance()); - roi_pooling_param_ = const_cast< ::opencv_caffe::ROIPoolingParameter*>( - ::opencv_caffe::ROIPoolingParameter::internal_default_instance()); - scale_param_ = const_cast< ::opencv_caffe::ScaleParameter*>( - ::opencv_caffe::ScaleParameter::internal_default_instance()); - sigmoid_param_ = const_cast< ::opencv_caffe::SigmoidParameter*>( - ::opencv_caffe::SigmoidParameter::internal_default_instance()); - softmax_param_ = const_cast< ::opencv_caffe::SoftmaxParameter*>( - ::opencv_caffe::SoftmaxParameter::internal_default_instance()); - spp_param_ = const_cast< ::opencv_caffe::SPPParameter*>( - ::opencv_caffe::SPPParameter::internal_default_instance()); - slice_param_ = const_cast< ::opencv_caffe::SliceParameter*>( - ::opencv_caffe::SliceParameter::internal_default_instance()); - tanh_param_ = const_cast< ::opencv_caffe::TanHParameter*>( - ::opencv_caffe::TanHParameter::internal_default_instance()); - threshold_param_ = const_cast< ::opencv_caffe::ThresholdParameter*>( - ::opencv_caffe::ThresholdParameter::internal_default_instance()); - tile_param_ = const_cast< ::opencv_caffe::TileParameter*>( - ::opencv_caffe::TileParameter::internal_default_instance()); - window_data_param_ = const_cast< ::opencv_caffe::WindowDataParameter*>( - ::opencv_caffe::WindowDataParameter::internal_default_instance()); -} - -LayerParameter::LayerParameter(const LayerParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.LayerParameter) -} - -void LayerParameter::SharedCtor() { - _cached_size_ = 0; - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - transform_param_ = NULL; - loss_param_ = NULL; - accuracy_param_ = NULL; - argmax_param_ = NULL; - batch_norm_param_ = NULL; - bias_param_ = NULL; - concat_param_ = NULL; - contrastive_loss_param_ = NULL; - convolution_param_ = NULL; - crop_param_ = NULL; - data_param_ = NULL; - detection_output_param_ = NULL; - dropout_param_ = NULL; - dummy_data_param_ = NULL; - eltwise_param_ = NULL; - elu_param_ = NULL; - embed_param_ = NULL; - exp_param_ = NULL; - flatten_param_ = NULL; - hdf5_data_param_ = NULL; - hdf5_output_param_ = NULL; - hinge_loss_param_ = NULL; - image_data_param_ = NULL; - infogain_loss_param_ = NULL; - inner_product_param_ = NULL; - input_param_ = NULL; - log_param_ = NULL; - lrn_param_ = NULL; - memory_data_param_ = NULL; - mvn_param_ = NULL; - norm_param_ = NULL; - permute_param_ = NULL; - parameter_param_ = NULL; - pooling_param_ = NULL; - power_param_ = NULL; - prelu_param_ = NULL; - prior_box_param_ = NULL; - proposal_param_ = NULL; - psroi_pooling_param_ = NULL; - python_param_ = NULL; - recurrent_param_ = NULL; - reduction_param_ = NULL; - relu_param_ = NULL; - reshape_param_ = NULL; - roi_pooling_param_ = NULL; - scale_param_ = NULL; - sigmoid_param_ = NULL; - softmax_param_ = NULL; - spp_param_ = NULL; - slice_param_ = NULL; - tanh_param_ = NULL; - threshold_param_ = NULL; - tile_param_ = NULL; - window_data_param_ = NULL; - phase_ = 0; -} - -LayerParameter::~LayerParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.LayerParameter) - SharedDtor(); -} - -void LayerParameter::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != &LayerParameter_default_instance_.get()) { - delete transform_param_; - delete loss_param_; - delete accuracy_param_; - delete argmax_param_; - delete batch_norm_param_; - delete bias_param_; - delete concat_param_; - delete contrastive_loss_param_; - delete convolution_param_; - delete crop_param_; - delete data_param_; - delete detection_output_param_; - delete dropout_param_; - delete dummy_data_param_; - delete eltwise_param_; - delete elu_param_; - delete embed_param_; - delete exp_param_; - delete flatten_param_; - delete hdf5_data_param_; - delete hdf5_output_param_; - delete hinge_loss_param_; - delete image_data_param_; - delete infogain_loss_param_; - delete inner_product_param_; - delete input_param_; - delete log_param_; - delete lrn_param_; - delete memory_data_param_; - delete mvn_param_; - delete norm_param_; - delete permute_param_; - delete parameter_param_; - delete pooling_param_; - delete power_param_; - delete prelu_param_; - delete prior_box_param_; - delete proposal_param_; - delete psroi_pooling_param_; - delete python_param_; - delete recurrent_param_; - delete reduction_param_; - delete relu_param_; - delete reshape_param_; - delete roi_pooling_param_; - delete scale_param_; - delete sigmoid_param_; - delete softmax_param_; - delete spp_param_; - delete slice_param_; - delete tanh_param_; - delete threshold_param_; - delete tile_param_; - delete window_data_param_; - } -} - -void LayerParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* LayerParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return LayerParameter_descriptor_; -} - -const LayerParameter& LayerParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed LayerParameter_default_instance_; - -LayerParameter* LayerParameter::New(::google::protobuf::Arena* arena) const { - LayerParameter* n = new LayerParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void LayerParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.LayerParameter) - if (_has_bits_[0 / 32] & 19u) { - if (has_name()) { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_type()) { - type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - phase_ = 0; - } - if (_has_bits_[8 / 32] & 63488u) { - if (has_transform_param()) { - if (transform_param_ != NULL) transform_param_->::opencv_caffe::TransformationParameter::Clear(); - } - if (has_loss_param()) { - if (loss_param_ != NULL) loss_param_->::opencv_caffe::LossParameter::Clear(); - } - if (has_accuracy_param()) { - if (accuracy_param_ != NULL) accuracy_param_->::opencv_caffe::AccuracyParameter::Clear(); - } - if (has_argmax_param()) { - if (argmax_param_ != NULL) argmax_param_->::opencv_caffe::ArgMaxParameter::Clear(); - } - if (has_batch_norm_param()) { - if (batch_norm_param_ != NULL) batch_norm_param_->::opencv_caffe::BatchNormParameter::Clear(); - } - } - if (_has_bits_[16 / 32] & 16711680u) { - if (has_bias_param()) { - if (bias_param_ != NULL) bias_param_->::opencv_caffe::BiasParameter::Clear(); - } - if (has_concat_param()) { - if (concat_param_ != NULL) concat_param_->::opencv_caffe::ConcatParameter::Clear(); - } - if (has_contrastive_loss_param()) { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::opencv_caffe::ContrastiveLossParameter::Clear(); - } - if (has_convolution_param()) { - if (convolution_param_ != NULL) convolution_param_->::opencv_caffe::ConvolutionParameter::Clear(); - } - if (has_crop_param()) { - if (crop_param_ != NULL) crop_param_->::opencv_caffe::CropParameter::Clear(); - } - if (has_data_param()) { - if (data_param_ != NULL) data_param_->::opencv_caffe::DataParameter::Clear(); - } - if (has_detection_output_param()) { - if (detection_output_param_ != NULL) detection_output_param_->::opencv_caffe::DetectionOutputParameter::Clear(); - } - if (has_dropout_param()) { - if (dropout_param_ != NULL) dropout_param_->::opencv_caffe::DropoutParameter::Clear(); - } - } - if (_has_bits_[24 / 32] & 4278190080u) { - if (has_dummy_data_param()) { - if (dummy_data_param_ != NULL) dummy_data_param_->::opencv_caffe::DummyDataParameter::Clear(); - } - if (has_eltwise_param()) { - if (eltwise_param_ != NULL) eltwise_param_->::opencv_caffe::EltwiseParameter::Clear(); - } - if (has_elu_param()) { - if (elu_param_ != NULL) elu_param_->::opencv_caffe::ELUParameter::Clear(); - } - if (has_embed_param()) { - if (embed_param_ != NULL) embed_param_->::opencv_caffe::EmbedParameter::Clear(); - } - if (has_exp_param()) { - if (exp_param_ != NULL) exp_param_->::opencv_caffe::ExpParameter::Clear(); - } - if (has_flatten_param()) { - if (flatten_param_ != NULL) flatten_param_->::opencv_caffe::FlattenParameter::Clear(); - } - if (has_hdf5_data_param()) { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::opencv_caffe::HDF5DataParameter::Clear(); - } - if (has_hdf5_output_param()) { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::opencv_caffe::HDF5OutputParameter::Clear(); - } - } - if (_has_bits_[32 / 32] & 255u) { - if (has_hinge_loss_param()) { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::opencv_caffe::HingeLossParameter::Clear(); - } - if (has_image_data_param()) { - if (image_data_param_ != NULL) image_data_param_->::opencv_caffe::ImageDataParameter::Clear(); - } - if (has_infogain_loss_param()) { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::opencv_caffe::InfogainLossParameter::Clear(); - } - if (has_inner_product_param()) { - if (inner_product_param_ != NULL) inner_product_param_->::opencv_caffe::InnerProductParameter::Clear(); - } - if (has_input_param()) { - if (input_param_ != NULL) input_param_->::opencv_caffe::InputParameter::Clear(); - } - if (has_log_param()) { - if (log_param_ != NULL) log_param_->::opencv_caffe::LogParameter::Clear(); - } - if (has_lrn_param()) { - if (lrn_param_ != NULL) lrn_param_->::opencv_caffe::LRNParameter::Clear(); - } - if (has_memory_data_param()) { - if (memory_data_param_ != NULL) memory_data_param_->::opencv_caffe::MemoryDataParameter::Clear(); - } - } - if (_has_bits_[40 / 32] & 65280u) { - if (has_mvn_param()) { - if (mvn_param_ != NULL) mvn_param_->::opencv_caffe::MVNParameter::Clear(); - } - if (has_norm_param()) { - if (norm_param_ != NULL) norm_param_->::opencv_caffe::NormalizeBBoxParameter::Clear(); - } - if (has_permute_param()) { - if (permute_param_ != NULL) permute_param_->::opencv_caffe::PermuteParameter::Clear(); - } - if (has_parameter_param()) { - if (parameter_param_ != NULL) parameter_param_->::opencv_caffe::ParameterParameter::Clear(); - } - if (has_pooling_param()) { - if (pooling_param_ != NULL) pooling_param_->::opencv_caffe::PoolingParameter::Clear(); - } - if (has_power_param()) { - if (power_param_ != NULL) power_param_->::opencv_caffe::PowerParameter::Clear(); - } - if (has_prelu_param()) { - if (prelu_param_ != NULL) prelu_param_->::opencv_caffe::PReLUParameter::Clear(); - } - if (has_prior_box_param()) { - if (prior_box_param_ != NULL) prior_box_param_->::opencv_caffe::PriorBoxParameter::Clear(); - } - } - if (_has_bits_[48 / 32] & 16711680u) { - if (has_proposal_param()) { - if (proposal_param_ != NULL) proposal_param_->::opencv_caffe::ProposalParameter::Clear(); - } - if (has_psroi_pooling_param()) { - if (psroi_pooling_param_ != NULL) psroi_pooling_param_->::opencv_caffe::PSROIPoolingParameter::Clear(); - } - if (has_python_param()) { - if (python_param_ != NULL) python_param_->::opencv_caffe::PythonParameter::Clear(); - } - if (has_recurrent_param()) { - if (recurrent_param_ != NULL) recurrent_param_->::opencv_caffe::RecurrentParameter::Clear(); - } - if (has_reduction_param()) { - if (reduction_param_ != NULL) reduction_param_->::opencv_caffe::ReductionParameter::Clear(); - } - if (has_relu_param()) { - if (relu_param_ != NULL) relu_param_->::opencv_caffe::ReLUParameter::Clear(); - } - if (has_reshape_param()) { - if (reshape_param_ != NULL) reshape_param_->::opencv_caffe::ReshapeParameter::Clear(); - } - if (has_roi_pooling_param()) { - if (roi_pooling_param_ != NULL) roi_pooling_param_->::opencv_caffe::ROIPoolingParameter::Clear(); - } - } - if (_has_bits_[56 / 32] & 4278190080u) { - if (has_scale_param()) { - if (scale_param_ != NULL) scale_param_->::opencv_caffe::ScaleParameter::Clear(); - } - if (has_sigmoid_param()) { - if (sigmoid_param_ != NULL) sigmoid_param_->::opencv_caffe::SigmoidParameter::Clear(); - } - if (has_softmax_param()) { - if (softmax_param_ != NULL) softmax_param_->::opencv_caffe::SoftmaxParameter::Clear(); - } - if (has_spp_param()) { - if (spp_param_ != NULL) spp_param_->::opencv_caffe::SPPParameter::Clear(); - } - if (has_slice_param()) { - if (slice_param_ != NULL) slice_param_->::opencv_caffe::SliceParameter::Clear(); - } - if (has_tanh_param()) { - if (tanh_param_ != NULL) tanh_param_->::opencv_caffe::TanHParameter::Clear(); - } - if (has_threshold_param()) { - if (threshold_param_ != NULL) threshold_param_->::opencv_caffe::ThresholdParameter::Clear(); - } - if (has_tile_param()) { - if (tile_param_ != NULL) tile_param_->::opencv_caffe::TileParameter::Clear(); - } - } - if (has_window_data_param()) { - if (window_data_param_ != NULL) window_data_param_->::opencv_caffe::WindowDataParameter::Clear(); - } - bottom_.Clear(); - top_.Clear(); - loss_weight_.Clear(); - param_.Clear(); - blobs_.Clear(); - propagate_down_.Clear(); - include_.Clear(); - exclude_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool LayerParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.LayerParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(66133690); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.LayerParameter.name"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_type; - break; - } - - // optional string type = 2; - case 2: { - if (tag == 18) { - parse_type: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.LayerParameter.type"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_bottom; - break; - } - - // repeated string bottom = 3; - case 3: { - if (tag == 26) { - parse_bottom: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_bottom())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->bottom(this->bottom_size() - 1).data(), - this->bottom(this->bottom_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.LayerParameter.bottom"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_bottom; - if (input->ExpectTag(34)) goto parse_top; - break; - } - - // repeated string top = 4; - case 4: { - if (tag == 34) { - parse_top: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_top())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->top(this->top_size() - 1).data(), - this->top(this->top_size() - 1).length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.LayerParameter.top"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_top; - if (input->ExpectTag(45)) goto parse_loss_weight; - break; - } - - // repeated float loss_weight = 5; - case 5: { - if (tag == 45) { - parse_loss_weight: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 45, input, this->mutable_loss_weight()))); - } else if (tag == 42) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_loss_weight()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_loss_weight; - if (input->ExpectTag(50)) goto parse_param; - break; - } - - // repeated .opencv_caffe.ParamSpec param = 6; - case 6: { - if (tag == 50) { - parse_param: - DO_(input->IncrementRecursionDepth()); - parse_loop_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_loop_param; - if (input->ExpectTag(58)) goto parse_loop_blobs; - input->UnsafeDecrementRecursionDepth(); - break; - } - - // repeated .opencv_caffe.BlobProto blobs = 7; - case 7: { - if (tag == 58) { - DO_(input->IncrementRecursionDepth()); - parse_loop_blobs: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_blobs())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_loop_blobs; - if (input->ExpectTag(66)) goto parse_loop_include; - input->UnsafeDecrementRecursionDepth(); - break; - } - - // repeated .opencv_caffe.NetStateRule include = 8; - case 8: { - if (tag == 66) { - DO_(input->IncrementRecursionDepth()); - parse_loop_include: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_include())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_loop_include; - if (input->ExpectTag(74)) goto parse_loop_exclude; - input->UnsafeDecrementRecursionDepth(); - break; - } - - // repeated .opencv_caffe.NetStateRule exclude = 9; - case 9: { - if (tag == 74) { - DO_(input->IncrementRecursionDepth()); - parse_loop_exclude: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_exclude())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(74)) goto parse_loop_exclude; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(80)) goto parse_phase; - break; - } - - // optional .opencv_caffe.Phase phase = 10; - case 10: { - if (tag == 80) { - parse_phase: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::Phase_IsValid(value)) { - set_phase(static_cast< ::opencv_caffe::Phase >(value)); - } else { - mutable_unknown_fields()->AddVarint(10, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(88)) goto parse_propagate_down; - break; - } - - // repeated bool propagate_down = 11; - case 11: { - if (tag == 88) { - parse_propagate_down: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - 1, 88, input, this->mutable_propagate_down()))); - } else if (tag == 90) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, this->mutable_propagate_down()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(88)) goto parse_propagate_down; - if (input->ExpectTag(802)) goto parse_transform_param; - break; - } - - // optional .opencv_caffe.TransformationParameter transform_param = 100; - case 100: { - if (tag == 802) { - parse_transform_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_transform_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(810)) goto parse_loss_param; - break; - } - - // optional .opencv_caffe.LossParameter loss_param = 101; - case 101: { - if (tag == 810) { - parse_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_loss_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(818)) goto parse_accuracy_param; - break; - } - - // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; - case 102: { - if (tag == 818) { - parse_accuracy_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_accuracy_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(826)) goto parse_argmax_param; - break; - } - - // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; - case 103: { - if (tag == 826) { - parse_argmax_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_argmax_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(834)) goto parse_concat_param; - break; - } - - // optional .opencv_caffe.ConcatParameter concat_param = 104; - case 104: { - if (tag == 834) { - parse_concat_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_concat_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(842)) goto parse_contrastive_loss_param; - break; - } - - // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; - case 105: { - if (tag == 842) { - parse_contrastive_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_contrastive_loss_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(850)) goto parse_convolution_param; - break; - } - - // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; - case 106: { - if (tag == 850) { - parse_convolution_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_convolution_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(858)) goto parse_data_param; - break; - } - - // optional .opencv_caffe.DataParameter data_param = 107; - case 107: { - if (tag == 858) { - parse_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_data_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(866)) goto parse_dropout_param; - break; - } - - // optional .opencv_caffe.DropoutParameter dropout_param = 108; - case 108: { - if (tag == 866) { - parse_dropout_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dropout_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(874)) goto parse_dummy_data_param; - break; - } - - // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; - case 109: { - if (tag == 874) { - parse_dummy_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_dummy_data_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(882)) goto parse_eltwise_param; - break; - } - - // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; - case 110: { - if (tag == 882) { - parse_eltwise_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_eltwise_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(890)) goto parse_exp_param; - break; - } - - // optional .opencv_caffe.ExpParameter exp_param = 111; - case 111: { - if (tag == 890) { - parse_exp_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_exp_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(898)) goto parse_hdf5_data_param; - break; - } - - // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; - case 112: { - if (tag == 898) { - parse_hdf5_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hdf5_data_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(906)) goto parse_hdf5_output_param; - break; - } - - // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; - case 113: { - if (tag == 906) { - parse_hdf5_output_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hdf5_output_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(914)) goto parse_hinge_loss_param; - break; - } - - // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; - case 114: { - if (tag == 914) { - parse_hinge_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_hinge_loss_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(922)) goto parse_image_data_param; - break; - } - - // optional .opencv_caffe.ImageDataParameter image_data_param = 115; - case 115: { - if (tag == 922) { - parse_image_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_image_data_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(930)) goto parse_infogain_loss_param; - break; - } - - // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; - case 116: { - if (tag == 930) { - parse_infogain_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_infogain_loss_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(938)) goto parse_inner_product_param; - break; - } - - // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; - case 117: { - if (tag == 938) { - parse_inner_product_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_inner_product_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(946)) goto parse_lrn_param; - break; - } - - // optional .opencv_caffe.LRNParameter lrn_param = 118; - case 118: { - if (tag == 946) { - parse_lrn_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_lrn_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(954)) goto parse_memory_data_param; - break; - } - - // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; - case 119: { - if (tag == 954) { - parse_memory_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_memory_data_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(962)) goto parse_mvn_param; - break; - } - - // optional .opencv_caffe.MVNParameter mvn_param = 120; - case 120: { - if (tag == 962) { - parse_mvn_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_mvn_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(970)) goto parse_pooling_param; - break; - } - - // optional .opencv_caffe.PoolingParameter pooling_param = 121; - case 121: { - if (tag == 970) { - parse_pooling_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_pooling_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(978)) goto parse_power_param; - break; - } - - // optional .opencv_caffe.PowerParameter power_param = 122; - case 122: { - if (tag == 978) { - parse_power_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_power_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(986)) goto parse_relu_param; - break; - } - - // optional .opencv_caffe.ReLUParameter relu_param = 123; - case 123: { - if (tag == 986) { - parse_relu_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_relu_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(994)) goto parse_sigmoid_param; - break; - } - - // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; - case 124: { - if (tag == 994) { - parse_sigmoid_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_sigmoid_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1002)) goto parse_softmax_param; - break; - } - - // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; - case 125: { - if (tag == 1002) { - parse_softmax_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_softmax_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1010)) goto parse_slice_param; - break; - } - - // optional .opencv_caffe.SliceParameter slice_param = 126; - case 126: { - if (tag == 1010) { - parse_slice_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_slice_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1018)) goto parse_tanh_param; - break; - } - - // optional .opencv_caffe.TanHParameter tanh_param = 127; - case 127: { - if (tag == 1018) { - parse_tanh_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_tanh_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1026)) goto parse_threshold_param; - break; - } - - // optional .opencv_caffe.ThresholdParameter threshold_param = 128; - case 128: { - if (tag == 1026) { - parse_threshold_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_threshold_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1034)) goto parse_window_data_param; - break; - } - - // optional .opencv_caffe.WindowDataParameter window_data_param = 129; - case 129: { - if (tag == 1034) { - parse_window_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_window_data_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1042)) goto parse_python_param; - break; - } - - // optional .opencv_caffe.PythonParameter python_param = 130; - case 130: { - if (tag == 1042) { - parse_python_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_python_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1050)) goto parse_prelu_param; - break; - } - - // optional .opencv_caffe.PReLUParameter prelu_param = 131; - case 131: { - if (tag == 1050) { - parse_prelu_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_prelu_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1058)) goto parse_spp_param; - break; - } - - // optional .opencv_caffe.SPPParameter spp_param = 132; - case 132: { - if (tag == 1058) { - parse_spp_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_spp_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1066)) goto parse_reshape_param; - break; - } - - // optional .opencv_caffe.ReshapeParameter reshape_param = 133; - case 133: { - if (tag == 1066) { - parse_reshape_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reshape_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1074)) goto parse_log_param; - break; - } - - // optional .opencv_caffe.LogParameter log_param = 134; - case 134: { - if (tag == 1074) { - parse_log_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_log_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1082)) goto parse_flatten_param; - break; - } - - // optional .opencv_caffe.FlattenParameter flatten_param = 135; - case 135: { - if (tag == 1082) { - parse_flatten_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_flatten_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1090)) goto parse_reduction_param; - break; - } - - // optional .opencv_caffe.ReductionParameter reduction_param = 136; - case 136: { - if (tag == 1090) { - parse_reduction_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_reduction_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1098)) goto parse_embed_param; - break; - } - - // optional .opencv_caffe.EmbedParameter embed_param = 137; - case 137: { - if (tag == 1098) { - parse_embed_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_embed_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1106)) goto parse_tile_param; - break; - } - - // optional .opencv_caffe.TileParameter tile_param = 138; - case 138: { - if (tag == 1106) { - parse_tile_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_tile_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1114)) goto parse_batch_norm_param; - break; - } - - // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; - case 139: { - if (tag == 1114) { - parse_batch_norm_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_batch_norm_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1122)) goto parse_elu_param; - break; - } - - // optional .opencv_caffe.ELUParameter elu_param = 140; - case 140: { - if (tag == 1122) { - parse_elu_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_elu_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1130)) goto parse_bias_param; - break; - } - - // optional .opencv_caffe.BiasParameter bias_param = 141; - case 141: { - if (tag == 1130) { - parse_bias_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bias_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1138)) goto parse_scale_param; - break; - } - - // optional .opencv_caffe.ScaleParameter scale_param = 142; - case 142: { - if (tag == 1138) { - parse_scale_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_scale_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1146)) goto parse_input_param; - break; - } - - // optional .opencv_caffe.InputParameter input_param = 143; - case 143: { - if (tag == 1146) { - parse_input_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_input_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1154)) goto parse_crop_param; - break; - } - - // optional .opencv_caffe.CropParameter crop_param = 144; - case 144: { - if (tag == 1154) { - parse_crop_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_crop_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1162)) goto parse_parameter_param; - break; - } - - // optional .opencv_caffe.ParameterParameter parameter_param = 145; - case 145: { - if (tag == 1162) { - parse_parameter_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_parameter_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1170)) goto parse_recurrent_param; - break; - } - - // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; - case 146: { - if (tag == 1170) { - parse_recurrent_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_recurrent_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1178)) goto parse_detection_output_param; - break; - } - - // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; - case 147: { - if (tag == 1178) { - parse_detection_output_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_detection_output_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1186)) goto parse_permute_param; - break; - } - - // optional .opencv_caffe.PermuteParameter permute_param = 148; - case 148: { - if (tag == 1186) { - parse_permute_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_permute_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1194)) goto parse_norm_param; - break; - } - - // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; - case 149: { - if (tag == 1194) { - parse_norm_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_norm_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1202)) goto parse_prior_box_param; - break; - } - - // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; - case 150: { - if (tag == 1202) { - parse_prior_box_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_prior_box_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(1610)) goto parse_proposal_param; - break; - } - - // optional .opencv_caffe.ProposalParameter proposal_param = 201; - case 201: { - if (tag == 1610) { - parse_proposal_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_proposal_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80018)) goto parse_psroi_pooling_param; - break; - } - - // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; - case 10002: { - if (tag == 80018) { - parse_psroi_pooling_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_psroi_pooling_param())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66133690)) goto parse_roi_pooling_param; - break; - } - - // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; - case 8266711: { - if (tag == 66133690) { - parse_roi_pooling_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_roi_pooling_param())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.LayerParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.LayerParameter) - return false; -#undef DO_ -} - -void LayerParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.LayerParameter) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.LayerParameter.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // optional string type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.LayerParameter.type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->type(), output); - } - - // repeated string bottom = 3; - for (int i = 0; i < this->bottom_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->bottom(i).data(), this->bottom(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.LayerParameter.bottom"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->bottom(i), output); - } - - // repeated string top = 4; - for (int i = 0; i < this->top_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->top(i).data(), this->top(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.LayerParameter.top"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->top(i), output); - } - - // repeated float loss_weight = 5; - for (int i = 0; i < this->loss_weight_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 5, this->loss_weight(i), output); - } - - // repeated .opencv_caffe.ParamSpec param = 6; - for (unsigned int i = 0, n = this->param_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->param(i), output); - } - - // repeated .opencv_caffe.BlobProto blobs = 7; - for (unsigned int i = 0, n = this->blobs_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->blobs(i), output); - } - - // repeated .opencv_caffe.NetStateRule include = 8; - for (unsigned int i = 0, n = this->include_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->include(i), output); - } - - // repeated .opencv_caffe.NetStateRule exclude = 9; - for (unsigned int i = 0, n = this->exclude_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, this->exclude(i), output); - } - - // optional .opencv_caffe.Phase phase = 10; - if (has_phase()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 10, this->phase(), output); - } - - // repeated bool propagate_down = 11; - for (int i = 0; i < this->propagate_down_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteBool( - 11, this->propagate_down(i), output); - } - - // optional .opencv_caffe.TransformationParameter transform_param = 100; - if (has_transform_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 100, *this->transform_param_, output); - } - - // optional .opencv_caffe.LossParameter loss_param = 101; - if (has_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 101, *this->loss_param_, output); - } - - // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; - if (has_accuracy_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 102, *this->accuracy_param_, output); - } - - // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; - if (has_argmax_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 103, *this->argmax_param_, output); - } - - // optional .opencv_caffe.ConcatParameter concat_param = 104; - if (has_concat_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 104, *this->concat_param_, output); - } - - // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; - if (has_contrastive_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 105, *this->contrastive_loss_param_, output); - } - - // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; - if (has_convolution_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 106, *this->convolution_param_, output); - } - - // optional .opencv_caffe.DataParameter data_param = 107; - if (has_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 107, *this->data_param_, output); - } - - // optional .opencv_caffe.DropoutParameter dropout_param = 108; - if (has_dropout_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 108, *this->dropout_param_, output); - } - - // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; - if (has_dummy_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 109, *this->dummy_data_param_, output); - } - - // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; - if (has_eltwise_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 110, *this->eltwise_param_, output); - } - - // optional .opencv_caffe.ExpParameter exp_param = 111; - if (has_exp_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 111, *this->exp_param_, output); - } - - // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; - if (has_hdf5_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 112, *this->hdf5_data_param_, output); - } - - // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; - if (has_hdf5_output_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 113, *this->hdf5_output_param_, output); - } - - // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; - if (has_hinge_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 114, *this->hinge_loss_param_, output); - } - - // optional .opencv_caffe.ImageDataParameter image_data_param = 115; - if (has_image_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 115, *this->image_data_param_, output); - } - - // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; - if (has_infogain_loss_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 116, *this->infogain_loss_param_, output); - } - - // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; - if (has_inner_product_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 117, *this->inner_product_param_, output); - } - - // optional .opencv_caffe.LRNParameter lrn_param = 118; - if (has_lrn_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 118, *this->lrn_param_, output); - } - - // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; - if (has_memory_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 119, *this->memory_data_param_, output); - } - - // optional .opencv_caffe.MVNParameter mvn_param = 120; - if (has_mvn_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 120, *this->mvn_param_, output); - } - - // optional .opencv_caffe.PoolingParameter pooling_param = 121; - if (has_pooling_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 121, *this->pooling_param_, output); - } - - // optional .opencv_caffe.PowerParameter power_param = 122; - if (has_power_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 122, *this->power_param_, output); - } - - // optional .opencv_caffe.ReLUParameter relu_param = 123; - if (has_relu_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 123, *this->relu_param_, output); - } - - // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; - if (has_sigmoid_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 124, *this->sigmoid_param_, output); - } - - // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; - if (has_softmax_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 125, *this->softmax_param_, output); - } - - // optional .opencv_caffe.SliceParameter slice_param = 126; - if (has_slice_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 126, *this->slice_param_, output); - } - - // optional .opencv_caffe.TanHParameter tanh_param = 127; - if (has_tanh_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 127, *this->tanh_param_, output); - } - - // optional .opencv_caffe.ThresholdParameter threshold_param = 128; - if (has_threshold_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 128, *this->threshold_param_, output); - } - - // optional .opencv_caffe.WindowDataParameter window_data_param = 129; - if (has_window_data_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 129, *this->window_data_param_, output); - } - - // optional .opencv_caffe.PythonParameter python_param = 130; - if (has_python_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 130, *this->python_param_, output); - } - - // optional .opencv_caffe.PReLUParameter prelu_param = 131; - if (has_prelu_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 131, *this->prelu_param_, output); - } - - // optional .opencv_caffe.SPPParameter spp_param = 132; - if (has_spp_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 132, *this->spp_param_, output); - } - - // optional .opencv_caffe.ReshapeParameter reshape_param = 133; - if (has_reshape_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 133, *this->reshape_param_, output); - } - - // optional .opencv_caffe.LogParameter log_param = 134; - if (has_log_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 134, *this->log_param_, output); - } - - // optional .opencv_caffe.FlattenParameter flatten_param = 135; - if (has_flatten_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 135, *this->flatten_param_, output); - } - - // optional .opencv_caffe.ReductionParameter reduction_param = 136; - if (has_reduction_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 136, *this->reduction_param_, output); - } - - // optional .opencv_caffe.EmbedParameter embed_param = 137; - if (has_embed_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 137, *this->embed_param_, output); - } - - // optional .opencv_caffe.TileParameter tile_param = 138; - if (has_tile_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 138, *this->tile_param_, output); - } - - // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; - if (has_batch_norm_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 139, *this->batch_norm_param_, output); - } - - // optional .opencv_caffe.ELUParameter elu_param = 140; - if (has_elu_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 140, *this->elu_param_, output); - } - - // optional .opencv_caffe.BiasParameter bias_param = 141; - if (has_bias_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 141, *this->bias_param_, output); - } - - // optional .opencv_caffe.ScaleParameter scale_param = 142; - if (has_scale_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 142, *this->scale_param_, output); - } - - // optional .opencv_caffe.InputParameter input_param = 143; - if (has_input_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 143, *this->input_param_, output); - } - - // optional .opencv_caffe.CropParameter crop_param = 144; - if (has_crop_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 144, *this->crop_param_, output); - } - - // optional .opencv_caffe.ParameterParameter parameter_param = 145; - if (has_parameter_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 145, *this->parameter_param_, output); - } - - // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; - if (has_recurrent_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 146, *this->recurrent_param_, output); - } - - // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; - if (has_detection_output_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 147, *this->detection_output_param_, output); - } - - // optional .opencv_caffe.PermuteParameter permute_param = 148; - if (has_permute_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 148, *this->permute_param_, output); - } - - // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; - if (has_norm_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 149, *this->norm_param_, output); - } - - // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; - if (has_prior_box_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 150, *this->prior_box_param_, output); - } - - // optional .opencv_caffe.ProposalParameter proposal_param = 201; - if (has_proposal_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 201, *this->proposal_param_, output); - } - - // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; - if (has_psroi_pooling_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10002, *this->psroi_pooling_param_, output); - } - - // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; - if (has_roi_pooling_param()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8266711, *this->roi_pooling_param_, output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.LayerParameter) -} - -::google::protobuf::uint8* LayerParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LayerParameter) - // optional string name = 1; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.LayerParameter.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // optional string type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.LayerParameter.type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->type(), target); - } - - // repeated string bottom = 3; - for (int i = 0; i < this->bottom_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->bottom(i).data(), this->bottom(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.LayerParameter.bottom"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->bottom(i), target); - } - - // repeated string top = 4; - for (int i = 0; i < this->top_size(); i++) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->top(i).data(), this->top(i).length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.LayerParameter.top"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(4, this->top(i), target); - } - - // repeated float loss_weight = 5; - for (int i = 0; i < this->loss_weight_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(5, this->loss_weight(i), target); - } - - // repeated .opencv_caffe.ParamSpec param = 6; - for (unsigned int i = 0, n = this->param_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, this->param(i), false, target); - } - - // repeated .opencv_caffe.BlobProto blobs = 7; - for (unsigned int i = 0, n = this->blobs_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, this->blobs(i), false, target); - } - - // repeated .opencv_caffe.NetStateRule include = 8; - for (unsigned int i = 0, n = this->include_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8, this->include(i), false, target); - } - - // repeated .opencv_caffe.NetStateRule exclude = 9; - for (unsigned int i = 0, n = this->exclude_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 9, this->exclude(i), false, target); - } - - // optional .opencv_caffe.Phase phase = 10; - if (has_phase()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 10, this->phase(), target); - } - - // repeated bool propagate_down = 11; - for (int i = 0; i < this->propagate_down_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteBoolToArray(11, this->propagate_down(i), target); - } - - // optional .opencv_caffe.TransformationParameter transform_param = 100; - if (has_transform_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 100, *this->transform_param_, false, target); - } - - // optional .opencv_caffe.LossParameter loss_param = 101; - if (has_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 101, *this->loss_param_, false, target); - } - - // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; - if (has_accuracy_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 102, *this->accuracy_param_, false, target); - } - - // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; - if (has_argmax_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 103, *this->argmax_param_, false, target); - } - - // optional .opencv_caffe.ConcatParameter concat_param = 104; - if (has_concat_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 104, *this->concat_param_, false, target); - } - - // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; - if (has_contrastive_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 105, *this->contrastive_loss_param_, false, target); - } - - // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; - if (has_convolution_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 106, *this->convolution_param_, false, target); - } - - // optional .opencv_caffe.DataParameter data_param = 107; - if (has_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 107, *this->data_param_, false, target); - } - - // optional .opencv_caffe.DropoutParameter dropout_param = 108; - if (has_dropout_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 108, *this->dropout_param_, false, target); - } - - // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; - if (has_dummy_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 109, *this->dummy_data_param_, false, target); - } - - // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; - if (has_eltwise_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 110, *this->eltwise_param_, false, target); - } - - // optional .opencv_caffe.ExpParameter exp_param = 111; - if (has_exp_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 111, *this->exp_param_, false, target); - } - - // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; - if (has_hdf5_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 112, *this->hdf5_data_param_, false, target); - } - - // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; - if (has_hdf5_output_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 113, *this->hdf5_output_param_, false, target); - } - - // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; - if (has_hinge_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 114, *this->hinge_loss_param_, false, target); - } - - // optional .opencv_caffe.ImageDataParameter image_data_param = 115; - if (has_image_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 115, *this->image_data_param_, false, target); - } - - // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; - if (has_infogain_loss_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 116, *this->infogain_loss_param_, false, target); - } - - // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; - if (has_inner_product_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 117, *this->inner_product_param_, false, target); - } - - // optional .opencv_caffe.LRNParameter lrn_param = 118; - if (has_lrn_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 118, *this->lrn_param_, false, target); - } - - // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; - if (has_memory_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 119, *this->memory_data_param_, false, target); - } - - // optional .opencv_caffe.MVNParameter mvn_param = 120; - if (has_mvn_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 120, *this->mvn_param_, false, target); - } - - // optional .opencv_caffe.PoolingParameter pooling_param = 121; - if (has_pooling_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 121, *this->pooling_param_, false, target); - } - - // optional .opencv_caffe.PowerParameter power_param = 122; - if (has_power_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 122, *this->power_param_, false, target); - } - - // optional .opencv_caffe.ReLUParameter relu_param = 123; - if (has_relu_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 123, *this->relu_param_, false, target); - } - - // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; - if (has_sigmoid_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 124, *this->sigmoid_param_, false, target); - } - - // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; - if (has_softmax_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 125, *this->softmax_param_, false, target); - } - - // optional .opencv_caffe.SliceParameter slice_param = 126; - if (has_slice_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 126, *this->slice_param_, false, target); - } - - // optional .opencv_caffe.TanHParameter tanh_param = 127; - if (has_tanh_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 127, *this->tanh_param_, false, target); - } - - // optional .opencv_caffe.ThresholdParameter threshold_param = 128; - if (has_threshold_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 128, *this->threshold_param_, false, target); - } - - // optional .opencv_caffe.WindowDataParameter window_data_param = 129; - if (has_window_data_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 129, *this->window_data_param_, false, target); - } - - // optional .opencv_caffe.PythonParameter python_param = 130; - if (has_python_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 130, *this->python_param_, false, target); - } - - // optional .opencv_caffe.PReLUParameter prelu_param = 131; - if (has_prelu_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 131, *this->prelu_param_, false, target); - } - - // optional .opencv_caffe.SPPParameter spp_param = 132; - if (has_spp_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 132, *this->spp_param_, false, target); - } - - // optional .opencv_caffe.ReshapeParameter reshape_param = 133; - if (has_reshape_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 133, *this->reshape_param_, false, target); - } - - // optional .opencv_caffe.LogParameter log_param = 134; - if (has_log_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 134, *this->log_param_, false, target); - } - - // optional .opencv_caffe.FlattenParameter flatten_param = 135; - if (has_flatten_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 135, *this->flatten_param_, false, target); - } - - // optional .opencv_caffe.ReductionParameter reduction_param = 136; - if (has_reduction_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 136, *this->reduction_param_, false, target); - } - - // optional .opencv_caffe.EmbedParameter embed_param = 137; - if (has_embed_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 137, *this->embed_param_, false, target); - } - - // optional .opencv_caffe.TileParameter tile_param = 138; - if (has_tile_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 138, *this->tile_param_, false, target); - } - - // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; - if (has_batch_norm_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 139, *this->batch_norm_param_, false, target); - } - - // optional .opencv_caffe.ELUParameter elu_param = 140; - if (has_elu_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 140, *this->elu_param_, false, target); - } - - // optional .opencv_caffe.BiasParameter bias_param = 141; - if (has_bias_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 141, *this->bias_param_, false, target); - } - - // optional .opencv_caffe.ScaleParameter scale_param = 142; - if (has_scale_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 142, *this->scale_param_, false, target); - } - - // optional .opencv_caffe.InputParameter input_param = 143; - if (has_input_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 143, *this->input_param_, false, target); - } - - // optional .opencv_caffe.CropParameter crop_param = 144; - if (has_crop_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 144, *this->crop_param_, false, target); - } - - // optional .opencv_caffe.ParameterParameter parameter_param = 145; - if (has_parameter_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 145, *this->parameter_param_, false, target); - } - - // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; - if (has_recurrent_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 146, *this->recurrent_param_, false, target); - } - - // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; - if (has_detection_output_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 147, *this->detection_output_param_, false, target); - } - - // optional .opencv_caffe.PermuteParameter permute_param = 148; - if (has_permute_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 148, *this->permute_param_, false, target); - } - - // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; - if (has_norm_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 149, *this->norm_param_, false, target); - } - - // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; - if (has_prior_box_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 150, *this->prior_box_param_, false, target); - } - - // optional .opencv_caffe.ProposalParameter proposal_param = 201; - if (has_proposal_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 201, *this->proposal_param_, false, target); - } - - // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; - if (has_psroi_pooling_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 10002, *this->psroi_pooling_param_, false, target); - } - - // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; - if (has_roi_pooling_param()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8266711, *this->roi_pooling_param_, false, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LayerParameter) - return target; -} - -size_t LayerParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LayerParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 19u) { - // optional string name = 1; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional string type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->type()); - } - - // optional .opencv_caffe.Phase phase = 10; - if (has_phase()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - } - if (_has_bits_[11 / 32] & 63488u) { - // optional .opencv_caffe.TransformationParameter transform_param = 100; - if (has_transform_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->transform_param_); - } - - // optional .opencv_caffe.LossParameter loss_param = 101; - if (has_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->loss_param_); - } - - // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; - if (has_accuracy_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->accuracy_param_); - } - - // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; - if (has_argmax_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->argmax_param_); - } - - // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; - if (has_batch_norm_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->batch_norm_param_); - } - - } - if (_has_bits_[16 / 32] & 16711680u) { - // optional .opencv_caffe.BiasParameter bias_param = 141; - if (has_bias_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->bias_param_); - } - - // optional .opencv_caffe.ConcatParameter concat_param = 104; - if (has_concat_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->concat_param_); - } - - // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; - if (has_contrastive_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->contrastive_loss_param_); - } - - // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; - if (has_convolution_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->convolution_param_); - } - - // optional .opencv_caffe.CropParameter crop_param = 144; - if (has_crop_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->crop_param_); - } - - // optional .opencv_caffe.DataParameter data_param = 107; - if (has_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->data_param_); - } - - // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; - if (has_detection_output_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->detection_output_param_); - } - - // optional .opencv_caffe.DropoutParameter dropout_param = 108; - if (has_dropout_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->dropout_param_); - } - - } - if (_has_bits_[24 / 32] & 4278190080u) { - // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; - if (has_dummy_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->dummy_data_param_); - } - - // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; - if (has_eltwise_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->eltwise_param_); - } - - // optional .opencv_caffe.ELUParameter elu_param = 140; - if (has_elu_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->elu_param_); - } - - // optional .opencv_caffe.EmbedParameter embed_param = 137; - if (has_embed_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->embed_param_); - } - - // optional .opencv_caffe.ExpParameter exp_param = 111; - if (has_exp_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->exp_param_); - } - - // optional .opencv_caffe.FlattenParameter flatten_param = 135; - if (has_flatten_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->flatten_param_); - } - - // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; - if (has_hdf5_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->hdf5_data_param_); - } - - // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; - if (has_hdf5_output_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->hdf5_output_param_); - } - - } - if (_has_bits_[32 / 32] & 255u) { - // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; - if (has_hinge_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->hinge_loss_param_); - } - - // optional .opencv_caffe.ImageDataParameter image_data_param = 115; - if (has_image_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->image_data_param_); - } - - // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; - if (has_infogain_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->infogain_loss_param_); - } - - // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; - if (has_inner_product_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->inner_product_param_); - } - - // optional .opencv_caffe.InputParameter input_param = 143; - if (has_input_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->input_param_); - } - - // optional .opencv_caffe.LogParameter log_param = 134; - if (has_log_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->log_param_); - } - - // optional .opencv_caffe.LRNParameter lrn_param = 118; - if (has_lrn_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->lrn_param_); - } - - // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; - if (has_memory_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->memory_data_param_); - } - - } - if (_has_bits_[40 / 32] & 65280u) { - // optional .opencv_caffe.MVNParameter mvn_param = 120; - if (has_mvn_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->mvn_param_); - } - - // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; - if (has_norm_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->norm_param_); - } - - // optional .opencv_caffe.PermuteParameter permute_param = 148; - if (has_permute_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->permute_param_); - } - - // optional .opencv_caffe.ParameterParameter parameter_param = 145; - if (has_parameter_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->parameter_param_); - } - - // optional .opencv_caffe.PoolingParameter pooling_param = 121; - if (has_pooling_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->pooling_param_); - } - - // optional .opencv_caffe.PowerParameter power_param = 122; - if (has_power_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->power_param_); - } - - // optional .opencv_caffe.PReLUParameter prelu_param = 131; - if (has_prelu_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->prelu_param_); - } - - // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; - if (has_prior_box_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->prior_box_param_); - } - - } - if (_has_bits_[48 / 32] & 16711680u) { - // optional .opencv_caffe.ProposalParameter proposal_param = 201; - if (has_proposal_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->proposal_param_); - } - - // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; - if (has_psroi_pooling_param()) { - total_size += 3 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->psroi_pooling_param_); - } - - // optional .opencv_caffe.PythonParameter python_param = 130; - if (has_python_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->python_param_); - } - - // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; - if (has_recurrent_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->recurrent_param_); - } - - // optional .opencv_caffe.ReductionParameter reduction_param = 136; - if (has_reduction_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->reduction_param_); - } - - // optional .opencv_caffe.ReLUParameter relu_param = 123; - if (has_relu_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->relu_param_); - } - - // optional .opencv_caffe.ReshapeParameter reshape_param = 133; - if (has_reshape_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->reshape_param_); - } - - // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; - if (has_roi_pooling_param()) { - total_size += 4 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->roi_pooling_param_); - } - - } - if (_has_bits_[56 / 32] & 4278190080u) { - // optional .opencv_caffe.ScaleParameter scale_param = 142; - if (has_scale_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->scale_param_); - } - - // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; - if (has_sigmoid_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->sigmoid_param_); - } - - // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; - if (has_softmax_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->softmax_param_); - } - - // optional .opencv_caffe.SPPParameter spp_param = 132; - if (has_spp_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->spp_param_); - } - - // optional .opencv_caffe.SliceParameter slice_param = 126; - if (has_slice_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->slice_param_); - } - - // optional .opencv_caffe.TanHParameter tanh_param = 127; - if (has_tanh_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->tanh_param_); - } - - // optional .opencv_caffe.ThresholdParameter threshold_param = 128; - if (has_threshold_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->threshold_param_); - } - - // optional .opencv_caffe.TileParameter tile_param = 138; - if (has_tile_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->tile_param_); - } - - } - // optional .opencv_caffe.WindowDataParameter window_data_param = 129; - if (has_window_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->window_data_param_); - } - - // repeated string bottom = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->bottom_size()); - for (int i = 0; i < this->bottom_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->bottom(i)); - } - - // repeated string top = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->top_size()); - for (int i = 0; i < this->top_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->top(i)); - } - - // repeated float loss_weight = 5; - { - size_t data_size = 0; - unsigned int count = this->loss_weight_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->loss_weight_size()); - total_size += data_size; - } - - // repeated .opencv_caffe.ParamSpec param = 6; - { - unsigned int count = this->param_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->param(i)); - } - } - - // repeated .opencv_caffe.BlobProto blobs = 7; - { - unsigned int count = this->blobs_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->blobs(i)); - } - } - - // repeated bool propagate_down = 11; - { - size_t data_size = 0; - unsigned int count = this->propagate_down_size(); - data_size = 1UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->propagate_down_size()); - total_size += data_size; - } - - // repeated .opencv_caffe.NetStateRule include = 8; - { - unsigned int count = this->include_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->include(i)); - } - } - - // repeated .opencv_caffe.NetStateRule exclude = 9; - { - unsigned int count = this->exclude_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->exclude(i)); - } - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LayerParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LayerParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const LayerParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LayerParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LayerParameter) - UnsafeMergeFrom(*source); - } -} - -void LayerParameter::MergeFrom(const LayerParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LayerParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void LayerParameter::UnsafeMergeFrom(const LayerParameter& from) { - GOOGLE_DCHECK(&from != this); - bottom_.UnsafeMergeFrom(from.bottom_); - top_.UnsafeMergeFrom(from.top_); - loss_weight_.UnsafeMergeFrom(from.loss_weight_); - param_.MergeFrom(from.param_); - blobs_.MergeFrom(from.blobs_); - propagate_down_.UnsafeMergeFrom(from.propagate_down_); - include_.MergeFrom(from.include_); - exclude_.MergeFrom(from.exclude_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { - set_has_name(); - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_type()) { - set_has_type(); - type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); - } - if (from.has_phase()) { - set_phase(from.phase()); - } - } - if (from._has_bits_[11 / 32] & (0xffu << (11 % 32))) { - if (from.has_transform_param()) { - mutable_transform_param()->::opencv_caffe::TransformationParameter::MergeFrom(from.transform_param()); - } - if (from.has_loss_param()) { - mutable_loss_param()->::opencv_caffe::LossParameter::MergeFrom(from.loss_param()); - } - if (from.has_accuracy_param()) { - mutable_accuracy_param()->::opencv_caffe::AccuracyParameter::MergeFrom(from.accuracy_param()); - } - if (from.has_argmax_param()) { - mutable_argmax_param()->::opencv_caffe::ArgMaxParameter::MergeFrom(from.argmax_param()); - } - if (from.has_batch_norm_param()) { - mutable_batch_norm_param()->::opencv_caffe::BatchNormParameter::MergeFrom(from.batch_norm_param()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_bias_param()) { - mutable_bias_param()->::opencv_caffe::BiasParameter::MergeFrom(from.bias_param()); - } - if (from.has_concat_param()) { - mutable_concat_param()->::opencv_caffe::ConcatParameter::MergeFrom(from.concat_param()); - } - if (from.has_contrastive_loss_param()) { - mutable_contrastive_loss_param()->::opencv_caffe::ContrastiveLossParameter::MergeFrom(from.contrastive_loss_param()); - } - if (from.has_convolution_param()) { - mutable_convolution_param()->::opencv_caffe::ConvolutionParameter::MergeFrom(from.convolution_param()); - } - if (from.has_crop_param()) { - mutable_crop_param()->::opencv_caffe::CropParameter::MergeFrom(from.crop_param()); - } - if (from.has_data_param()) { - mutable_data_param()->::opencv_caffe::DataParameter::MergeFrom(from.data_param()); - } - if (from.has_detection_output_param()) { - mutable_detection_output_param()->::opencv_caffe::DetectionOutputParameter::MergeFrom(from.detection_output_param()); - } - if (from.has_dropout_param()) { - mutable_dropout_param()->::opencv_caffe::DropoutParameter::MergeFrom(from.dropout_param()); - } - } - if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) { - if (from.has_dummy_data_param()) { - mutable_dummy_data_param()->::opencv_caffe::DummyDataParameter::MergeFrom(from.dummy_data_param()); - } - if (from.has_eltwise_param()) { - mutable_eltwise_param()->::opencv_caffe::EltwiseParameter::MergeFrom(from.eltwise_param()); - } - if (from.has_elu_param()) { - mutable_elu_param()->::opencv_caffe::ELUParameter::MergeFrom(from.elu_param()); - } - if (from.has_embed_param()) { - mutable_embed_param()->::opencv_caffe::EmbedParameter::MergeFrom(from.embed_param()); - } - if (from.has_exp_param()) { - mutable_exp_param()->::opencv_caffe::ExpParameter::MergeFrom(from.exp_param()); - } - if (from.has_flatten_param()) { - mutable_flatten_param()->::opencv_caffe::FlattenParameter::MergeFrom(from.flatten_param()); - } - if (from.has_hdf5_data_param()) { - mutable_hdf5_data_param()->::opencv_caffe::HDF5DataParameter::MergeFrom(from.hdf5_data_param()); - } - if (from.has_hdf5_output_param()) { - mutable_hdf5_output_param()->::opencv_caffe::HDF5OutputParameter::MergeFrom(from.hdf5_output_param()); - } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_hinge_loss_param()) { - mutable_hinge_loss_param()->::opencv_caffe::HingeLossParameter::MergeFrom(from.hinge_loss_param()); - } - if (from.has_image_data_param()) { - mutable_image_data_param()->::opencv_caffe::ImageDataParameter::MergeFrom(from.image_data_param()); - } - if (from.has_infogain_loss_param()) { - mutable_infogain_loss_param()->::opencv_caffe::InfogainLossParameter::MergeFrom(from.infogain_loss_param()); - } - if (from.has_inner_product_param()) { - mutable_inner_product_param()->::opencv_caffe::InnerProductParameter::MergeFrom(from.inner_product_param()); - } - if (from.has_input_param()) { - mutable_input_param()->::opencv_caffe::InputParameter::MergeFrom(from.input_param()); - } - if (from.has_log_param()) { - mutable_log_param()->::opencv_caffe::LogParameter::MergeFrom(from.log_param()); - } - if (from.has_lrn_param()) { - mutable_lrn_param()->::opencv_caffe::LRNParameter::MergeFrom(from.lrn_param()); - } - if (from.has_memory_data_param()) { - mutable_memory_data_param()->::opencv_caffe::MemoryDataParameter::MergeFrom(from.memory_data_param()); - } - } - if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (from.has_mvn_param()) { - mutable_mvn_param()->::opencv_caffe::MVNParameter::MergeFrom(from.mvn_param()); - } - if (from.has_norm_param()) { - mutable_norm_param()->::opencv_caffe::NormalizeBBoxParameter::MergeFrom(from.norm_param()); - } - if (from.has_permute_param()) { - mutable_permute_param()->::opencv_caffe::PermuteParameter::MergeFrom(from.permute_param()); - } - if (from.has_parameter_param()) { - mutable_parameter_param()->::opencv_caffe::ParameterParameter::MergeFrom(from.parameter_param()); - } - if (from.has_pooling_param()) { - mutable_pooling_param()->::opencv_caffe::PoolingParameter::MergeFrom(from.pooling_param()); - } - if (from.has_power_param()) { - mutable_power_param()->::opencv_caffe::PowerParameter::MergeFrom(from.power_param()); - } - if (from.has_prelu_param()) { - mutable_prelu_param()->::opencv_caffe::PReLUParameter::MergeFrom(from.prelu_param()); - } - if (from.has_prior_box_param()) { - mutable_prior_box_param()->::opencv_caffe::PriorBoxParameter::MergeFrom(from.prior_box_param()); - } - } - if (from._has_bits_[48 / 32] & (0xffu << (48 % 32))) { - if (from.has_proposal_param()) { - mutable_proposal_param()->::opencv_caffe::ProposalParameter::MergeFrom(from.proposal_param()); - } - if (from.has_psroi_pooling_param()) { - mutable_psroi_pooling_param()->::opencv_caffe::PSROIPoolingParameter::MergeFrom(from.psroi_pooling_param()); - } - if (from.has_python_param()) { - mutable_python_param()->::opencv_caffe::PythonParameter::MergeFrom(from.python_param()); - } - if (from.has_recurrent_param()) { - mutable_recurrent_param()->::opencv_caffe::RecurrentParameter::MergeFrom(from.recurrent_param()); - } - if (from.has_reduction_param()) { - mutable_reduction_param()->::opencv_caffe::ReductionParameter::MergeFrom(from.reduction_param()); - } - if (from.has_relu_param()) { - mutable_relu_param()->::opencv_caffe::ReLUParameter::MergeFrom(from.relu_param()); - } - if (from.has_reshape_param()) { - mutable_reshape_param()->::opencv_caffe::ReshapeParameter::MergeFrom(from.reshape_param()); - } - if (from.has_roi_pooling_param()) { - mutable_roi_pooling_param()->::opencv_caffe::ROIPoolingParameter::MergeFrom(from.roi_pooling_param()); - } - } - if (from._has_bits_[56 / 32] & (0xffu << (56 % 32))) { - if (from.has_scale_param()) { - mutable_scale_param()->::opencv_caffe::ScaleParameter::MergeFrom(from.scale_param()); - } - if (from.has_sigmoid_param()) { - mutable_sigmoid_param()->::opencv_caffe::SigmoidParameter::MergeFrom(from.sigmoid_param()); - } - if (from.has_softmax_param()) { - mutable_softmax_param()->::opencv_caffe::SoftmaxParameter::MergeFrom(from.softmax_param()); - } - if (from.has_spp_param()) { - mutable_spp_param()->::opencv_caffe::SPPParameter::MergeFrom(from.spp_param()); - } - if (from.has_slice_param()) { - mutable_slice_param()->::opencv_caffe::SliceParameter::MergeFrom(from.slice_param()); - } - if (from.has_tanh_param()) { - mutable_tanh_param()->::opencv_caffe::TanHParameter::MergeFrom(from.tanh_param()); - } - if (from.has_threshold_param()) { - mutable_threshold_param()->::opencv_caffe::ThresholdParameter::MergeFrom(from.threshold_param()); - } - if (from.has_tile_param()) { - mutable_tile_param()->::opencv_caffe::TileParameter::MergeFrom(from.tile_param()); - } - } - if (from._has_bits_[64 / 32] & (0xffu << (64 % 32))) { - if (from.has_window_data_param()) { - mutable_window_data_param()->::opencv_caffe::WindowDataParameter::MergeFrom(from.window_data_param()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void LayerParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LayerParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LayerParameter::CopyFrom(const LayerParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LayerParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool LayerParameter::IsInitialized() const { - - if (has_psroi_pooling_param()) { - if (!this->psroi_pooling_param_->IsInitialized()) return false; - } - return true; -} - -void LayerParameter::Swap(LayerParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void LayerParameter::InternalSwap(LayerParameter* other) { - name_.Swap(&other->name_); - type_.Swap(&other->type_); - bottom_.UnsafeArenaSwap(&other->bottom_); - top_.UnsafeArenaSwap(&other->top_); - std::swap(phase_, other->phase_); - loss_weight_.UnsafeArenaSwap(&other->loss_weight_); - param_.UnsafeArenaSwap(&other->param_); - blobs_.UnsafeArenaSwap(&other->blobs_); - propagate_down_.UnsafeArenaSwap(&other->propagate_down_); - include_.UnsafeArenaSwap(&other->include_); - exclude_.UnsafeArenaSwap(&other->exclude_); - std::swap(transform_param_, other->transform_param_); - std::swap(loss_param_, other->loss_param_); - std::swap(accuracy_param_, other->accuracy_param_); - std::swap(argmax_param_, other->argmax_param_); - std::swap(batch_norm_param_, other->batch_norm_param_); - std::swap(bias_param_, other->bias_param_); - std::swap(concat_param_, other->concat_param_); - std::swap(contrastive_loss_param_, other->contrastive_loss_param_); - std::swap(convolution_param_, other->convolution_param_); - std::swap(crop_param_, other->crop_param_); - std::swap(data_param_, other->data_param_); - std::swap(detection_output_param_, other->detection_output_param_); - std::swap(dropout_param_, other->dropout_param_); - std::swap(dummy_data_param_, other->dummy_data_param_); - std::swap(eltwise_param_, other->eltwise_param_); - std::swap(elu_param_, other->elu_param_); - std::swap(embed_param_, other->embed_param_); - std::swap(exp_param_, other->exp_param_); - std::swap(flatten_param_, other->flatten_param_); - std::swap(hdf5_data_param_, other->hdf5_data_param_); - std::swap(hdf5_output_param_, other->hdf5_output_param_); - std::swap(hinge_loss_param_, other->hinge_loss_param_); - std::swap(image_data_param_, other->image_data_param_); - std::swap(infogain_loss_param_, other->infogain_loss_param_); - std::swap(inner_product_param_, other->inner_product_param_); - std::swap(input_param_, other->input_param_); - std::swap(log_param_, other->log_param_); - std::swap(lrn_param_, other->lrn_param_); - std::swap(memory_data_param_, other->memory_data_param_); - std::swap(mvn_param_, other->mvn_param_); - std::swap(norm_param_, other->norm_param_); - std::swap(permute_param_, other->permute_param_); - std::swap(parameter_param_, other->parameter_param_); - std::swap(pooling_param_, other->pooling_param_); - std::swap(power_param_, other->power_param_); - std::swap(prelu_param_, other->prelu_param_); - std::swap(prior_box_param_, other->prior_box_param_); - std::swap(proposal_param_, other->proposal_param_); - std::swap(psroi_pooling_param_, other->psroi_pooling_param_); - std::swap(python_param_, other->python_param_); - std::swap(recurrent_param_, other->recurrent_param_); - std::swap(reduction_param_, other->reduction_param_); - std::swap(relu_param_, other->relu_param_); - std::swap(reshape_param_, other->reshape_param_); - std::swap(roi_pooling_param_, other->roi_pooling_param_); - std::swap(scale_param_, other->scale_param_); - std::swap(sigmoid_param_, other->sigmoid_param_); - std::swap(softmax_param_, other->softmax_param_); - std::swap(spp_param_, other->spp_param_); - std::swap(slice_param_, other->slice_param_); - std::swap(tanh_param_, other->tanh_param_); - std::swap(threshold_param_, other->threshold_param_); - std::swap(tile_param_, other->tile_param_); - std::swap(window_data_param_, other->window_data_param_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_has_bits_[1], other->_has_bits_[1]); - std::swap(_has_bits_[2], other->_has_bits_[2]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata LayerParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = LayerParameter_descriptor_; - metadata.reflection = LayerParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// LayerParameter - -// optional string name = 1; -bool LayerParameter::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void LayerParameter::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -void LayerParameter::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -void LayerParameter::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_name(); -} -const ::std::string& LayerParameter::name() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void LayerParameter::set_name(const ::std::string& value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.name) -} -void LayerParameter::set_name(const char* value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.LayerParameter.name) -} -void LayerParameter::set_name(const char* value, size_t size) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.LayerParameter.name) -} -::std::string* LayerParameter::mutable_name() { - set_has_name(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* LayerParameter::release_name() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.name) - clear_has_name(); - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void LayerParameter::set_allocated_name(::std::string* name) { - if (name != NULL) { - set_has_name(); - } else { - clear_has_name(); - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.name) -} - -// optional string type = 2; -bool LayerParameter::has_type() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void LayerParameter::set_has_type() { - _has_bits_[0] |= 0x00000002u; -} -void LayerParameter::clear_has_type() { - _has_bits_[0] &= ~0x00000002u; -} -void LayerParameter::clear_type() { - type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_type(); -} -const ::std::string& LayerParameter::type() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.type) - return type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void LayerParameter::set_type(const ::std::string& value) { - set_has_type(); - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.type) -} -void LayerParameter::set_type(const char* value) { - set_has_type(); - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.LayerParameter.type) -} -void LayerParameter::set_type(const char* value, size_t size) { - set_has_type(); - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.LayerParameter.type) -} -::std::string* LayerParameter::mutable_type() { - set_has_type(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.type) - return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* LayerParameter::release_type() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.type) - clear_has_type(); - return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void LayerParameter::set_allocated_type(::std::string* type) { - if (type != NULL) { - set_has_type(); - } else { - clear_has_type(); - } - type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.type) -} - -// repeated string bottom = 3; -int LayerParameter::bottom_size() const { - return bottom_.size(); -} -void LayerParameter::clear_bottom() { - bottom_.Clear(); -} -const ::std::string& LayerParameter::bottom(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.bottom) - return bottom_.Get(index); -} -::std::string* LayerParameter::mutable_bottom(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.bottom) - return bottom_.Mutable(index); -} -void LayerParameter::set_bottom(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.bottom) - bottom_.Mutable(index)->assign(value); -} -void LayerParameter::set_bottom(int index, const char* value) { - bottom_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.LayerParameter.bottom) -} -void LayerParameter::set_bottom(int index, const char* value, size_t size) { - bottom_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.LayerParameter.bottom) -} -::std::string* LayerParameter::add_bottom() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.LayerParameter.bottom) - return bottom_.Add(); -} -void LayerParameter::add_bottom(const ::std::string& value) { - bottom_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.bottom) -} -void LayerParameter::add_bottom(const char* value) { - bottom_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.LayerParameter.bottom) -} -void LayerParameter::add_bottom(const char* value, size_t size) { - bottom_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.LayerParameter.bottom) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -LayerParameter::bottom() const { - // @@protoc_insertion_point(field_list:opencv_caffe.LayerParameter.bottom) - return bottom_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -LayerParameter::mutable_bottom() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.LayerParameter.bottom) - return &bottom_; -} - -// repeated string top = 4; -int LayerParameter::top_size() const { - return top_.size(); -} -void LayerParameter::clear_top() { - top_.Clear(); -} -const ::std::string& LayerParameter::top(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.top) - return top_.Get(index); -} -::std::string* LayerParameter::mutable_top(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.top) - return top_.Mutable(index); -} -void LayerParameter::set_top(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.top) - top_.Mutable(index)->assign(value); -} -void LayerParameter::set_top(int index, const char* value) { - top_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.LayerParameter.top) -} -void LayerParameter::set_top(int index, const char* value, size_t size) { - top_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.LayerParameter.top) -} -::std::string* LayerParameter::add_top() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.LayerParameter.top) - return top_.Add(); -} -void LayerParameter::add_top(const ::std::string& value) { - top_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.top) -} -void LayerParameter::add_top(const char* value) { - top_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.LayerParameter.top) -} -void LayerParameter::add_top(const char* value, size_t size) { - top_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.LayerParameter.top) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -LayerParameter::top() const { - // @@protoc_insertion_point(field_list:opencv_caffe.LayerParameter.top) - return top_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -LayerParameter::mutable_top() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.LayerParameter.top) - return &top_; -} - -// optional .opencv_caffe.Phase phase = 10; -bool LayerParameter::has_phase() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void LayerParameter::set_has_phase() { - _has_bits_[0] |= 0x00000010u; -} -void LayerParameter::clear_has_phase() { - _has_bits_[0] &= ~0x00000010u; -} -void LayerParameter::clear_phase() { - phase_ = 0; - clear_has_phase(); -} -::opencv_caffe::Phase LayerParameter::phase() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.phase) - return static_cast< ::opencv_caffe::Phase >(phase_); -} -void LayerParameter::set_phase(::opencv_caffe::Phase value) { - assert(::opencv_caffe::Phase_IsValid(value)); - set_has_phase(); - phase_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.phase) -} - -// repeated float loss_weight = 5; -int LayerParameter::loss_weight_size() const { - return loss_weight_.size(); -} -void LayerParameter::clear_loss_weight() { - loss_weight_.Clear(); -} -float LayerParameter::loss_weight(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.loss_weight) - return loss_weight_.Get(index); -} -void LayerParameter::set_loss_weight(int index, float value) { - loss_weight_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.loss_weight) -} -void LayerParameter::add_loss_weight(float value) { - loss_weight_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.loss_weight) -} -const ::google::protobuf::RepeatedField< float >& -LayerParameter::loss_weight() const { - // @@protoc_insertion_point(field_list:opencv_caffe.LayerParameter.loss_weight) - return loss_weight_; -} -::google::protobuf::RepeatedField< float >* -LayerParameter::mutable_loss_weight() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.LayerParameter.loss_weight) - return &loss_weight_; -} - -// repeated .opencv_caffe.ParamSpec param = 6; -int LayerParameter::param_size() const { - return param_.size(); -} -void LayerParameter::clear_param() { - param_.Clear(); -} -const ::opencv_caffe::ParamSpec& LayerParameter::param(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.param) - return param_.Get(index); -} -::opencv_caffe::ParamSpec* LayerParameter::mutable_param(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.param) - return param_.Mutable(index); -} -::opencv_caffe::ParamSpec* LayerParameter::add_param() { - // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.param) - return param_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::ParamSpec >* -LayerParameter::mutable_param() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.LayerParameter.param) - return ¶m_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::ParamSpec >& -LayerParameter::param() const { - // @@protoc_insertion_point(field_list:opencv_caffe.LayerParameter.param) - return param_; -} - -// repeated .opencv_caffe.BlobProto blobs = 7; -int LayerParameter::blobs_size() const { - return blobs_.size(); -} -void LayerParameter::clear_blobs() { - blobs_.Clear(); -} -const ::opencv_caffe::BlobProto& LayerParameter::blobs(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.blobs) - return blobs_.Get(index); -} -::opencv_caffe::BlobProto* LayerParameter::mutable_blobs(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.blobs) - return blobs_.Mutable(index); -} -::opencv_caffe::BlobProto* LayerParameter::add_blobs() { - // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.blobs) - return blobs_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >* -LayerParameter::mutable_blobs() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.LayerParameter.blobs) - return &blobs_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >& -LayerParameter::blobs() const { - // @@protoc_insertion_point(field_list:opencv_caffe.LayerParameter.blobs) - return blobs_; -} - -// repeated bool propagate_down = 11; -int LayerParameter::propagate_down_size() const { - return propagate_down_.size(); -} -void LayerParameter::clear_propagate_down() { - propagate_down_.Clear(); -} -bool LayerParameter::propagate_down(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.propagate_down) - return propagate_down_.Get(index); -} -void LayerParameter::set_propagate_down(int index, bool value) { - propagate_down_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.propagate_down) -} -void LayerParameter::add_propagate_down(bool value) { - propagate_down_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.propagate_down) -} -const ::google::protobuf::RepeatedField< bool >& -LayerParameter::propagate_down() const { - // @@protoc_insertion_point(field_list:opencv_caffe.LayerParameter.propagate_down) - return propagate_down_; -} -::google::protobuf::RepeatedField< bool >* -LayerParameter::mutable_propagate_down() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.LayerParameter.propagate_down) - return &propagate_down_; -} - -// repeated .opencv_caffe.NetStateRule include = 8; -int LayerParameter::include_size() const { - return include_.size(); -} -void LayerParameter::clear_include() { - include_.Clear(); -} -const ::opencv_caffe::NetStateRule& LayerParameter::include(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.include) - return include_.Get(index); -} -::opencv_caffe::NetStateRule* LayerParameter::mutable_include(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.include) - return include_.Mutable(index); -} -::opencv_caffe::NetStateRule* LayerParameter::add_include() { - // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.include) - return include_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >* -LayerParameter::mutable_include() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.LayerParameter.include) - return &include_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >& -LayerParameter::include() const { - // @@protoc_insertion_point(field_list:opencv_caffe.LayerParameter.include) - return include_; -} - -// repeated .opencv_caffe.NetStateRule exclude = 9; -int LayerParameter::exclude_size() const { - return exclude_.size(); -} -void LayerParameter::clear_exclude() { - exclude_.Clear(); -} -const ::opencv_caffe::NetStateRule& LayerParameter::exclude(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.exclude) - return exclude_.Get(index); -} -::opencv_caffe::NetStateRule* LayerParameter::mutable_exclude(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.exclude) - return exclude_.Mutable(index); -} -::opencv_caffe::NetStateRule* LayerParameter::add_exclude() { - // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.exclude) - return exclude_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >* -LayerParameter::mutable_exclude() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.LayerParameter.exclude) - return &exclude_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >& -LayerParameter::exclude() const { - // @@protoc_insertion_point(field_list:opencv_caffe.LayerParameter.exclude) - return exclude_; -} - -// optional .opencv_caffe.TransformationParameter transform_param = 100; -bool LayerParameter::has_transform_param() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -void LayerParameter::set_has_transform_param() { - _has_bits_[0] |= 0x00000800u; -} -void LayerParameter::clear_has_transform_param() { - _has_bits_[0] &= ~0x00000800u; -} -void LayerParameter::clear_transform_param() { - if (transform_param_ != NULL) transform_param_->::opencv_caffe::TransformationParameter::Clear(); - clear_has_transform_param(); -} -const ::opencv_caffe::TransformationParameter& LayerParameter::transform_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.transform_param) - return transform_param_ != NULL ? *transform_param_ - : *::opencv_caffe::TransformationParameter::internal_default_instance(); -} -::opencv_caffe::TransformationParameter* LayerParameter::mutable_transform_param() { - set_has_transform_param(); - if (transform_param_ == NULL) { - transform_param_ = new ::opencv_caffe::TransformationParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.transform_param) - return transform_param_; -} -::opencv_caffe::TransformationParameter* LayerParameter::release_transform_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.transform_param) - clear_has_transform_param(); - ::opencv_caffe::TransformationParameter* temp = transform_param_; - transform_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_transform_param(::opencv_caffe::TransformationParameter* transform_param) { - delete transform_param_; - transform_param_ = transform_param; - if (transform_param) { - set_has_transform_param(); - } else { - clear_has_transform_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.transform_param) -} - -// optional .opencv_caffe.LossParameter loss_param = 101; -bool LayerParameter::has_loss_param() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -void LayerParameter::set_has_loss_param() { - _has_bits_[0] |= 0x00001000u; -} -void LayerParameter::clear_has_loss_param() { - _has_bits_[0] &= ~0x00001000u; -} -void LayerParameter::clear_loss_param() { - if (loss_param_ != NULL) loss_param_->::opencv_caffe::LossParameter::Clear(); - clear_has_loss_param(); -} -const ::opencv_caffe::LossParameter& LayerParameter::loss_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.loss_param) - return loss_param_ != NULL ? *loss_param_ - : *::opencv_caffe::LossParameter::internal_default_instance(); -} -::opencv_caffe::LossParameter* LayerParameter::mutable_loss_param() { - set_has_loss_param(); - if (loss_param_ == NULL) { - loss_param_ = new ::opencv_caffe::LossParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.loss_param) - return loss_param_; -} -::opencv_caffe::LossParameter* LayerParameter::release_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.loss_param) - clear_has_loss_param(); - ::opencv_caffe::LossParameter* temp = loss_param_; - loss_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_loss_param(::opencv_caffe::LossParameter* loss_param) { - delete loss_param_; - loss_param_ = loss_param; - if (loss_param) { - set_has_loss_param(); - } else { - clear_has_loss_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.loss_param) -} - -// optional .opencv_caffe.AccuracyParameter accuracy_param = 102; -bool LayerParameter::has_accuracy_param() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -void LayerParameter::set_has_accuracy_param() { - _has_bits_[0] |= 0x00002000u; -} -void LayerParameter::clear_has_accuracy_param() { - _has_bits_[0] &= ~0x00002000u; -} -void LayerParameter::clear_accuracy_param() { - if (accuracy_param_ != NULL) accuracy_param_->::opencv_caffe::AccuracyParameter::Clear(); - clear_has_accuracy_param(); -} -const ::opencv_caffe::AccuracyParameter& LayerParameter::accuracy_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.accuracy_param) - return accuracy_param_ != NULL ? *accuracy_param_ - : *::opencv_caffe::AccuracyParameter::internal_default_instance(); -} -::opencv_caffe::AccuracyParameter* LayerParameter::mutable_accuracy_param() { - set_has_accuracy_param(); - if (accuracy_param_ == NULL) { - accuracy_param_ = new ::opencv_caffe::AccuracyParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.accuracy_param) - return accuracy_param_; -} -::opencv_caffe::AccuracyParameter* LayerParameter::release_accuracy_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.accuracy_param) - clear_has_accuracy_param(); - ::opencv_caffe::AccuracyParameter* temp = accuracy_param_; - accuracy_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_accuracy_param(::opencv_caffe::AccuracyParameter* accuracy_param) { - delete accuracy_param_; - accuracy_param_ = accuracy_param; - if (accuracy_param) { - set_has_accuracy_param(); - } else { - clear_has_accuracy_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.accuracy_param) -} - -// optional .opencv_caffe.ArgMaxParameter argmax_param = 103; -bool LayerParameter::has_argmax_param() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -void LayerParameter::set_has_argmax_param() { - _has_bits_[0] |= 0x00004000u; -} -void LayerParameter::clear_has_argmax_param() { - _has_bits_[0] &= ~0x00004000u; -} -void LayerParameter::clear_argmax_param() { - if (argmax_param_ != NULL) argmax_param_->::opencv_caffe::ArgMaxParameter::Clear(); - clear_has_argmax_param(); -} -const ::opencv_caffe::ArgMaxParameter& LayerParameter::argmax_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.argmax_param) - return argmax_param_ != NULL ? *argmax_param_ - : *::opencv_caffe::ArgMaxParameter::internal_default_instance(); -} -::opencv_caffe::ArgMaxParameter* LayerParameter::mutable_argmax_param() { - set_has_argmax_param(); - if (argmax_param_ == NULL) { - argmax_param_ = new ::opencv_caffe::ArgMaxParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.argmax_param) - return argmax_param_; -} -::opencv_caffe::ArgMaxParameter* LayerParameter::release_argmax_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.argmax_param) - clear_has_argmax_param(); - ::opencv_caffe::ArgMaxParameter* temp = argmax_param_; - argmax_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_argmax_param(::opencv_caffe::ArgMaxParameter* argmax_param) { - delete argmax_param_; - argmax_param_ = argmax_param; - if (argmax_param) { - set_has_argmax_param(); - } else { - clear_has_argmax_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.argmax_param) -} - -// optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; -bool LayerParameter::has_batch_norm_param() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -void LayerParameter::set_has_batch_norm_param() { - _has_bits_[0] |= 0x00008000u; -} -void LayerParameter::clear_has_batch_norm_param() { - _has_bits_[0] &= ~0x00008000u; -} -void LayerParameter::clear_batch_norm_param() { - if (batch_norm_param_ != NULL) batch_norm_param_->::opencv_caffe::BatchNormParameter::Clear(); - clear_has_batch_norm_param(); -} -const ::opencv_caffe::BatchNormParameter& LayerParameter::batch_norm_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.batch_norm_param) - return batch_norm_param_ != NULL ? *batch_norm_param_ - : *::opencv_caffe::BatchNormParameter::internal_default_instance(); -} -::opencv_caffe::BatchNormParameter* LayerParameter::mutable_batch_norm_param() { - set_has_batch_norm_param(); - if (batch_norm_param_ == NULL) { - batch_norm_param_ = new ::opencv_caffe::BatchNormParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.batch_norm_param) - return batch_norm_param_; -} -::opencv_caffe::BatchNormParameter* LayerParameter::release_batch_norm_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.batch_norm_param) - clear_has_batch_norm_param(); - ::opencv_caffe::BatchNormParameter* temp = batch_norm_param_; - batch_norm_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_batch_norm_param(::opencv_caffe::BatchNormParameter* batch_norm_param) { - delete batch_norm_param_; - batch_norm_param_ = batch_norm_param; - if (batch_norm_param) { - set_has_batch_norm_param(); - } else { - clear_has_batch_norm_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.batch_norm_param) -} - -// optional .opencv_caffe.BiasParameter bias_param = 141; -bool LayerParameter::has_bias_param() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -void LayerParameter::set_has_bias_param() { - _has_bits_[0] |= 0x00010000u; -} -void LayerParameter::clear_has_bias_param() { - _has_bits_[0] &= ~0x00010000u; -} -void LayerParameter::clear_bias_param() { - if (bias_param_ != NULL) bias_param_->::opencv_caffe::BiasParameter::Clear(); - clear_has_bias_param(); -} -const ::opencv_caffe::BiasParameter& LayerParameter::bias_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.bias_param) - return bias_param_ != NULL ? *bias_param_ - : *::opencv_caffe::BiasParameter::internal_default_instance(); -} -::opencv_caffe::BiasParameter* LayerParameter::mutable_bias_param() { - set_has_bias_param(); - if (bias_param_ == NULL) { - bias_param_ = new ::opencv_caffe::BiasParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.bias_param) - return bias_param_; -} -::opencv_caffe::BiasParameter* LayerParameter::release_bias_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.bias_param) - clear_has_bias_param(); - ::opencv_caffe::BiasParameter* temp = bias_param_; - bias_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_bias_param(::opencv_caffe::BiasParameter* bias_param) { - delete bias_param_; - bias_param_ = bias_param; - if (bias_param) { - set_has_bias_param(); - } else { - clear_has_bias_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.bias_param) -} - -// optional .opencv_caffe.ConcatParameter concat_param = 104; -bool LayerParameter::has_concat_param() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -void LayerParameter::set_has_concat_param() { - _has_bits_[0] |= 0x00020000u; -} -void LayerParameter::clear_has_concat_param() { - _has_bits_[0] &= ~0x00020000u; -} -void LayerParameter::clear_concat_param() { - if (concat_param_ != NULL) concat_param_->::opencv_caffe::ConcatParameter::Clear(); - clear_has_concat_param(); -} -const ::opencv_caffe::ConcatParameter& LayerParameter::concat_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.concat_param) - return concat_param_ != NULL ? *concat_param_ - : *::opencv_caffe::ConcatParameter::internal_default_instance(); -} -::opencv_caffe::ConcatParameter* LayerParameter::mutable_concat_param() { - set_has_concat_param(); - if (concat_param_ == NULL) { - concat_param_ = new ::opencv_caffe::ConcatParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.concat_param) - return concat_param_; -} -::opencv_caffe::ConcatParameter* LayerParameter::release_concat_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.concat_param) - clear_has_concat_param(); - ::opencv_caffe::ConcatParameter* temp = concat_param_; - concat_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_concat_param(::opencv_caffe::ConcatParameter* concat_param) { - delete concat_param_; - concat_param_ = concat_param; - if (concat_param) { - set_has_concat_param(); - } else { - clear_has_concat_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.concat_param) -} - -// optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; -bool LayerParameter::has_contrastive_loss_param() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -void LayerParameter::set_has_contrastive_loss_param() { - _has_bits_[0] |= 0x00040000u; -} -void LayerParameter::clear_has_contrastive_loss_param() { - _has_bits_[0] &= ~0x00040000u; -} -void LayerParameter::clear_contrastive_loss_param() { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::opencv_caffe::ContrastiveLossParameter::Clear(); - clear_has_contrastive_loss_param(); -} -const ::opencv_caffe::ContrastiveLossParameter& LayerParameter::contrastive_loss_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.contrastive_loss_param) - return contrastive_loss_param_ != NULL ? *contrastive_loss_param_ - : *::opencv_caffe::ContrastiveLossParameter::internal_default_instance(); -} -::opencv_caffe::ContrastiveLossParameter* LayerParameter::mutable_contrastive_loss_param() { - set_has_contrastive_loss_param(); - if (contrastive_loss_param_ == NULL) { - contrastive_loss_param_ = new ::opencv_caffe::ContrastiveLossParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.contrastive_loss_param) - return contrastive_loss_param_; -} -::opencv_caffe::ContrastiveLossParameter* LayerParameter::release_contrastive_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.contrastive_loss_param) - clear_has_contrastive_loss_param(); - ::opencv_caffe::ContrastiveLossParameter* temp = contrastive_loss_param_; - contrastive_loss_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_contrastive_loss_param(::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param) { - delete contrastive_loss_param_; - contrastive_loss_param_ = contrastive_loss_param; - if (contrastive_loss_param) { - set_has_contrastive_loss_param(); - } else { - clear_has_contrastive_loss_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.contrastive_loss_param) -} - -// optional .opencv_caffe.ConvolutionParameter convolution_param = 106; -bool LayerParameter::has_convolution_param() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -void LayerParameter::set_has_convolution_param() { - _has_bits_[0] |= 0x00080000u; -} -void LayerParameter::clear_has_convolution_param() { - _has_bits_[0] &= ~0x00080000u; -} -void LayerParameter::clear_convolution_param() { - if (convolution_param_ != NULL) convolution_param_->::opencv_caffe::ConvolutionParameter::Clear(); - clear_has_convolution_param(); -} -const ::opencv_caffe::ConvolutionParameter& LayerParameter::convolution_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.convolution_param) - return convolution_param_ != NULL ? *convolution_param_ - : *::opencv_caffe::ConvolutionParameter::internal_default_instance(); -} -::opencv_caffe::ConvolutionParameter* LayerParameter::mutable_convolution_param() { - set_has_convolution_param(); - if (convolution_param_ == NULL) { - convolution_param_ = new ::opencv_caffe::ConvolutionParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.convolution_param) - return convolution_param_; -} -::opencv_caffe::ConvolutionParameter* LayerParameter::release_convolution_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.convolution_param) - clear_has_convolution_param(); - ::opencv_caffe::ConvolutionParameter* temp = convolution_param_; - convolution_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_convolution_param(::opencv_caffe::ConvolutionParameter* convolution_param) { - delete convolution_param_; - convolution_param_ = convolution_param; - if (convolution_param) { - set_has_convolution_param(); - } else { - clear_has_convolution_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.convolution_param) -} - -// optional .opencv_caffe.CropParameter crop_param = 144; -bool LayerParameter::has_crop_param() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -void LayerParameter::set_has_crop_param() { - _has_bits_[0] |= 0x00100000u; -} -void LayerParameter::clear_has_crop_param() { - _has_bits_[0] &= ~0x00100000u; -} -void LayerParameter::clear_crop_param() { - if (crop_param_ != NULL) crop_param_->::opencv_caffe::CropParameter::Clear(); - clear_has_crop_param(); -} -const ::opencv_caffe::CropParameter& LayerParameter::crop_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.crop_param) - return crop_param_ != NULL ? *crop_param_ - : *::opencv_caffe::CropParameter::internal_default_instance(); -} -::opencv_caffe::CropParameter* LayerParameter::mutable_crop_param() { - set_has_crop_param(); - if (crop_param_ == NULL) { - crop_param_ = new ::opencv_caffe::CropParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.crop_param) - return crop_param_; -} -::opencv_caffe::CropParameter* LayerParameter::release_crop_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.crop_param) - clear_has_crop_param(); - ::opencv_caffe::CropParameter* temp = crop_param_; - crop_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_crop_param(::opencv_caffe::CropParameter* crop_param) { - delete crop_param_; - crop_param_ = crop_param; - if (crop_param) { - set_has_crop_param(); - } else { - clear_has_crop_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.crop_param) -} - -// optional .opencv_caffe.DataParameter data_param = 107; -bool LayerParameter::has_data_param() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -void LayerParameter::set_has_data_param() { - _has_bits_[0] |= 0x00200000u; -} -void LayerParameter::clear_has_data_param() { - _has_bits_[0] &= ~0x00200000u; -} -void LayerParameter::clear_data_param() { - if (data_param_ != NULL) data_param_->::opencv_caffe::DataParameter::Clear(); - clear_has_data_param(); -} -const ::opencv_caffe::DataParameter& LayerParameter::data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.data_param) - return data_param_ != NULL ? *data_param_ - : *::opencv_caffe::DataParameter::internal_default_instance(); -} -::opencv_caffe::DataParameter* LayerParameter::mutable_data_param() { - set_has_data_param(); - if (data_param_ == NULL) { - data_param_ = new ::opencv_caffe::DataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.data_param) - return data_param_; -} -::opencv_caffe::DataParameter* LayerParameter::release_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.data_param) - clear_has_data_param(); - ::opencv_caffe::DataParameter* temp = data_param_; - data_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_data_param(::opencv_caffe::DataParameter* data_param) { - delete data_param_; - data_param_ = data_param; - if (data_param) { - set_has_data_param(); - } else { - clear_has_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.data_param) -} - -// optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; -bool LayerParameter::has_detection_output_param() const { - return (_has_bits_[0] & 0x00400000u) != 0; -} -void LayerParameter::set_has_detection_output_param() { - _has_bits_[0] |= 0x00400000u; -} -void LayerParameter::clear_has_detection_output_param() { - _has_bits_[0] &= ~0x00400000u; -} -void LayerParameter::clear_detection_output_param() { - if (detection_output_param_ != NULL) detection_output_param_->::opencv_caffe::DetectionOutputParameter::Clear(); - clear_has_detection_output_param(); -} -const ::opencv_caffe::DetectionOutputParameter& LayerParameter::detection_output_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.detection_output_param) - return detection_output_param_ != NULL ? *detection_output_param_ - : *::opencv_caffe::DetectionOutputParameter::internal_default_instance(); -} -::opencv_caffe::DetectionOutputParameter* LayerParameter::mutable_detection_output_param() { - set_has_detection_output_param(); - if (detection_output_param_ == NULL) { - detection_output_param_ = new ::opencv_caffe::DetectionOutputParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.detection_output_param) - return detection_output_param_; -} -::opencv_caffe::DetectionOutputParameter* LayerParameter::release_detection_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.detection_output_param) - clear_has_detection_output_param(); - ::opencv_caffe::DetectionOutputParameter* temp = detection_output_param_; - detection_output_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_detection_output_param(::opencv_caffe::DetectionOutputParameter* detection_output_param) { - delete detection_output_param_; - detection_output_param_ = detection_output_param; - if (detection_output_param) { - set_has_detection_output_param(); - } else { - clear_has_detection_output_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.detection_output_param) -} - -// optional .opencv_caffe.DropoutParameter dropout_param = 108; -bool LayerParameter::has_dropout_param() const { - return (_has_bits_[0] & 0x00800000u) != 0; -} -void LayerParameter::set_has_dropout_param() { - _has_bits_[0] |= 0x00800000u; -} -void LayerParameter::clear_has_dropout_param() { - _has_bits_[0] &= ~0x00800000u; -} -void LayerParameter::clear_dropout_param() { - if (dropout_param_ != NULL) dropout_param_->::opencv_caffe::DropoutParameter::Clear(); - clear_has_dropout_param(); -} -const ::opencv_caffe::DropoutParameter& LayerParameter::dropout_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.dropout_param) - return dropout_param_ != NULL ? *dropout_param_ - : *::opencv_caffe::DropoutParameter::internal_default_instance(); -} -::opencv_caffe::DropoutParameter* LayerParameter::mutable_dropout_param() { - set_has_dropout_param(); - if (dropout_param_ == NULL) { - dropout_param_ = new ::opencv_caffe::DropoutParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.dropout_param) - return dropout_param_; -} -::opencv_caffe::DropoutParameter* LayerParameter::release_dropout_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.dropout_param) - clear_has_dropout_param(); - ::opencv_caffe::DropoutParameter* temp = dropout_param_; - dropout_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_dropout_param(::opencv_caffe::DropoutParameter* dropout_param) { - delete dropout_param_; - dropout_param_ = dropout_param; - if (dropout_param) { - set_has_dropout_param(); - } else { - clear_has_dropout_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.dropout_param) -} - -// optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; -bool LayerParameter::has_dummy_data_param() const { - return (_has_bits_[0] & 0x01000000u) != 0; -} -void LayerParameter::set_has_dummy_data_param() { - _has_bits_[0] |= 0x01000000u; -} -void LayerParameter::clear_has_dummy_data_param() { - _has_bits_[0] &= ~0x01000000u; -} -void LayerParameter::clear_dummy_data_param() { - if (dummy_data_param_ != NULL) dummy_data_param_->::opencv_caffe::DummyDataParameter::Clear(); - clear_has_dummy_data_param(); -} -const ::opencv_caffe::DummyDataParameter& LayerParameter::dummy_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.dummy_data_param) - return dummy_data_param_ != NULL ? *dummy_data_param_ - : *::opencv_caffe::DummyDataParameter::internal_default_instance(); -} -::opencv_caffe::DummyDataParameter* LayerParameter::mutable_dummy_data_param() { - set_has_dummy_data_param(); - if (dummy_data_param_ == NULL) { - dummy_data_param_ = new ::opencv_caffe::DummyDataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.dummy_data_param) - return dummy_data_param_; -} -::opencv_caffe::DummyDataParameter* LayerParameter::release_dummy_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.dummy_data_param) - clear_has_dummy_data_param(); - ::opencv_caffe::DummyDataParameter* temp = dummy_data_param_; - dummy_data_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_dummy_data_param(::opencv_caffe::DummyDataParameter* dummy_data_param) { - delete dummy_data_param_; - dummy_data_param_ = dummy_data_param; - if (dummy_data_param) { - set_has_dummy_data_param(); - } else { - clear_has_dummy_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.dummy_data_param) -} - -// optional .opencv_caffe.EltwiseParameter eltwise_param = 110; -bool LayerParameter::has_eltwise_param() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -void LayerParameter::set_has_eltwise_param() { - _has_bits_[0] |= 0x02000000u; -} -void LayerParameter::clear_has_eltwise_param() { - _has_bits_[0] &= ~0x02000000u; -} -void LayerParameter::clear_eltwise_param() { - if (eltwise_param_ != NULL) eltwise_param_->::opencv_caffe::EltwiseParameter::Clear(); - clear_has_eltwise_param(); -} -const ::opencv_caffe::EltwiseParameter& LayerParameter::eltwise_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.eltwise_param) - return eltwise_param_ != NULL ? *eltwise_param_ - : *::opencv_caffe::EltwiseParameter::internal_default_instance(); -} -::opencv_caffe::EltwiseParameter* LayerParameter::mutable_eltwise_param() { - set_has_eltwise_param(); - if (eltwise_param_ == NULL) { - eltwise_param_ = new ::opencv_caffe::EltwiseParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.eltwise_param) - return eltwise_param_; -} -::opencv_caffe::EltwiseParameter* LayerParameter::release_eltwise_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.eltwise_param) - clear_has_eltwise_param(); - ::opencv_caffe::EltwiseParameter* temp = eltwise_param_; - eltwise_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_eltwise_param(::opencv_caffe::EltwiseParameter* eltwise_param) { - delete eltwise_param_; - eltwise_param_ = eltwise_param; - if (eltwise_param) { - set_has_eltwise_param(); - } else { - clear_has_eltwise_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.eltwise_param) -} - -// optional .opencv_caffe.ELUParameter elu_param = 140; -bool LayerParameter::has_elu_param() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -void LayerParameter::set_has_elu_param() { - _has_bits_[0] |= 0x04000000u; -} -void LayerParameter::clear_has_elu_param() { - _has_bits_[0] &= ~0x04000000u; -} -void LayerParameter::clear_elu_param() { - if (elu_param_ != NULL) elu_param_->::opencv_caffe::ELUParameter::Clear(); - clear_has_elu_param(); -} -const ::opencv_caffe::ELUParameter& LayerParameter::elu_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.elu_param) - return elu_param_ != NULL ? *elu_param_ - : *::opencv_caffe::ELUParameter::internal_default_instance(); -} -::opencv_caffe::ELUParameter* LayerParameter::mutable_elu_param() { - set_has_elu_param(); - if (elu_param_ == NULL) { - elu_param_ = new ::opencv_caffe::ELUParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.elu_param) - return elu_param_; -} -::opencv_caffe::ELUParameter* LayerParameter::release_elu_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.elu_param) - clear_has_elu_param(); - ::opencv_caffe::ELUParameter* temp = elu_param_; - elu_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_elu_param(::opencv_caffe::ELUParameter* elu_param) { - delete elu_param_; - elu_param_ = elu_param; - if (elu_param) { - set_has_elu_param(); - } else { - clear_has_elu_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.elu_param) -} - -// optional .opencv_caffe.EmbedParameter embed_param = 137; -bool LayerParameter::has_embed_param() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -void LayerParameter::set_has_embed_param() { - _has_bits_[0] |= 0x08000000u; -} -void LayerParameter::clear_has_embed_param() { - _has_bits_[0] &= ~0x08000000u; -} -void LayerParameter::clear_embed_param() { - if (embed_param_ != NULL) embed_param_->::opencv_caffe::EmbedParameter::Clear(); - clear_has_embed_param(); -} -const ::opencv_caffe::EmbedParameter& LayerParameter::embed_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.embed_param) - return embed_param_ != NULL ? *embed_param_ - : *::opencv_caffe::EmbedParameter::internal_default_instance(); -} -::opencv_caffe::EmbedParameter* LayerParameter::mutable_embed_param() { - set_has_embed_param(); - if (embed_param_ == NULL) { - embed_param_ = new ::opencv_caffe::EmbedParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.embed_param) - return embed_param_; -} -::opencv_caffe::EmbedParameter* LayerParameter::release_embed_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.embed_param) - clear_has_embed_param(); - ::opencv_caffe::EmbedParameter* temp = embed_param_; - embed_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_embed_param(::opencv_caffe::EmbedParameter* embed_param) { - delete embed_param_; - embed_param_ = embed_param; - if (embed_param) { - set_has_embed_param(); - } else { - clear_has_embed_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.embed_param) -} - -// optional .opencv_caffe.ExpParameter exp_param = 111; -bool LayerParameter::has_exp_param() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -void LayerParameter::set_has_exp_param() { - _has_bits_[0] |= 0x10000000u; -} -void LayerParameter::clear_has_exp_param() { - _has_bits_[0] &= ~0x10000000u; -} -void LayerParameter::clear_exp_param() { - if (exp_param_ != NULL) exp_param_->::opencv_caffe::ExpParameter::Clear(); - clear_has_exp_param(); -} -const ::opencv_caffe::ExpParameter& LayerParameter::exp_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.exp_param) - return exp_param_ != NULL ? *exp_param_ - : *::opencv_caffe::ExpParameter::internal_default_instance(); -} -::opencv_caffe::ExpParameter* LayerParameter::mutable_exp_param() { - set_has_exp_param(); - if (exp_param_ == NULL) { - exp_param_ = new ::opencv_caffe::ExpParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.exp_param) - return exp_param_; -} -::opencv_caffe::ExpParameter* LayerParameter::release_exp_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.exp_param) - clear_has_exp_param(); - ::opencv_caffe::ExpParameter* temp = exp_param_; - exp_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_exp_param(::opencv_caffe::ExpParameter* exp_param) { - delete exp_param_; - exp_param_ = exp_param; - if (exp_param) { - set_has_exp_param(); - } else { - clear_has_exp_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.exp_param) -} - -// optional .opencv_caffe.FlattenParameter flatten_param = 135; -bool LayerParameter::has_flatten_param() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -void LayerParameter::set_has_flatten_param() { - _has_bits_[0] |= 0x20000000u; -} -void LayerParameter::clear_has_flatten_param() { - _has_bits_[0] &= ~0x20000000u; -} -void LayerParameter::clear_flatten_param() { - if (flatten_param_ != NULL) flatten_param_->::opencv_caffe::FlattenParameter::Clear(); - clear_has_flatten_param(); -} -const ::opencv_caffe::FlattenParameter& LayerParameter::flatten_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.flatten_param) - return flatten_param_ != NULL ? *flatten_param_ - : *::opencv_caffe::FlattenParameter::internal_default_instance(); -} -::opencv_caffe::FlattenParameter* LayerParameter::mutable_flatten_param() { - set_has_flatten_param(); - if (flatten_param_ == NULL) { - flatten_param_ = new ::opencv_caffe::FlattenParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.flatten_param) - return flatten_param_; -} -::opencv_caffe::FlattenParameter* LayerParameter::release_flatten_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.flatten_param) - clear_has_flatten_param(); - ::opencv_caffe::FlattenParameter* temp = flatten_param_; - flatten_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_flatten_param(::opencv_caffe::FlattenParameter* flatten_param) { - delete flatten_param_; - flatten_param_ = flatten_param; - if (flatten_param) { - set_has_flatten_param(); - } else { - clear_has_flatten_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.flatten_param) -} - -// optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; -bool LayerParameter::has_hdf5_data_param() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -void LayerParameter::set_has_hdf5_data_param() { - _has_bits_[0] |= 0x40000000u; -} -void LayerParameter::clear_has_hdf5_data_param() { - _has_bits_[0] &= ~0x40000000u; -} -void LayerParameter::clear_hdf5_data_param() { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::opencv_caffe::HDF5DataParameter::Clear(); - clear_has_hdf5_data_param(); -} -const ::opencv_caffe::HDF5DataParameter& LayerParameter::hdf5_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.hdf5_data_param) - return hdf5_data_param_ != NULL ? *hdf5_data_param_ - : *::opencv_caffe::HDF5DataParameter::internal_default_instance(); -} -::opencv_caffe::HDF5DataParameter* LayerParameter::mutable_hdf5_data_param() { - set_has_hdf5_data_param(); - if (hdf5_data_param_ == NULL) { - hdf5_data_param_ = new ::opencv_caffe::HDF5DataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.hdf5_data_param) - return hdf5_data_param_; -} -::opencv_caffe::HDF5DataParameter* LayerParameter::release_hdf5_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.hdf5_data_param) - clear_has_hdf5_data_param(); - ::opencv_caffe::HDF5DataParameter* temp = hdf5_data_param_; - hdf5_data_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_hdf5_data_param(::opencv_caffe::HDF5DataParameter* hdf5_data_param) { - delete hdf5_data_param_; - hdf5_data_param_ = hdf5_data_param; - if (hdf5_data_param) { - set_has_hdf5_data_param(); - } else { - clear_has_hdf5_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.hdf5_data_param) -} - -// optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; -bool LayerParameter::has_hdf5_output_param() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -void LayerParameter::set_has_hdf5_output_param() { - _has_bits_[0] |= 0x80000000u; -} -void LayerParameter::clear_has_hdf5_output_param() { - _has_bits_[0] &= ~0x80000000u; -} -void LayerParameter::clear_hdf5_output_param() { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::opencv_caffe::HDF5OutputParameter::Clear(); - clear_has_hdf5_output_param(); -} -const ::opencv_caffe::HDF5OutputParameter& LayerParameter::hdf5_output_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.hdf5_output_param) - return hdf5_output_param_ != NULL ? *hdf5_output_param_ - : *::opencv_caffe::HDF5OutputParameter::internal_default_instance(); -} -::opencv_caffe::HDF5OutputParameter* LayerParameter::mutable_hdf5_output_param() { - set_has_hdf5_output_param(); - if (hdf5_output_param_ == NULL) { - hdf5_output_param_ = new ::opencv_caffe::HDF5OutputParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.hdf5_output_param) - return hdf5_output_param_; -} -::opencv_caffe::HDF5OutputParameter* LayerParameter::release_hdf5_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.hdf5_output_param) - clear_has_hdf5_output_param(); - ::opencv_caffe::HDF5OutputParameter* temp = hdf5_output_param_; - hdf5_output_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param) { - delete hdf5_output_param_; - hdf5_output_param_ = hdf5_output_param; - if (hdf5_output_param) { - set_has_hdf5_output_param(); - } else { - clear_has_hdf5_output_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.hdf5_output_param) -} - -// optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; -bool LayerParameter::has_hinge_loss_param() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -void LayerParameter::set_has_hinge_loss_param() { - _has_bits_[1] |= 0x00000001u; -} -void LayerParameter::clear_has_hinge_loss_param() { - _has_bits_[1] &= ~0x00000001u; -} -void LayerParameter::clear_hinge_loss_param() { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::opencv_caffe::HingeLossParameter::Clear(); - clear_has_hinge_loss_param(); -} -const ::opencv_caffe::HingeLossParameter& LayerParameter::hinge_loss_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.hinge_loss_param) - return hinge_loss_param_ != NULL ? *hinge_loss_param_ - : *::opencv_caffe::HingeLossParameter::internal_default_instance(); -} -::opencv_caffe::HingeLossParameter* LayerParameter::mutable_hinge_loss_param() { - set_has_hinge_loss_param(); - if (hinge_loss_param_ == NULL) { - hinge_loss_param_ = new ::opencv_caffe::HingeLossParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.hinge_loss_param) - return hinge_loss_param_; -} -::opencv_caffe::HingeLossParameter* LayerParameter::release_hinge_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.hinge_loss_param) - clear_has_hinge_loss_param(); - ::opencv_caffe::HingeLossParameter* temp = hinge_loss_param_; - hinge_loss_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_hinge_loss_param(::opencv_caffe::HingeLossParameter* hinge_loss_param) { - delete hinge_loss_param_; - hinge_loss_param_ = hinge_loss_param; - if (hinge_loss_param) { - set_has_hinge_loss_param(); - } else { - clear_has_hinge_loss_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.hinge_loss_param) -} - -// optional .opencv_caffe.ImageDataParameter image_data_param = 115; -bool LayerParameter::has_image_data_param() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -void LayerParameter::set_has_image_data_param() { - _has_bits_[1] |= 0x00000002u; -} -void LayerParameter::clear_has_image_data_param() { - _has_bits_[1] &= ~0x00000002u; -} -void LayerParameter::clear_image_data_param() { - if (image_data_param_ != NULL) image_data_param_->::opencv_caffe::ImageDataParameter::Clear(); - clear_has_image_data_param(); -} -const ::opencv_caffe::ImageDataParameter& LayerParameter::image_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.image_data_param) - return image_data_param_ != NULL ? *image_data_param_ - : *::opencv_caffe::ImageDataParameter::internal_default_instance(); -} -::opencv_caffe::ImageDataParameter* LayerParameter::mutable_image_data_param() { - set_has_image_data_param(); - if (image_data_param_ == NULL) { - image_data_param_ = new ::opencv_caffe::ImageDataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.image_data_param) - return image_data_param_; -} -::opencv_caffe::ImageDataParameter* LayerParameter::release_image_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.image_data_param) - clear_has_image_data_param(); - ::opencv_caffe::ImageDataParameter* temp = image_data_param_; - image_data_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_image_data_param(::opencv_caffe::ImageDataParameter* image_data_param) { - delete image_data_param_; - image_data_param_ = image_data_param; - if (image_data_param) { - set_has_image_data_param(); - } else { - clear_has_image_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.image_data_param) -} - -// optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; -bool LayerParameter::has_infogain_loss_param() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -void LayerParameter::set_has_infogain_loss_param() { - _has_bits_[1] |= 0x00000004u; -} -void LayerParameter::clear_has_infogain_loss_param() { - _has_bits_[1] &= ~0x00000004u; -} -void LayerParameter::clear_infogain_loss_param() { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::opencv_caffe::InfogainLossParameter::Clear(); - clear_has_infogain_loss_param(); -} -const ::opencv_caffe::InfogainLossParameter& LayerParameter::infogain_loss_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.infogain_loss_param) - return infogain_loss_param_ != NULL ? *infogain_loss_param_ - : *::opencv_caffe::InfogainLossParameter::internal_default_instance(); -} -::opencv_caffe::InfogainLossParameter* LayerParameter::mutable_infogain_loss_param() { - set_has_infogain_loss_param(); - if (infogain_loss_param_ == NULL) { - infogain_loss_param_ = new ::opencv_caffe::InfogainLossParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.infogain_loss_param) - return infogain_loss_param_; -} -::opencv_caffe::InfogainLossParameter* LayerParameter::release_infogain_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.infogain_loss_param) - clear_has_infogain_loss_param(); - ::opencv_caffe::InfogainLossParameter* temp = infogain_loss_param_; - infogain_loss_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_infogain_loss_param(::opencv_caffe::InfogainLossParameter* infogain_loss_param) { - delete infogain_loss_param_; - infogain_loss_param_ = infogain_loss_param; - if (infogain_loss_param) { - set_has_infogain_loss_param(); - } else { - clear_has_infogain_loss_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.infogain_loss_param) -} - -// optional .opencv_caffe.InnerProductParameter inner_product_param = 117; -bool LayerParameter::has_inner_product_param() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -void LayerParameter::set_has_inner_product_param() { - _has_bits_[1] |= 0x00000008u; -} -void LayerParameter::clear_has_inner_product_param() { - _has_bits_[1] &= ~0x00000008u; -} -void LayerParameter::clear_inner_product_param() { - if (inner_product_param_ != NULL) inner_product_param_->::opencv_caffe::InnerProductParameter::Clear(); - clear_has_inner_product_param(); -} -const ::opencv_caffe::InnerProductParameter& LayerParameter::inner_product_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.inner_product_param) - return inner_product_param_ != NULL ? *inner_product_param_ - : *::opencv_caffe::InnerProductParameter::internal_default_instance(); -} -::opencv_caffe::InnerProductParameter* LayerParameter::mutable_inner_product_param() { - set_has_inner_product_param(); - if (inner_product_param_ == NULL) { - inner_product_param_ = new ::opencv_caffe::InnerProductParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.inner_product_param) - return inner_product_param_; -} -::opencv_caffe::InnerProductParameter* LayerParameter::release_inner_product_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.inner_product_param) - clear_has_inner_product_param(); - ::opencv_caffe::InnerProductParameter* temp = inner_product_param_; - inner_product_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_inner_product_param(::opencv_caffe::InnerProductParameter* inner_product_param) { - delete inner_product_param_; - inner_product_param_ = inner_product_param; - if (inner_product_param) { - set_has_inner_product_param(); - } else { - clear_has_inner_product_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.inner_product_param) -} - -// optional .opencv_caffe.InputParameter input_param = 143; -bool LayerParameter::has_input_param() const { - return (_has_bits_[1] & 0x00000010u) != 0; -} -void LayerParameter::set_has_input_param() { - _has_bits_[1] |= 0x00000010u; -} -void LayerParameter::clear_has_input_param() { - _has_bits_[1] &= ~0x00000010u; -} -void LayerParameter::clear_input_param() { - if (input_param_ != NULL) input_param_->::opencv_caffe::InputParameter::Clear(); - clear_has_input_param(); -} -const ::opencv_caffe::InputParameter& LayerParameter::input_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.input_param) - return input_param_ != NULL ? *input_param_ - : *::opencv_caffe::InputParameter::internal_default_instance(); -} -::opencv_caffe::InputParameter* LayerParameter::mutable_input_param() { - set_has_input_param(); - if (input_param_ == NULL) { - input_param_ = new ::opencv_caffe::InputParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.input_param) - return input_param_; -} -::opencv_caffe::InputParameter* LayerParameter::release_input_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.input_param) - clear_has_input_param(); - ::opencv_caffe::InputParameter* temp = input_param_; - input_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_input_param(::opencv_caffe::InputParameter* input_param) { - delete input_param_; - input_param_ = input_param; - if (input_param) { - set_has_input_param(); - } else { - clear_has_input_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.input_param) -} - -// optional .opencv_caffe.LogParameter log_param = 134; -bool LayerParameter::has_log_param() const { - return (_has_bits_[1] & 0x00000020u) != 0; -} -void LayerParameter::set_has_log_param() { - _has_bits_[1] |= 0x00000020u; -} -void LayerParameter::clear_has_log_param() { - _has_bits_[1] &= ~0x00000020u; -} -void LayerParameter::clear_log_param() { - if (log_param_ != NULL) log_param_->::opencv_caffe::LogParameter::Clear(); - clear_has_log_param(); -} -const ::opencv_caffe::LogParameter& LayerParameter::log_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.log_param) - return log_param_ != NULL ? *log_param_ - : *::opencv_caffe::LogParameter::internal_default_instance(); -} -::opencv_caffe::LogParameter* LayerParameter::mutable_log_param() { - set_has_log_param(); - if (log_param_ == NULL) { - log_param_ = new ::opencv_caffe::LogParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.log_param) - return log_param_; -} -::opencv_caffe::LogParameter* LayerParameter::release_log_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.log_param) - clear_has_log_param(); - ::opencv_caffe::LogParameter* temp = log_param_; - log_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_log_param(::opencv_caffe::LogParameter* log_param) { - delete log_param_; - log_param_ = log_param; - if (log_param) { - set_has_log_param(); - } else { - clear_has_log_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.log_param) -} - -// optional .opencv_caffe.LRNParameter lrn_param = 118; -bool LayerParameter::has_lrn_param() const { - return (_has_bits_[1] & 0x00000040u) != 0; -} -void LayerParameter::set_has_lrn_param() { - _has_bits_[1] |= 0x00000040u; -} -void LayerParameter::clear_has_lrn_param() { - _has_bits_[1] &= ~0x00000040u; -} -void LayerParameter::clear_lrn_param() { - if (lrn_param_ != NULL) lrn_param_->::opencv_caffe::LRNParameter::Clear(); - clear_has_lrn_param(); -} -const ::opencv_caffe::LRNParameter& LayerParameter::lrn_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.lrn_param) - return lrn_param_ != NULL ? *lrn_param_ - : *::opencv_caffe::LRNParameter::internal_default_instance(); -} -::opencv_caffe::LRNParameter* LayerParameter::mutable_lrn_param() { - set_has_lrn_param(); - if (lrn_param_ == NULL) { - lrn_param_ = new ::opencv_caffe::LRNParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.lrn_param) - return lrn_param_; -} -::opencv_caffe::LRNParameter* LayerParameter::release_lrn_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.lrn_param) - clear_has_lrn_param(); - ::opencv_caffe::LRNParameter* temp = lrn_param_; - lrn_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_lrn_param(::opencv_caffe::LRNParameter* lrn_param) { - delete lrn_param_; - lrn_param_ = lrn_param; - if (lrn_param) { - set_has_lrn_param(); - } else { - clear_has_lrn_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.lrn_param) -} - -// optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; -bool LayerParameter::has_memory_data_param() const { - return (_has_bits_[1] & 0x00000080u) != 0; -} -void LayerParameter::set_has_memory_data_param() { - _has_bits_[1] |= 0x00000080u; -} -void LayerParameter::clear_has_memory_data_param() { - _has_bits_[1] &= ~0x00000080u; -} -void LayerParameter::clear_memory_data_param() { - if (memory_data_param_ != NULL) memory_data_param_->::opencv_caffe::MemoryDataParameter::Clear(); - clear_has_memory_data_param(); -} -const ::opencv_caffe::MemoryDataParameter& LayerParameter::memory_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.memory_data_param) - return memory_data_param_ != NULL ? *memory_data_param_ - : *::opencv_caffe::MemoryDataParameter::internal_default_instance(); -} -::opencv_caffe::MemoryDataParameter* LayerParameter::mutable_memory_data_param() { - set_has_memory_data_param(); - if (memory_data_param_ == NULL) { - memory_data_param_ = new ::opencv_caffe::MemoryDataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.memory_data_param) - return memory_data_param_; -} -::opencv_caffe::MemoryDataParameter* LayerParameter::release_memory_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.memory_data_param) - clear_has_memory_data_param(); - ::opencv_caffe::MemoryDataParameter* temp = memory_data_param_; - memory_data_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_memory_data_param(::opencv_caffe::MemoryDataParameter* memory_data_param) { - delete memory_data_param_; - memory_data_param_ = memory_data_param; - if (memory_data_param) { - set_has_memory_data_param(); - } else { - clear_has_memory_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.memory_data_param) -} - -// optional .opencv_caffe.MVNParameter mvn_param = 120; -bool LayerParameter::has_mvn_param() const { - return (_has_bits_[1] & 0x00000100u) != 0; -} -void LayerParameter::set_has_mvn_param() { - _has_bits_[1] |= 0x00000100u; -} -void LayerParameter::clear_has_mvn_param() { - _has_bits_[1] &= ~0x00000100u; -} -void LayerParameter::clear_mvn_param() { - if (mvn_param_ != NULL) mvn_param_->::opencv_caffe::MVNParameter::Clear(); - clear_has_mvn_param(); -} -const ::opencv_caffe::MVNParameter& LayerParameter::mvn_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.mvn_param) - return mvn_param_ != NULL ? *mvn_param_ - : *::opencv_caffe::MVNParameter::internal_default_instance(); -} -::opencv_caffe::MVNParameter* LayerParameter::mutable_mvn_param() { - set_has_mvn_param(); - if (mvn_param_ == NULL) { - mvn_param_ = new ::opencv_caffe::MVNParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.mvn_param) - return mvn_param_; -} -::opencv_caffe::MVNParameter* LayerParameter::release_mvn_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.mvn_param) - clear_has_mvn_param(); - ::opencv_caffe::MVNParameter* temp = mvn_param_; - mvn_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_mvn_param(::opencv_caffe::MVNParameter* mvn_param) { - delete mvn_param_; - mvn_param_ = mvn_param; - if (mvn_param) { - set_has_mvn_param(); - } else { - clear_has_mvn_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.mvn_param) -} - -// optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; -bool LayerParameter::has_norm_param() const { - return (_has_bits_[1] & 0x00000200u) != 0; -} -void LayerParameter::set_has_norm_param() { - _has_bits_[1] |= 0x00000200u; -} -void LayerParameter::clear_has_norm_param() { - _has_bits_[1] &= ~0x00000200u; -} -void LayerParameter::clear_norm_param() { - if (norm_param_ != NULL) norm_param_->::opencv_caffe::NormalizeBBoxParameter::Clear(); - clear_has_norm_param(); -} -const ::opencv_caffe::NormalizeBBoxParameter& LayerParameter::norm_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.norm_param) - return norm_param_ != NULL ? *norm_param_ - : *::opencv_caffe::NormalizeBBoxParameter::internal_default_instance(); -} -::opencv_caffe::NormalizeBBoxParameter* LayerParameter::mutable_norm_param() { - set_has_norm_param(); - if (norm_param_ == NULL) { - norm_param_ = new ::opencv_caffe::NormalizeBBoxParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.norm_param) - return norm_param_; -} -::opencv_caffe::NormalizeBBoxParameter* LayerParameter::release_norm_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.norm_param) - clear_has_norm_param(); - ::opencv_caffe::NormalizeBBoxParameter* temp = norm_param_; - norm_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_norm_param(::opencv_caffe::NormalizeBBoxParameter* norm_param) { - delete norm_param_; - norm_param_ = norm_param; - if (norm_param) { - set_has_norm_param(); - } else { - clear_has_norm_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.norm_param) -} - -// optional .opencv_caffe.PermuteParameter permute_param = 148; -bool LayerParameter::has_permute_param() const { - return (_has_bits_[1] & 0x00000400u) != 0; -} -void LayerParameter::set_has_permute_param() { - _has_bits_[1] |= 0x00000400u; -} -void LayerParameter::clear_has_permute_param() { - _has_bits_[1] &= ~0x00000400u; -} -void LayerParameter::clear_permute_param() { - if (permute_param_ != NULL) permute_param_->::opencv_caffe::PermuteParameter::Clear(); - clear_has_permute_param(); -} -const ::opencv_caffe::PermuteParameter& LayerParameter::permute_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.permute_param) - return permute_param_ != NULL ? *permute_param_ - : *::opencv_caffe::PermuteParameter::internal_default_instance(); -} -::opencv_caffe::PermuteParameter* LayerParameter::mutable_permute_param() { - set_has_permute_param(); - if (permute_param_ == NULL) { - permute_param_ = new ::opencv_caffe::PermuteParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.permute_param) - return permute_param_; -} -::opencv_caffe::PermuteParameter* LayerParameter::release_permute_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.permute_param) - clear_has_permute_param(); - ::opencv_caffe::PermuteParameter* temp = permute_param_; - permute_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_permute_param(::opencv_caffe::PermuteParameter* permute_param) { - delete permute_param_; - permute_param_ = permute_param; - if (permute_param) { - set_has_permute_param(); - } else { - clear_has_permute_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.permute_param) -} - -// optional .opencv_caffe.ParameterParameter parameter_param = 145; -bool LayerParameter::has_parameter_param() const { - return (_has_bits_[1] & 0x00000800u) != 0; -} -void LayerParameter::set_has_parameter_param() { - _has_bits_[1] |= 0x00000800u; -} -void LayerParameter::clear_has_parameter_param() { - _has_bits_[1] &= ~0x00000800u; -} -void LayerParameter::clear_parameter_param() { - if (parameter_param_ != NULL) parameter_param_->::opencv_caffe::ParameterParameter::Clear(); - clear_has_parameter_param(); -} -const ::opencv_caffe::ParameterParameter& LayerParameter::parameter_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.parameter_param) - return parameter_param_ != NULL ? *parameter_param_ - : *::opencv_caffe::ParameterParameter::internal_default_instance(); -} -::opencv_caffe::ParameterParameter* LayerParameter::mutable_parameter_param() { - set_has_parameter_param(); - if (parameter_param_ == NULL) { - parameter_param_ = new ::opencv_caffe::ParameterParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.parameter_param) - return parameter_param_; -} -::opencv_caffe::ParameterParameter* LayerParameter::release_parameter_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.parameter_param) - clear_has_parameter_param(); - ::opencv_caffe::ParameterParameter* temp = parameter_param_; - parameter_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_parameter_param(::opencv_caffe::ParameterParameter* parameter_param) { - delete parameter_param_; - parameter_param_ = parameter_param; - if (parameter_param) { - set_has_parameter_param(); - } else { - clear_has_parameter_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.parameter_param) -} - -// optional .opencv_caffe.PoolingParameter pooling_param = 121; -bool LayerParameter::has_pooling_param() const { - return (_has_bits_[1] & 0x00001000u) != 0; -} -void LayerParameter::set_has_pooling_param() { - _has_bits_[1] |= 0x00001000u; -} -void LayerParameter::clear_has_pooling_param() { - _has_bits_[1] &= ~0x00001000u; -} -void LayerParameter::clear_pooling_param() { - if (pooling_param_ != NULL) pooling_param_->::opencv_caffe::PoolingParameter::Clear(); - clear_has_pooling_param(); -} -const ::opencv_caffe::PoolingParameter& LayerParameter::pooling_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.pooling_param) - return pooling_param_ != NULL ? *pooling_param_ - : *::opencv_caffe::PoolingParameter::internal_default_instance(); -} -::opencv_caffe::PoolingParameter* LayerParameter::mutable_pooling_param() { - set_has_pooling_param(); - if (pooling_param_ == NULL) { - pooling_param_ = new ::opencv_caffe::PoolingParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.pooling_param) - return pooling_param_; -} -::opencv_caffe::PoolingParameter* LayerParameter::release_pooling_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.pooling_param) - clear_has_pooling_param(); - ::opencv_caffe::PoolingParameter* temp = pooling_param_; - pooling_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_pooling_param(::opencv_caffe::PoolingParameter* pooling_param) { - delete pooling_param_; - pooling_param_ = pooling_param; - if (pooling_param) { - set_has_pooling_param(); - } else { - clear_has_pooling_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.pooling_param) -} - -// optional .opencv_caffe.PowerParameter power_param = 122; -bool LayerParameter::has_power_param() const { - return (_has_bits_[1] & 0x00002000u) != 0; -} -void LayerParameter::set_has_power_param() { - _has_bits_[1] |= 0x00002000u; -} -void LayerParameter::clear_has_power_param() { - _has_bits_[1] &= ~0x00002000u; -} -void LayerParameter::clear_power_param() { - if (power_param_ != NULL) power_param_->::opencv_caffe::PowerParameter::Clear(); - clear_has_power_param(); -} -const ::opencv_caffe::PowerParameter& LayerParameter::power_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.power_param) - return power_param_ != NULL ? *power_param_ - : *::opencv_caffe::PowerParameter::internal_default_instance(); -} -::opencv_caffe::PowerParameter* LayerParameter::mutable_power_param() { - set_has_power_param(); - if (power_param_ == NULL) { - power_param_ = new ::opencv_caffe::PowerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.power_param) - return power_param_; -} -::opencv_caffe::PowerParameter* LayerParameter::release_power_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.power_param) - clear_has_power_param(); - ::opencv_caffe::PowerParameter* temp = power_param_; - power_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_power_param(::opencv_caffe::PowerParameter* power_param) { - delete power_param_; - power_param_ = power_param; - if (power_param) { - set_has_power_param(); - } else { - clear_has_power_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.power_param) -} - -// optional .opencv_caffe.PReLUParameter prelu_param = 131; -bool LayerParameter::has_prelu_param() const { - return (_has_bits_[1] & 0x00004000u) != 0; -} -void LayerParameter::set_has_prelu_param() { - _has_bits_[1] |= 0x00004000u; -} -void LayerParameter::clear_has_prelu_param() { - _has_bits_[1] &= ~0x00004000u; -} -void LayerParameter::clear_prelu_param() { - if (prelu_param_ != NULL) prelu_param_->::opencv_caffe::PReLUParameter::Clear(); - clear_has_prelu_param(); -} -const ::opencv_caffe::PReLUParameter& LayerParameter::prelu_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.prelu_param) - return prelu_param_ != NULL ? *prelu_param_ - : *::opencv_caffe::PReLUParameter::internal_default_instance(); -} -::opencv_caffe::PReLUParameter* LayerParameter::mutable_prelu_param() { - set_has_prelu_param(); - if (prelu_param_ == NULL) { - prelu_param_ = new ::opencv_caffe::PReLUParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.prelu_param) - return prelu_param_; -} -::opencv_caffe::PReLUParameter* LayerParameter::release_prelu_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.prelu_param) - clear_has_prelu_param(); - ::opencv_caffe::PReLUParameter* temp = prelu_param_; - prelu_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_prelu_param(::opencv_caffe::PReLUParameter* prelu_param) { - delete prelu_param_; - prelu_param_ = prelu_param; - if (prelu_param) { - set_has_prelu_param(); - } else { - clear_has_prelu_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.prelu_param) -} - -// optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; -bool LayerParameter::has_prior_box_param() const { - return (_has_bits_[1] & 0x00008000u) != 0; -} -void LayerParameter::set_has_prior_box_param() { - _has_bits_[1] |= 0x00008000u; -} -void LayerParameter::clear_has_prior_box_param() { - _has_bits_[1] &= ~0x00008000u; -} -void LayerParameter::clear_prior_box_param() { - if (prior_box_param_ != NULL) prior_box_param_->::opencv_caffe::PriorBoxParameter::Clear(); - clear_has_prior_box_param(); -} -const ::opencv_caffe::PriorBoxParameter& LayerParameter::prior_box_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.prior_box_param) - return prior_box_param_ != NULL ? *prior_box_param_ - : *::opencv_caffe::PriorBoxParameter::internal_default_instance(); -} -::opencv_caffe::PriorBoxParameter* LayerParameter::mutable_prior_box_param() { - set_has_prior_box_param(); - if (prior_box_param_ == NULL) { - prior_box_param_ = new ::opencv_caffe::PriorBoxParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.prior_box_param) - return prior_box_param_; -} -::opencv_caffe::PriorBoxParameter* LayerParameter::release_prior_box_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.prior_box_param) - clear_has_prior_box_param(); - ::opencv_caffe::PriorBoxParameter* temp = prior_box_param_; - prior_box_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_prior_box_param(::opencv_caffe::PriorBoxParameter* prior_box_param) { - delete prior_box_param_; - prior_box_param_ = prior_box_param; - if (prior_box_param) { - set_has_prior_box_param(); - } else { - clear_has_prior_box_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.prior_box_param) -} - -// optional .opencv_caffe.ProposalParameter proposal_param = 201; -bool LayerParameter::has_proposal_param() const { - return (_has_bits_[1] & 0x00010000u) != 0; -} -void LayerParameter::set_has_proposal_param() { - _has_bits_[1] |= 0x00010000u; -} -void LayerParameter::clear_has_proposal_param() { - _has_bits_[1] &= ~0x00010000u; -} -void LayerParameter::clear_proposal_param() { - if (proposal_param_ != NULL) proposal_param_->::opencv_caffe::ProposalParameter::Clear(); - clear_has_proposal_param(); -} -const ::opencv_caffe::ProposalParameter& LayerParameter::proposal_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.proposal_param) - return proposal_param_ != NULL ? *proposal_param_ - : *::opencv_caffe::ProposalParameter::internal_default_instance(); -} -::opencv_caffe::ProposalParameter* LayerParameter::mutable_proposal_param() { - set_has_proposal_param(); - if (proposal_param_ == NULL) { - proposal_param_ = new ::opencv_caffe::ProposalParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.proposal_param) - return proposal_param_; -} -::opencv_caffe::ProposalParameter* LayerParameter::release_proposal_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.proposal_param) - clear_has_proposal_param(); - ::opencv_caffe::ProposalParameter* temp = proposal_param_; - proposal_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_proposal_param(::opencv_caffe::ProposalParameter* proposal_param) { - delete proposal_param_; - proposal_param_ = proposal_param; - if (proposal_param) { - set_has_proposal_param(); - } else { - clear_has_proposal_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.proposal_param) -} - -// optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; -bool LayerParameter::has_psroi_pooling_param() const { - return (_has_bits_[1] & 0x00020000u) != 0; -} -void LayerParameter::set_has_psroi_pooling_param() { - _has_bits_[1] |= 0x00020000u; -} -void LayerParameter::clear_has_psroi_pooling_param() { - _has_bits_[1] &= ~0x00020000u; -} -void LayerParameter::clear_psroi_pooling_param() { - if (psroi_pooling_param_ != NULL) psroi_pooling_param_->::opencv_caffe::PSROIPoolingParameter::Clear(); - clear_has_psroi_pooling_param(); -} -const ::opencv_caffe::PSROIPoolingParameter& LayerParameter::psroi_pooling_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.psroi_pooling_param) - return psroi_pooling_param_ != NULL ? *psroi_pooling_param_ - : *::opencv_caffe::PSROIPoolingParameter::internal_default_instance(); -} -::opencv_caffe::PSROIPoolingParameter* LayerParameter::mutable_psroi_pooling_param() { - set_has_psroi_pooling_param(); - if (psroi_pooling_param_ == NULL) { - psroi_pooling_param_ = new ::opencv_caffe::PSROIPoolingParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.psroi_pooling_param) - return psroi_pooling_param_; -} -::opencv_caffe::PSROIPoolingParameter* LayerParameter::release_psroi_pooling_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.psroi_pooling_param) - clear_has_psroi_pooling_param(); - ::opencv_caffe::PSROIPoolingParameter* temp = psroi_pooling_param_; - psroi_pooling_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_psroi_pooling_param(::opencv_caffe::PSROIPoolingParameter* psroi_pooling_param) { - delete psroi_pooling_param_; - psroi_pooling_param_ = psroi_pooling_param; - if (psroi_pooling_param) { - set_has_psroi_pooling_param(); - } else { - clear_has_psroi_pooling_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.psroi_pooling_param) -} - -// optional .opencv_caffe.PythonParameter python_param = 130; -bool LayerParameter::has_python_param() const { - return (_has_bits_[1] & 0x00040000u) != 0; -} -void LayerParameter::set_has_python_param() { - _has_bits_[1] |= 0x00040000u; -} -void LayerParameter::clear_has_python_param() { - _has_bits_[1] &= ~0x00040000u; -} -void LayerParameter::clear_python_param() { - if (python_param_ != NULL) python_param_->::opencv_caffe::PythonParameter::Clear(); - clear_has_python_param(); -} -const ::opencv_caffe::PythonParameter& LayerParameter::python_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.python_param) - return python_param_ != NULL ? *python_param_ - : *::opencv_caffe::PythonParameter::internal_default_instance(); -} -::opencv_caffe::PythonParameter* LayerParameter::mutable_python_param() { - set_has_python_param(); - if (python_param_ == NULL) { - python_param_ = new ::opencv_caffe::PythonParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.python_param) - return python_param_; -} -::opencv_caffe::PythonParameter* LayerParameter::release_python_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.python_param) - clear_has_python_param(); - ::opencv_caffe::PythonParameter* temp = python_param_; - python_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_python_param(::opencv_caffe::PythonParameter* python_param) { - delete python_param_; - python_param_ = python_param; - if (python_param) { - set_has_python_param(); - } else { - clear_has_python_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.python_param) -} - -// optional .opencv_caffe.RecurrentParameter recurrent_param = 146; -bool LayerParameter::has_recurrent_param() const { - return (_has_bits_[1] & 0x00080000u) != 0; -} -void LayerParameter::set_has_recurrent_param() { - _has_bits_[1] |= 0x00080000u; -} -void LayerParameter::clear_has_recurrent_param() { - _has_bits_[1] &= ~0x00080000u; -} -void LayerParameter::clear_recurrent_param() { - if (recurrent_param_ != NULL) recurrent_param_->::opencv_caffe::RecurrentParameter::Clear(); - clear_has_recurrent_param(); -} -const ::opencv_caffe::RecurrentParameter& LayerParameter::recurrent_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.recurrent_param) - return recurrent_param_ != NULL ? *recurrent_param_ - : *::opencv_caffe::RecurrentParameter::internal_default_instance(); -} -::opencv_caffe::RecurrentParameter* LayerParameter::mutable_recurrent_param() { - set_has_recurrent_param(); - if (recurrent_param_ == NULL) { - recurrent_param_ = new ::opencv_caffe::RecurrentParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.recurrent_param) - return recurrent_param_; -} -::opencv_caffe::RecurrentParameter* LayerParameter::release_recurrent_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.recurrent_param) - clear_has_recurrent_param(); - ::opencv_caffe::RecurrentParameter* temp = recurrent_param_; - recurrent_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_recurrent_param(::opencv_caffe::RecurrentParameter* recurrent_param) { - delete recurrent_param_; - recurrent_param_ = recurrent_param; - if (recurrent_param) { - set_has_recurrent_param(); - } else { - clear_has_recurrent_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.recurrent_param) -} - -// optional .opencv_caffe.ReductionParameter reduction_param = 136; -bool LayerParameter::has_reduction_param() const { - return (_has_bits_[1] & 0x00100000u) != 0; -} -void LayerParameter::set_has_reduction_param() { - _has_bits_[1] |= 0x00100000u; -} -void LayerParameter::clear_has_reduction_param() { - _has_bits_[1] &= ~0x00100000u; -} -void LayerParameter::clear_reduction_param() { - if (reduction_param_ != NULL) reduction_param_->::opencv_caffe::ReductionParameter::Clear(); - clear_has_reduction_param(); -} -const ::opencv_caffe::ReductionParameter& LayerParameter::reduction_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.reduction_param) - return reduction_param_ != NULL ? *reduction_param_ - : *::opencv_caffe::ReductionParameter::internal_default_instance(); -} -::opencv_caffe::ReductionParameter* LayerParameter::mutable_reduction_param() { - set_has_reduction_param(); - if (reduction_param_ == NULL) { - reduction_param_ = new ::opencv_caffe::ReductionParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.reduction_param) - return reduction_param_; -} -::opencv_caffe::ReductionParameter* LayerParameter::release_reduction_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.reduction_param) - clear_has_reduction_param(); - ::opencv_caffe::ReductionParameter* temp = reduction_param_; - reduction_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_reduction_param(::opencv_caffe::ReductionParameter* reduction_param) { - delete reduction_param_; - reduction_param_ = reduction_param; - if (reduction_param) { - set_has_reduction_param(); - } else { - clear_has_reduction_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.reduction_param) -} - -// optional .opencv_caffe.ReLUParameter relu_param = 123; -bool LayerParameter::has_relu_param() const { - return (_has_bits_[1] & 0x00200000u) != 0; -} -void LayerParameter::set_has_relu_param() { - _has_bits_[1] |= 0x00200000u; -} -void LayerParameter::clear_has_relu_param() { - _has_bits_[1] &= ~0x00200000u; -} -void LayerParameter::clear_relu_param() { - if (relu_param_ != NULL) relu_param_->::opencv_caffe::ReLUParameter::Clear(); - clear_has_relu_param(); -} -const ::opencv_caffe::ReLUParameter& LayerParameter::relu_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.relu_param) - return relu_param_ != NULL ? *relu_param_ - : *::opencv_caffe::ReLUParameter::internal_default_instance(); -} -::opencv_caffe::ReLUParameter* LayerParameter::mutable_relu_param() { - set_has_relu_param(); - if (relu_param_ == NULL) { - relu_param_ = new ::opencv_caffe::ReLUParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.relu_param) - return relu_param_; -} -::opencv_caffe::ReLUParameter* LayerParameter::release_relu_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.relu_param) - clear_has_relu_param(); - ::opencv_caffe::ReLUParameter* temp = relu_param_; - relu_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_relu_param(::opencv_caffe::ReLUParameter* relu_param) { - delete relu_param_; - relu_param_ = relu_param; - if (relu_param) { - set_has_relu_param(); - } else { - clear_has_relu_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.relu_param) -} - -// optional .opencv_caffe.ReshapeParameter reshape_param = 133; -bool LayerParameter::has_reshape_param() const { - return (_has_bits_[1] & 0x00400000u) != 0; -} -void LayerParameter::set_has_reshape_param() { - _has_bits_[1] |= 0x00400000u; -} -void LayerParameter::clear_has_reshape_param() { - _has_bits_[1] &= ~0x00400000u; -} -void LayerParameter::clear_reshape_param() { - if (reshape_param_ != NULL) reshape_param_->::opencv_caffe::ReshapeParameter::Clear(); - clear_has_reshape_param(); -} -const ::opencv_caffe::ReshapeParameter& LayerParameter::reshape_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.reshape_param) - return reshape_param_ != NULL ? *reshape_param_ - : *::opencv_caffe::ReshapeParameter::internal_default_instance(); -} -::opencv_caffe::ReshapeParameter* LayerParameter::mutable_reshape_param() { - set_has_reshape_param(); - if (reshape_param_ == NULL) { - reshape_param_ = new ::opencv_caffe::ReshapeParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.reshape_param) - return reshape_param_; -} -::opencv_caffe::ReshapeParameter* LayerParameter::release_reshape_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.reshape_param) - clear_has_reshape_param(); - ::opencv_caffe::ReshapeParameter* temp = reshape_param_; - reshape_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_reshape_param(::opencv_caffe::ReshapeParameter* reshape_param) { - delete reshape_param_; - reshape_param_ = reshape_param; - if (reshape_param) { - set_has_reshape_param(); - } else { - clear_has_reshape_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.reshape_param) -} - -// optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; -bool LayerParameter::has_roi_pooling_param() const { - return (_has_bits_[1] & 0x00800000u) != 0; -} -void LayerParameter::set_has_roi_pooling_param() { - _has_bits_[1] |= 0x00800000u; -} -void LayerParameter::clear_has_roi_pooling_param() { - _has_bits_[1] &= ~0x00800000u; -} -void LayerParameter::clear_roi_pooling_param() { - if (roi_pooling_param_ != NULL) roi_pooling_param_->::opencv_caffe::ROIPoolingParameter::Clear(); - clear_has_roi_pooling_param(); -} -const ::opencv_caffe::ROIPoolingParameter& LayerParameter::roi_pooling_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.roi_pooling_param) - return roi_pooling_param_ != NULL ? *roi_pooling_param_ - : *::opencv_caffe::ROIPoolingParameter::internal_default_instance(); -} -::opencv_caffe::ROIPoolingParameter* LayerParameter::mutable_roi_pooling_param() { - set_has_roi_pooling_param(); - if (roi_pooling_param_ == NULL) { - roi_pooling_param_ = new ::opencv_caffe::ROIPoolingParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.roi_pooling_param) - return roi_pooling_param_; -} -::opencv_caffe::ROIPoolingParameter* LayerParameter::release_roi_pooling_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.roi_pooling_param) - clear_has_roi_pooling_param(); - ::opencv_caffe::ROIPoolingParameter* temp = roi_pooling_param_; - roi_pooling_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_roi_pooling_param(::opencv_caffe::ROIPoolingParameter* roi_pooling_param) { - delete roi_pooling_param_; - roi_pooling_param_ = roi_pooling_param; - if (roi_pooling_param) { - set_has_roi_pooling_param(); - } else { - clear_has_roi_pooling_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.roi_pooling_param) -} - -// optional .opencv_caffe.ScaleParameter scale_param = 142; -bool LayerParameter::has_scale_param() const { - return (_has_bits_[1] & 0x01000000u) != 0; -} -void LayerParameter::set_has_scale_param() { - _has_bits_[1] |= 0x01000000u; -} -void LayerParameter::clear_has_scale_param() { - _has_bits_[1] &= ~0x01000000u; -} -void LayerParameter::clear_scale_param() { - if (scale_param_ != NULL) scale_param_->::opencv_caffe::ScaleParameter::Clear(); - clear_has_scale_param(); -} -const ::opencv_caffe::ScaleParameter& LayerParameter::scale_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.scale_param) - return scale_param_ != NULL ? *scale_param_ - : *::opencv_caffe::ScaleParameter::internal_default_instance(); -} -::opencv_caffe::ScaleParameter* LayerParameter::mutable_scale_param() { - set_has_scale_param(); - if (scale_param_ == NULL) { - scale_param_ = new ::opencv_caffe::ScaleParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.scale_param) - return scale_param_; -} -::opencv_caffe::ScaleParameter* LayerParameter::release_scale_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.scale_param) - clear_has_scale_param(); - ::opencv_caffe::ScaleParameter* temp = scale_param_; - scale_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_scale_param(::opencv_caffe::ScaleParameter* scale_param) { - delete scale_param_; - scale_param_ = scale_param; - if (scale_param) { - set_has_scale_param(); - } else { - clear_has_scale_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.scale_param) -} - -// optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; -bool LayerParameter::has_sigmoid_param() const { - return (_has_bits_[1] & 0x02000000u) != 0; -} -void LayerParameter::set_has_sigmoid_param() { - _has_bits_[1] |= 0x02000000u; -} -void LayerParameter::clear_has_sigmoid_param() { - _has_bits_[1] &= ~0x02000000u; -} -void LayerParameter::clear_sigmoid_param() { - if (sigmoid_param_ != NULL) sigmoid_param_->::opencv_caffe::SigmoidParameter::Clear(); - clear_has_sigmoid_param(); -} -const ::opencv_caffe::SigmoidParameter& LayerParameter::sigmoid_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.sigmoid_param) - return sigmoid_param_ != NULL ? *sigmoid_param_ - : *::opencv_caffe::SigmoidParameter::internal_default_instance(); -} -::opencv_caffe::SigmoidParameter* LayerParameter::mutable_sigmoid_param() { - set_has_sigmoid_param(); - if (sigmoid_param_ == NULL) { - sigmoid_param_ = new ::opencv_caffe::SigmoidParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.sigmoid_param) - return sigmoid_param_; -} -::opencv_caffe::SigmoidParameter* LayerParameter::release_sigmoid_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.sigmoid_param) - clear_has_sigmoid_param(); - ::opencv_caffe::SigmoidParameter* temp = sigmoid_param_; - sigmoid_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_sigmoid_param(::opencv_caffe::SigmoidParameter* sigmoid_param) { - delete sigmoid_param_; - sigmoid_param_ = sigmoid_param; - if (sigmoid_param) { - set_has_sigmoid_param(); - } else { - clear_has_sigmoid_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.sigmoid_param) -} - -// optional .opencv_caffe.SoftmaxParameter softmax_param = 125; -bool LayerParameter::has_softmax_param() const { - return (_has_bits_[1] & 0x04000000u) != 0; -} -void LayerParameter::set_has_softmax_param() { - _has_bits_[1] |= 0x04000000u; -} -void LayerParameter::clear_has_softmax_param() { - _has_bits_[1] &= ~0x04000000u; -} -void LayerParameter::clear_softmax_param() { - if (softmax_param_ != NULL) softmax_param_->::opencv_caffe::SoftmaxParameter::Clear(); - clear_has_softmax_param(); -} -const ::opencv_caffe::SoftmaxParameter& LayerParameter::softmax_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.softmax_param) - return softmax_param_ != NULL ? *softmax_param_ - : *::opencv_caffe::SoftmaxParameter::internal_default_instance(); -} -::opencv_caffe::SoftmaxParameter* LayerParameter::mutable_softmax_param() { - set_has_softmax_param(); - if (softmax_param_ == NULL) { - softmax_param_ = new ::opencv_caffe::SoftmaxParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.softmax_param) - return softmax_param_; -} -::opencv_caffe::SoftmaxParameter* LayerParameter::release_softmax_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.softmax_param) - clear_has_softmax_param(); - ::opencv_caffe::SoftmaxParameter* temp = softmax_param_; - softmax_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_softmax_param(::opencv_caffe::SoftmaxParameter* softmax_param) { - delete softmax_param_; - softmax_param_ = softmax_param; - if (softmax_param) { - set_has_softmax_param(); - } else { - clear_has_softmax_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.softmax_param) -} - -// optional .opencv_caffe.SPPParameter spp_param = 132; -bool LayerParameter::has_spp_param() const { - return (_has_bits_[1] & 0x08000000u) != 0; -} -void LayerParameter::set_has_spp_param() { - _has_bits_[1] |= 0x08000000u; -} -void LayerParameter::clear_has_spp_param() { - _has_bits_[1] &= ~0x08000000u; -} -void LayerParameter::clear_spp_param() { - if (spp_param_ != NULL) spp_param_->::opencv_caffe::SPPParameter::Clear(); - clear_has_spp_param(); -} -const ::opencv_caffe::SPPParameter& LayerParameter::spp_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.spp_param) - return spp_param_ != NULL ? *spp_param_ - : *::opencv_caffe::SPPParameter::internal_default_instance(); -} -::opencv_caffe::SPPParameter* LayerParameter::mutable_spp_param() { - set_has_spp_param(); - if (spp_param_ == NULL) { - spp_param_ = new ::opencv_caffe::SPPParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.spp_param) - return spp_param_; -} -::opencv_caffe::SPPParameter* LayerParameter::release_spp_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.spp_param) - clear_has_spp_param(); - ::opencv_caffe::SPPParameter* temp = spp_param_; - spp_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_spp_param(::opencv_caffe::SPPParameter* spp_param) { - delete spp_param_; - spp_param_ = spp_param; - if (spp_param) { - set_has_spp_param(); - } else { - clear_has_spp_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.spp_param) -} - -// optional .opencv_caffe.SliceParameter slice_param = 126; -bool LayerParameter::has_slice_param() const { - return (_has_bits_[1] & 0x10000000u) != 0; -} -void LayerParameter::set_has_slice_param() { - _has_bits_[1] |= 0x10000000u; -} -void LayerParameter::clear_has_slice_param() { - _has_bits_[1] &= ~0x10000000u; -} -void LayerParameter::clear_slice_param() { - if (slice_param_ != NULL) slice_param_->::opencv_caffe::SliceParameter::Clear(); - clear_has_slice_param(); -} -const ::opencv_caffe::SliceParameter& LayerParameter::slice_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.slice_param) - return slice_param_ != NULL ? *slice_param_ - : *::opencv_caffe::SliceParameter::internal_default_instance(); -} -::opencv_caffe::SliceParameter* LayerParameter::mutable_slice_param() { - set_has_slice_param(); - if (slice_param_ == NULL) { - slice_param_ = new ::opencv_caffe::SliceParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.slice_param) - return slice_param_; -} -::opencv_caffe::SliceParameter* LayerParameter::release_slice_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.slice_param) - clear_has_slice_param(); - ::opencv_caffe::SliceParameter* temp = slice_param_; - slice_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_slice_param(::opencv_caffe::SliceParameter* slice_param) { - delete slice_param_; - slice_param_ = slice_param; - if (slice_param) { - set_has_slice_param(); - } else { - clear_has_slice_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.slice_param) -} - -// optional .opencv_caffe.TanHParameter tanh_param = 127; -bool LayerParameter::has_tanh_param() const { - return (_has_bits_[1] & 0x20000000u) != 0; -} -void LayerParameter::set_has_tanh_param() { - _has_bits_[1] |= 0x20000000u; -} -void LayerParameter::clear_has_tanh_param() { - _has_bits_[1] &= ~0x20000000u; -} -void LayerParameter::clear_tanh_param() { - if (tanh_param_ != NULL) tanh_param_->::opencv_caffe::TanHParameter::Clear(); - clear_has_tanh_param(); -} -const ::opencv_caffe::TanHParameter& LayerParameter::tanh_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.tanh_param) - return tanh_param_ != NULL ? *tanh_param_ - : *::opencv_caffe::TanHParameter::internal_default_instance(); -} -::opencv_caffe::TanHParameter* LayerParameter::mutable_tanh_param() { - set_has_tanh_param(); - if (tanh_param_ == NULL) { - tanh_param_ = new ::opencv_caffe::TanHParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.tanh_param) - return tanh_param_; -} -::opencv_caffe::TanHParameter* LayerParameter::release_tanh_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.tanh_param) - clear_has_tanh_param(); - ::opencv_caffe::TanHParameter* temp = tanh_param_; - tanh_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_tanh_param(::opencv_caffe::TanHParameter* tanh_param) { - delete tanh_param_; - tanh_param_ = tanh_param; - if (tanh_param) { - set_has_tanh_param(); - } else { - clear_has_tanh_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.tanh_param) -} - -// optional .opencv_caffe.ThresholdParameter threshold_param = 128; -bool LayerParameter::has_threshold_param() const { - return (_has_bits_[1] & 0x40000000u) != 0; -} -void LayerParameter::set_has_threshold_param() { - _has_bits_[1] |= 0x40000000u; -} -void LayerParameter::clear_has_threshold_param() { - _has_bits_[1] &= ~0x40000000u; -} -void LayerParameter::clear_threshold_param() { - if (threshold_param_ != NULL) threshold_param_->::opencv_caffe::ThresholdParameter::Clear(); - clear_has_threshold_param(); -} -const ::opencv_caffe::ThresholdParameter& LayerParameter::threshold_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.threshold_param) - return threshold_param_ != NULL ? *threshold_param_ - : *::opencv_caffe::ThresholdParameter::internal_default_instance(); -} -::opencv_caffe::ThresholdParameter* LayerParameter::mutable_threshold_param() { - set_has_threshold_param(); - if (threshold_param_ == NULL) { - threshold_param_ = new ::opencv_caffe::ThresholdParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.threshold_param) - return threshold_param_; -} -::opencv_caffe::ThresholdParameter* LayerParameter::release_threshold_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.threshold_param) - clear_has_threshold_param(); - ::opencv_caffe::ThresholdParameter* temp = threshold_param_; - threshold_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_threshold_param(::opencv_caffe::ThresholdParameter* threshold_param) { - delete threshold_param_; - threshold_param_ = threshold_param; - if (threshold_param) { - set_has_threshold_param(); - } else { - clear_has_threshold_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.threshold_param) -} - -// optional .opencv_caffe.TileParameter tile_param = 138; -bool LayerParameter::has_tile_param() const { - return (_has_bits_[1] & 0x80000000u) != 0; -} -void LayerParameter::set_has_tile_param() { - _has_bits_[1] |= 0x80000000u; -} -void LayerParameter::clear_has_tile_param() { - _has_bits_[1] &= ~0x80000000u; -} -void LayerParameter::clear_tile_param() { - if (tile_param_ != NULL) tile_param_->::opencv_caffe::TileParameter::Clear(); - clear_has_tile_param(); -} -const ::opencv_caffe::TileParameter& LayerParameter::tile_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.tile_param) - return tile_param_ != NULL ? *tile_param_ - : *::opencv_caffe::TileParameter::internal_default_instance(); -} -::opencv_caffe::TileParameter* LayerParameter::mutable_tile_param() { - set_has_tile_param(); - if (tile_param_ == NULL) { - tile_param_ = new ::opencv_caffe::TileParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.tile_param) - return tile_param_; -} -::opencv_caffe::TileParameter* LayerParameter::release_tile_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.tile_param) - clear_has_tile_param(); - ::opencv_caffe::TileParameter* temp = tile_param_; - tile_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_tile_param(::opencv_caffe::TileParameter* tile_param) { - delete tile_param_; - tile_param_ = tile_param; - if (tile_param) { - set_has_tile_param(); - } else { - clear_has_tile_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.tile_param) -} - -// optional .opencv_caffe.WindowDataParameter window_data_param = 129; -bool LayerParameter::has_window_data_param() const { - return (_has_bits_[2] & 0x00000001u) != 0; -} -void LayerParameter::set_has_window_data_param() { - _has_bits_[2] |= 0x00000001u; -} -void LayerParameter::clear_has_window_data_param() { - _has_bits_[2] &= ~0x00000001u; -} -void LayerParameter::clear_window_data_param() { - if (window_data_param_ != NULL) window_data_param_->::opencv_caffe::WindowDataParameter::Clear(); - clear_has_window_data_param(); -} -const ::opencv_caffe::WindowDataParameter& LayerParameter::window_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.window_data_param) - return window_data_param_ != NULL ? *window_data_param_ - : *::opencv_caffe::WindowDataParameter::internal_default_instance(); -} -::opencv_caffe::WindowDataParameter* LayerParameter::mutable_window_data_param() { - set_has_window_data_param(); - if (window_data_param_ == NULL) { - window_data_param_ = new ::opencv_caffe::WindowDataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.window_data_param) - return window_data_param_; -} -::opencv_caffe::WindowDataParameter* LayerParameter::release_window_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.window_data_param) - clear_has_window_data_param(); - ::opencv_caffe::WindowDataParameter* temp = window_data_param_; - window_data_param_ = NULL; - return temp; -} -void LayerParameter::set_allocated_window_data_param(::opencv_caffe::WindowDataParameter* window_data_param) { - delete window_data_param_; - window_data_param_ = window_data_param; - if (window_data_param) { - set_has_window_data_param(); - } else { - clear_has_window_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.window_data_param) -} - -inline const LayerParameter* LayerParameter::internal_default_instance() { - return &LayerParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TransformationParameter::kScaleFieldNumber; -const int TransformationParameter::kMirrorFieldNumber; -const int TransformationParameter::kCropSizeFieldNumber; -const int TransformationParameter::kMeanFileFieldNumber; -const int TransformationParameter::kMeanValueFieldNumber; -const int TransformationParameter::kForceColorFieldNumber; -const int TransformationParameter::kForceGrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TransformationParameter::TransformationParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.TransformationParameter) -} - -void TransformationParameter::InitAsDefaultInstance() { -} - -TransformationParameter::TransformationParameter(const TransformationParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.TransformationParameter) -} - -void TransformationParameter::SharedCtor() { - _cached_size_ = 0; - mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&crop_size_, 0, reinterpret_cast(&force_gray_) - - reinterpret_cast(&crop_size_) + sizeof(force_gray_)); - scale_ = 1; -} - -TransformationParameter::~TransformationParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.TransformationParameter) - SharedDtor(); -} - -void TransformationParameter::SharedDtor() { - mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TransformationParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* TransformationParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TransformationParameter_descriptor_; -} - -const TransformationParameter& TransformationParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed TransformationParameter_default_instance_; - -TransformationParameter* TransformationParameter::New(::google::protobuf::Arena* arena) const { - TransformationParameter* n = new TransformationParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void TransformationParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.TransformationParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(TransformationParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 111u) { - ZR_(crop_size_, force_gray_); - scale_ = 1; - if (has_mean_file()) { - mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - } - -#undef ZR_HELPER_ -#undef ZR_ - - mean_value_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool TransformationParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.TransformationParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float scale = 1 [default = 1]; - case 1: { - if (tag == 13) { - set_has_scale(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_mirror; - break; - } - - // optional bool mirror = 2 [default = false]; - case 2: { - if (tag == 16) { - parse_mirror: - set_has_mirror(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &mirror_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_crop_size; - break; - } - - // optional uint32 crop_size = 3 [default = 0]; - case 3: { - if (tag == 24) { - parse_crop_size: - set_has_crop_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &crop_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_mean_file; - break; - } - - // optional string mean_file = 4; - case 4: { - if (tag == 34) { - parse_mean_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mean_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.TransformationParameter.mean_file"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_mean_value; - break; - } - - // repeated float mean_value = 5; - case 5: { - if (tag == 45) { - parse_mean_value: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 45, input, this->mutable_mean_value()))); - } else if (tag == 42) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_mean_value()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_mean_value; - if (input->ExpectTag(48)) goto parse_force_color; - break; - } - - // optional bool force_color = 6 [default = false]; - case 6: { - if (tag == 48) { - parse_force_color: - set_has_force_color(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &force_color_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_force_gray; - break; - } - - // optional bool force_gray = 7 [default = false]; - case 7: { - if (tag == 56) { - parse_force_gray: - set_has_force_gray(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &force_gray_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.TransformationParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.TransformationParameter) - return false; -#undef DO_ -} - -void TransformationParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.TransformationParameter) - // optional float scale = 1 [default = 1]; - if (has_scale()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->scale(), output); - } - - // optional bool mirror = 2 [default = false]; - if (has_mirror()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->mirror(), output); - } - - // optional uint32 crop_size = 3 [default = 0]; - if (has_crop_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->crop_size(), output); - } - - // optional string mean_file = 4; - if (has_mean_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.TransformationParameter.mean_file"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->mean_file(), output); - } - - // repeated float mean_value = 5; - for (int i = 0; i < this->mean_value_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 5, this->mean_value(i), output); - } - - // optional bool force_color = 6 [default = false]; - if (has_force_color()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->force_color(), output); - } - - // optional bool force_gray = 7 [default = false]; - if (has_force_gray()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->force_gray(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.TransformationParameter) -} - -::google::protobuf::uint8* TransformationParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.TransformationParameter) - // optional float scale = 1 [default = 1]; - if (has_scale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->scale(), target); - } - - // optional bool mirror = 2 [default = false]; - if (has_mirror()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->mirror(), target); - } - - // optional uint32 crop_size = 3 [default = 0]; - if (has_crop_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->crop_size(), target); - } - - // optional string mean_file = 4; - if (has_mean_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.TransformationParameter.mean_file"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->mean_file(), target); - } - - // repeated float mean_value = 5; - for (int i = 0; i < this->mean_value_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(5, this->mean_value(i), target); - } - - // optional bool force_color = 6 [default = false]; - if (has_force_color()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->force_color(), target); - } - - // optional bool force_gray = 7 [default = false]; - if (has_force_gray()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->force_gray(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.TransformationParameter) - return target; -} - -size_t TransformationParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.TransformationParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 111u) { - // optional float scale = 1 [default = 1]; - if (has_scale()) { - total_size += 1 + 4; - } - - // optional bool mirror = 2 [default = false]; - if (has_mirror()) { - total_size += 1 + 1; - } - - // optional uint32 crop_size = 3 [default = 0]; - if (has_crop_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->crop_size()); - } - - // optional string mean_file = 4; - if (has_mean_file()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->mean_file()); - } - - // optional bool force_color = 6 [default = false]; - if (has_force_color()) { - total_size += 1 + 1; - } - - // optional bool force_gray = 7 [default = false]; - if (has_force_gray()) { - total_size += 1 + 1; - } - - } - // repeated float mean_value = 5; - { - size_t data_size = 0; - unsigned int count = this->mean_value_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->mean_value_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TransformationParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.TransformationParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const TransformationParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.TransformationParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.TransformationParameter) - UnsafeMergeFrom(*source); - } -} - -void TransformationParameter::MergeFrom(const TransformationParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.TransformationParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void TransformationParameter::UnsafeMergeFrom(const TransformationParameter& from) { - GOOGLE_DCHECK(&from != this); - mean_value_.UnsafeMergeFrom(from.mean_value_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_mirror()) { - set_mirror(from.mirror()); - } - if (from.has_crop_size()) { - set_crop_size(from.crop_size()); - } - if (from.has_mean_file()) { - set_has_mean_file(); - mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); - } - if (from.has_force_color()) { - set_force_color(from.force_color()); - } - if (from.has_force_gray()) { - set_force_gray(from.force_gray()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void TransformationParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.TransformationParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TransformationParameter::CopyFrom(const TransformationParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.TransformationParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool TransformationParameter::IsInitialized() const { - - return true; -} - -void TransformationParameter::Swap(TransformationParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void TransformationParameter::InternalSwap(TransformationParameter* other) { - std::swap(scale_, other->scale_); - std::swap(mirror_, other->mirror_); - std::swap(crop_size_, other->crop_size_); - mean_file_.Swap(&other->mean_file_); - mean_value_.UnsafeArenaSwap(&other->mean_value_); - std::swap(force_color_, other->force_color_); - std::swap(force_gray_, other->force_gray_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata TransformationParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TransformationParameter_descriptor_; - metadata.reflection = TransformationParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TransformationParameter - -// optional float scale = 1 [default = 1]; -bool TransformationParameter::has_scale() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void TransformationParameter::set_has_scale() { - _has_bits_[0] |= 0x00000001u; -} -void TransformationParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000001u; -} -void TransformationParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -float TransformationParameter::scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.TransformationParameter.scale) - return scale_; -} -void TransformationParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.TransformationParameter.scale) -} - -// optional bool mirror = 2 [default = false]; -bool TransformationParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void TransformationParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000002u; -} -void TransformationParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000002u; -} -void TransformationParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -bool TransformationParameter::mirror() const { - // @@protoc_insertion_point(field_get:opencv_caffe.TransformationParameter.mirror) - return mirror_; -} -void TransformationParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.TransformationParameter.mirror) -} - -// optional uint32 crop_size = 3 [default = 0]; -bool TransformationParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void TransformationParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000004u; -} -void TransformationParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000004u; -} -void TransformationParameter::clear_crop_size() { - crop_size_ = 0u; - clear_has_crop_size(); -} -::google::protobuf::uint32 TransformationParameter::crop_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.TransformationParameter.crop_size) - return crop_size_; -} -void TransformationParameter::set_crop_size(::google::protobuf::uint32 value) { - set_has_crop_size(); - crop_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.TransformationParameter.crop_size) -} - -// optional string mean_file = 4; -bool TransformationParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void TransformationParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000008u; -} -void TransformationParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000008u; -} -void TransformationParameter::clear_mean_file() { - mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_mean_file(); -} -const ::std::string& TransformationParameter::mean_file() const { - // @@protoc_insertion_point(field_get:opencv_caffe.TransformationParameter.mean_file) - return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void TransformationParameter::set_mean_file(const ::std::string& value) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.TransformationParameter.mean_file) -} -void TransformationParameter::set_mean_file(const char* value) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.TransformationParameter.mean_file) -} -void TransformationParameter::set_mean_file(const char* value, size_t size) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.TransformationParameter.mean_file) -} -::std::string* TransformationParameter::mutable_mean_file() { - set_has_mean_file(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.TransformationParameter.mean_file) - return mean_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* TransformationParameter::release_mean_file() { - // @@protoc_insertion_point(field_release:opencv_caffe.TransformationParameter.mean_file) - clear_has_mean_file(); - return mean_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void TransformationParameter::set_allocated_mean_file(::std::string* mean_file) { - if (mean_file != NULL) { - set_has_mean_file(); - } else { - clear_has_mean_file(); - } - mean_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mean_file); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.TransformationParameter.mean_file) -} - -// repeated float mean_value = 5; -int TransformationParameter::mean_value_size() const { - return mean_value_.size(); -} -void TransformationParameter::clear_mean_value() { - mean_value_.Clear(); -} -float TransformationParameter::mean_value(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.TransformationParameter.mean_value) - return mean_value_.Get(index); -} -void TransformationParameter::set_mean_value(int index, float value) { - mean_value_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.TransformationParameter.mean_value) -} -void TransformationParameter::add_mean_value(float value) { - mean_value_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.TransformationParameter.mean_value) -} -const ::google::protobuf::RepeatedField< float >& -TransformationParameter::mean_value() const { - // @@protoc_insertion_point(field_list:opencv_caffe.TransformationParameter.mean_value) - return mean_value_; -} -::google::protobuf::RepeatedField< float >* -TransformationParameter::mutable_mean_value() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.TransformationParameter.mean_value) - return &mean_value_; -} - -// optional bool force_color = 6 [default = false]; -bool TransformationParameter::has_force_color() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void TransformationParameter::set_has_force_color() { - _has_bits_[0] |= 0x00000020u; -} -void TransformationParameter::clear_has_force_color() { - _has_bits_[0] &= ~0x00000020u; -} -void TransformationParameter::clear_force_color() { - force_color_ = false; - clear_has_force_color(); -} -bool TransformationParameter::force_color() const { - // @@protoc_insertion_point(field_get:opencv_caffe.TransformationParameter.force_color) - return force_color_; -} -void TransformationParameter::set_force_color(bool value) { - set_has_force_color(); - force_color_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.TransformationParameter.force_color) -} - -// optional bool force_gray = 7 [default = false]; -bool TransformationParameter::has_force_gray() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void TransformationParameter::set_has_force_gray() { - _has_bits_[0] |= 0x00000040u; -} -void TransformationParameter::clear_has_force_gray() { - _has_bits_[0] &= ~0x00000040u; -} -void TransformationParameter::clear_force_gray() { - force_gray_ = false; - clear_has_force_gray(); -} -bool TransformationParameter::force_gray() const { - // @@protoc_insertion_point(field_get:opencv_caffe.TransformationParameter.force_gray) - return force_gray_; -} -void TransformationParameter::set_force_gray(bool value) { - set_has_force_gray(); - force_gray_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.TransformationParameter.force_gray) -} - -inline const TransformationParameter* TransformationParameter::internal_default_instance() { - return &TransformationParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* LossParameter_NormalizationMode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return LossParameter_NormalizationMode_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[6]; } bool LossParameter_NormalizationMode_IsValid(int value) { switch (value) { @@ -22375,2806 +4162,9 @@ const LossParameter_NormalizationMode LossParameter::NormalizationMode_MIN; const LossParameter_NormalizationMode LossParameter::NormalizationMode_MAX; const int LossParameter::NormalizationMode_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LossParameter::kIgnoreLabelFieldNumber; -const int LossParameter::kNormalizationFieldNumber; -const int LossParameter::kNormalizeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LossParameter::LossParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.LossParameter) -} - -void LossParameter::InitAsDefaultInstance() { -} - -LossParameter::LossParameter(const LossParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.LossParameter) -} - -void LossParameter::SharedCtor() { - _cached_size_ = 0; - ::memset(&ignore_label_, 0, reinterpret_cast(&normalize_) - - reinterpret_cast(&ignore_label_) + sizeof(normalize_)); - normalization_ = 1; -} - -LossParameter::~LossParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.LossParameter) - SharedDtor(); -} - -void LossParameter::SharedDtor() { -} - -void LossParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* LossParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return LossParameter_descriptor_; -} - -const LossParameter& LossParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed LossParameter_default_instance_; - -LossParameter* LossParameter::New(::google::protobuf::Arena* arena) const { - LossParameter* n = new LossParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void LossParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.LossParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(LossParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 7u) { - ZR_(ignore_label_, normalize_); - normalization_ = 1; - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool LossParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.LossParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 ignore_label = 1; - case 1: { - if (tag == 8) { - set_has_ignore_label(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &ignore_label_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_normalize; - break; - } - - // optional bool normalize = 2; - case 2: { - if (tag == 16) { - parse_normalize: - set_has_normalize(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &normalize_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_normalization; - break; - } - - // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; - case 3: { - if (tag == 24) { - parse_normalization: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::LossParameter_NormalizationMode_IsValid(value)) { - set_normalization(static_cast< ::opencv_caffe::LossParameter_NormalizationMode >(value)); - } else { - mutable_unknown_fields()->AddVarint(3, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.LossParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.LossParameter) - return false; -#undef DO_ -} - -void LossParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.LossParameter) - // optional int32 ignore_label = 1; - if (has_ignore_label()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->ignore_label(), output); - } - - // optional bool normalize = 2; - if (has_normalize()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->normalize(), output); - } - - // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; - if (has_normalization()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->normalization(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.LossParameter) -} - -::google::protobuf::uint8* LossParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LossParameter) - // optional int32 ignore_label = 1; - if (has_ignore_label()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->ignore_label(), target); - } - - // optional bool normalize = 2; - if (has_normalize()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->normalize(), target); - } - - // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; - if (has_normalization()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->normalization(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LossParameter) - return target; -} - -size_t LossParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LossParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional int32 ignore_label = 1; - if (has_ignore_label()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->ignore_label()); - } - - // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; - if (has_normalization()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->normalization()); - } - - // optional bool normalize = 2; - if (has_normalize()) { - total_size += 1 + 1; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LossParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LossParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const LossParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LossParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LossParameter) - UnsafeMergeFrom(*source); - } -} - -void LossParameter::MergeFrom(const LossParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LossParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void LossParameter::UnsafeMergeFrom(const LossParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_ignore_label()) { - set_ignore_label(from.ignore_label()); - } - if (from.has_normalization()) { - set_normalization(from.normalization()); - } - if (from.has_normalize()) { - set_normalize(from.normalize()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void LossParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LossParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LossParameter::CopyFrom(const LossParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LossParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool LossParameter::IsInitialized() const { - - return true; -} - -void LossParameter::Swap(LossParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void LossParameter::InternalSwap(LossParameter* other) { - std::swap(ignore_label_, other->ignore_label_); - std::swap(normalization_, other->normalization_); - std::swap(normalize_, other->normalize_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata LossParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = LossParameter_descriptor_; - metadata.reflection = LossParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// LossParameter - -// optional int32 ignore_label = 1; -bool LossParameter::has_ignore_label() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void LossParameter::set_has_ignore_label() { - _has_bits_[0] |= 0x00000001u; -} -void LossParameter::clear_has_ignore_label() { - _has_bits_[0] &= ~0x00000001u; -} -void LossParameter::clear_ignore_label() { - ignore_label_ = 0; - clear_has_ignore_label(); -} -::google::protobuf::int32 LossParameter::ignore_label() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LossParameter.ignore_label) - return ignore_label_; -} -void LossParameter::set_ignore_label(::google::protobuf::int32 value) { - set_has_ignore_label(); - ignore_label_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LossParameter.ignore_label) -} - -// optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; -bool LossParameter::has_normalization() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void LossParameter::set_has_normalization() { - _has_bits_[0] |= 0x00000002u; -} -void LossParameter::clear_has_normalization() { - _has_bits_[0] &= ~0x00000002u; -} -void LossParameter::clear_normalization() { - normalization_ = 1; - clear_has_normalization(); -} -::opencv_caffe::LossParameter_NormalizationMode LossParameter::normalization() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LossParameter.normalization) - return static_cast< ::opencv_caffe::LossParameter_NormalizationMode >(normalization_); -} -void LossParameter::set_normalization(::opencv_caffe::LossParameter_NormalizationMode value) { - assert(::opencv_caffe::LossParameter_NormalizationMode_IsValid(value)); - set_has_normalization(); - normalization_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LossParameter.normalization) -} - -// optional bool normalize = 2; -bool LossParameter::has_normalize() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void LossParameter::set_has_normalize() { - _has_bits_[0] |= 0x00000004u; -} -void LossParameter::clear_has_normalize() { - _has_bits_[0] &= ~0x00000004u; -} -void LossParameter::clear_normalize() { - normalize_ = false; - clear_has_normalize(); -} -bool LossParameter::normalize() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LossParameter.normalize) - return normalize_; -} -void LossParameter::set_normalize(bool value) { - set_has_normalize(); - normalize_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LossParameter.normalize) -} - -inline const LossParameter* LossParameter::internal_default_instance() { - return &LossParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AccuracyParameter::kTopKFieldNumber; -const int AccuracyParameter::kAxisFieldNumber; -const int AccuracyParameter::kIgnoreLabelFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AccuracyParameter::AccuracyParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.AccuracyParameter) -} - -void AccuracyParameter::InitAsDefaultInstance() { -} - -AccuracyParameter::AccuracyParameter(const AccuracyParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.AccuracyParameter) -} - -void AccuracyParameter::SharedCtor() { - _cached_size_ = 0; - ignore_label_ = 0; - top_k_ = 1u; - axis_ = 1; -} - -AccuracyParameter::~AccuracyParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.AccuracyParameter) - SharedDtor(); -} - -void AccuracyParameter::SharedDtor() { -} - -void AccuracyParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AccuracyParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AccuracyParameter_descriptor_; -} - -const AccuracyParameter& AccuracyParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed AccuracyParameter_default_instance_; - -AccuracyParameter* AccuracyParameter::New(::google::protobuf::Arena* arena) const { - AccuracyParameter* n = new AccuracyParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void AccuracyParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.AccuracyParameter) - if (_has_bits_[0 / 32] & 7u) { - top_k_ = 1u; - axis_ = 1; - ignore_label_ = 0; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool AccuracyParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.AccuracyParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 top_k = 1 [default = 1]; - case 1: { - if (tag == 8) { - set_has_top_k(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &top_k_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 1]; - case 2: { - if (tag == 16) { - parse_axis: - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_ignore_label; - break; - } - - // optional int32 ignore_label = 3; - case 3: { - if (tag == 24) { - parse_ignore_label: - set_has_ignore_label(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &ignore_label_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.AccuracyParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.AccuracyParameter) - return false; -#undef DO_ -} - -void AccuracyParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.AccuracyParameter) - // optional uint32 top_k = 1 [default = 1]; - if (has_top_k()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->top_k(), output); - } - - // optional int32 axis = 2 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); - } - - // optional int32 ignore_label = 3; - if (has_ignore_label()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->ignore_label(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.AccuracyParameter) -} - -::google::protobuf::uint8* AccuracyParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.AccuracyParameter) - // optional uint32 top_k = 1 [default = 1]; - if (has_top_k()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->top_k(), target); - } - - // optional int32 axis = 2 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); - } - - // optional int32 ignore_label = 3; - if (has_ignore_label()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->ignore_label(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.AccuracyParameter) - return target; -} - -size_t AccuracyParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.AccuracyParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional uint32 top_k = 1 [default = 1]; - if (has_top_k()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->top_k()); - } - - // optional int32 axis = 2 [default = 1]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional int32 ignore_label = 3; - if (has_ignore_label()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->ignore_label()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AccuracyParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.AccuracyParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const AccuracyParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.AccuracyParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.AccuracyParameter) - UnsafeMergeFrom(*source); - } -} - -void AccuracyParameter::MergeFrom(const AccuracyParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.AccuracyParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void AccuracyParameter::UnsafeMergeFrom(const AccuracyParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_top_k()) { - set_top_k(from.top_k()); - } - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_ignore_label()) { - set_ignore_label(from.ignore_label()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void AccuracyParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.AccuracyParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AccuracyParameter::CopyFrom(const AccuracyParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.AccuracyParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool AccuracyParameter::IsInitialized() const { - - return true; -} - -void AccuracyParameter::Swap(AccuracyParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void AccuracyParameter::InternalSwap(AccuracyParameter* other) { - std::swap(top_k_, other->top_k_); - std::swap(axis_, other->axis_); - std::swap(ignore_label_, other->ignore_label_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata AccuracyParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AccuracyParameter_descriptor_; - metadata.reflection = AccuracyParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// AccuracyParameter - -// optional uint32 top_k = 1 [default = 1]; -bool AccuracyParameter::has_top_k() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void AccuracyParameter::set_has_top_k() { - _has_bits_[0] |= 0x00000001u; -} -void AccuracyParameter::clear_has_top_k() { - _has_bits_[0] &= ~0x00000001u; -} -void AccuracyParameter::clear_top_k() { - top_k_ = 1u; - clear_has_top_k(); -} -::google::protobuf::uint32 AccuracyParameter::top_k() const { - // @@protoc_insertion_point(field_get:opencv_caffe.AccuracyParameter.top_k) - return top_k_; -} -void AccuracyParameter::set_top_k(::google::protobuf::uint32 value) { - set_has_top_k(); - top_k_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.AccuracyParameter.top_k) -} - -// optional int32 axis = 2 [default = 1]; -bool AccuracyParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void AccuracyParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; -} -void AccuracyParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; -} -void AccuracyParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 AccuracyParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.AccuracyParameter.axis) - return axis_; -} -void AccuracyParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.AccuracyParameter.axis) -} - -// optional int32 ignore_label = 3; -bool AccuracyParameter::has_ignore_label() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void AccuracyParameter::set_has_ignore_label() { - _has_bits_[0] |= 0x00000004u; -} -void AccuracyParameter::clear_has_ignore_label() { - _has_bits_[0] &= ~0x00000004u; -} -void AccuracyParameter::clear_ignore_label() { - ignore_label_ = 0; - clear_has_ignore_label(); -} -::google::protobuf::int32 AccuracyParameter::ignore_label() const { - // @@protoc_insertion_point(field_get:opencv_caffe.AccuracyParameter.ignore_label) - return ignore_label_; -} -void AccuracyParameter::set_ignore_label(::google::protobuf::int32 value) { - set_has_ignore_label(); - ignore_label_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.AccuracyParameter.ignore_label) -} - -inline const AccuracyParameter* AccuracyParameter::internal_default_instance() { - return &AccuracyParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArgMaxParameter::kOutMaxValFieldNumber; -const int ArgMaxParameter::kTopKFieldNumber; -const int ArgMaxParameter::kAxisFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArgMaxParameter::ArgMaxParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ArgMaxParameter) -} - -void ArgMaxParameter::InitAsDefaultInstance() { -} - -ArgMaxParameter::ArgMaxParameter(const ArgMaxParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ArgMaxParameter) -} - -void ArgMaxParameter::SharedCtor() { - _cached_size_ = 0; - ::memset(&out_max_val_, 0, reinterpret_cast(&axis_) - - reinterpret_cast(&out_max_val_) + sizeof(axis_)); - top_k_ = 1u; -} - -ArgMaxParameter::~ArgMaxParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ArgMaxParameter) - SharedDtor(); -} - -void ArgMaxParameter::SharedDtor() { -} - -void ArgMaxParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ArgMaxParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ArgMaxParameter_descriptor_; -} - -const ArgMaxParameter& ArgMaxParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ArgMaxParameter_default_instance_; - -ArgMaxParameter* ArgMaxParameter::New(::google::protobuf::Arena* arena) const { - ArgMaxParameter* n = new ArgMaxParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ArgMaxParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ArgMaxParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(ArgMaxParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 7u) { - ZR_(out_max_val_, axis_); - top_k_ = 1u; - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ArgMaxParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ArgMaxParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional bool out_max_val = 1 [default = false]; - case 1: { - if (tag == 8) { - set_has_out_max_val(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &out_max_val_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_top_k; - break; - } - - // optional uint32 top_k = 2 [default = 1]; - case 2: { - if (tag == 16) { - parse_top_k: - set_has_top_k(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &top_k_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_axis; - break; - } - - // optional int32 axis = 3; - case 3: { - if (tag == 24) { - parse_axis: - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ArgMaxParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ArgMaxParameter) - return false; -#undef DO_ -} - -void ArgMaxParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ArgMaxParameter) - // optional bool out_max_val = 1 [default = false]; - if (has_out_max_val()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->out_max_val(), output); - } - - // optional uint32 top_k = 2 [default = 1]; - if (has_top_k()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->top_k(), output); - } - - // optional int32 axis = 3; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->axis(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ArgMaxParameter) -} - -::google::protobuf::uint8* ArgMaxParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ArgMaxParameter) - // optional bool out_max_val = 1 [default = false]; - if (has_out_max_val()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->out_max_val(), target); - } - - // optional uint32 top_k = 2 [default = 1]; - if (has_top_k()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->top_k(), target); - } - - // optional int32 axis = 3; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->axis(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ArgMaxParameter) - return target; -} - -size_t ArgMaxParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ArgMaxParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional bool out_max_val = 1 [default = false]; - if (has_out_max_val()) { - total_size += 1 + 1; - } - - // optional uint32 top_k = 2 [default = 1]; - if (has_top_k()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->top_k()); - } - - // optional int32 axis = 3; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ArgMaxParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ArgMaxParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ArgMaxParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ArgMaxParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ArgMaxParameter) - UnsafeMergeFrom(*source); - } -} - -void ArgMaxParameter::MergeFrom(const ArgMaxParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ArgMaxParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ArgMaxParameter::UnsafeMergeFrom(const ArgMaxParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_out_max_val()) { - set_out_max_val(from.out_max_val()); - } - if (from.has_top_k()) { - set_top_k(from.top_k()); - } - if (from.has_axis()) { - set_axis(from.axis()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ArgMaxParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ArgMaxParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArgMaxParameter::CopyFrom(const ArgMaxParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ArgMaxParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ArgMaxParameter::IsInitialized() const { - - return true; -} - -void ArgMaxParameter::Swap(ArgMaxParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ArgMaxParameter::InternalSwap(ArgMaxParameter* other) { - std::swap(out_max_val_, other->out_max_val_); - std::swap(top_k_, other->top_k_); - std::swap(axis_, other->axis_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ArgMaxParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ArgMaxParameter_descriptor_; - metadata.reflection = ArgMaxParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ArgMaxParameter - -// optional bool out_max_val = 1 [default = false]; -bool ArgMaxParameter::has_out_max_val() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ArgMaxParameter::set_has_out_max_val() { - _has_bits_[0] |= 0x00000001u; -} -void ArgMaxParameter::clear_has_out_max_val() { - _has_bits_[0] &= ~0x00000001u; -} -void ArgMaxParameter::clear_out_max_val() { - out_max_val_ = false; - clear_has_out_max_val(); -} -bool ArgMaxParameter::out_max_val() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ArgMaxParameter.out_max_val) - return out_max_val_; -} -void ArgMaxParameter::set_out_max_val(bool value) { - set_has_out_max_val(); - out_max_val_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ArgMaxParameter.out_max_val) -} - -// optional uint32 top_k = 2 [default = 1]; -bool ArgMaxParameter::has_top_k() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ArgMaxParameter::set_has_top_k() { - _has_bits_[0] |= 0x00000002u; -} -void ArgMaxParameter::clear_has_top_k() { - _has_bits_[0] &= ~0x00000002u; -} -void ArgMaxParameter::clear_top_k() { - top_k_ = 1u; - clear_has_top_k(); -} -::google::protobuf::uint32 ArgMaxParameter::top_k() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ArgMaxParameter.top_k) - return top_k_; -} -void ArgMaxParameter::set_top_k(::google::protobuf::uint32 value) { - set_has_top_k(); - top_k_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ArgMaxParameter.top_k) -} - -// optional int32 axis = 3; -bool ArgMaxParameter::has_axis() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void ArgMaxParameter::set_has_axis() { - _has_bits_[0] |= 0x00000004u; -} -void ArgMaxParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000004u; -} -void ArgMaxParameter::clear_axis() { - axis_ = 0; - clear_has_axis(); -} -::google::protobuf::int32 ArgMaxParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ArgMaxParameter.axis) - return axis_; -} -void ArgMaxParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ArgMaxParameter.axis) -} - -inline const ArgMaxParameter* ArgMaxParameter::internal_default_instance() { - return &ArgMaxParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ConcatParameter::kAxisFieldNumber; -const int ConcatParameter::kConcatDimFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ConcatParameter::ConcatParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ConcatParameter) -} - -void ConcatParameter::InitAsDefaultInstance() { -} - -ConcatParameter::ConcatParameter(const ConcatParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ConcatParameter) -} - -void ConcatParameter::SharedCtor() { - _cached_size_ = 0; - axis_ = 1; - concat_dim_ = 1u; -} - -ConcatParameter::~ConcatParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ConcatParameter) - SharedDtor(); -} - -void ConcatParameter::SharedDtor() { -} - -void ConcatParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ConcatParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ConcatParameter_descriptor_; -} - -const ConcatParameter& ConcatParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ConcatParameter_default_instance_; - -ConcatParameter* ConcatParameter::New(::google::protobuf::Arena* arena) const { - ConcatParameter* n = new ConcatParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ConcatParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ConcatParameter) - if (_has_bits_[0 / 32] & 3u) { - axis_ = 1; - concat_dim_ = 1u; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ConcatParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ConcatParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 concat_dim = 1 [default = 1]; - case 1: { - if (tag == 8) { - set_has_concat_dim(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &concat_dim_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 1]; - case 2: { - if (tag == 16) { - parse_axis: - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ConcatParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ConcatParameter) - return false; -#undef DO_ -} - -void ConcatParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ConcatParameter) - // optional uint32 concat_dim = 1 [default = 1]; - if (has_concat_dim()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->concat_dim(), output); - } - - // optional int32 axis = 2 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ConcatParameter) -} - -::google::protobuf::uint8* ConcatParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ConcatParameter) - // optional uint32 concat_dim = 1 [default = 1]; - if (has_concat_dim()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->concat_dim(), target); - } - - // optional int32 axis = 2 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ConcatParameter) - return target; -} - -size_t ConcatParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ConcatParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 3u) { - // optional int32 axis = 2 [default = 1]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional uint32 concat_dim = 1 [default = 1]; - if (has_concat_dim()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->concat_dim()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ConcatParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ConcatParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ConcatParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ConcatParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ConcatParameter) - UnsafeMergeFrom(*source); - } -} - -void ConcatParameter::MergeFrom(const ConcatParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ConcatParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ConcatParameter::UnsafeMergeFrom(const ConcatParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_concat_dim()) { - set_concat_dim(from.concat_dim()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ConcatParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ConcatParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConcatParameter::CopyFrom(const ConcatParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ConcatParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ConcatParameter::IsInitialized() const { - - return true; -} - -void ConcatParameter::Swap(ConcatParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ConcatParameter::InternalSwap(ConcatParameter* other) { - std::swap(axis_, other->axis_); - std::swap(concat_dim_, other->concat_dim_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ConcatParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ConcatParameter_descriptor_; - metadata.reflection = ConcatParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ConcatParameter - -// optional int32 axis = 2 [default = 1]; -bool ConcatParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ConcatParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -void ConcatParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -void ConcatParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 ConcatParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConcatParameter.axis) - return axis_; -} -void ConcatParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConcatParameter.axis) -} - -// optional uint32 concat_dim = 1 [default = 1]; -bool ConcatParameter::has_concat_dim() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ConcatParameter::set_has_concat_dim() { - _has_bits_[0] |= 0x00000002u; -} -void ConcatParameter::clear_has_concat_dim() { - _has_bits_[0] &= ~0x00000002u; -} -void ConcatParameter::clear_concat_dim() { - concat_dim_ = 1u; - clear_has_concat_dim(); -} -::google::protobuf::uint32 ConcatParameter::concat_dim() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConcatParameter.concat_dim) - return concat_dim_; -} -void ConcatParameter::set_concat_dim(::google::protobuf::uint32 value) { - set_has_concat_dim(); - concat_dim_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConcatParameter.concat_dim) -} - -inline const ConcatParameter* ConcatParameter::internal_default_instance() { - return &ConcatParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BatchNormParameter::kUseGlobalStatsFieldNumber; -const int BatchNormParameter::kMovingAverageFractionFieldNumber; -const int BatchNormParameter::kEpsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BatchNormParameter::BatchNormParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.BatchNormParameter) -} - -void BatchNormParameter::InitAsDefaultInstance() { -} - -BatchNormParameter::BatchNormParameter(const BatchNormParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.BatchNormParameter) -} - -void BatchNormParameter::SharedCtor() { - _cached_size_ = 0; - use_global_stats_ = false; - moving_average_fraction_ = 0.999f; - eps_ = 1e-05f; -} - -BatchNormParameter::~BatchNormParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.BatchNormParameter) - SharedDtor(); -} - -void BatchNormParameter::SharedDtor() { -} - -void BatchNormParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* BatchNormParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BatchNormParameter_descriptor_; -} - -const BatchNormParameter& BatchNormParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed BatchNormParameter_default_instance_; - -BatchNormParameter* BatchNormParameter::New(::google::protobuf::Arena* arena) const { - BatchNormParameter* n = new BatchNormParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void BatchNormParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.BatchNormParameter) - if (_has_bits_[0 / 32] & 7u) { - use_global_stats_ = false; - moving_average_fraction_ = 0.999f; - eps_ = 1e-05f; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool BatchNormParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.BatchNormParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional bool use_global_stats = 1; - case 1: { - if (tag == 8) { - set_has_use_global_stats(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &use_global_stats_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_moving_average_fraction; - break; - } - - // optional float moving_average_fraction = 2 [default = 0.999]; - case 2: { - if (tag == 21) { - parse_moving_average_fraction: - set_has_moving_average_fraction(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &moving_average_fraction_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_eps; - break; - } - - // optional float eps = 3 [default = 1e-05]; - case 3: { - if (tag == 29) { - parse_eps: - set_has_eps(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &eps_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.BatchNormParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.BatchNormParameter) - return false; -#undef DO_ -} - -void BatchNormParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.BatchNormParameter) - // optional bool use_global_stats = 1; - if (has_use_global_stats()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->use_global_stats(), output); - } - - // optional float moving_average_fraction = 2 [default = 0.999]; - if (has_moving_average_fraction()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->moving_average_fraction(), output); - } - - // optional float eps = 3 [default = 1e-05]; - if (has_eps()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->eps(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.BatchNormParameter) -} - -::google::protobuf::uint8* BatchNormParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BatchNormParameter) - // optional bool use_global_stats = 1; - if (has_use_global_stats()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->use_global_stats(), target); - } - - // optional float moving_average_fraction = 2 [default = 0.999]; - if (has_moving_average_fraction()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->moving_average_fraction(), target); - } - - // optional float eps = 3 [default = 1e-05]; - if (has_eps()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->eps(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BatchNormParameter) - return target; -} - -size_t BatchNormParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BatchNormParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional bool use_global_stats = 1; - if (has_use_global_stats()) { - total_size += 1 + 1; - } - - // optional float moving_average_fraction = 2 [default = 0.999]; - if (has_moving_average_fraction()) { - total_size += 1 + 4; - } - - // optional float eps = 3 [default = 1e-05]; - if (has_eps()) { - total_size += 1 + 4; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BatchNormParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BatchNormParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const BatchNormParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BatchNormParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BatchNormParameter) - UnsafeMergeFrom(*source); - } -} - -void BatchNormParameter::MergeFrom(const BatchNormParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BatchNormParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void BatchNormParameter::UnsafeMergeFrom(const BatchNormParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_use_global_stats()) { - set_use_global_stats(from.use_global_stats()); - } - if (from.has_moving_average_fraction()) { - set_moving_average_fraction(from.moving_average_fraction()); - } - if (from.has_eps()) { - set_eps(from.eps()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void BatchNormParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BatchNormParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BatchNormParameter::CopyFrom(const BatchNormParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BatchNormParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool BatchNormParameter::IsInitialized() const { - - return true; -} - -void BatchNormParameter::Swap(BatchNormParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void BatchNormParameter::InternalSwap(BatchNormParameter* other) { - std::swap(use_global_stats_, other->use_global_stats_); - std::swap(moving_average_fraction_, other->moving_average_fraction_); - std::swap(eps_, other->eps_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata BatchNormParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = BatchNormParameter_descriptor_; - metadata.reflection = BatchNormParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// BatchNormParameter - -// optional bool use_global_stats = 1; -bool BatchNormParameter::has_use_global_stats() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void BatchNormParameter::set_has_use_global_stats() { - _has_bits_[0] |= 0x00000001u; -} -void BatchNormParameter::clear_has_use_global_stats() { - _has_bits_[0] &= ~0x00000001u; -} -void BatchNormParameter::clear_use_global_stats() { - use_global_stats_ = false; - clear_has_use_global_stats(); -} -bool BatchNormParameter::use_global_stats() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BatchNormParameter.use_global_stats) - return use_global_stats_; -} -void BatchNormParameter::set_use_global_stats(bool value) { - set_has_use_global_stats(); - use_global_stats_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BatchNormParameter.use_global_stats) -} - -// optional float moving_average_fraction = 2 [default = 0.999]; -bool BatchNormParameter::has_moving_average_fraction() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void BatchNormParameter::set_has_moving_average_fraction() { - _has_bits_[0] |= 0x00000002u; -} -void BatchNormParameter::clear_has_moving_average_fraction() { - _has_bits_[0] &= ~0x00000002u; -} -void BatchNormParameter::clear_moving_average_fraction() { - moving_average_fraction_ = 0.999f; - clear_has_moving_average_fraction(); -} -float BatchNormParameter::moving_average_fraction() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BatchNormParameter.moving_average_fraction) - return moving_average_fraction_; -} -void BatchNormParameter::set_moving_average_fraction(float value) { - set_has_moving_average_fraction(); - moving_average_fraction_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BatchNormParameter.moving_average_fraction) -} - -// optional float eps = 3 [default = 1e-05]; -bool BatchNormParameter::has_eps() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void BatchNormParameter::set_has_eps() { - _has_bits_[0] |= 0x00000004u; -} -void BatchNormParameter::clear_has_eps() { - _has_bits_[0] &= ~0x00000004u; -} -void BatchNormParameter::clear_eps() { - eps_ = 1e-05f; - clear_has_eps(); -} -float BatchNormParameter::eps() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BatchNormParameter.eps) - return eps_; -} -void BatchNormParameter::set_eps(float value) { - set_has_eps(); - eps_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BatchNormParameter.eps) -} - -inline const BatchNormParameter* BatchNormParameter::internal_default_instance() { - return &BatchNormParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BiasParameter::kAxisFieldNumber; -const int BiasParameter::kNumAxesFieldNumber; -const int BiasParameter::kFillerFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BiasParameter::BiasParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.BiasParameter) -} - -void BiasParameter::InitAsDefaultInstance() { - filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); -} - -BiasParameter::BiasParameter(const BiasParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.BiasParameter) -} - -void BiasParameter::SharedCtor() { - _cached_size_ = 0; - filler_ = NULL; - axis_ = 1; - num_axes_ = 1; -} - -BiasParameter::~BiasParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.BiasParameter) - SharedDtor(); -} - -void BiasParameter::SharedDtor() { - if (this != &BiasParameter_default_instance_.get()) { - delete filler_; - } -} - -void BiasParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* BiasParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return BiasParameter_descriptor_; -} - -const BiasParameter& BiasParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed BiasParameter_default_instance_; - -BiasParameter* BiasParameter::New(::google::protobuf::Arena* arena) const { - BiasParameter* n = new BiasParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void BiasParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.BiasParameter) - if (_has_bits_[0 / 32] & 7u) { - axis_ = 1; - num_axes_ = 1; - if (has_filler()) { - if (filler_ != NULL) filler_->::opencv_caffe::FillerParameter::Clear(); - } - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool BiasParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.BiasParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 axis = 1 [default = 1]; - case 1: { - if (tag == 8) { - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_num_axes; - break; - } - - // optional int32 num_axes = 2 [default = 1]; - case 2: { - if (tag == 16) { - parse_num_axes: - set_has_num_axes(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &num_axes_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_filler; - break; - } - - // optional .opencv_caffe.FillerParameter filler = 3; - case 3: { - if (tag == 26) { - parse_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.BiasParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.BiasParameter) - return false; -#undef DO_ -} - -void BiasParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.BiasParameter) - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); - } - - // optional int32 num_axes = 2 [default = 1]; - if (has_num_axes()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_axes(), output); - } - - // optional .opencv_caffe.FillerParameter filler = 3; - if (has_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->filler_, output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.BiasParameter) -} - -::google::protobuf::uint8* BiasParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BiasParameter) - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); - } - - // optional int32 num_axes = 2 [default = 1]; - if (has_num_axes()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_axes(), target); - } - - // optional .opencv_caffe.FillerParameter filler = 3; - if (has_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->filler_, false, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BiasParameter) - return target; -} - -size_t BiasParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BiasParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional int32 num_axes = 2 [default = 1]; - if (has_num_axes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->num_axes()); - } - - // optional .opencv_caffe.FillerParameter filler = 3; - if (has_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->filler_); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void BiasParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BiasParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const BiasParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BiasParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BiasParameter) - UnsafeMergeFrom(*source); - } -} - -void BiasParameter::MergeFrom(const BiasParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BiasParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void BiasParameter::UnsafeMergeFrom(const BiasParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_num_axes()) { - set_num_axes(from.num_axes()); - } - if (from.has_filler()) { - mutable_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.filler()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void BiasParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BiasParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BiasParameter::CopyFrom(const BiasParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BiasParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool BiasParameter::IsInitialized() const { - - return true; -} - -void BiasParameter::Swap(BiasParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void BiasParameter::InternalSwap(BiasParameter* other) { - std::swap(axis_, other->axis_); - std::swap(num_axes_, other->num_axes_); - std::swap(filler_, other->filler_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata BiasParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = BiasParameter_descriptor_; - metadata.reflection = BiasParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// BiasParameter - -// optional int32 axis = 1 [default = 1]; -bool BiasParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void BiasParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -void BiasParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -void BiasParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 BiasParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BiasParameter.axis) - return axis_; -} -void BiasParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BiasParameter.axis) -} - -// optional int32 num_axes = 2 [default = 1]; -bool BiasParameter::has_num_axes() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void BiasParameter::set_has_num_axes() { - _has_bits_[0] |= 0x00000002u; -} -void BiasParameter::clear_has_num_axes() { - _has_bits_[0] &= ~0x00000002u; -} -void BiasParameter::clear_num_axes() { - num_axes_ = 1; - clear_has_num_axes(); -} -::google::protobuf::int32 BiasParameter::num_axes() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BiasParameter.num_axes) - return num_axes_; -} -void BiasParameter::set_num_axes(::google::protobuf::int32 value) { - set_has_num_axes(); - num_axes_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.BiasParameter.num_axes) -} - -// optional .opencv_caffe.FillerParameter filler = 3; -bool BiasParameter::has_filler() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void BiasParameter::set_has_filler() { - _has_bits_[0] |= 0x00000004u; -} -void BiasParameter::clear_has_filler() { - _has_bits_[0] &= ~0x00000004u; -} -void BiasParameter::clear_filler() { - if (filler_ != NULL) filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_filler(); -} -const ::opencv_caffe::FillerParameter& BiasParameter::filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.BiasParameter.filler) - return filler_ != NULL ? *filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* BiasParameter::mutable_filler() { - set_has_filler(); - if (filler_ == NULL) { - filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.BiasParameter.filler) - return filler_; -} -::opencv_caffe::FillerParameter* BiasParameter::release_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.BiasParameter.filler) - clear_has_filler(); - ::opencv_caffe::FillerParameter* temp = filler_; - filler_ = NULL; - return temp; -} -void BiasParameter::set_allocated_filler(::opencv_caffe::FillerParameter* filler) { - delete filler_; - filler_ = filler; - if (filler) { - set_has_filler(); - } else { - clear_has_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.BiasParameter.filler) -} - -inline const BiasParameter* BiasParameter::internal_default_instance() { - return &BiasParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ContrastiveLossParameter::kMarginFieldNumber; -const int ContrastiveLossParameter::kLegacyVersionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ContrastiveLossParameter::ContrastiveLossParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ContrastiveLossParameter) -} - -void ContrastiveLossParameter::InitAsDefaultInstance() { -} - -ContrastiveLossParameter::ContrastiveLossParameter(const ContrastiveLossParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ContrastiveLossParameter) -} - -void ContrastiveLossParameter::SharedCtor() { - _cached_size_ = 0; - legacy_version_ = false; - margin_ = 1; -} - -ContrastiveLossParameter::~ContrastiveLossParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ContrastiveLossParameter) - SharedDtor(); -} - -void ContrastiveLossParameter::SharedDtor() { -} - -void ContrastiveLossParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ContrastiveLossParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ContrastiveLossParameter_descriptor_; -} - -const ContrastiveLossParameter& ContrastiveLossParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ContrastiveLossParameter_default_instance_; - -ContrastiveLossParameter* ContrastiveLossParameter::New(::google::protobuf::Arena* arena) const { - ContrastiveLossParameter* n = new ContrastiveLossParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ContrastiveLossParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ContrastiveLossParameter) - if (_has_bits_[0 / 32] & 3u) { - margin_ = 1; - legacy_version_ = false; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ContrastiveLossParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ContrastiveLossParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float margin = 1 [default = 1]; - case 1: { - if (tag == 13) { - set_has_margin(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &margin_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_legacy_version; - break; - } - - // optional bool legacy_version = 2 [default = false]; - case 2: { - if (tag == 16) { - parse_legacy_version: - set_has_legacy_version(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &legacy_version_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ContrastiveLossParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ContrastiveLossParameter) - return false; -#undef DO_ -} - -void ContrastiveLossParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ContrastiveLossParameter) - // optional float margin = 1 [default = 1]; - if (has_margin()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->margin(), output); - } - - // optional bool legacy_version = 2 [default = false]; - if (has_legacy_version()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->legacy_version(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ContrastiveLossParameter) -} - -::google::protobuf::uint8* ContrastiveLossParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ContrastiveLossParameter) - // optional float margin = 1 [default = 1]; - if (has_margin()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->margin(), target); - } - - // optional bool legacy_version = 2 [default = false]; - if (has_legacy_version()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->legacy_version(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ContrastiveLossParameter) - return target; -} - -size_t ContrastiveLossParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ContrastiveLossParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 3u) { - // optional float margin = 1 [default = 1]; - if (has_margin()) { - total_size += 1 + 4; - } - - // optional bool legacy_version = 2 [default = false]; - if (has_legacy_version()) { - total_size += 1 + 1; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ContrastiveLossParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ContrastiveLossParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ContrastiveLossParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ContrastiveLossParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ContrastiveLossParameter) - UnsafeMergeFrom(*source); - } -} - -void ContrastiveLossParameter::MergeFrom(const ContrastiveLossParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ContrastiveLossParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ContrastiveLossParameter::UnsafeMergeFrom(const ContrastiveLossParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_margin()) { - set_margin(from.margin()); - } - if (from.has_legacy_version()) { - set_legacy_version(from.legacy_version()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ContrastiveLossParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ContrastiveLossParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ContrastiveLossParameter::CopyFrom(const ContrastiveLossParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ContrastiveLossParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ContrastiveLossParameter::IsInitialized() const { - - return true; -} - -void ContrastiveLossParameter::Swap(ContrastiveLossParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ContrastiveLossParameter::InternalSwap(ContrastiveLossParameter* other) { - std::swap(margin_, other->margin_); - std::swap(legacy_version_, other->legacy_version_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ContrastiveLossParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ContrastiveLossParameter_descriptor_; - metadata.reflection = ContrastiveLossParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ContrastiveLossParameter - -// optional float margin = 1 [default = 1]; -bool ContrastiveLossParameter::has_margin() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ContrastiveLossParameter::set_has_margin() { - _has_bits_[0] |= 0x00000001u; -} -void ContrastiveLossParameter::clear_has_margin() { - _has_bits_[0] &= ~0x00000001u; -} -void ContrastiveLossParameter::clear_margin() { - margin_ = 1; - clear_has_margin(); -} -float ContrastiveLossParameter::margin() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ContrastiveLossParameter.margin) - return margin_; -} -void ContrastiveLossParameter::set_margin(float value) { - set_has_margin(); - margin_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ContrastiveLossParameter.margin) -} - -// optional bool legacy_version = 2 [default = false]; -bool ContrastiveLossParameter::has_legacy_version() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ContrastiveLossParameter::set_has_legacy_version() { - _has_bits_[0] |= 0x00000002u; -} -void ContrastiveLossParameter::clear_has_legacy_version() { - _has_bits_[0] &= ~0x00000002u; -} -void ContrastiveLossParameter::clear_legacy_version() { - legacy_version_ = false; - clear_has_legacy_version(); -} -bool ContrastiveLossParameter::legacy_version() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ContrastiveLossParameter.legacy_version) - return legacy_version_; -} -void ContrastiveLossParameter::set_legacy_version(bool value) { - set_has_legacy_version(); - legacy_version_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ContrastiveLossParameter.legacy_version) -} - -inline const ContrastiveLossParameter* ContrastiveLossParameter::internal_default_instance() { - return &ContrastiveLossParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* ConvolutionParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ConvolutionParameter_Engine_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[7]; } bool ConvolutionParameter_Engine_IsValid(int value) { switch (value) { @@ -25195,1858 +4185,9 @@ const ConvolutionParameter_Engine ConvolutionParameter::Engine_MIN; const ConvolutionParameter_Engine ConvolutionParameter::Engine_MAX; const int ConvolutionParameter::Engine_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ConvolutionParameter::kNumOutputFieldNumber; -const int ConvolutionParameter::kBiasTermFieldNumber; -const int ConvolutionParameter::kPadFieldNumber; -const int ConvolutionParameter::kKernelSizeFieldNumber; -const int ConvolutionParameter::kStrideFieldNumber; -const int ConvolutionParameter::kDilationFieldNumber; -const int ConvolutionParameter::kPadHFieldNumber; -const int ConvolutionParameter::kPadWFieldNumber; -const int ConvolutionParameter::kKernelHFieldNumber; -const int ConvolutionParameter::kKernelWFieldNumber; -const int ConvolutionParameter::kStrideHFieldNumber; -const int ConvolutionParameter::kStrideWFieldNumber; -const int ConvolutionParameter::kGroupFieldNumber; -const int ConvolutionParameter::kWeightFillerFieldNumber; -const int ConvolutionParameter::kBiasFillerFieldNumber; -const int ConvolutionParameter::kEngineFieldNumber; -const int ConvolutionParameter::kAxisFieldNumber; -const int ConvolutionParameter::kForceNdIm2ColFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ConvolutionParameter::ConvolutionParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ConvolutionParameter) -} - -void ConvolutionParameter::InitAsDefaultInstance() { - weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); - bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); -} - -ConvolutionParameter::ConvolutionParameter(const ConvolutionParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ConvolutionParameter) -} - -void ConvolutionParameter::SharedCtor() { - _cached_size_ = 0; - weight_filler_ = NULL; - bias_filler_ = NULL; - ::memset(&num_output_, 0, reinterpret_cast(&force_nd_im2col_) - - reinterpret_cast(&num_output_) + sizeof(force_nd_im2col_)); - axis_ = 1; - bias_term_ = true; - group_ = 1u; -} - -ConvolutionParameter::~ConvolutionParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ConvolutionParameter) - SharedDtor(); -} - -void ConvolutionParameter::SharedDtor() { - if (this != &ConvolutionParameter_default_instance_.get()) { - delete weight_filler_; - delete bias_filler_; - } -} - -void ConvolutionParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ConvolutionParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ConvolutionParameter_descriptor_; -} - -const ConvolutionParameter& ConvolutionParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ConvolutionParameter_default_instance_; - -ConvolutionParameter* ConvolutionParameter::New(::google::protobuf::Arena* arena) const { - ConvolutionParameter* n = new ConvolutionParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ConvolutionParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ConvolutionParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(ConvolutionParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 195u) { - ZR_(num_output_, pad_w_); - bias_term_ = true; - } - if (_has_bits_[8 / 32] & 65280u) { - ZR_(kernel_h_, engine_); - group_ = 1u; - if (has_weight_filler()) { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - } - if (has_bias_filler()) { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - } - } - if (_has_bits_[16 / 32] & 196608u) { - axis_ = 1; - force_nd_im2col_ = false; - } - -#undef ZR_HELPER_ -#undef ZR_ - - pad_.Clear(); - kernel_size_.Clear(); - stride_.Clear(); - dilation_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ConvolutionParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ConvolutionParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 num_output = 1; - case 1: { - if (tag == 8) { - set_has_num_output(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &num_output_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_bias_term; - break; - } - - // optional bool bias_term = 2 [default = true]; - case 2: { - if (tag == 16) { - parse_bias_term: - set_has_bias_term(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &bias_term_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_pad; - break; - } - - // repeated uint32 pad = 3; - case 3: { - if (tag == 24) { - parse_pad: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 24, input, this->mutable_pad()))); - } else if (tag == 26) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_pad()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_pad; - if (input->ExpectTag(32)) goto parse_kernel_size; - break; - } - - // repeated uint32 kernel_size = 4; - case 4: { - if (tag == 32) { - parse_kernel_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 32, input, this->mutable_kernel_size()))); - } else if (tag == 34) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_kernel_size()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_kernel_size; - if (input->ExpectTag(40)) goto parse_group; - break; - } - - // optional uint32 group = 5 [default = 1]; - case 5: { - if (tag == 40) { - parse_group: - set_has_group(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &group_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_stride; - break; - } - - // repeated uint32 stride = 6; - case 6: { - if (tag == 48) { - parse_stride: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 48, input, this->mutable_stride()))); - } else if (tag == 50) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_stride()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_stride; - if (input->ExpectTag(58)) goto parse_weight_filler; - break; - } - - // optional .opencv_caffe.FillerParameter weight_filler = 7; - case 7: { - if (tag == 58) { - parse_weight_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_weight_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_bias_filler; - break; - } - - // optional .opencv_caffe.FillerParameter bias_filler = 8; - case 8: { - if (tag == 66) { - parse_bias_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bias_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_pad_h; - break; - } - - // optional uint32 pad_h = 9 [default = 0]; - case 9: { - if (tag == 72) { - parse_pad_h: - set_has_pad_h(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_h_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_pad_w; - break; - } - - // optional uint32 pad_w = 10 [default = 0]; - case 10: { - if (tag == 80) { - parse_pad_w: - set_has_pad_w(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_w_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(88)) goto parse_kernel_h; - break; - } - - // optional uint32 kernel_h = 11; - case 11: { - if (tag == 88) { - parse_kernel_h: - set_has_kernel_h(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_h_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(96)) goto parse_kernel_w; - break; - } - - // optional uint32 kernel_w = 12; - case 12: { - if (tag == 96) { - parse_kernel_w: - set_has_kernel_w(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_w_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(104)) goto parse_stride_h; - break; - } - - // optional uint32 stride_h = 13; - case 13: { - if (tag == 104) { - parse_stride_h: - set_has_stride_h(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_h_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(112)) goto parse_stride_w; - break; - } - - // optional uint32 stride_w = 14; - case 14: { - if (tag == 112) { - parse_stride_w: - set_has_stride_w(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_w_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(120)) goto parse_engine; - break; - } - - // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; - case 15: { - if (tag == 120) { - parse_engine: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::ConvolutionParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::opencv_caffe::ConvolutionParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(15, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(128)) goto parse_axis; - break; - } - - // optional int32 axis = 16 [default = 1]; - case 16: { - if (tag == 128) { - parse_axis: - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(136)) goto parse_force_nd_im2col; - break; - } - - // optional bool force_nd_im2col = 17 [default = false]; - case 17: { - if (tag == 136) { - parse_force_nd_im2col: - set_has_force_nd_im2col(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &force_nd_im2col_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(144)) goto parse_dilation; - break; - } - - // repeated uint32 dilation = 18; - case 18: { - if (tag == 144) { - parse_dilation: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 2, 144, input, this->mutable_dilation()))); - } else if (tag == 146) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_dilation()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(144)) goto parse_dilation; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ConvolutionParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ConvolutionParameter) - return false; -#undef DO_ -} - -void ConvolutionParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ConvolutionParameter) - // optional uint32 num_output = 1; - if (has_num_output()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output); - } - - // optional bool bias_term = 2 [default = true]; - if (has_bias_term()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bias_term(), output); - } - - // repeated uint32 pad = 3; - for (int i = 0; i < this->pad_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 3, this->pad(i), output); - } - - // repeated uint32 kernel_size = 4; - for (int i = 0; i < this->kernel_size_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 4, this->kernel_size(i), output); - } - - // optional uint32 group = 5 [default = 1]; - if (has_group()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->group(), output); - } - - // repeated uint32 stride = 6; - for (int i = 0; i < this->stride_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 6, this->stride(i), output); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 7; - if (has_weight_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, *this->weight_filler_, output); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 8; - if (has_bias_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, *this->bias_filler_, output); - } - - // optional uint32 pad_h = 9 [default = 0]; - if (has_pad_h()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->pad_h(), output); - } - - // optional uint32 pad_w = 10 [default = 0]; - if (has_pad_w()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->pad_w(), output); - } - - // optional uint32 kernel_h = 11; - if (has_kernel_h()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->kernel_h(), output); - } - - // optional uint32 kernel_w = 12; - if (has_kernel_w()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->kernel_w(), output); - } - - // optional uint32 stride_h = 13; - if (has_stride_h()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->stride_h(), output); - } - - // optional uint32 stride_w = 14; - if (has_stride_w()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->stride_w(), output); - } - - // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 15, this->engine(), output); - } - - // optional int32 axis = 16 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->axis(), output); - } - - // optional bool force_nd_im2col = 17 [default = false]; - if (has_force_nd_im2col()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->force_nd_im2col(), output); - } - - // repeated uint32 dilation = 18; - for (int i = 0; i < this->dilation_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 18, this->dilation(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ConvolutionParameter) -} - -::google::protobuf::uint8* ConvolutionParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ConvolutionParameter) - // optional uint32 num_output = 1; - if (has_num_output()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target); - } - - // optional bool bias_term = 2 [default = true]; - if (has_bias_term()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bias_term(), target); - } - - // repeated uint32 pad = 3; - for (int i = 0; i < this->pad_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(3, this->pad(i), target); - } - - // repeated uint32 kernel_size = 4; - for (int i = 0; i < this->kernel_size_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(4, this->kernel_size(i), target); - } - - // optional uint32 group = 5 [default = 1]; - if (has_group()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->group(), target); - } - - // repeated uint32 stride = 6; - for (int i = 0; i < this->stride_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(6, this->stride(i), target); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 7; - if (has_weight_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, *this->weight_filler_, false, target); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 8; - if (has_bias_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8, *this->bias_filler_, false, target); - } - - // optional uint32 pad_h = 9 [default = 0]; - if (has_pad_h()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->pad_h(), target); - } - - // optional uint32 pad_w = 10 [default = 0]; - if (has_pad_w()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->pad_w(), target); - } - - // optional uint32 kernel_h = 11; - if (has_kernel_h()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->kernel_h(), target); - } - - // optional uint32 kernel_w = 12; - if (has_kernel_w()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->kernel_w(), target); - } - - // optional uint32 stride_h = 13; - if (has_stride_h()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->stride_h(), target); - } - - // optional uint32 stride_w = 14; - if (has_stride_w()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->stride_w(), target); - } - - // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 15, this->engine(), target); - } - - // optional int32 axis = 16 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->axis(), target); - } - - // optional bool force_nd_im2col = 17 [default = false]; - if (has_force_nd_im2col()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->force_nd_im2col(), target); - } - - // repeated uint32 dilation = 18; - for (int i = 0; i < this->dilation_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(18, this->dilation(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ConvolutionParameter) - return target; -} - -size_t ConvolutionParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ConvolutionParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 195u) { - // optional uint32 num_output = 1; - if (has_num_output()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->num_output()); - } - - // optional bool bias_term = 2 [default = true]; - if (has_bias_term()) { - total_size += 1 + 1; - } - - // optional uint32 pad_h = 9 [default = 0]; - if (has_pad_h()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->pad_h()); - } - - // optional uint32 pad_w = 10 [default = 0]; - if (has_pad_w()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->pad_w()); - } - - } - if (_has_bits_[8 / 32] & 65280u) { - // optional uint32 kernel_h = 11; - if (has_kernel_h()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kernel_h()); - } - - // optional uint32 kernel_w = 12; - if (has_kernel_w()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kernel_w()); - } - - // optional uint32 stride_h = 13; - if (has_stride_h()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->stride_h()); - } - - // optional uint32 stride_w = 14; - if (has_stride_w()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->stride_w()); - } - - // optional uint32 group = 5 [default = 1]; - if (has_group()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->group()); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 7; - if (has_weight_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->weight_filler_); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 8; - if (has_bias_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->bias_filler_); - } - - // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - } - if (_has_bits_[16 / 32] & 196608u) { - // optional int32 axis = 16 [default = 1]; - if (has_axis()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional bool force_nd_im2col = 17 [default = false]; - if (has_force_nd_im2col()) { - total_size += 2 + 1; - } - - } - // repeated uint32 pad = 3; - { - size_t data_size = 0; - unsigned int count = this->pad_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->pad(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->pad_size()); - total_size += data_size; - } - - // repeated uint32 kernel_size = 4; - { - size_t data_size = 0; - unsigned int count = this->kernel_size_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->kernel_size(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->kernel_size_size()); - total_size += data_size; - } - - // repeated uint32 stride = 6; - { - size_t data_size = 0; - unsigned int count = this->stride_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->stride(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->stride_size()); - total_size += data_size; - } - - // repeated uint32 dilation = 18; - { - size_t data_size = 0; - unsigned int count = this->dilation_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->dilation(i)); - } - total_size += 2 * - ::google::protobuf::internal::FromIntSize(this->dilation_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ConvolutionParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ConvolutionParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ConvolutionParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ConvolutionParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ConvolutionParameter) - UnsafeMergeFrom(*source); - } -} - -void ConvolutionParameter::MergeFrom(const ConvolutionParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ConvolutionParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ConvolutionParameter::UnsafeMergeFrom(const ConvolutionParameter& from) { - GOOGLE_DCHECK(&from != this); - pad_.UnsafeMergeFrom(from.pad_); - kernel_size_.UnsafeMergeFrom(from.kernel_size_); - stride_.UnsafeMergeFrom(from.stride_); - dilation_.UnsafeMergeFrom(from.dilation_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_num_output()) { - set_num_output(from.num_output()); - } - if (from.has_bias_term()) { - set_bias_term(from.bias_term()); - } - if (from.has_pad_h()) { - set_pad_h(from.pad_h()); - } - if (from.has_pad_w()) { - set_pad_w(from.pad_w()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_kernel_h()) { - set_kernel_h(from.kernel_h()); - } - if (from.has_kernel_w()) { - set_kernel_w(from.kernel_w()); - } - if (from.has_stride_h()) { - set_stride_h(from.stride_h()); - } - if (from.has_stride_w()) { - set_stride_w(from.stride_w()); - } - if (from.has_group()) { - set_group(from.group()); - } - if (from.has_weight_filler()) { - mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); - } - if (from.has_bias_filler()) { - mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); - } - if (from.has_engine()) { - set_engine(from.engine()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_force_nd_im2col()) { - set_force_nd_im2col(from.force_nd_im2col()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ConvolutionParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ConvolutionParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConvolutionParameter::CopyFrom(const ConvolutionParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ConvolutionParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ConvolutionParameter::IsInitialized() const { - - return true; -} - -void ConvolutionParameter::Swap(ConvolutionParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ConvolutionParameter::InternalSwap(ConvolutionParameter* other) { - std::swap(num_output_, other->num_output_); - std::swap(bias_term_, other->bias_term_); - pad_.UnsafeArenaSwap(&other->pad_); - kernel_size_.UnsafeArenaSwap(&other->kernel_size_); - stride_.UnsafeArenaSwap(&other->stride_); - dilation_.UnsafeArenaSwap(&other->dilation_); - std::swap(pad_h_, other->pad_h_); - std::swap(pad_w_, other->pad_w_); - std::swap(kernel_h_, other->kernel_h_); - std::swap(kernel_w_, other->kernel_w_); - std::swap(stride_h_, other->stride_h_); - std::swap(stride_w_, other->stride_w_); - std::swap(group_, other->group_); - std::swap(weight_filler_, other->weight_filler_); - std::swap(bias_filler_, other->bias_filler_); - std::swap(engine_, other->engine_); - std::swap(axis_, other->axis_); - std::swap(force_nd_im2col_, other->force_nd_im2col_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ConvolutionParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ConvolutionParameter_descriptor_; - metadata.reflection = ConvolutionParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ConvolutionParameter - -// optional uint32 num_output = 1; -bool ConvolutionParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ConvolutionParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; -} -void ConvolutionParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; -} -void ConvolutionParameter::clear_num_output() { - num_output_ = 0u; - clear_has_num_output(); -} -::google::protobuf::uint32 ConvolutionParameter::num_output() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.num_output) - return num_output_; -} -void ConvolutionParameter::set_num_output(::google::protobuf::uint32 value) { - set_has_num_output(); - num_output_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.num_output) -} - -// optional bool bias_term = 2 [default = true]; -bool ConvolutionParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ConvolutionParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000002u; -} -void ConvolutionParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000002u; -} -void ConvolutionParameter::clear_bias_term() { - bias_term_ = true; - clear_has_bias_term(); -} -bool ConvolutionParameter::bias_term() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.bias_term) - return bias_term_; -} -void ConvolutionParameter::set_bias_term(bool value) { - set_has_bias_term(); - bias_term_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.bias_term) -} - -// repeated uint32 pad = 3; -int ConvolutionParameter::pad_size() const { - return pad_.size(); -} -void ConvolutionParameter::clear_pad() { - pad_.Clear(); -} -::google::protobuf::uint32 ConvolutionParameter::pad(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.pad) - return pad_.Get(index); -} -void ConvolutionParameter::set_pad(int index, ::google::protobuf::uint32 value) { - pad_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.pad) -} -void ConvolutionParameter::add_pad(::google::protobuf::uint32 value) { - pad_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.ConvolutionParameter.pad) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -ConvolutionParameter::pad() const { - // @@protoc_insertion_point(field_list:opencv_caffe.ConvolutionParameter.pad) - return pad_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -ConvolutionParameter::mutable_pad() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.ConvolutionParameter.pad) - return &pad_; -} - -// repeated uint32 kernel_size = 4; -int ConvolutionParameter::kernel_size_size() const { - return kernel_size_.size(); -} -void ConvolutionParameter::clear_kernel_size() { - kernel_size_.Clear(); -} -::google::protobuf::uint32 ConvolutionParameter::kernel_size(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.kernel_size) - return kernel_size_.Get(index); -} -void ConvolutionParameter::set_kernel_size(int index, ::google::protobuf::uint32 value) { - kernel_size_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.kernel_size) -} -void ConvolutionParameter::add_kernel_size(::google::protobuf::uint32 value) { - kernel_size_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.ConvolutionParameter.kernel_size) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -ConvolutionParameter::kernel_size() const { - // @@protoc_insertion_point(field_list:opencv_caffe.ConvolutionParameter.kernel_size) - return kernel_size_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -ConvolutionParameter::mutable_kernel_size() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.ConvolutionParameter.kernel_size) - return &kernel_size_; -} - -// repeated uint32 stride = 6; -int ConvolutionParameter::stride_size() const { - return stride_.size(); -} -void ConvolutionParameter::clear_stride() { - stride_.Clear(); -} -::google::protobuf::uint32 ConvolutionParameter::stride(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.stride) - return stride_.Get(index); -} -void ConvolutionParameter::set_stride(int index, ::google::protobuf::uint32 value) { - stride_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.stride) -} -void ConvolutionParameter::add_stride(::google::protobuf::uint32 value) { - stride_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.ConvolutionParameter.stride) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -ConvolutionParameter::stride() const { - // @@protoc_insertion_point(field_list:opencv_caffe.ConvolutionParameter.stride) - return stride_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -ConvolutionParameter::mutable_stride() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.ConvolutionParameter.stride) - return &stride_; -} - -// repeated uint32 dilation = 18; -int ConvolutionParameter::dilation_size() const { - return dilation_.size(); -} -void ConvolutionParameter::clear_dilation() { - dilation_.Clear(); -} -::google::protobuf::uint32 ConvolutionParameter::dilation(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.dilation) - return dilation_.Get(index); -} -void ConvolutionParameter::set_dilation(int index, ::google::protobuf::uint32 value) { - dilation_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.dilation) -} -void ConvolutionParameter::add_dilation(::google::protobuf::uint32 value) { - dilation_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.ConvolutionParameter.dilation) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -ConvolutionParameter::dilation() const { - // @@protoc_insertion_point(field_list:opencv_caffe.ConvolutionParameter.dilation) - return dilation_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -ConvolutionParameter::mutable_dilation() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.ConvolutionParameter.dilation) - return &dilation_; -} - -// optional uint32 pad_h = 9 [default = 0]; -bool ConvolutionParameter::has_pad_h() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void ConvolutionParameter::set_has_pad_h() { - _has_bits_[0] |= 0x00000040u; -} -void ConvolutionParameter::clear_has_pad_h() { - _has_bits_[0] &= ~0x00000040u; -} -void ConvolutionParameter::clear_pad_h() { - pad_h_ = 0u; - clear_has_pad_h(); -} -::google::protobuf::uint32 ConvolutionParameter::pad_h() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.pad_h) - return pad_h_; -} -void ConvolutionParameter::set_pad_h(::google::protobuf::uint32 value) { - set_has_pad_h(); - pad_h_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.pad_h) -} - -// optional uint32 pad_w = 10 [default = 0]; -bool ConvolutionParameter::has_pad_w() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void ConvolutionParameter::set_has_pad_w() { - _has_bits_[0] |= 0x00000080u; -} -void ConvolutionParameter::clear_has_pad_w() { - _has_bits_[0] &= ~0x00000080u; -} -void ConvolutionParameter::clear_pad_w() { - pad_w_ = 0u; - clear_has_pad_w(); -} -::google::protobuf::uint32 ConvolutionParameter::pad_w() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.pad_w) - return pad_w_; -} -void ConvolutionParameter::set_pad_w(::google::protobuf::uint32 value) { - set_has_pad_w(); - pad_w_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.pad_w) -} - -// optional uint32 kernel_h = 11; -bool ConvolutionParameter::has_kernel_h() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -void ConvolutionParameter::set_has_kernel_h() { - _has_bits_[0] |= 0x00000100u; -} -void ConvolutionParameter::clear_has_kernel_h() { - _has_bits_[0] &= ~0x00000100u; -} -void ConvolutionParameter::clear_kernel_h() { - kernel_h_ = 0u; - clear_has_kernel_h(); -} -::google::protobuf::uint32 ConvolutionParameter::kernel_h() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.kernel_h) - return kernel_h_; -} -void ConvolutionParameter::set_kernel_h(::google::protobuf::uint32 value) { - set_has_kernel_h(); - kernel_h_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.kernel_h) -} - -// optional uint32 kernel_w = 12; -bool ConvolutionParameter::has_kernel_w() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void ConvolutionParameter::set_has_kernel_w() { - _has_bits_[0] |= 0x00000200u; -} -void ConvolutionParameter::clear_has_kernel_w() { - _has_bits_[0] &= ~0x00000200u; -} -void ConvolutionParameter::clear_kernel_w() { - kernel_w_ = 0u; - clear_has_kernel_w(); -} -::google::protobuf::uint32 ConvolutionParameter::kernel_w() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.kernel_w) - return kernel_w_; -} -void ConvolutionParameter::set_kernel_w(::google::protobuf::uint32 value) { - set_has_kernel_w(); - kernel_w_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.kernel_w) -} - -// optional uint32 stride_h = 13; -bool ConvolutionParameter::has_stride_h() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -void ConvolutionParameter::set_has_stride_h() { - _has_bits_[0] |= 0x00000400u; -} -void ConvolutionParameter::clear_has_stride_h() { - _has_bits_[0] &= ~0x00000400u; -} -void ConvolutionParameter::clear_stride_h() { - stride_h_ = 0u; - clear_has_stride_h(); -} -::google::protobuf::uint32 ConvolutionParameter::stride_h() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.stride_h) - return stride_h_; -} -void ConvolutionParameter::set_stride_h(::google::protobuf::uint32 value) { - set_has_stride_h(); - stride_h_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.stride_h) -} - -// optional uint32 stride_w = 14; -bool ConvolutionParameter::has_stride_w() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -void ConvolutionParameter::set_has_stride_w() { - _has_bits_[0] |= 0x00000800u; -} -void ConvolutionParameter::clear_has_stride_w() { - _has_bits_[0] &= ~0x00000800u; -} -void ConvolutionParameter::clear_stride_w() { - stride_w_ = 0u; - clear_has_stride_w(); -} -::google::protobuf::uint32 ConvolutionParameter::stride_w() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.stride_w) - return stride_w_; -} -void ConvolutionParameter::set_stride_w(::google::protobuf::uint32 value) { - set_has_stride_w(); - stride_w_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.stride_w) -} - -// optional uint32 group = 5 [default = 1]; -bool ConvolutionParameter::has_group() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -void ConvolutionParameter::set_has_group() { - _has_bits_[0] |= 0x00001000u; -} -void ConvolutionParameter::clear_has_group() { - _has_bits_[0] &= ~0x00001000u; -} -void ConvolutionParameter::clear_group() { - group_ = 1u; - clear_has_group(); -} -::google::protobuf::uint32 ConvolutionParameter::group() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.group) - return group_; -} -void ConvolutionParameter::set_group(::google::protobuf::uint32 value) { - set_has_group(); - group_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.group) -} - -// optional .opencv_caffe.FillerParameter weight_filler = 7; -bool ConvolutionParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -void ConvolutionParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00002000u; -} -void ConvolutionParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00002000u; -} -void ConvolutionParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_weight_filler(); -} -const ::opencv_caffe::FillerParameter& ConvolutionParameter::weight_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* ConvolutionParameter::mutable_weight_filler() { - set_has_weight_filler(); - if (weight_filler_ == NULL) { - weight_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.ConvolutionParameter.weight_filler) - return weight_filler_; -} -::opencv_caffe::FillerParameter* ConvolutionParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.ConvolutionParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} -void ConvolutionParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; - if (weight_filler) { - set_has_weight_filler(); - } else { - clear_has_weight_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ConvolutionParameter.weight_filler) -} - -// optional .opencv_caffe.FillerParameter bias_filler = 8; -bool ConvolutionParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -void ConvolutionParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00004000u; -} -void ConvolutionParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00004000u; -} -void ConvolutionParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_bias_filler(); -} -const ::opencv_caffe::FillerParameter& ConvolutionParameter::bias_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* ConvolutionParameter::mutable_bias_filler() { - set_has_bias_filler(); - if (bias_filler_ == NULL) { - bias_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.ConvolutionParameter.bias_filler) - return bias_filler_; -} -::opencv_caffe::FillerParameter* ConvolutionParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.ConvolutionParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} -void ConvolutionParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; - if (bias_filler) { - set_has_bias_filler(); - } else { - clear_has_bias_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ConvolutionParameter.bias_filler) -} - -// optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; -bool ConvolutionParameter::has_engine() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -void ConvolutionParameter::set_has_engine() { - _has_bits_[0] |= 0x00008000u; -} -void ConvolutionParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00008000u; -} -void ConvolutionParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -::opencv_caffe::ConvolutionParameter_Engine ConvolutionParameter::engine() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.engine) - return static_cast< ::opencv_caffe::ConvolutionParameter_Engine >(engine_); -} -void ConvolutionParameter::set_engine(::opencv_caffe::ConvolutionParameter_Engine value) { - assert(::opencv_caffe::ConvolutionParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.engine) -} - -// optional int32 axis = 16 [default = 1]; -bool ConvolutionParameter::has_axis() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -void ConvolutionParameter::set_has_axis() { - _has_bits_[0] |= 0x00010000u; -} -void ConvolutionParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00010000u; -} -void ConvolutionParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 ConvolutionParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.axis) - return axis_; -} -void ConvolutionParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.axis) -} - -// optional bool force_nd_im2col = 17 [default = false]; -bool ConvolutionParameter::has_force_nd_im2col() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -void ConvolutionParameter::set_has_force_nd_im2col() { - _has_bits_[0] |= 0x00020000u; -} -void ConvolutionParameter::clear_has_force_nd_im2col() { - _has_bits_[0] &= ~0x00020000u; -} -void ConvolutionParameter::clear_force_nd_im2col() { - force_nd_im2col_ = false; - clear_has_force_nd_im2col(); -} -bool ConvolutionParameter::force_nd_im2col() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.force_nd_im2col) - return force_nd_im2col_; -} -void ConvolutionParameter::set_force_nd_im2col(bool value) { - set_has_force_nd_im2col(); - force_nd_im2col_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.force_nd_im2col) -} - -inline const ConvolutionParameter* ConvolutionParameter::internal_default_instance() { - return &ConvolutionParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CropParameter::kAxisFieldNumber; -const int CropParameter::kOffsetFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CropParameter::CropParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.CropParameter) -} - -void CropParameter::InitAsDefaultInstance() { -} - -CropParameter::CropParameter(const CropParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.CropParameter) -} - -void CropParameter::SharedCtor() { - _cached_size_ = 0; - axis_ = 2; -} - -CropParameter::~CropParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.CropParameter) - SharedDtor(); -} - -void CropParameter::SharedDtor() { -} - -void CropParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CropParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CropParameter_descriptor_; -} - -const CropParameter& CropParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed CropParameter_default_instance_; - -CropParameter* CropParameter::New(::google::protobuf::Arena* arena) const { - CropParameter* n = new CropParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void CropParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.CropParameter) - axis_ = 2; - offset_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool CropParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.CropParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 axis = 1 [default = 2]; - case 1: { - if (tag == 8) { - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_offset; - break; - } - - // repeated uint32 offset = 2; - case 2: { - if (tag == 16) { - parse_offset: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 16, input, this->mutable_offset()))); - } else if (tag == 18) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_offset()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_offset; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.CropParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.CropParameter) - return false; -#undef DO_ -} - -void CropParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.CropParameter) - // optional int32 axis = 1 [default = 2]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); - } - - // repeated uint32 offset = 2; - for (int i = 0; i < this->offset_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 2, this->offset(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.CropParameter) -} - -::google::protobuf::uint8* CropParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.CropParameter) - // optional int32 axis = 1 [default = 2]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); - } - - // repeated uint32 offset = 2; - for (int i = 0; i < this->offset_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(2, this->offset(i), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.CropParameter) - return target; -} - -size_t CropParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.CropParameter) - size_t total_size = 0; - - // optional int32 axis = 1 [default = 2]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // repeated uint32 offset = 2; - { - size_t data_size = 0; - unsigned int count = this->offset_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->offset(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->offset_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void CropParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.CropParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const CropParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.CropParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.CropParameter) - UnsafeMergeFrom(*source); - } -} - -void CropParameter::MergeFrom(const CropParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.CropParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void CropParameter::UnsafeMergeFrom(const CropParameter& from) { - GOOGLE_DCHECK(&from != this); - offset_.UnsafeMergeFrom(from.offset_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_axis()) { - set_axis(from.axis()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void CropParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.CropParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CropParameter::CopyFrom(const CropParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.CropParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool CropParameter::IsInitialized() const { - - return true; -} - -void CropParameter::Swap(CropParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void CropParameter::InternalSwap(CropParameter* other) { - std::swap(axis_, other->axis_); - offset_.UnsafeArenaSwap(&other->offset_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata CropParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CropParameter_descriptor_; - metadata.reflection = CropParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CropParameter - -// optional int32 axis = 1 [default = 2]; -bool CropParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void CropParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -void CropParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -void CropParameter::clear_axis() { - axis_ = 2; - clear_has_axis(); -} -::google::protobuf::int32 CropParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.CropParameter.axis) - return axis_; -} -void CropParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.CropParameter.axis) -} - -// repeated uint32 offset = 2; -int CropParameter::offset_size() const { - return offset_.size(); -} -void CropParameter::clear_offset() { - offset_.Clear(); -} -::google::protobuf::uint32 CropParameter::offset(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.CropParameter.offset) - return offset_.Get(index); -} -void CropParameter::set_offset(int index, ::google::protobuf::uint32 value) { - offset_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.CropParameter.offset) -} -void CropParameter::add_offset(::google::protobuf::uint32 value) { - offset_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.CropParameter.offset) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -CropParameter::offset() const { - // @@protoc_insertion_point(field_list:opencv_caffe.CropParameter.offset) - return offset_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -CropParameter::mutable_offset() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.CropParameter.offset) - return &offset_; -} - -inline const CropParameter* CropParameter::internal_default_instance() { - return &CropParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* DataParameter_DB_descriptor() { - protobuf_AssignDescriptorsOnce(); - return DataParameter_DB_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[8]; } bool DataParameter_DB_IsValid(int value) { switch (value) { @@ -27065,3228 +4206,9 @@ const DataParameter_DB DataParameter::DB_MIN; const DataParameter_DB DataParameter::DB_MAX; const int DataParameter::DB_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DataParameter::kSourceFieldNumber; -const int DataParameter::kBatchSizeFieldNumber; -const int DataParameter::kRandSkipFieldNumber; -const int DataParameter::kBackendFieldNumber; -const int DataParameter::kScaleFieldNumber; -const int DataParameter::kMeanFileFieldNumber; -const int DataParameter::kCropSizeFieldNumber; -const int DataParameter::kMirrorFieldNumber; -const int DataParameter::kForceEncodedColorFieldNumber; -const int DataParameter::kPrefetchFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DataParameter::DataParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.DataParameter) -} - -void DataParameter::InitAsDefaultInstance() { -} - -DataParameter::DataParameter(const DataParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.DataParameter) -} - -void DataParameter::SharedCtor() { - _cached_size_ = 0; - source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&batch_size_, 0, reinterpret_cast(&force_encoded_color_) - - reinterpret_cast(&batch_size_) + sizeof(force_encoded_color_)); - scale_ = 1; - prefetch_ = 4u; -} - -DataParameter::~DataParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.DataParameter) - SharedDtor(); -} - -void DataParameter::SharedDtor() { - source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void DataParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* DataParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DataParameter_descriptor_; -} - -const DataParameter& DataParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed DataParameter_default_instance_; - -DataParameter* DataParameter::New(::google::protobuf::Arena* arena) const { - DataParameter* n = new DataParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void DataParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.DataParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(DataParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 255u) { - ZR_(batch_size_, mirror_); - if (has_source()) { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - scale_ = 1; - if (has_mean_file()) { - mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - } - if (_has_bits_[8 / 32] & 768u) { - force_encoded_color_ = false; - prefetch_ = 4u; - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool DataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.DataParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.DataParameter.source"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (tag == 21) { - parse_scale: - set_has_scale(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_mean_file; - break; - } - - // optional string mean_file = 3; - case 3: { - if (tag == 26) { - parse_mean_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mean_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.DataParameter.mean_file"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_batch_size; - break; - } - - // optional uint32 batch_size = 4; - case 4: { - if (tag == 32) { - parse_batch_size: - set_has_batch_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_crop_size; - break; - } - - // optional uint32 crop_size = 5 [default = 0]; - case 5: { - if (tag == 40) { - parse_crop_size: - set_has_crop_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &crop_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_mirror; - break; - } - - // optional bool mirror = 6 [default = false]; - case 6: { - if (tag == 48) { - parse_mirror: - set_has_mirror(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &mirror_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_rand_skip; - break; - } - - // optional uint32 rand_skip = 7 [default = 0]; - case 7: { - if (tag == 56) { - parse_rand_skip: - set_has_rand_skip(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rand_skip_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_backend; - break; - } - - // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; - case 8: { - if (tag == 64) { - parse_backend: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::DataParameter_DB_IsValid(value)) { - set_backend(static_cast< ::opencv_caffe::DataParameter_DB >(value)); - } else { - mutable_unknown_fields()->AddVarint(8, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_force_encoded_color; - break; - } - - // optional bool force_encoded_color = 9 [default = false]; - case 9: { - if (tag == 72) { - parse_force_encoded_color: - set_has_force_encoded_color(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &force_encoded_color_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_prefetch; - break; - } - - // optional uint32 prefetch = 10 [default = 4]; - case 10: { - if (tag == 80) { - parse_prefetch: - set_has_prefetch(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &prefetch_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.DataParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.DataParameter) - return false; -#undef DO_ -} - -void DataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.DataParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.DataParameter.source"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->source(), output); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); - } - - // optional string mean_file = 3; - if (has_mean_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.DataParameter.mean_file"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->mean_file(), output); - } - - // optional uint32 batch_size = 4; - if (has_batch_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->batch_size(), output); - } - - // optional uint32 crop_size = 5 [default = 0]; - if (has_crop_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->crop_size(), output); - } - - // optional bool mirror = 6 [default = false]; - if (has_mirror()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->mirror(), output); - } - - // optional uint32 rand_skip = 7 [default = 0]; - if (has_rand_skip()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->rand_skip(), output); - } - - // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; - if (has_backend()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 8, this->backend(), output); - } - - // optional bool force_encoded_color = 9 [default = false]; - if (has_force_encoded_color()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->force_encoded_color(), output); - } - - // optional uint32 prefetch = 10 [default = 4]; - if (has_prefetch()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->prefetch(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.DataParameter) -} - -::google::protobuf::uint8* DataParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DataParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.DataParameter.source"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->source(), target); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); - } - - // optional string mean_file = 3; - if (has_mean_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.DataParameter.mean_file"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->mean_file(), target); - } - - // optional uint32 batch_size = 4; - if (has_batch_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->batch_size(), target); - } - - // optional uint32 crop_size = 5 [default = 0]; - if (has_crop_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->crop_size(), target); - } - - // optional bool mirror = 6 [default = false]; - if (has_mirror()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->mirror(), target); - } - - // optional uint32 rand_skip = 7 [default = 0]; - if (has_rand_skip()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->rand_skip(), target); - } - - // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; - if (has_backend()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 8, this->backend(), target); - } - - // optional bool force_encoded_color = 9 [default = false]; - if (has_force_encoded_color()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->force_encoded_color(), target); - } - - // optional uint32 prefetch = 10 [default = 4]; - if (has_prefetch()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->prefetch(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DataParameter) - return target; -} - -size_t DataParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DataParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 255u) { - // optional string source = 1; - if (has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->source()); - } - - // optional uint32 batch_size = 4; - if (has_batch_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->batch_size()); - } - - // optional uint32 rand_skip = 7 [default = 0]; - if (has_rand_skip()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rand_skip()); - } - - // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; - if (has_backend()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->backend()); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - total_size += 1 + 4; - } - - // optional string mean_file = 3; - if (has_mean_file()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->mean_file()); - } - - // optional uint32 crop_size = 5 [default = 0]; - if (has_crop_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->crop_size()); - } - - // optional bool mirror = 6 [default = false]; - if (has_mirror()) { - total_size += 1 + 1; - } - - } - if (_has_bits_[8 / 32] & 768u) { - // optional bool force_encoded_color = 9 [default = false]; - if (has_force_encoded_color()) { - total_size += 1 + 1; - } - - // optional uint32 prefetch = 10 [default = 4]; - if (has_prefetch()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->prefetch()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DataParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DataParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const DataParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DataParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DataParameter) - UnsafeMergeFrom(*source); - } -} - -void DataParameter::MergeFrom(const DataParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DataParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void DataParameter::UnsafeMergeFrom(const DataParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_has_source(); - source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); - } - if (from.has_batch_size()) { - set_batch_size(from.batch_size()); - } - if (from.has_rand_skip()) { - set_rand_skip(from.rand_skip()); - } - if (from.has_backend()) { - set_backend(from.backend()); - } - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_mean_file()) { - set_has_mean_file(); - mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); - } - if (from.has_crop_size()) { - set_crop_size(from.crop_size()); - } - if (from.has_mirror()) { - set_mirror(from.mirror()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_force_encoded_color()) { - set_force_encoded_color(from.force_encoded_color()); - } - if (from.has_prefetch()) { - set_prefetch(from.prefetch()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void DataParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DataParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DataParameter::CopyFrom(const DataParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DataParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool DataParameter::IsInitialized() const { - - return true; -} - -void DataParameter::Swap(DataParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void DataParameter::InternalSwap(DataParameter* other) { - source_.Swap(&other->source_); - std::swap(batch_size_, other->batch_size_); - std::swap(rand_skip_, other->rand_skip_); - std::swap(backend_, other->backend_); - std::swap(scale_, other->scale_); - mean_file_.Swap(&other->mean_file_); - std::swap(crop_size_, other->crop_size_); - std::swap(mirror_, other->mirror_); - std::swap(force_encoded_color_, other->force_encoded_color_); - std::swap(prefetch_, other->prefetch_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata DataParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DataParameter_descriptor_; - metadata.reflection = DataParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// DataParameter - -// optional string source = 1; -bool DataParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void DataParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -void DataParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -void DataParameter::clear_source() { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_source(); -} -const ::std::string& DataParameter::source() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void DataParameter::set_source(const ::std::string& value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.source) -} -void DataParameter::set_source(const char* value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.DataParameter.source) -} -void DataParameter::set_source(const char* value, size_t size) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.DataParameter.source) -} -::std::string* DataParameter::mutable_source() { - set_has_source(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.DataParameter.source) - return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* DataParameter::release_source() { - // @@protoc_insertion_point(field_release:opencv_caffe.DataParameter.source) - clear_has_source(); - return source_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void DataParameter::set_allocated_source(::std::string* source) { - if (source != NULL) { - set_has_source(); - } else { - clear_has_source(); - } - source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.DataParameter.source) -} - -// optional uint32 batch_size = 4; -bool DataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void DataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000002u; -} -void DataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000002u; -} -void DataParameter::clear_batch_size() { - batch_size_ = 0u; - clear_has_batch_size(); -} -::google::protobuf::uint32 DataParameter::batch_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.batch_size) - return batch_size_; -} -void DataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.batch_size) -} - -// optional uint32 rand_skip = 7 [default = 0]; -bool DataParameter::has_rand_skip() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void DataParameter::set_has_rand_skip() { - _has_bits_[0] |= 0x00000004u; -} -void DataParameter::clear_has_rand_skip() { - _has_bits_[0] &= ~0x00000004u; -} -void DataParameter::clear_rand_skip() { - rand_skip_ = 0u; - clear_has_rand_skip(); -} -::google::protobuf::uint32 DataParameter::rand_skip() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.rand_skip) - return rand_skip_; -} -void DataParameter::set_rand_skip(::google::protobuf::uint32 value) { - set_has_rand_skip(); - rand_skip_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.rand_skip) -} - -// optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; -bool DataParameter::has_backend() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void DataParameter::set_has_backend() { - _has_bits_[0] |= 0x00000008u; -} -void DataParameter::clear_has_backend() { - _has_bits_[0] &= ~0x00000008u; -} -void DataParameter::clear_backend() { - backend_ = 0; - clear_has_backend(); -} -::opencv_caffe::DataParameter_DB DataParameter::backend() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.backend) - return static_cast< ::opencv_caffe::DataParameter_DB >(backend_); -} -void DataParameter::set_backend(::opencv_caffe::DataParameter_DB value) { - assert(::opencv_caffe::DataParameter_DB_IsValid(value)); - set_has_backend(); - backend_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.backend) -} - -// optional float scale = 2 [default = 1]; -bool DataParameter::has_scale() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void DataParameter::set_has_scale() { - _has_bits_[0] |= 0x00000010u; -} -void DataParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000010u; -} -void DataParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -float DataParameter::scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.scale) - return scale_; -} -void DataParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.scale) -} - -// optional string mean_file = 3; -bool DataParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void DataParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000020u; -} -void DataParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000020u; -} -void DataParameter::clear_mean_file() { - mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_mean_file(); -} -const ::std::string& DataParameter::mean_file() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.mean_file) - return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void DataParameter::set_mean_file(const ::std::string& value) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.mean_file) -} -void DataParameter::set_mean_file(const char* value) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.DataParameter.mean_file) -} -void DataParameter::set_mean_file(const char* value, size_t size) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.DataParameter.mean_file) -} -::std::string* DataParameter::mutable_mean_file() { - set_has_mean_file(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.DataParameter.mean_file) - return mean_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* DataParameter::release_mean_file() { - // @@protoc_insertion_point(field_release:opencv_caffe.DataParameter.mean_file) - clear_has_mean_file(); - return mean_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void DataParameter::set_allocated_mean_file(::std::string* mean_file) { - if (mean_file != NULL) { - set_has_mean_file(); - } else { - clear_has_mean_file(); - } - mean_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mean_file); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.DataParameter.mean_file) -} - -// optional uint32 crop_size = 5 [default = 0]; -bool DataParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void DataParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000040u; -} -void DataParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000040u; -} -void DataParameter::clear_crop_size() { - crop_size_ = 0u; - clear_has_crop_size(); -} -::google::protobuf::uint32 DataParameter::crop_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.crop_size) - return crop_size_; -} -void DataParameter::set_crop_size(::google::protobuf::uint32 value) { - set_has_crop_size(); - crop_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.crop_size) -} - -// optional bool mirror = 6 [default = false]; -bool DataParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void DataParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000080u; -} -void DataParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000080u; -} -void DataParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -bool DataParameter::mirror() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.mirror) - return mirror_; -} -void DataParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.mirror) -} - -// optional bool force_encoded_color = 9 [default = false]; -bool DataParameter::has_force_encoded_color() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -void DataParameter::set_has_force_encoded_color() { - _has_bits_[0] |= 0x00000100u; -} -void DataParameter::clear_has_force_encoded_color() { - _has_bits_[0] &= ~0x00000100u; -} -void DataParameter::clear_force_encoded_color() { - force_encoded_color_ = false; - clear_has_force_encoded_color(); -} -bool DataParameter::force_encoded_color() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.force_encoded_color) - return force_encoded_color_; -} -void DataParameter::set_force_encoded_color(bool value) { - set_has_force_encoded_color(); - force_encoded_color_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.force_encoded_color) -} - -// optional uint32 prefetch = 10 [default = 4]; -bool DataParameter::has_prefetch() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void DataParameter::set_has_prefetch() { - _has_bits_[0] |= 0x00000200u; -} -void DataParameter::clear_has_prefetch() { - _has_bits_[0] &= ~0x00000200u; -} -void DataParameter::clear_prefetch() { - prefetch_ = 4u; - clear_has_prefetch(); -} -::google::protobuf::uint32 DataParameter::prefetch() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.prefetch) - return prefetch_; -} -void DataParameter::set_prefetch(::google::protobuf::uint32 value) { - set_has_prefetch(); - prefetch_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.prefetch) -} - -inline const DataParameter* DataParameter::internal_default_instance() { - return &DataParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NonMaximumSuppressionParameter::kNmsThresholdFieldNumber; -const int NonMaximumSuppressionParameter::kTopKFieldNumber; -const int NonMaximumSuppressionParameter::kEtaFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NonMaximumSuppressionParameter::NonMaximumSuppressionParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.NonMaximumSuppressionParameter) -} - -void NonMaximumSuppressionParameter::InitAsDefaultInstance() { -} - -NonMaximumSuppressionParameter::NonMaximumSuppressionParameter(const NonMaximumSuppressionParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.NonMaximumSuppressionParameter) -} - -void NonMaximumSuppressionParameter::SharedCtor() { - _cached_size_ = 0; - top_k_ = 0; - nms_threshold_ = 0.3f; - eta_ = 1; -} - -NonMaximumSuppressionParameter::~NonMaximumSuppressionParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.NonMaximumSuppressionParameter) - SharedDtor(); -} - -void NonMaximumSuppressionParameter::SharedDtor() { -} - -void NonMaximumSuppressionParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* NonMaximumSuppressionParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return NonMaximumSuppressionParameter_descriptor_; -} - -const NonMaximumSuppressionParameter& NonMaximumSuppressionParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed NonMaximumSuppressionParameter_default_instance_; - -NonMaximumSuppressionParameter* NonMaximumSuppressionParameter::New(::google::protobuf::Arena* arena) const { - NonMaximumSuppressionParameter* n = new NonMaximumSuppressionParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void NonMaximumSuppressionParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.NonMaximumSuppressionParameter) - if (_has_bits_[0 / 32] & 7u) { - nms_threshold_ = 0.3f; - top_k_ = 0; - eta_ = 1; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool NonMaximumSuppressionParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.NonMaximumSuppressionParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float nms_threshold = 1 [default = 0.3]; - case 1: { - if (tag == 13) { - set_has_nms_threshold(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &nms_threshold_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_top_k; - break; - } - - // optional int32 top_k = 2; - case 2: { - if (tag == 16) { - parse_top_k: - set_has_top_k(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &top_k_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_eta; - break; - } - - // optional float eta = 3 [default = 1]; - case 3: { - if (tag == 29) { - parse_eta: - set_has_eta(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &eta_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.NonMaximumSuppressionParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.NonMaximumSuppressionParameter) - return false; -#undef DO_ -} - -void NonMaximumSuppressionParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.NonMaximumSuppressionParameter) - // optional float nms_threshold = 1 [default = 0.3]; - if (has_nms_threshold()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->nms_threshold(), output); - } - - // optional int32 top_k = 2; - if (has_top_k()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->top_k(), output); - } - - // optional float eta = 3 [default = 1]; - if (has_eta()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->eta(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.NonMaximumSuppressionParameter) -} - -::google::protobuf::uint8* NonMaximumSuppressionParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NonMaximumSuppressionParameter) - // optional float nms_threshold = 1 [default = 0.3]; - if (has_nms_threshold()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->nms_threshold(), target); - } - - // optional int32 top_k = 2; - if (has_top_k()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->top_k(), target); - } - - // optional float eta = 3 [default = 1]; - if (has_eta()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->eta(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NonMaximumSuppressionParameter) - return target; -} - -size_t NonMaximumSuppressionParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NonMaximumSuppressionParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional float nms_threshold = 1 [default = 0.3]; - if (has_nms_threshold()) { - total_size += 1 + 4; - } - - // optional int32 top_k = 2; - if (has_top_k()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->top_k()); - } - - // optional float eta = 3 [default = 1]; - if (has_eta()) { - total_size += 1 + 4; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NonMaximumSuppressionParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NonMaximumSuppressionParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const NonMaximumSuppressionParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NonMaximumSuppressionParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NonMaximumSuppressionParameter) - UnsafeMergeFrom(*source); - } -} - -void NonMaximumSuppressionParameter::MergeFrom(const NonMaximumSuppressionParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NonMaximumSuppressionParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void NonMaximumSuppressionParameter::UnsafeMergeFrom(const NonMaximumSuppressionParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_nms_threshold()) { - set_nms_threshold(from.nms_threshold()); - } - if (from.has_top_k()) { - set_top_k(from.top_k()); - } - if (from.has_eta()) { - set_eta(from.eta()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void NonMaximumSuppressionParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NonMaximumSuppressionParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NonMaximumSuppressionParameter::CopyFrom(const NonMaximumSuppressionParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NonMaximumSuppressionParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool NonMaximumSuppressionParameter::IsInitialized() const { - - return true; -} - -void NonMaximumSuppressionParameter::Swap(NonMaximumSuppressionParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void NonMaximumSuppressionParameter::InternalSwap(NonMaximumSuppressionParameter* other) { - std::swap(nms_threshold_, other->nms_threshold_); - std::swap(top_k_, other->top_k_); - std::swap(eta_, other->eta_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata NonMaximumSuppressionParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = NonMaximumSuppressionParameter_descriptor_; - metadata.reflection = NonMaximumSuppressionParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// NonMaximumSuppressionParameter - -// optional float nms_threshold = 1 [default = 0.3]; -bool NonMaximumSuppressionParameter::has_nms_threshold() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void NonMaximumSuppressionParameter::set_has_nms_threshold() { - _has_bits_[0] |= 0x00000001u; -} -void NonMaximumSuppressionParameter::clear_has_nms_threshold() { - _has_bits_[0] &= ~0x00000001u; -} -void NonMaximumSuppressionParameter::clear_nms_threshold() { - nms_threshold_ = 0.3f; - clear_has_nms_threshold(); -} -float NonMaximumSuppressionParameter::nms_threshold() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NonMaximumSuppressionParameter.nms_threshold) - return nms_threshold_; -} -void NonMaximumSuppressionParameter::set_nms_threshold(float value) { - set_has_nms_threshold(); - nms_threshold_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NonMaximumSuppressionParameter.nms_threshold) -} - -// optional int32 top_k = 2; -bool NonMaximumSuppressionParameter::has_top_k() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void NonMaximumSuppressionParameter::set_has_top_k() { - _has_bits_[0] |= 0x00000002u; -} -void NonMaximumSuppressionParameter::clear_has_top_k() { - _has_bits_[0] &= ~0x00000002u; -} -void NonMaximumSuppressionParameter::clear_top_k() { - top_k_ = 0; - clear_has_top_k(); -} -::google::protobuf::int32 NonMaximumSuppressionParameter::top_k() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NonMaximumSuppressionParameter.top_k) - return top_k_; -} -void NonMaximumSuppressionParameter::set_top_k(::google::protobuf::int32 value) { - set_has_top_k(); - top_k_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NonMaximumSuppressionParameter.top_k) -} - -// optional float eta = 3 [default = 1]; -bool NonMaximumSuppressionParameter::has_eta() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void NonMaximumSuppressionParameter::set_has_eta() { - _has_bits_[0] |= 0x00000004u; -} -void NonMaximumSuppressionParameter::clear_has_eta() { - _has_bits_[0] &= ~0x00000004u; -} -void NonMaximumSuppressionParameter::clear_eta() { - eta_ = 1; - clear_has_eta(); -} -float NonMaximumSuppressionParameter::eta() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NonMaximumSuppressionParameter.eta) - return eta_; -} -void NonMaximumSuppressionParameter::set_eta(float value) { - set_has_eta(); - eta_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NonMaximumSuppressionParameter.eta) -} - -inline const NonMaximumSuppressionParameter* NonMaximumSuppressionParameter::internal_default_instance() { - return &NonMaximumSuppressionParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SaveOutputParameter::kOutputDirectoryFieldNumber; -const int SaveOutputParameter::kOutputNamePrefixFieldNumber; -const int SaveOutputParameter::kOutputFormatFieldNumber; -const int SaveOutputParameter::kLabelMapFileFieldNumber; -const int SaveOutputParameter::kNameSizeFileFieldNumber; -const int SaveOutputParameter::kNumTestImageFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SaveOutputParameter::SaveOutputParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.SaveOutputParameter) -} - -void SaveOutputParameter::InitAsDefaultInstance() { -} - -SaveOutputParameter::SaveOutputParameter(const SaveOutputParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.SaveOutputParameter) -} - -void SaveOutputParameter::SharedCtor() { - _cached_size_ = 0; - output_directory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_name_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - label_map_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_size_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - num_test_image_ = 0u; -} - -SaveOutputParameter::~SaveOutputParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.SaveOutputParameter) - SharedDtor(); -} - -void SaveOutputParameter::SharedDtor() { - output_directory_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_name_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_format_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - label_map_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_size_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void SaveOutputParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SaveOutputParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SaveOutputParameter_descriptor_; -} - -const SaveOutputParameter& SaveOutputParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed SaveOutputParameter_default_instance_; - -SaveOutputParameter* SaveOutputParameter::New(::google::protobuf::Arena* arena) const { - SaveOutputParameter* n = new SaveOutputParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SaveOutputParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.SaveOutputParameter) - if (_has_bits_[0 / 32] & 63u) { - if (has_output_directory()) { - output_directory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_output_name_prefix()) { - output_name_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_output_format()) { - output_format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_label_map_file()) { - label_map_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_name_size_file()) { - name_size_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - num_test_image_ = 0u; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool SaveOutputParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.SaveOutputParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string output_directory = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_directory())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->output_directory().data(), this->output_directory().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SaveOutputParameter.output_directory"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_output_name_prefix; - break; - } - - // optional string output_name_prefix = 2; - case 2: { - if (tag == 18) { - parse_output_name_prefix: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_name_prefix())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->output_name_prefix().data(), this->output_name_prefix().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SaveOutputParameter.output_name_prefix"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_output_format; - break; - } - - // optional string output_format = 3; - case 3: { - if (tag == 26) { - parse_output_format: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_format())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->output_format().data(), this->output_format().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SaveOutputParameter.output_format"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_label_map_file; - break; - } - - // optional string label_map_file = 4; - case 4: { - if (tag == 34) { - parse_label_map_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_label_map_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->label_map_file().data(), this->label_map_file().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SaveOutputParameter.label_map_file"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_name_size_file; - break; - } - - // optional string name_size_file = 5; - case 5: { - if (tag == 42) { - parse_name_size_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name_size_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name_size_file().data(), this->name_size_file().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.SaveOutputParameter.name_size_file"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_num_test_image; - break; - } - - // optional uint32 num_test_image = 6; - case 6: { - if (tag == 48) { - parse_num_test_image: - set_has_num_test_image(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &num_test_image_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.SaveOutputParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.SaveOutputParameter) - return false; -#undef DO_ -} - -void SaveOutputParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.SaveOutputParameter) - // optional string output_directory = 1; - if (has_output_directory()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->output_directory().data(), this->output_directory().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.output_directory"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->output_directory(), output); - } - - // optional string output_name_prefix = 2; - if (has_output_name_prefix()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->output_name_prefix().data(), this->output_name_prefix().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.output_name_prefix"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->output_name_prefix(), output); - } - - // optional string output_format = 3; - if (has_output_format()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->output_format().data(), this->output_format().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.output_format"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->output_format(), output); - } - - // optional string label_map_file = 4; - if (has_label_map_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->label_map_file().data(), this->label_map_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.label_map_file"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->label_map_file(), output); - } - - // optional string name_size_file = 5; - if (has_name_size_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name_size_file().data(), this->name_size_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.name_size_file"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->name_size_file(), output); - } - - // optional uint32 num_test_image = 6; - if (has_num_test_image()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->num_test_image(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.SaveOutputParameter) -} - -::google::protobuf::uint8* SaveOutputParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SaveOutputParameter) - // optional string output_directory = 1; - if (has_output_directory()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->output_directory().data(), this->output_directory().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.output_directory"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->output_directory(), target); - } - - // optional string output_name_prefix = 2; - if (has_output_name_prefix()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->output_name_prefix().data(), this->output_name_prefix().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.output_name_prefix"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->output_name_prefix(), target); - } - - // optional string output_format = 3; - if (has_output_format()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->output_format().data(), this->output_format().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.output_format"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->output_format(), target); - } - - // optional string label_map_file = 4; - if (has_label_map_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->label_map_file().data(), this->label_map_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.label_map_file"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->label_map_file(), target); - } - - // optional string name_size_file = 5; - if (has_name_size_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name_size_file().data(), this->name_size_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.SaveOutputParameter.name_size_file"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->name_size_file(), target); - } - - // optional uint32 num_test_image = 6; - if (has_num_test_image()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->num_test_image(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SaveOutputParameter) - return target; -} - -size_t SaveOutputParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SaveOutputParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 63u) { - // optional string output_directory = 1; - if (has_output_directory()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_directory()); - } - - // optional string output_name_prefix = 2; - if (has_output_name_prefix()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_name_prefix()); - } - - // optional string output_format = 3; - if (has_output_format()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_format()); - } - - // optional string label_map_file = 4; - if (has_label_map_file()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->label_map_file()); - } - - // optional string name_size_file = 5; - if (has_name_size_file()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name_size_file()); - } - - // optional uint32 num_test_image = 6; - if (has_num_test_image()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->num_test_image()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SaveOutputParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SaveOutputParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const SaveOutputParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SaveOutputParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SaveOutputParameter) - UnsafeMergeFrom(*source); - } -} - -void SaveOutputParameter::MergeFrom(const SaveOutputParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SaveOutputParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void SaveOutputParameter::UnsafeMergeFrom(const SaveOutputParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_output_directory()) { - set_has_output_directory(); - output_directory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_directory_); - } - if (from.has_output_name_prefix()) { - set_has_output_name_prefix(); - output_name_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_name_prefix_); - } - if (from.has_output_format()) { - set_has_output_format(); - output_format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_format_); - } - if (from.has_label_map_file()) { - set_has_label_map_file(); - label_map_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_map_file_); - } - if (from.has_name_size_file()) { - set_has_name_size_file(); - name_size_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_size_file_); - } - if (from.has_num_test_image()) { - set_num_test_image(from.num_test_image()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void SaveOutputParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SaveOutputParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SaveOutputParameter::CopyFrom(const SaveOutputParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SaveOutputParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool SaveOutputParameter::IsInitialized() const { - - return true; -} - -void SaveOutputParameter::Swap(SaveOutputParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void SaveOutputParameter::InternalSwap(SaveOutputParameter* other) { - output_directory_.Swap(&other->output_directory_); - output_name_prefix_.Swap(&other->output_name_prefix_); - output_format_.Swap(&other->output_format_); - label_map_file_.Swap(&other->label_map_file_); - name_size_file_.Swap(&other->name_size_file_); - std::swap(num_test_image_, other->num_test_image_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SaveOutputParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SaveOutputParameter_descriptor_; - metadata.reflection = SaveOutputParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SaveOutputParameter - -// optional string output_directory = 1; -bool SaveOutputParameter::has_output_directory() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void SaveOutputParameter::set_has_output_directory() { - _has_bits_[0] |= 0x00000001u; -} -void SaveOutputParameter::clear_has_output_directory() { - _has_bits_[0] &= ~0x00000001u; -} -void SaveOutputParameter::clear_output_directory() { - output_directory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_output_directory(); -} -const ::std::string& SaveOutputParameter::output_directory() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.output_directory) - return output_directory_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_output_directory(const ::std::string& value) { - set_has_output_directory(); - output_directory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.output_directory) -} -void SaveOutputParameter::set_output_directory(const char* value) { - set_has_output_directory(); - output_directory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.output_directory) -} -void SaveOutputParameter::set_output_directory(const char* value, size_t size) { - set_has_output_directory(); - output_directory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SaveOutputParameter.output_directory) -} -::std::string* SaveOutputParameter::mutable_output_directory() { - set_has_output_directory(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SaveOutputParameter.output_directory) - return output_directory_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SaveOutputParameter::release_output_directory() { - // @@protoc_insertion_point(field_release:opencv_caffe.SaveOutputParameter.output_directory) - clear_has_output_directory(); - return output_directory_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_allocated_output_directory(::std::string* output_directory) { - if (output_directory != NULL) { - set_has_output_directory(); - } else { - clear_has_output_directory(); - } - output_directory_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_directory); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SaveOutputParameter.output_directory) -} - -// optional string output_name_prefix = 2; -bool SaveOutputParameter::has_output_name_prefix() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void SaveOutputParameter::set_has_output_name_prefix() { - _has_bits_[0] |= 0x00000002u; -} -void SaveOutputParameter::clear_has_output_name_prefix() { - _has_bits_[0] &= ~0x00000002u; -} -void SaveOutputParameter::clear_output_name_prefix() { - output_name_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_output_name_prefix(); -} -const ::std::string& SaveOutputParameter::output_name_prefix() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.output_name_prefix) - return output_name_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_output_name_prefix(const ::std::string& value) { - set_has_output_name_prefix(); - output_name_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.output_name_prefix) -} -void SaveOutputParameter::set_output_name_prefix(const char* value) { - set_has_output_name_prefix(); - output_name_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.output_name_prefix) -} -void SaveOutputParameter::set_output_name_prefix(const char* value, size_t size) { - set_has_output_name_prefix(); - output_name_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SaveOutputParameter.output_name_prefix) -} -::std::string* SaveOutputParameter::mutable_output_name_prefix() { - set_has_output_name_prefix(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SaveOutputParameter.output_name_prefix) - return output_name_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SaveOutputParameter::release_output_name_prefix() { - // @@protoc_insertion_point(field_release:opencv_caffe.SaveOutputParameter.output_name_prefix) - clear_has_output_name_prefix(); - return output_name_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_allocated_output_name_prefix(::std::string* output_name_prefix) { - if (output_name_prefix != NULL) { - set_has_output_name_prefix(); - } else { - clear_has_output_name_prefix(); - } - output_name_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_name_prefix); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SaveOutputParameter.output_name_prefix) -} - -// optional string output_format = 3; -bool SaveOutputParameter::has_output_format() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void SaveOutputParameter::set_has_output_format() { - _has_bits_[0] |= 0x00000004u; -} -void SaveOutputParameter::clear_has_output_format() { - _has_bits_[0] &= ~0x00000004u; -} -void SaveOutputParameter::clear_output_format() { - output_format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_output_format(); -} -const ::std::string& SaveOutputParameter::output_format() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.output_format) - return output_format_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_output_format(const ::std::string& value) { - set_has_output_format(); - output_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.output_format) -} -void SaveOutputParameter::set_output_format(const char* value) { - set_has_output_format(); - output_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.output_format) -} -void SaveOutputParameter::set_output_format(const char* value, size_t size) { - set_has_output_format(); - output_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SaveOutputParameter.output_format) -} -::std::string* SaveOutputParameter::mutable_output_format() { - set_has_output_format(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SaveOutputParameter.output_format) - return output_format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SaveOutputParameter::release_output_format() { - // @@protoc_insertion_point(field_release:opencv_caffe.SaveOutputParameter.output_format) - clear_has_output_format(); - return output_format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_allocated_output_format(::std::string* output_format) { - if (output_format != NULL) { - set_has_output_format(); - } else { - clear_has_output_format(); - } - output_format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_format); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SaveOutputParameter.output_format) -} - -// optional string label_map_file = 4; -bool SaveOutputParameter::has_label_map_file() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void SaveOutputParameter::set_has_label_map_file() { - _has_bits_[0] |= 0x00000008u; -} -void SaveOutputParameter::clear_has_label_map_file() { - _has_bits_[0] &= ~0x00000008u; -} -void SaveOutputParameter::clear_label_map_file() { - label_map_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_label_map_file(); -} -const ::std::string& SaveOutputParameter::label_map_file() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.label_map_file) - return label_map_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_label_map_file(const ::std::string& value) { - set_has_label_map_file(); - label_map_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.label_map_file) -} -void SaveOutputParameter::set_label_map_file(const char* value) { - set_has_label_map_file(); - label_map_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.label_map_file) -} -void SaveOutputParameter::set_label_map_file(const char* value, size_t size) { - set_has_label_map_file(); - label_map_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SaveOutputParameter.label_map_file) -} -::std::string* SaveOutputParameter::mutable_label_map_file() { - set_has_label_map_file(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SaveOutputParameter.label_map_file) - return label_map_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SaveOutputParameter::release_label_map_file() { - // @@protoc_insertion_point(field_release:opencv_caffe.SaveOutputParameter.label_map_file) - clear_has_label_map_file(); - return label_map_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_allocated_label_map_file(::std::string* label_map_file) { - if (label_map_file != NULL) { - set_has_label_map_file(); - } else { - clear_has_label_map_file(); - } - label_map_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), label_map_file); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SaveOutputParameter.label_map_file) -} - -// optional string name_size_file = 5; -bool SaveOutputParameter::has_name_size_file() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void SaveOutputParameter::set_has_name_size_file() { - _has_bits_[0] |= 0x00000010u; -} -void SaveOutputParameter::clear_has_name_size_file() { - _has_bits_[0] &= ~0x00000010u; -} -void SaveOutputParameter::clear_name_size_file() { - name_size_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_name_size_file(); -} -const ::std::string& SaveOutputParameter::name_size_file() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.name_size_file) - return name_size_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_name_size_file(const ::std::string& value) { - set_has_name_size_file(); - name_size_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.name_size_file) -} -void SaveOutputParameter::set_name_size_file(const char* value) { - set_has_name_size_file(); - name_size_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.name_size_file) -} -void SaveOutputParameter::set_name_size_file(const char* value, size_t size) { - set_has_name_size_file(); - name_size_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SaveOutputParameter.name_size_file) -} -::std::string* SaveOutputParameter::mutable_name_size_file() { - set_has_name_size_file(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.SaveOutputParameter.name_size_file) - return name_size_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* SaveOutputParameter::release_name_size_file() { - // @@protoc_insertion_point(field_release:opencv_caffe.SaveOutputParameter.name_size_file) - clear_has_name_size_file(); - return name_size_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void SaveOutputParameter::set_allocated_name_size_file(::std::string* name_size_file) { - if (name_size_file != NULL) { - set_has_name_size_file(); - } else { - clear_has_name_size_file(); - } - name_size_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_size_file); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SaveOutputParameter.name_size_file) -} - -// optional uint32 num_test_image = 6; -bool SaveOutputParameter::has_num_test_image() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void SaveOutputParameter::set_has_num_test_image() { - _has_bits_[0] |= 0x00000020u; -} -void SaveOutputParameter::clear_has_num_test_image() { - _has_bits_[0] &= ~0x00000020u; -} -void SaveOutputParameter::clear_num_test_image() { - num_test_image_ = 0u; - clear_has_num_test_image(); -} -::google::protobuf::uint32 SaveOutputParameter::num_test_image() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.num_test_image) - return num_test_image_; -} -void SaveOutputParameter::set_num_test_image(::google::protobuf::uint32 value) { - set_has_num_test_image(); - num_test_image_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.num_test_image) -} - -inline const SaveOutputParameter* SaveOutputParameter::internal_default_instance() { - return &SaveOutputParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DropoutParameter::kDropoutRatioFieldNumber; -const int DropoutParameter::kScaleTrainFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DropoutParameter::DropoutParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.DropoutParameter) -} - -void DropoutParameter::InitAsDefaultInstance() { -} - -DropoutParameter::DropoutParameter(const DropoutParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.DropoutParameter) -} - -void DropoutParameter::SharedCtor() { - _cached_size_ = 0; - dropout_ratio_ = 0.5f; - scale_train_ = true; -} - -DropoutParameter::~DropoutParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.DropoutParameter) - SharedDtor(); -} - -void DropoutParameter::SharedDtor() { -} - -void DropoutParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* DropoutParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DropoutParameter_descriptor_; -} - -const DropoutParameter& DropoutParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed DropoutParameter_default_instance_; - -DropoutParameter* DropoutParameter::New(::google::protobuf::Arena* arena) const { - DropoutParameter* n = new DropoutParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void DropoutParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.DropoutParameter) - if (_has_bits_[0 / 32] & 3u) { - dropout_ratio_ = 0.5f; - scale_train_ = true; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool DropoutParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.DropoutParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float dropout_ratio = 1 [default = 0.5]; - case 1: { - if (tag == 13) { - set_has_dropout_ratio(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &dropout_ratio_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_scale_train; - break; - } - - // optional bool scale_train = 2 [default = true]; - case 2: { - if (tag == 16) { - parse_scale_train: - set_has_scale_train(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &scale_train_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.DropoutParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.DropoutParameter) - return false; -#undef DO_ -} - -void DropoutParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.DropoutParameter) - // optional float dropout_ratio = 1 [default = 0.5]; - if (has_dropout_ratio()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->dropout_ratio(), output); - } - - // optional bool scale_train = 2 [default = true]; - if (has_scale_train()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->scale_train(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.DropoutParameter) -} - -::google::protobuf::uint8* DropoutParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DropoutParameter) - // optional float dropout_ratio = 1 [default = 0.5]; - if (has_dropout_ratio()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->dropout_ratio(), target); - } - - // optional bool scale_train = 2 [default = true]; - if (has_scale_train()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->scale_train(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DropoutParameter) - return target; -} - -size_t DropoutParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DropoutParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 3u) { - // optional float dropout_ratio = 1 [default = 0.5]; - if (has_dropout_ratio()) { - total_size += 1 + 4; - } - - // optional bool scale_train = 2 [default = true]; - if (has_scale_train()) { - total_size += 1 + 1; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DropoutParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DropoutParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const DropoutParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DropoutParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DropoutParameter) - UnsafeMergeFrom(*source); - } -} - -void DropoutParameter::MergeFrom(const DropoutParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DropoutParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void DropoutParameter::UnsafeMergeFrom(const DropoutParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_dropout_ratio()) { - set_dropout_ratio(from.dropout_ratio()); - } - if (from.has_scale_train()) { - set_scale_train(from.scale_train()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void DropoutParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DropoutParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DropoutParameter::CopyFrom(const DropoutParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DropoutParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool DropoutParameter::IsInitialized() const { - - return true; -} - -void DropoutParameter::Swap(DropoutParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void DropoutParameter::InternalSwap(DropoutParameter* other) { - std::swap(dropout_ratio_, other->dropout_ratio_); - std::swap(scale_train_, other->scale_train_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata DropoutParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DropoutParameter_descriptor_; - metadata.reflection = DropoutParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// DropoutParameter - -// optional float dropout_ratio = 1 [default = 0.5]; -bool DropoutParameter::has_dropout_ratio() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void DropoutParameter::set_has_dropout_ratio() { - _has_bits_[0] |= 0x00000001u; -} -void DropoutParameter::clear_has_dropout_ratio() { - _has_bits_[0] &= ~0x00000001u; -} -void DropoutParameter::clear_dropout_ratio() { - dropout_ratio_ = 0.5f; - clear_has_dropout_ratio(); -} -float DropoutParameter::dropout_ratio() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DropoutParameter.dropout_ratio) - return dropout_ratio_; -} -void DropoutParameter::set_dropout_ratio(float value) { - set_has_dropout_ratio(); - dropout_ratio_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DropoutParameter.dropout_ratio) -} - -// optional bool scale_train = 2 [default = true]; -bool DropoutParameter::has_scale_train() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void DropoutParameter::set_has_scale_train() { - _has_bits_[0] |= 0x00000002u; -} -void DropoutParameter::clear_has_scale_train() { - _has_bits_[0] &= ~0x00000002u; -} -void DropoutParameter::clear_scale_train() { - scale_train_ = true; - clear_has_scale_train(); -} -bool DropoutParameter::scale_train() const { - // @@protoc_insertion_point(field_get:opencv_caffe.DropoutParameter.scale_train) - return scale_train_; -} -void DropoutParameter::set_scale_train(bool value) { - set_has_scale_train(); - scale_train_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.DropoutParameter.scale_train) -} - -inline const DropoutParameter* DropoutParameter::internal_default_instance() { - return &DropoutParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DummyDataParameter::kDataFillerFieldNumber; -const int DummyDataParameter::kShapeFieldNumber; -const int DummyDataParameter::kNumFieldNumber; -const int DummyDataParameter::kChannelsFieldNumber; -const int DummyDataParameter::kHeightFieldNumber; -const int DummyDataParameter::kWidthFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DummyDataParameter::DummyDataParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.DummyDataParameter) -} - -void DummyDataParameter::InitAsDefaultInstance() { -} - -DummyDataParameter::DummyDataParameter(const DummyDataParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.DummyDataParameter) -} - -void DummyDataParameter::SharedCtor() { - _cached_size_ = 0; -} - -DummyDataParameter::~DummyDataParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.DummyDataParameter) - SharedDtor(); -} - -void DummyDataParameter::SharedDtor() { -} - -void DummyDataParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* DummyDataParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return DummyDataParameter_descriptor_; -} - -const DummyDataParameter& DummyDataParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed DummyDataParameter_default_instance_; - -DummyDataParameter* DummyDataParameter::New(::google::protobuf::Arena* arena) const { - DummyDataParameter* n = new DummyDataParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void DummyDataParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.DummyDataParameter) - data_filler_.Clear(); - shape_.Clear(); - num_.Clear(); - channels_.Clear(); - height_.Clear(); - width_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool DummyDataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.DummyDataParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .opencv_caffe.FillerParameter data_filler = 1; - case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_data_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_data_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_loop_data_filler; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(16)) goto parse_num; - break; - } - - // repeated uint32 num = 2; - case 2: { - if (tag == 16) { - parse_num: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 16, input, this->mutable_num()))); - } else if (tag == 18) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_num()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_num; - if (input->ExpectTag(24)) goto parse_channels; - break; - } - - // repeated uint32 channels = 3; - case 3: { - if (tag == 24) { - parse_channels: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 24, input, this->mutable_channels()))); - } else if (tag == 26) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_channels()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_channels; - if (input->ExpectTag(32)) goto parse_height; - break; - } - - // repeated uint32 height = 4; - case 4: { - if (tag == 32) { - parse_height: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 32, input, this->mutable_height()))); - } else if (tag == 34) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_height()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_height; - if (input->ExpectTag(40)) goto parse_width; - break; - } - - // repeated uint32 width = 5; - case 5: { - if (tag == 40) { - parse_width: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 40, input, this->mutable_width()))); - } else if (tag == 42) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_width()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_width; - if (input->ExpectTag(50)) goto parse_shape; - break; - } - - // repeated .opencv_caffe.BlobShape shape = 6; - case 6: { - if (tag == 50) { - parse_shape: - DO_(input->IncrementRecursionDepth()); - parse_loop_shape: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_shape())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_loop_shape; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.DummyDataParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.DummyDataParameter) - return false; -#undef DO_ -} - -void DummyDataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.DummyDataParameter) - // repeated .opencv_caffe.FillerParameter data_filler = 1; - for (unsigned int i = 0, n = this->data_filler_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->data_filler(i), output); - } - - // repeated uint32 num = 2; - for (int i = 0; i < this->num_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 2, this->num(i), output); - } - - // repeated uint32 channels = 3; - for (int i = 0; i < this->channels_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 3, this->channels(i), output); - } - - // repeated uint32 height = 4; - for (int i = 0; i < this->height_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 4, this->height(i), output); - } - - // repeated uint32 width = 5; - for (int i = 0; i < this->width_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 5, this->width(i), output); - } - - // repeated .opencv_caffe.BlobShape shape = 6; - for (unsigned int i = 0, n = this->shape_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->shape(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.DummyDataParameter) -} - -::google::protobuf::uint8* DummyDataParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DummyDataParameter) - // repeated .opencv_caffe.FillerParameter data_filler = 1; - for (unsigned int i = 0, n = this->data_filler_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->data_filler(i), false, target); - } - - // repeated uint32 num = 2; - for (int i = 0; i < this->num_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(2, this->num(i), target); - } - - // repeated uint32 channels = 3; - for (int i = 0; i < this->channels_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(3, this->channels(i), target); - } - - // repeated uint32 height = 4; - for (int i = 0; i < this->height_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(4, this->height(i), target); - } - - // repeated uint32 width = 5; - for (int i = 0; i < this->width_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(5, this->width(i), target); - } - - // repeated .opencv_caffe.BlobShape shape = 6; - for (unsigned int i = 0, n = this->shape_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, this->shape(i), false, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DummyDataParameter) - return target; -} - -size_t DummyDataParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DummyDataParameter) - size_t total_size = 0; - - // repeated .opencv_caffe.FillerParameter data_filler = 1; - { - unsigned int count = this->data_filler_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->data_filler(i)); - } - } - - // repeated .opencv_caffe.BlobShape shape = 6; - { - unsigned int count = this->shape_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->shape(i)); - } - } - - // repeated uint32 num = 2; - { - size_t data_size = 0; - unsigned int count = this->num_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->num(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->num_size()); - total_size += data_size; - } - - // repeated uint32 channels = 3; - { - size_t data_size = 0; - unsigned int count = this->channels_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->channels(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->channels_size()); - total_size += data_size; - } - - // repeated uint32 height = 4; - { - size_t data_size = 0; - unsigned int count = this->height_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->height(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->height_size()); - total_size += data_size; - } - - // repeated uint32 width = 5; - { - size_t data_size = 0; - unsigned int count = this->width_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->width(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->width_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void DummyDataParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DummyDataParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const DummyDataParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DummyDataParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DummyDataParameter) - UnsafeMergeFrom(*source); - } -} - -void DummyDataParameter::MergeFrom(const DummyDataParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DummyDataParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void DummyDataParameter::UnsafeMergeFrom(const DummyDataParameter& from) { - GOOGLE_DCHECK(&from != this); - data_filler_.MergeFrom(from.data_filler_); - shape_.MergeFrom(from.shape_); - num_.UnsafeMergeFrom(from.num_); - channels_.UnsafeMergeFrom(from.channels_); - height_.UnsafeMergeFrom(from.height_); - width_.UnsafeMergeFrom(from.width_); - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void DummyDataParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DummyDataParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DummyDataParameter::CopyFrom(const DummyDataParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DummyDataParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool DummyDataParameter::IsInitialized() const { - - return true; -} - -void DummyDataParameter::Swap(DummyDataParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void DummyDataParameter::InternalSwap(DummyDataParameter* other) { - data_filler_.UnsafeArenaSwap(&other->data_filler_); - shape_.UnsafeArenaSwap(&other->shape_); - num_.UnsafeArenaSwap(&other->num_); - channels_.UnsafeArenaSwap(&other->channels_); - height_.UnsafeArenaSwap(&other->height_); - width_.UnsafeArenaSwap(&other->width_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata DummyDataParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = DummyDataParameter_descriptor_; - metadata.reflection = DummyDataParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// DummyDataParameter - -// repeated .opencv_caffe.FillerParameter data_filler = 1; -int DummyDataParameter::data_filler_size() const { - return data_filler_.size(); -} -void DummyDataParameter::clear_data_filler() { - data_filler_.Clear(); -} -const ::opencv_caffe::FillerParameter& DummyDataParameter::data_filler(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.DummyDataParameter.data_filler) - return data_filler_.Get(index); -} -::opencv_caffe::FillerParameter* DummyDataParameter::mutable_data_filler(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.DummyDataParameter.data_filler) - return data_filler_.Mutable(index); -} -::opencv_caffe::FillerParameter* DummyDataParameter::add_data_filler() { - // @@protoc_insertion_point(field_add:opencv_caffe.DummyDataParameter.data_filler) - return data_filler_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::FillerParameter >* -DummyDataParameter::mutable_data_filler() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.DummyDataParameter.data_filler) - return &data_filler_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::FillerParameter >& -DummyDataParameter::data_filler() const { - // @@protoc_insertion_point(field_list:opencv_caffe.DummyDataParameter.data_filler) - return data_filler_; -} - -// repeated .opencv_caffe.BlobShape shape = 6; -int DummyDataParameter::shape_size() const { - return shape_.size(); -} -void DummyDataParameter::clear_shape() { - shape_.Clear(); -} -const ::opencv_caffe::BlobShape& DummyDataParameter::shape(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.DummyDataParameter.shape) - return shape_.Get(index); -} -::opencv_caffe::BlobShape* DummyDataParameter::mutable_shape(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.DummyDataParameter.shape) - return shape_.Mutable(index); -} -::opencv_caffe::BlobShape* DummyDataParameter::add_shape() { - // @@protoc_insertion_point(field_add:opencv_caffe.DummyDataParameter.shape) - return shape_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >* -DummyDataParameter::mutable_shape() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.DummyDataParameter.shape) - return &shape_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >& -DummyDataParameter::shape() const { - // @@protoc_insertion_point(field_list:opencv_caffe.DummyDataParameter.shape) - return shape_; -} - -// repeated uint32 num = 2; -int DummyDataParameter::num_size() const { - return num_.size(); -} -void DummyDataParameter::clear_num() { - num_.Clear(); -} -::google::protobuf::uint32 DummyDataParameter::num(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.DummyDataParameter.num) - return num_.Get(index); -} -void DummyDataParameter::set_num(int index, ::google::protobuf::uint32 value) { - num_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.DummyDataParameter.num) -} -void DummyDataParameter::add_num(::google::protobuf::uint32 value) { - num_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.DummyDataParameter.num) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -DummyDataParameter::num() const { - // @@protoc_insertion_point(field_list:opencv_caffe.DummyDataParameter.num) - return num_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -DummyDataParameter::mutable_num() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.DummyDataParameter.num) - return &num_; -} - -// repeated uint32 channels = 3; -int DummyDataParameter::channels_size() const { - return channels_.size(); -} -void DummyDataParameter::clear_channels() { - channels_.Clear(); -} -::google::protobuf::uint32 DummyDataParameter::channels(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.DummyDataParameter.channels) - return channels_.Get(index); -} -void DummyDataParameter::set_channels(int index, ::google::protobuf::uint32 value) { - channels_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.DummyDataParameter.channels) -} -void DummyDataParameter::add_channels(::google::protobuf::uint32 value) { - channels_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.DummyDataParameter.channels) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -DummyDataParameter::channels() const { - // @@protoc_insertion_point(field_list:opencv_caffe.DummyDataParameter.channels) - return channels_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -DummyDataParameter::mutable_channels() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.DummyDataParameter.channels) - return &channels_; -} - -// repeated uint32 height = 4; -int DummyDataParameter::height_size() const { - return height_.size(); -} -void DummyDataParameter::clear_height() { - height_.Clear(); -} -::google::protobuf::uint32 DummyDataParameter::height(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.DummyDataParameter.height) - return height_.Get(index); -} -void DummyDataParameter::set_height(int index, ::google::protobuf::uint32 value) { - height_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.DummyDataParameter.height) -} -void DummyDataParameter::add_height(::google::protobuf::uint32 value) { - height_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.DummyDataParameter.height) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -DummyDataParameter::height() const { - // @@protoc_insertion_point(field_list:opencv_caffe.DummyDataParameter.height) - return height_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -DummyDataParameter::mutable_height() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.DummyDataParameter.height) - return &height_; -} - -// repeated uint32 width = 5; -int DummyDataParameter::width_size() const { - return width_.size(); -} -void DummyDataParameter::clear_width() { - width_.Clear(); -} -::google::protobuf::uint32 DummyDataParameter::width(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.DummyDataParameter.width) - return width_.Get(index); -} -void DummyDataParameter::set_width(int index, ::google::protobuf::uint32 value) { - width_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.DummyDataParameter.width) -} -void DummyDataParameter::add_width(::google::protobuf::uint32 value) { - width_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.DummyDataParameter.width) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -DummyDataParameter::width() const { - // @@protoc_insertion_point(field_list:opencv_caffe.DummyDataParameter.width) - return width_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -DummyDataParameter::mutable_width() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.DummyDataParameter.width) - return &width_; -} - -inline const DummyDataParameter* DummyDataParameter::internal_default_instance() { - return &DummyDataParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* EltwiseParameter_EltwiseOp_descriptor() { - protobuf_AssignDescriptorsOnce(); - return EltwiseParameter_EltwiseOp_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[9]; } bool EltwiseParameter_EltwiseOp_IsValid(int value) { switch (value) { @@ -30307,2868 +4229,9 @@ const EltwiseParameter_EltwiseOp EltwiseParameter::EltwiseOp_MIN; const EltwiseParameter_EltwiseOp EltwiseParameter::EltwiseOp_MAX; const int EltwiseParameter::EltwiseOp_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EltwiseParameter::kOperationFieldNumber; -const int EltwiseParameter::kCoeffFieldNumber; -const int EltwiseParameter::kStableProdGradFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EltwiseParameter::EltwiseParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.EltwiseParameter) -} - -void EltwiseParameter::InitAsDefaultInstance() { -} - -EltwiseParameter::EltwiseParameter(const EltwiseParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.EltwiseParameter) -} - -void EltwiseParameter::SharedCtor() { - _cached_size_ = 0; - operation_ = 1; - stable_prod_grad_ = true; -} - -EltwiseParameter::~EltwiseParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.EltwiseParameter) - SharedDtor(); -} - -void EltwiseParameter::SharedDtor() { -} - -void EltwiseParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* EltwiseParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return EltwiseParameter_descriptor_; -} - -const EltwiseParameter& EltwiseParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed EltwiseParameter_default_instance_; - -EltwiseParameter* EltwiseParameter::New(::google::protobuf::Arena* arena) const { - EltwiseParameter* n = new EltwiseParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void EltwiseParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.EltwiseParameter) - if (_has_bits_[0 / 32] & 5u) { - operation_ = 1; - stable_prod_grad_ = true; - } - coeff_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool EltwiseParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.EltwiseParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::EltwiseParameter_EltwiseOp_IsValid(value)) { - set_operation(static_cast< ::opencv_caffe::EltwiseParameter_EltwiseOp >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_coeff; - break; - } - - // repeated float coeff = 2; - case 2: { - if (tag == 21) { - parse_coeff: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 21, input, this->mutable_coeff()))); - } else if (tag == 18) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, this->mutable_coeff()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_coeff; - if (input->ExpectTag(24)) goto parse_stable_prod_grad; - break; - } - - // optional bool stable_prod_grad = 3 [default = true]; - case 3: { - if (tag == 24) { - parse_stable_prod_grad: - set_has_stable_prod_grad(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &stable_prod_grad_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.EltwiseParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.EltwiseParameter) - return false; -#undef DO_ -} - -void EltwiseParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.EltwiseParameter) - // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; - if (has_operation()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->operation(), output); - } - - // repeated float coeff = 2; - for (int i = 0; i < this->coeff_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloat( - 2, this->coeff(i), output); - } - - // optional bool stable_prod_grad = 3 [default = true]; - if (has_stable_prod_grad()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->stable_prod_grad(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.EltwiseParameter) -} - -::google::protobuf::uint8* EltwiseParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.EltwiseParameter) - // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; - if (has_operation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->operation(), target); - } - - // repeated float coeff = 2; - for (int i = 0; i < this->coeff_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(2, this->coeff(i), target); - } - - // optional bool stable_prod_grad = 3 [default = true]; - if (has_stable_prod_grad()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->stable_prod_grad(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.EltwiseParameter) - return target; -} - -size_t EltwiseParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.EltwiseParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 5u) { - // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; - if (has_operation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation()); - } - - // optional bool stable_prod_grad = 3 [default = true]; - if (has_stable_prod_grad()) { - total_size += 1 + 1; - } - - } - // repeated float coeff = 2; - { - size_t data_size = 0; - unsigned int count = this->coeff_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->coeff_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void EltwiseParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.EltwiseParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const EltwiseParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.EltwiseParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.EltwiseParameter) - UnsafeMergeFrom(*source); - } -} - -void EltwiseParameter::MergeFrom(const EltwiseParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.EltwiseParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void EltwiseParameter::UnsafeMergeFrom(const EltwiseParameter& from) { - GOOGLE_DCHECK(&from != this); - coeff_.UnsafeMergeFrom(from.coeff_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_operation()) { - set_operation(from.operation()); - } - if (from.has_stable_prod_grad()) { - set_stable_prod_grad(from.stable_prod_grad()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void EltwiseParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.EltwiseParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EltwiseParameter::CopyFrom(const EltwiseParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.EltwiseParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool EltwiseParameter::IsInitialized() const { - - return true; -} - -void EltwiseParameter::Swap(EltwiseParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void EltwiseParameter::InternalSwap(EltwiseParameter* other) { - std::swap(operation_, other->operation_); - coeff_.UnsafeArenaSwap(&other->coeff_); - std::swap(stable_prod_grad_, other->stable_prod_grad_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata EltwiseParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = EltwiseParameter_descriptor_; - metadata.reflection = EltwiseParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// EltwiseParameter - -// optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; -bool EltwiseParameter::has_operation() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void EltwiseParameter::set_has_operation() { - _has_bits_[0] |= 0x00000001u; -} -void EltwiseParameter::clear_has_operation() { - _has_bits_[0] &= ~0x00000001u; -} -void EltwiseParameter::clear_operation() { - operation_ = 1; - clear_has_operation(); -} -::opencv_caffe::EltwiseParameter_EltwiseOp EltwiseParameter::operation() const { - // @@protoc_insertion_point(field_get:opencv_caffe.EltwiseParameter.operation) - return static_cast< ::opencv_caffe::EltwiseParameter_EltwiseOp >(operation_); -} -void EltwiseParameter::set_operation(::opencv_caffe::EltwiseParameter_EltwiseOp value) { - assert(::opencv_caffe::EltwiseParameter_EltwiseOp_IsValid(value)); - set_has_operation(); - operation_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.EltwiseParameter.operation) -} - -// repeated float coeff = 2; -int EltwiseParameter::coeff_size() const { - return coeff_.size(); -} -void EltwiseParameter::clear_coeff() { - coeff_.Clear(); -} -float EltwiseParameter::coeff(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.EltwiseParameter.coeff) - return coeff_.Get(index); -} -void EltwiseParameter::set_coeff(int index, float value) { - coeff_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.EltwiseParameter.coeff) -} -void EltwiseParameter::add_coeff(float value) { - coeff_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.EltwiseParameter.coeff) -} -const ::google::protobuf::RepeatedField< float >& -EltwiseParameter::coeff() const { - // @@protoc_insertion_point(field_list:opencv_caffe.EltwiseParameter.coeff) - return coeff_; -} -::google::protobuf::RepeatedField< float >* -EltwiseParameter::mutable_coeff() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.EltwiseParameter.coeff) - return &coeff_; -} - -// optional bool stable_prod_grad = 3 [default = true]; -bool EltwiseParameter::has_stable_prod_grad() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void EltwiseParameter::set_has_stable_prod_grad() { - _has_bits_[0] |= 0x00000004u; -} -void EltwiseParameter::clear_has_stable_prod_grad() { - _has_bits_[0] &= ~0x00000004u; -} -void EltwiseParameter::clear_stable_prod_grad() { - stable_prod_grad_ = true; - clear_has_stable_prod_grad(); -} -bool EltwiseParameter::stable_prod_grad() const { - // @@protoc_insertion_point(field_get:opencv_caffe.EltwiseParameter.stable_prod_grad) - return stable_prod_grad_; -} -void EltwiseParameter::set_stable_prod_grad(bool value) { - set_has_stable_prod_grad(); - stable_prod_grad_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.EltwiseParameter.stable_prod_grad) -} - -inline const EltwiseParameter* EltwiseParameter::internal_default_instance() { - return &EltwiseParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ELUParameter::kAlphaFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ELUParameter::ELUParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ELUParameter) -} - -void ELUParameter::InitAsDefaultInstance() { -} - -ELUParameter::ELUParameter(const ELUParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ELUParameter) -} - -void ELUParameter::SharedCtor() { - _cached_size_ = 0; - alpha_ = 1; -} - -ELUParameter::~ELUParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ELUParameter) - SharedDtor(); -} - -void ELUParameter::SharedDtor() { -} - -void ELUParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ELUParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ELUParameter_descriptor_; -} - -const ELUParameter& ELUParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ELUParameter_default_instance_; - -ELUParameter* ELUParameter::New(::google::protobuf::Arena* arena) const { - ELUParameter* n = new ELUParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ELUParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ELUParameter) - alpha_ = 1; - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ELUParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ELUParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float alpha = 1 [default = 1]; - case 1: { - if (tag == 13) { - set_has_alpha(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &alpha_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ELUParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ELUParameter) - return false; -#undef DO_ -} - -void ELUParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ELUParameter) - // optional float alpha = 1 [default = 1]; - if (has_alpha()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->alpha(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ELUParameter) -} - -::google::protobuf::uint8* ELUParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ELUParameter) - // optional float alpha = 1 [default = 1]; - if (has_alpha()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->alpha(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ELUParameter) - return target; -} - -size_t ELUParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ELUParameter) - size_t total_size = 0; - - // optional float alpha = 1 [default = 1]; - if (has_alpha()) { - total_size += 1 + 4; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ELUParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ELUParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ELUParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ELUParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ELUParameter) - UnsafeMergeFrom(*source); - } -} - -void ELUParameter::MergeFrom(const ELUParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ELUParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ELUParameter::UnsafeMergeFrom(const ELUParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_alpha()) { - set_alpha(from.alpha()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ELUParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ELUParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ELUParameter::CopyFrom(const ELUParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ELUParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ELUParameter::IsInitialized() const { - - return true; -} - -void ELUParameter::Swap(ELUParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ELUParameter::InternalSwap(ELUParameter* other) { - std::swap(alpha_, other->alpha_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ELUParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ELUParameter_descriptor_; - metadata.reflection = ELUParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ELUParameter - -// optional float alpha = 1 [default = 1]; -bool ELUParameter::has_alpha() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ELUParameter::set_has_alpha() { - _has_bits_[0] |= 0x00000001u; -} -void ELUParameter::clear_has_alpha() { - _has_bits_[0] &= ~0x00000001u; -} -void ELUParameter::clear_alpha() { - alpha_ = 1; - clear_has_alpha(); -} -float ELUParameter::alpha() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ELUParameter.alpha) - return alpha_; -} -void ELUParameter::set_alpha(float value) { - set_has_alpha(); - alpha_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ELUParameter.alpha) -} - -inline const ELUParameter* ELUParameter::internal_default_instance() { - return &ELUParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EmbedParameter::kNumOutputFieldNumber; -const int EmbedParameter::kInputDimFieldNumber; -const int EmbedParameter::kBiasTermFieldNumber; -const int EmbedParameter::kWeightFillerFieldNumber; -const int EmbedParameter::kBiasFillerFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EmbedParameter::EmbedParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.EmbedParameter) -} - -void EmbedParameter::InitAsDefaultInstance() { - weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); - bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); -} - -EmbedParameter::EmbedParameter(const EmbedParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.EmbedParameter) -} - -void EmbedParameter::SharedCtor() { - _cached_size_ = 0; - weight_filler_ = NULL; - bias_filler_ = NULL; - ::memset(&num_output_, 0, reinterpret_cast(&input_dim_) - - reinterpret_cast(&num_output_) + sizeof(input_dim_)); - bias_term_ = true; -} - -EmbedParameter::~EmbedParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.EmbedParameter) - SharedDtor(); -} - -void EmbedParameter::SharedDtor() { - if (this != &EmbedParameter_default_instance_.get()) { - delete weight_filler_; - delete bias_filler_; - } -} - -void EmbedParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* EmbedParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return EmbedParameter_descriptor_; -} - -const EmbedParameter& EmbedParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed EmbedParameter_default_instance_; - -EmbedParameter* EmbedParameter::New(::google::protobuf::Arena* arena) const { - EmbedParameter* n = new EmbedParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void EmbedParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.EmbedParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(EmbedParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 31u) { - ZR_(num_output_, input_dim_); - bias_term_ = true; - if (has_weight_filler()) { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - } - if (has_bias_filler()) { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - } - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool EmbedParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.EmbedParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 num_output = 1; - case 1: { - if (tag == 8) { - set_has_num_output(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &num_output_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_input_dim; - break; - } - - // optional uint32 input_dim = 2; - case 2: { - if (tag == 16) { - parse_input_dim: - set_has_input_dim(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &input_dim_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_bias_term; - break; - } - - // optional bool bias_term = 3 [default = true]; - case 3: { - if (tag == 24) { - parse_bias_term: - set_has_bias_term(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &bias_term_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_weight_filler; - break; - } - - // optional .opencv_caffe.FillerParameter weight_filler = 4; - case 4: { - if (tag == 34) { - parse_weight_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_weight_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_bias_filler; - break; - } - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - case 5: { - if (tag == 42) { - parse_bias_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bias_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.EmbedParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.EmbedParameter) - return false; -#undef DO_ -} - -void EmbedParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.EmbedParameter) - // optional uint32 num_output = 1; - if (has_num_output()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output); - } - - // optional uint32 input_dim = 2; - if (has_input_dim()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->input_dim(), output); - } - - // optional bool bias_term = 3 [default = true]; - if (has_bias_term()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->bias_term(), output); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 4; - if (has_weight_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *this->weight_filler_, output); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - if (has_bias_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *this->bias_filler_, output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.EmbedParameter) -} - -::google::protobuf::uint8* EmbedParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.EmbedParameter) - // optional uint32 num_output = 1; - if (has_num_output()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target); - } - - // optional uint32 input_dim = 2; - if (has_input_dim()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->input_dim(), target); - } - - // optional bool bias_term = 3 [default = true]; - if (has_bias_term()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->bias_term(), target); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 4; - if (has_weight_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *this->weight_filler_, false, target); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - if (has_bias_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *this->bias_filler_, false, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.EmbedParameter) - return target; -} - -size_t EmbedParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.EmbedParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 31u) { - // optional uint32 num_output = 1; - if (has_num_output()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->num_output()); - } - - // optional uint32 input_dim = 2; - if (has_input_dim()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->input_dim()); - } - - // optional bool bias_term = 3 [default = true]; - if (has_bias_term()) { - total_size += 1 + 1; - } - - // optional .opencv_caffe.FillerParameter weight_filler = 4; - if (has_weight_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->weight_filler_); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - if (has_bias_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->bias_filler_); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void EmbedParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.EmbedParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const EmbedParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.EmbedParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.EmbedParameter) - UnsafeMergeFrom(*source); - } -} - -void EmbedParameter::MergeFrom(const EmbedParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.EmbedParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void EmbedParameter::UnsafeMergeFrom(const EmbedParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_num_output()) { - set_num_output(from.num_output()); - } - if (from.has_input_dim()) { - set_input_dim(from.input_dim()); - } - if (from.has_bias_term()) { - set_bias_term(from.bias_term()); - } - if (from.has_weight_filler()) { - mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); - } - if (from.has_bias_filler()) { - mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void EmbedParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.EmbedParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EmbedParameter::CopyFrom(const EmbedParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.EmbedParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool EmbedParameter::IsInitialized() const { - - return true; -} - -void EmbedParameter::Swap(EmbedParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void EmbedParameter::InternalSwap(EmbedParameter* other) { - std::swap(num_output_, other->num_output_); - std::swap(input_dim_, other->input_dim_); - std::swap(bias_term_, other->bias_term_); - std::swap(weight_filler_, other->weight_filler_); - std::swap(bias_filler_, other->bias_filler_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata EmbedParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = EmbedParameter_descriptor_; - metadata.reflection = EmbedParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// EmbedParameter - -// optional uint32 num_output = 1; -bool EmbedParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void EmbedParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; -} -void EmbedParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; -} -void EmbedParameter::clear_num_output() { - num_output_ = 0u; - clear_has_num_output(); -} -::google::protobuf::uint32 EmbedParameter::num_output() const { - // @@protoc_insertion_point(field_get:opencv_caffe.EmbedParameter.num_output) - return num_output_; -} -void EmbedParameter::set_num_output(::google::protobuf::uint32 value) { - set_has_num_output(); - num_output_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.EmbedParameter.num_output) -} - -// optional uint32 input_dim = 2; -bool EmbedParameter::has_input_dim() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void EmbedParameter::set_has_input_dim() { - _has_bits_[0] |= 0x00000002u; -} -void EmbedParameter::clear_has_input_dim() { - _has_bits_[0] &= ~0x00000002u; -} -void EmbedParameter::clear_input_dim() { - input_dim_ = 0u; - clear_has_input_dim(); -} -::google::protobuf::uint32 EmbedParameter::input_dim() const { - // @@protoc_insertion_point(field_get:opencv_caffe.EmbedParameter.input_dim) - return input_dim_; -} -void EmbedParameter::set_input_dim(::google::protobuf::uint32 value) { - set_has_input_dim(); - input_dim_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.EmbedParameter.input_dim) -} - -// optional bool bias_term = 3 [default = true]; -bool EmbedParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void EmbedParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000004u; -} -void EmbedParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000004u; -} -void EmbedParameter::clear_bias_term() { - bias_term_ = true; - clear_has_bias_term(); -} -bool EmbedParameter::bias_term() const { - // @@protoc_insertion_point(field_get:opencv_caffe.EmbedParameter.bias_term) - return bias_term_; -} -void EmbedParameter::set_bias_term(bool value) { - set_has_bias_term(); - bias_term_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.EmbedParameter.bias_term) -} - -// optional .opencv_caffe.FillerParameter weight_filler = 4; -bool EmbedParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void EmbedParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000008u; -} -void EmbedParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000008u; -} -void EmbedParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_weight_filler(); -} -const ::opencv_caffe::FillerParameter& EmbedParameter::weight_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.EmbedParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* EmbedParameter::mutable_weight_filler() { - set_has_weight_filler(); - if (weight_filler_ == NULL) { - weight_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.EmbedParameter.weight_filler) - return weight_filler_; -} -::opencv_caffe::FillerParameter* EmbedParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.EmbedParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} -void EmbedParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; - if (weight_filler) { - set_has_weight_filler(); - } else { - clear_has_weight_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.EmbedParameter.weight_filler) -} - -// optional .opencv_caffe.FillerParameter bias_filler = 5; -bool EmbedParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void EmbedParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000010u; -} -void EmbedParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000010u; -} -void EmbedParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_bias_filler(); -} -const ::opencv_caffe::FillerParameter& EmbedParameter::bias_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.EmbedParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* EmbedParameter::mutable_bias_filler() { - set_has_bias_filler(); - if (bias_filler_ == NULL) { - bias_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.EmbedParameter.bias_filler) - return bias_filler_; -} -::opencv_caffe::FillerParameter* EmbedParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.EmbedParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} -void EmbedParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; - if (bias_filler) { - set_has_bias_filler(); - } else { - clear_has_bias_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.EmbedParameter.bias_filler) -} - -inline const EmbedParameter* EmbedParameter::internal_default_instance() { - return &EmbedParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExpParameter::kBaseFieldNumber; -const int ExpParameter::kScaleFieldNumber; -const int ExpParameter::kShiftFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExpParameter::ExpParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ExpParameter) -} - -void ExpParameter::InitAsDefaultInstance() { -} - -ExpParameter::ExpParameter(const ExpParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ExpParameter) -} - -void ExpParameter::SharedCtor() { - _cached_size_ = 0; - shift_ = 0; - base_ = -1; - scale_ = 1; -} - -ExpParameter::~ExpParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ExpParameter) - SharedDtor(); -} - -void ExpParameter::SharedDtor() { -} - -void ExpParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ExpParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ExpParameter_descriptor_; -} - -const ExpParameter& ExpParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ExpParameter_default_instance_; - -ExpParameter* ExpParameter::New(::google::protobuf::Arena* arena) const { - ExpParameter* n = new ExpParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ExpParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ExpParameter) - if (_has_bits_[0 / 32] & 7u) { - base_ = -1; - scale_ = 1; - shift_ = 0; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ExpParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ExpParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float base = 1 [default = -1]; - case 1: { - if (tag == 13) { - set_has_base(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &base_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (tag == 21) { - parse_scale: - set_has_scale(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_shift; - break; - } - - // optional float shift = 3 [default = 0]; - case 3: { - if (tag == 29) { - parse_shift: - set_has_shift(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &shift_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ExpParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ExpParameter) - return false; -#undef DO_ -} - -void ExpParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ExpParameter) - // optional float base = 1 [default = -1]; - if (has_base()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->base(), output); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); - } - - // optional float shift = 3 [default = 0]; - if (has_shift()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->shift(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ExpParameter) -} - -::google::protobuf::uint8* ExpParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ExpParameter) - // optional float base = 1 [default = -1]; - if (has_base()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->base(), target); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); - } - - // optional float shift = 3 [default = 0]; - if (has_shift()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->shift(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ExpParameter) - return target; -} - -size_t ExpParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ExpParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional float base = 1 [default = -1]; - if (has_base()) { - total_size += 1 + 4; - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - total_size += 1 + 4; - } - - // optional float shift = 3 [default = 0]; - if (has_shift()) { - total_size += 1 + 4; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ExpParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ExpParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ExpParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ExpParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ExpParameter) - UnsafeMergeFrom(*source); - } -} - -void ExpParameter::MergeFrom(const ExpParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ExpParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ExpParameter::UnsafeMergeFrom(const ExpParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_base()) { - set_base(from.base()); - } - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_shift()) { - set_shift(from.shift()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ExpParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ExpParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExpParameter::CopyFrom(const ExpParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ExpParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ExpParameter::IsInitialized() const { - - return true; -} - -void ExpParameter::Swap(ExpParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ExpParameter::InternalSwap(ExpParameter* other) { - std::swap(base_, other->base_); - std::swap(scale_, other->scale_); - std::swap(shift_, other->shift_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ExpParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ExpParameter_descriptor_; - metadata.reflection = ExpParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ExpParameter - -// optional float base = 1 [default = -1]; -bool ExpParameter::has_base() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ExpParameter::set_has_base() { - _has_bits_[0] |= 0x00000001u; -} -void ExpParameter::clear_has_base() { - _has_bits_[0] &= ~0x00000001u; -} -void ExpParameter::clear_base() { - base_ = -1; - clear_has_base(); -} -float ExpParameter::base() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ExpParameter.base) - return base_; -} -void ExpParameter::set_base(float value) { - set_has_base(); - base_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ExpParameter.base) -} - -// optional float scale = 2 [default = 1]; -bool ExpParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ExpParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; -} -void ExpParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; -} -void ExpParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -float ExpParameter::scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ExpParameter.scale) - return scale_; -} -void ExpParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ExpParameter.scale) -} - -// optional float shift = 3 [default = 0]; -bool ExpParameter::has_shift() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void ExpParameter::set_has_shift() { - _has_bits_[0] |= 0x00000004u; -} -void ExpParameter::clear_has_shift() { - _has_bits_[0] &= ~0x00000004u; -} -void ExpParameter::clear_shift() { - shift_ = 0; - clear_has_shift(); -} -float ExpParameter::shift() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ExpParameter.shift) - return shift_; -} -void ExpParameter::set_shift(float value) { - set_has_shift(); - shift_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ExpParameter.shift) -} - -inline const ExpParameter* ExpParameter::internal_default_instance() { - return &ExpParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FlattenParameter::kAxisFieldNumber; -const int FlattenParameter::kEndAxisFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FlattenParameter::FlattenParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.FlattenParameter) -} - -void FlattenParameter::InitAsDefaultInstance() { -} - -FlattenParameter::FlattenParameter(const FlattenParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.FlattenParameter) -} - -void FlattenParameter::SharedCtor() { - _cached_size_ = 0; - axis_ = 1; - end_axis_ = -1; -} - -FlattenParameter::~FlattenParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.FlattenParameter) - SharedDtor(); -} - -void FlattenParameter::SharedDtor() { -} - -void FlattenParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* FlattenParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FlattenParameter_descriptor_; -} - -const FlattenParameter& FlattenParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed FlattenParameter_default_instance_; - -FlattenParameter* FlattenParameter::New(::google::protobuf::Arena* arena) const { - FlattenParameter* n = new FlattenParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void FlattenParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.FlattenParameter) - if (_has_bits_[0 / 32] & 3u) { - axis_ = 1; - end_axis_ = -1; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool FlattenParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.FlattenParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 axis = 1 [default = 1]; - case 1: { - if (tag == 8) { - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_end_axis; - break; - } - - // optional int32 end_axis = 2 [default = -1]; - case 2: { - if (tag == 16) { - parse_end_axis: - set_has_end_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &end_axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.FlattenParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.FlattenParameter) - return false; -#undef DO_ -} - -void FlattenParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.FlattenParameter) - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); - } - - // optional int32 end_axis = 2 [default = -1]; - if (has_end_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end_axis(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.FlattenParameter) -} - -::google::protobuf::uint8* FlattenParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.FlattenParameter) - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); - } - - // optional int32 end_axis = 2 [default = -1]; - if (has_end_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end_axis(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.FlattenParameter) - return target; -} - -size_t FlattenParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.FlattenParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 3u) { - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional int32 end_axis = 2 [default = -1]; - if (has_end_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->end_axis()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FlattenParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.FlattenParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const FlattenParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.FlattenParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.FlattenParameter) - UnsafeMergeFrom(*source); - } -} - -void FlattenParameter::MergeFrom(const FlattenParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.FlattenParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void FlattenParameter::UnsafeMergeFrom(const FlattenParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_end_axis()) { - set_end_axis(from.end_axis()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void FlattenParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.FlattenParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FlattenParameter::CopyFrom(const FlattenParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.FlattenParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool FlattenParameter::IsInitialized() const { - - return true; -} - -void FlattenParameter::Swap(FlattenParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void FlattenParameter::InternalSwap(FlattenParameter* other) { - std::swap(axis_, other->axis_); - std::swap(end_axis_, other->end_axis_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata FlattenParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FlattenParameter_descriptor_; - metadata.reflection = FlattenParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FlattenParameter - -// optional int32 axis = 1 [default = 1]; -bool FlattenParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void FlattenParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -void FlattenParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -void FlattenParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 FlattenParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FlattenParameter.axis) - return axis_; -} -void FlattenParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.FlattenParameter.axis) -} - -// optional int32 end_axis = 2 [default = -1]; -bool FlattenParameter::has_end_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void FlattenParameter::set_has_end_axis() { - _has_bits_[0] |= 0x00000002u; -} -void FlattenParameter::clear_has_end_axis() { - _has_bits_[0] &= ~0x00000002u; -} -void FlattenParameter::clear_end_axis() { - end_axis_ = -1; - clear_has_end_axis(); -} -::google::protobuf::int32 FlattenParameter::end_axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.FlattenParameter.end_axis) - return end_axis_; -} -void FlattenParameter::set_end_axis(::google::protobuf::int32 value) { - set_has_end_axis(); - end_axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.FlattenParameter.end_axis) -} - -inline const FlattenParameter* FlattenParameter::internal_default_instance() { - return &FlattenParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HDF5DataParameter::kSourceFieldNumber; -const int HDF5DataParameter::kBatchSizeFieldNumber; -const int HDF5DataParameter::kShuffleFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HDF5DataParameter::HDF5DataParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.HDF5DataParameter) -} - -void HDF5DataParameter::InitAsDefaultInstance() { -} - -HDF5DataParameter::HDF5DataParameter(const HDF5DataParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.HDF5DataParameter) -} - -void HDF5DataParameter::SharedCtor() { - _cached_size_ = 0; - source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&batch_size_, 0, reinterpret_cast(&shuffle_) - - reinterpret_cast(&batch_size_) + sizeof(shuffle_)); -} - -HDF5DataParameter::~HDF5DataParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.HDF5DataParameter) - SharedDtor(); -} - -void HDF5DataParameter::SharedDtor() { - source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void HDF5DataParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* HDF5DataParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return HDF5DataParameter_descriptor_; -} - -const HDF5DataParameter& HDF5DataParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed HDF5DataParameter_default_instance_; - -HDF5DataParameter* HDF5DataParameter::New(::google::protobuf::Arena* arena) const { - HDF5DataParameter* n = new HDF5DataParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void HDF5DataParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.HDF5DataParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(HDF5DataParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 7u) { - ZR_(batch_size_, shuffle_); - if (has_source()) { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool HDF5DataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.HDF5DataParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.HDF5DataParameter.source"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_batch_size; - break; - } - - // optional uint32 batch_size = 2; - case 2: { - if (tag == 16) { - parse_batch_size: - set_has_batch_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_shuffle; - break; - } - - // optional bool shuffle = 3 [default = false]; - case 3: { - if (tag == 24) { - parse_shuffle: - set_has_shuffle(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &shuffle_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.HDF5DataParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.HDF5DataParameter) - return false; -#undef DO_ -} - -void HDF5DataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.HDF5DataParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.HDF5DataParameter.source"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->source(), output); - } - - // optional uint32 batch_size = 2; - if (has_batch_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->batch_size(), output); - } - - // optional bool shuffle = 3 [default = false]; - if (has_shuffle()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->shuffle(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.HDF5DataParameter) -} - -::google::protobuf::uint8* HDF5DataParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.HDF5DataParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.HDF5DataParameter.source"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->source(), target); - } - - // optional uint32 batch_size = 2; - if (has_batch_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->batch_size(), target); - } - - // optional bool shuffle = 3 [default = false]; - if (has_shuffle()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->shuffle(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.HDF5DataParameter) - return target; -} - -size_t HDF5DataParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.HDF5DataParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional string source = 1; - if (has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->source()); - } - - // optional uint32 batch_size = 2; - if (has_batch_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->batch_size()); - } - - // optional bool shuffle = 3 [default = false]; - if (has_shuffle()) { - total_size += 1 + 1; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void HDF5DataParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.HDF5DataParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const HDF5DataParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.HDF5DataParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.HDF5DataParameter) - UnsafeMergeFrom(*source); - } -} - -void HDF5DataParameter::MergeFrom(const HDF5DataParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.HDF5DataParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void HDF5DataParameter::UnsafeMergeFrom(const HDF5DataParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_has_source(); - source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); - } - if (from.has_batch_size()) { - set_batch_size(from.batch_size()); - } - if (from.has_shuffle()) { - set_shuffle(from.shuffle()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void HDF5DataParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.HDF5DataParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HDF5DataParameter::CopyFrom(const HDF5DataParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.HDF5DataParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool HDF5DataParameter::IsInitialized() const { - - return true; -} - -void HDF5DataParameter::Swap(HDF5DataParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void HDF5DataParameter::InternalSwap(HDF5DataParameter* other) { - source_.Swap(&other->source_); - std::swap(batch_size_, other->batch_size_); - std::swap(shuffle_, other->shuffle_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata HDF5DataParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = HDF5DataParameter_descriptor_; - metadata.reflection = HDF5DataParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// HDF5DataParameter - -// optional string source = 1; -bool HDF5DataParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void HDF5DataParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -void HDF5DataParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -void HDF5DataParameter::clear_source() { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_source(); -} -const ::std::string& HDF5DataParameter::source() const { - // @@protoc_insertion_point(field_get:opencv_caffe.HDF5DataParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void HDF5DataParameter::set_source(const ::std::string& value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.HDF5DataParameter.source) -} -void HDF5DataParameter::set_source(const char* value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.HDF5DataParameter.source) -} -void HDF5DataParameter::set_source(const char* value, size_t size) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.HDF5DataParameter.source) -} -::std::string* HDF5DataParameter::mutable_source() { - set_has_source(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.HDF5DataParameter.source) - return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* HDF5DataParameter::release_source() { - // @@protoc_insertion_point(field_release:opencv_caffe.HDF5DataParameter.source) - clear_has_source(); - return source_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void HDF5DataParameter::set_allocated_source(::std::string* source) { - if (source != NULL) { - set_has_source(); - } else { - clear_has_source(); - } - source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.HDF5DataParameter.source) -} - -// optional uint32 batch_size = 2; -bool HDF5DataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void HDF5DataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000002u; -} -void HDF5DataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000002u; -} -void HDF5DataParameter::clear_batch_size() { - batch_size_ = 0u; - clear_has_batch_size(); -} -::google::protobuf::uint32 HDF5DataParameter::batch_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.HDF5DataParameter.batch_size) - return batch_size_; -} -void HDF5DataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.HDF5DataParameter.batch_size) -} - -// optional bool shuffle = 3 [default = false]; -bool HDF5DataParameter::has_shuffle() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void HDF5DataParameter::set_has_shuffle() { - _has_bits_[0] |= 0x00000004u; -} -void HDF5DataParameter::clear_has_shuffle() { - _has_bits_[0] &= ~0x00000004u; -} -void HDF5DataParameter::clear_shuffle() { - shuffle_ = false; - clear_has_shuffle(); -} -bool HDF5DataParameter::shuffle() const { - // @@protoc_insertion_point(field_get:opencv_caffe.HDF5DataParameter.shuffle) - return shuffle_; -} -void HDF5DataParameter::set_shuffle(bool value) { - set_has_shuffle(); - shuffle_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.HDF5DataParameter.shuffle) -} - -inline const HDF5DataParameter* HDF5DataParameter::internal_default_instance() { - return &HDF5DataParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HDF5OutputParameter::kFileNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HDF5OutputParameter::HDF5OutputParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.HDF5OutputParameter) -} - -void HDF5OutputParameter::InitAsDefaultInstance() { -} - -HDF5OutputParameter::HDF5OutputParameter(const HDF5OutputParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.HDF5OutputParameter) -} - -void HDF5OutputParameter::SharedCtor() { - _cached_size_ = 0; - file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -HDF5OutputParameter::~HDF5OutputParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.HDF5OutputParameter) - SharedDtor(); -} - -void HDF5OutputParameter::SharedDtor() { - file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void HDF5OutputParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* HDF5OutputParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return HDF5OutputParameter_descriptor_; -} - -const HDF5OutputParameter& HDF5OutputParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed HDF5OutputParameter_default_instance_; - -HDF5OutputParameter* HDF5OutputParameter::New(::google::protobuf::Arena* arena) const { - HDF5OutputParameter* n = new HDF5OutputParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void HDF5OutputParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.HDF5OutputParameter) - if (has_file_name()) { - file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool HDF5OutputParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.HDF5OutputParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string file_name = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_file_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.HDF5OutputParameter.file_name"); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.HDF5OutputParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.HDF5OutputParameter) - return false; -#undef DO_ -} - -void HDF5OutputParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.HDF5OutputParameter) - // optional string file_name = 1; - if (has_file_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.HDF5OutputParameter.file_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->file_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.HDF5OutputParameter) -} - -::google::protobuf::uint8* HDF5OutputParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.HDF5OutputParameter) - // optional string file_name = 1; - if (has_file_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->file_name().data(), this->file_name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.HDF5OutputParameter.file_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->file_name(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.HDF5OutputParameter) - return target; -} - -size_t HDF5OutputParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.HDF5OutputParameter) - size_t total_size = 0; - - // optional string file_name = 1; - if (has_file_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->file_name()); - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void HDF5OutputParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.HDF5OutputParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const HDF5OutputParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.HDF5OutputParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.HDF5OutputParameter) - UnsafeMergeFrom(*source); - } -} - -void HDF5OutputParameter::MergeFrom(const HDF5OutputParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.HDF5OutputParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void HDF5OutputParameter::UnsafeMergeFrom(const HDF5OutputParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_file_name()) { - set_has_file_name(); - file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void HDF5OutputParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.HDF5OutputParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HDF5OutputParameter::CopyFrom(const HDF5OutputParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.HDF5OutputParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool HDF5OutputParameter::IsInitialized() const { - - return true; -} - -void HDF5OutputParameter::Swap(HDF5OutputParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void HDF5OutputParameter::InternalSwap(HDF5OutputParameter* other) { - file_name_.Swap(&other->file_name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata HDF5OutputParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = HDF5OutputParameter_descriptor_; - metadata.reflection = HDF5OutputParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// HDF5OutputParameter - -// optional string file_name = 1; -bool HDF5OutputParameter::has_file_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void HDF5OutputParameter::set_has_file_name() { - _has_bits_[0] |= 0x00000001u; -} -void HDF5OutputParameter::clear_has_file_name() { - _has_bits_[0] &= ~0x00000001u; -} -void HDF5OutputParameter::clear_file_name() { - file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_file_name(); -} -const ::std::string& HDF5OutputParameter::file_name() const { - // @@protoc_insertion_point(field_get:opencv_caffe.HDF5OutputParameter.file_name) - return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void HDF5OutputParameter::set_file_name(const ::std::string& value) { - set_has_file_name(); - file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.HDF5OutputParameter.file_name) -} -void HDF5OutputParameter::set_file_name(const char* value) { - set_has_file_name(); - file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.HDF5OutputParameter.file_name) -} -void HDF5OutputParameter::set_file_name(const char* value, size_t size) { - set_has_file_name(); - file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.HDF5OutputParameter.file_name) -} -::std::string* HDF5OutputParameter::mutable_file_name() { - set_has_file_name(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.HDF5OutputParameter.file_name) - return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* HDF5OutputParameter::release_file_name() { - // @@protoc_insertion_point(field_release:opencv_caffe.HDF5OutputParameter.file_name) - clear_has_file_name(); - return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void HDF5OutputParameter::set_allocated_file_name(::std::string* file_name) { - if (file_name != NULL) { - set_has_file_name(); - } else { - clear_has_file_name(); - } - file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_name); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.HDF5OutputParameter.file_name) -} - -inline const HDF5OutputParameter* HDF5OutputParameter::internal_default_instance() { - return &HDF5OutputParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* HingeLossParameter_Norm_descriptor() { - protobuf_AssignDescriptorsOnce(); - return HingeLossParameter_Norm_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[10]; } bool HingeLossParameter_Norm_IsValid(int value) { switch (value) { @@ -33187,3109 +4250,9 @@ const HingeLossParameter_Norm HingeLossParameter::Norm_MIN; const HingeLossParameter_Norm HingeLossParameter::Norm_MAX; const int HingeLossParameter::Norm_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HingeLossParameter::kNormFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HingeLossParameter::HingeLossParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.HingeLossParameter) -} - -void HingeLossParameter::InitAsDefaultInstance() { -} - -HingeLossParameter::HingeLossParameter(const HingeLossParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.HingeLossParameter) -} - -void HingeLossParameter::SharedCtor() { - _cached_size_ = 0; - norm_ = 1; -} - -HingeLossParameter::~HingeLossParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.HingeLossParameter) - SharedDtor(); -} - -void HingeLossParameter::SharedDtor() { -} - -void HingeLossParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* HingeLossParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return HingeLossParameter_descriptor_; -} - -const HingeLossParameter& HingeLossParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed HingeLossParameter_default_instance_; - -HingeLossParameter* HingeLossParameter::New(::google::protobuf::Arena* arena) const { - HingeLossParameter* n = new HingeLossParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void HingeLossParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.HingeLossParameter) - norm_ = 1; - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool HingeLossParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.HingeLossParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1]; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::HingeLossParameter_Norm_IsValid(value)) { - set_norm(static_cast< ::opencv_caffe::HingeLossParameter_Norm >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.HingeLossParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.HingeLossParameter) - return false; -#undef DO_ -} - -void HingeLossParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.HingeLossParameter) - // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1]; - if (has_norm()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->norm(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.HingeLossParameter) -} - -::google::protobuf::uint8* HingeLossParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.HingeLossParameter) - // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1]; - if (has_norm()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->norm(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.HingeLossParameter) - return target; -} - -size_t HingeLossParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.HingeLossParameter) - size_t total_size = 0; - - // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1]; - if (has_norm()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->norm()); - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void HingeLossParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.HingeLossParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const HingeLossParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.HingeLossParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.HingeLossParameter) - UnsafeMergeFrom(*source); - } -} - -void HingeLossParameter::MergeFrom(const HingeLossParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.HingeLossParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void HingeLossParameter::UnsafeMergeFrom(const HingeLossParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_norm()) { - set_norm(from.norm()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void HingeLossParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.HingeLossParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HingeLossParameter::CopyFrom(const HingeLossParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.HingeLossParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool HingeLossParameter::IsInitialized() const { - - return true; -} - -void HingeLossParameter::Swap(HingeLossParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void HingeLossParameter::InternalSwap(HingeLossParameter* other) { - std::swap(norm_, other->norm_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata HingeLossParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = HingeLossParameter_descriptor_; - metadata.reflection = HingeLossParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// HingeLossParameter - -// optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1]; -bool HingeLossParameter::has_norm() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void HingeLossParameter::set_has_norm() { - _has_bits_[0] |= 0x00000001u; -} -void HingeLossParameter::clear_has_norm() { - _has_bits_[0] &= ~0x00000001u; -} -void HingeLossParameter::clear_norm() { - norm_ = 1; - clear_has_norm(); -} -::opencv_caffe::HingeLossParameter_Norm HingeLossParameter::norm() const { - // @@protoc_insertion_point(field_get:opencv_caffe.HingeLossParameter.norm) - return static_cast< ::opencv_caffe::HingeLossParameter_Norm >(norm_); -} -void HingeLossParameter::set_norm(::opencv_caffe::HingeLossParameter_Norm value) { - assert(::opencv_caffe::HingeLossParameter_Norm_IsValid(value)); - set_has_norm(); - norm_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.HingeLossParameter.norm) -} - -inline const HingeLossParameter* HingeLossParameter::internal_default_instance() { - return &HingeLossParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ImageDataParameter::kSourceFieldNumber; -const int ImageDataParameter::kBatchSizeFieldNumber; -const int ImageDataParameter::kRandSkipFieldNumber; -const int ImageDataParameter::kShuffleFieldNumber; -const int ImageDataParameter::kNewHeightFieldNumber; -const int ImageDataParameter::kNewWidthFieldNumber; -const int ImageDataParameter::kIsColorFieldNumber; -const int ImageDataParameter::kScaleFieldNumber; -const int ImageDataParameter::kMeanFileFieldNumber; -const int ImageDataParameter::kCropSizeFieldNumber; -const int ImageDataParameter::kMirrorFieldNumber; -const int ImageDataParameter::kRootFolderFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ImageDataParameter::ImageDataParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ImageDataParameter) -} - -void ImageDataParameter::InitAsDefaultInstance() { -} - -ImageDataParameter::ImageDataParameter(const ImageDataParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ImageDataParameter) -} - -void ImageDataParameter::SharedCtor() { - _cached_size_ = 0; - source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&rand_skip_, 0, reinterpret_cast(&crop_size_) - - reinterpret_cast(&rand_skip_) + sizeof(crop_size_)); - scale_ = 1; - batch_size_ = 1u; - is_color_ = true; -} - -ImageDataParameter::~ImageDataParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ImageDataParameter) - SharedDtor(); -} - -void ImageDataParameter::SharedDtor() { - source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - root_folder_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ImageDataParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ImageDataParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ImageDataParameter_descriptor_; -} - -const ImageDataParameter& ImageDataParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ImageDataParameter_default_instance_; - -ImageDataParameter* ImageDataParameter::New(::google::protobuf::Arena* arena) const { - ImageDataParameter* n = new ImageDataParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ImageDataParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ImageDataParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(ImageDataParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 255u) { - ZR_(rand_skip_, shuffle_); - if (has_source()) { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - batch_size_ = 1u; - is_color_ = true; - scale_ = 1; - } - if (_has_bits_[8 / 32] & 3840u) { - ZR_(mirror_, crop_size_); - if (has_mean_file()) { - mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_root_folder()) { - root_folder_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ImageDataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ImageDataParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.ImageDataParameter.source"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (tag == 21) { - parse_scale: - set_has_scale(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_mean_file; - break; - } - - // optional string mean_file = 3; - case 3: { - if (tag == 26) { - parse_mean_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mean_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.ImageDataParameter.mean_file"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_batch_size; - break; - } - - // optional uint32 batch_size = 4 [default = 1]; - case 4: { - if (tag == 32) { - parse_batch_size: - set_has_batch_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_crop_size; - break; - } - - // optional uint32 crop_size = 5 [default = 0]; - case 5: { - if (tag == 40) { - parse_crop_size: - set_has_crop_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &crop_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_mirror; - break; - } - - // optional bool mirror = 6 [default = false]; - case 6: { - if (tag == 48) { - parse_mirror: - set_has_mirror(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &mirror_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_rand_skip; - break; - } - - // optional uint32 rand_skip = 7 [default = 0]; - case 7: { - if (tag == 56) { - parse_rand_skip: - set_has_rand_skip(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rand_skip_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_shuffle; - break; - } - - // optional bool shuffle = 8 [default = false]; - case 8: { - if (tag == 64) { - parse_shuffle: - set_has_shuffle(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &shuffle_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_new_height; - break; - } - - // optional uint32 new_height = 9 [default = 0]; - case 9: { - if (tag == 72) { - parse_new_height: - set_has_new_height(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &new_height_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_new_width; - break; - } - - // optional uint32 new_width = 10 [default = 0]; - case 10: { - if (tag == 80) { - parse_new_width: - set_has_new_width(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &new_width_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(88)) goto parse_is_color; - break; - } - - // optional bool is_color = 11 [default = true]; - case 11: { - if (tag == 88) { - parse_is_color: - set_has_is_color(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_color_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(98)) goto parse_root_folder; - break; - } - - // optional string root_folder = 12 [default = ""]; - case 12: { - if (tag == 98) { - parse_root_folder: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_root_folder())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.ImageDataParameter.root_folder"); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ImageDataParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ImageDataParameter) - return false; -#undef DO_ -} - -void ImageDataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ImageDataParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.ImageDataParameter.source"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->source(), output); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); - } - - // optional string mean_file = 3; - if (has_mean_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.ImageDataParameter.mean_file"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->mean_file(), output); - } - - // optional uint32 batch_size = 4 [default = 1]; - if (has_batch_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->batch_size(), output); - } - - // optional uint32 crop_size = 5 [default = 0]; - if (has_crop_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->crop_size(), output); - } - - // optional bool mirror = 6 [default = false]; - if (has_mirror()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->mirror(), output); - } - - // optional uint32 rand_skip = 7 [default = 0]; - if (has_rand_skip()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->rand_skip(), output); - } - - // optional bool shuffle = 8 [default = false]; - if (has_shuffle()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->shuffle(), output); - } - - // optional uint32 new_height = 9 [default = 0]; - if (has_new_height()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->new_height(), output); - } - - // optional uint32 new_width = 10 [default = 0]; - if (has_new_width()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->new_width(), output); - } - - // optional bool is_color = 11 [default = true]; - if (has_is_color()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->is_color(), output); - } - - // optional string root_folder = 12 [default = ""]; - if (has_root_folder()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.ImageDataParameter.root_folder"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 12, this->root_folder(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ImageDataParameter) -} - -::google::protobuf::uint8* ImageDataParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ImageDataParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.ImageDataParameter.source"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->source(), target); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); - } - - // optional string mean_file = 3; - if (has_mean_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.ImageDataParameter.mean_file"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->mean_file(), target); - } - - // optional uint32 batch_size = 4 [default = 1]; - if (has_batch_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->batch_size(), target); - } - - // optional uint32 crop_size = 5 [default = 0]; - if (has_crop_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->crop_size(), target); - } - - // optional bool mirror = 6 [default = false]; - if (has_mirror()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->mirror(), target); - } - - // optional uint32 rand_skip = 7 [default = 0]; - if (has_rand_skip()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->rand_skip(), target); - } - - // optional bool shuffle = 8 [default = false]; - if (has_shuffle()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->shuffle(), target); - } - - // optional uint32 new_height = 9 [default = 0]; - if (has_new_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->new_height(), target); - } - - // optional uint32 new_width = 10 [default = 0]; - if (has_new_width()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->new_width(), target); - } - - // optional bool is_color = 11 [default = true]; - if (has_is_color()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->is_color(), target); - } - - // optional string root_folder = 12 [default = ""]; - if (has_root_folder()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.ImageDataParameter.root_folder"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 12, this->root_folder(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ImageDataParameter) - return target; -} - -size_t ImageDataParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ImageDataParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 255u) { - // optional string source = 1; - if (has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->source()); - } - - // optional uint32 batch_size = 4 [default = 1]; - if (has_batch_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->batch_size()); - } - - // optional uint32 rand_skip = 7 [default = 0]; - if (has_rand_skip()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rand_skip()); - } - - // optional bool shuffle = 8 [default = false]; - if (has_shuffle()) { - total_size += 1 + 1; - } - - // optional uint32 new_height = 9 [default = 0]; - if (has_new_height()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->new_height()); - } - - // optional uint32 new_width = 10 [default = 0]; - if (has_new_width()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->new_width()); - } - - // optional bool is_color = 11 [default = true]; - if (has_is_color()) { - total_size += 1 + 1; - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - total_size += 1 + 4; - } - - } - if (_has_bits_[8 / 32] & 3840u) { - // optional string mean_file = 3; - if (has_mean_file()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->mean_file()); - } - - // optional uint32 crop_size = 5 [default = 0]; - if (has_crop_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->crop_size()); - } - - // optional bool mirror = 6 [default = false]; - if (has_mirror()) { - total_size += 1 + 1; - } - - // optional string root_folder = 12 [default = ""]; - if (has_root_folder()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->root_folder()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ImageDataParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ImageDataParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ImageDataParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ImageDataParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ImageDataParameter) - UnsafeMergeFrom(*source); - } -} - -void ImageDataParameter::MergeFrom(const ImageDataParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ImageDataParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ImageDataParameter::UnsafeMergeFrom(const ImageDataParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_has_source(); - source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); - } - if (from.has_batch_size()) { - set_batch_size(from.batch_size()); - } - if (from.has_rand_skip()) { - set_rand_skip(from.rand_skip()); - } - if (from.has_shuffle()) { - set_shuffle(from.shuffle()); - } - if (from.has_new_height()) { - set_new_height(from.new_height()); - } - if (from.has_new_width()) { - set_new_width(from.new_width()); - } - if (from.has_is_color()) { - set_is_color(from.is_color()); - } - if (from.has_scale()) { - set_scale(from.scale()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_mean_file()) { - set_has_mean_file(); - mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); - } - if (from.has_crop_size()) { - set_crop_size(from.crop_size()); - } - if (from.has_mirror()) { - set_mirror(from.mirror()); - } - if (from.has_root_folder()) { - set_has_root_folder(); - root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ImageDataParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ImageDataParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ImageDataParameter::CopyFrom(const ImageDataParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ImageDataParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ImageDataParameter::IsInitialized() const { - - return true; -} - -void ImageDataParameter::Swap(ImageDataParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ImageDataParameter::InternalSwap(ImageDataParameter* other) { - source_.Swap(&other->source_); - std::swap(batch_size_, other->batch_size_); - std::swap(rand_skip_, other->rand_skip_); - std::swap(shuffle_, other->shuffle_); - std::swap(new_height_, other->new_height_); - std::swap(new_width_, other->new_width_); - std::swap(is_color_, other->is_color_); - std::swap(scale_, other->scale_); - mean_file_.Swap(&other->mean_file_); - std::swap(crop_size_, other->crop_size_); - std::swap(mirror_, other->mirror_); - root_folder_.Swap(&other->root_folder_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ImageDataParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ImageDataParameter_descriptor_; - metadata.reflection = ImageDataParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ImageDataParameter - -// optional string source = 1; -bool ImageDataParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ImageDataParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -void ImageDataParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -void ImageDataParameter::clear_source() { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_source(); -} -const ::std::string& ImageDataParameter::source() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void ImageDataParameter::set_source(const ::std::string& value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.source) -} -void ImageDataParameter::set_source(const char* value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.ImageDataParameter.source) -} -void ImageDataParameter::set_source(const char* value, size_t size) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.ImageDataParameter.source) -} -::std::string* ImageDataParameter::mutable_source() { - set_has_source(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.ImageDataParameter.source) - return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* ImageDataParameter::release_source() { - // @@protoc_insertion_point(field_release:opencv_caffe.ImageDataParameter.source) - clear_has_source(); - return source_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void ImageDataParameter::set_allocated_source(::std::string* source) { - if (source != NULL) { - set_has_source(); - } else { - clear_has_source(); - } - source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ImageDataParameter.source) -} - -// optional uint32 batch_size = 4 [default = 1]; -bool ImageDataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ImageDataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000002u; -} -void ImageDataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000002u; -} -void ImageDataParameter::clear_batch_size() { - batch_size_ = 1u; - clear_has_batch_size(); -} -::google::protobuf::uint32 ImageDataParameter::batch_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.batch_size) - return batch_size_; -} -void ImageDataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.batch_size) -} - -// optional uint32 rand_skip = 7 [default = 0]; -bool ImageDataParameter::has_rand_skip() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void ImageDataParameter::set_has_rand_skip() { - _has_bits_[0] |= 0x00000004u; -} -void ImageDataParameter::clear_has_rand_skip() { - _has_bits_[0] &= ~0x00000004u; -} -void ImageDataParameter::clear_rand_skip() { - rand_skip_ = 0u; - clear_has_rand_skip(); -} -::google::protobuf::uint32 ImageDataParameter::rand_skip() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.rand_skip) - return rand_skip_; -} -void ImageDataParameter::set_rand_skip(::google::protobuf::uint32 value) { - set_has_rand_skip(); - rand_skip_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.rand_skip) -} - -// optional bool shuffle = 8 [default = false]; -bool ImageDataParameter::has_shuffle() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void ImageDataParameter::set_has_shuffle() { - _has_bits_[0] |= 0x00000008u; -} -void ImageDataParameter::clear_has_shuffle() { - _has_bits_[0] &= ~0x00000008u; -} -void ImageDataParameter::clear_shuffle() { - shuffle_ = false; - clear_has_shuffle(); -} -bool ImageDataParameter::shuffle() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.shuffle) - return shuffle_; -} -void ImageDataParameter::set_shuffle(bool value) { - set_has_shuffle(); - shuffle_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.shuffle) -} - -// optional uint32 new_height = 9 [default = 0]; -bool ImageDataParameter::has_new_height() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void ImageDataParameter::set_has_new_height() { - _has_bits_[0] |= 0x00000010u; -} -void ImageDataParameter::clear_has_new_height() { - _has_bits_[0] &= ~0x00000010u; -} -void ImageDataParameter::clear_new_height() { - new_height_ = 0u; - clear_has_new_height(); -} -::google::protobuf::uint32 ImageDataParameter::new_height() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.new_height) - return new_height_; -} -void ImageDataParameter::set_new_height(::google::protobuf::uint32 value) { - set_has_new_height(); - new_height_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.new_height) -} - -// optional uint32 new_width = 10 [default = 0]; -bool ImageDataParameter::has_new_width() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void ImageDataParameter::set_has_new_width() { - _has_bits_[0] |= 0x00000020u; -} -void ImageDataParameter::clear_has_new_width() { - _has_bits_[0] &= ~0x00000020u; -} -void ImageDataParameter::clear_new_width() { - new_width_ = 0u; - clear_has_new_width(); -} -::google::protobuf::uint32 ImageDataParameter::new_width() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.new_width) - return new_width_; -} -void ImageDataParameter::set_new_width(::google::protobuf::uint32 value) { - set_has_new_width(); - new_width_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.new_width) -} - -// optional bool is_color = 11 [default = true]; -bool ImageDataParameter::has_is_color() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void ImageDataParameter::set_has_is_color() { - _has_bits_[0] |= 0x00000040u; -} -void ImageDataParameter::clear_has_is_color() { - _has_bits_[0] &= ~0x00000040u; -} -void ImageDataParameter::clear_is_color() { - is_color_ = true; - clear_has_is_color(); -} -bool ImageDataParameter::is_color() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.is_color) - return is_color_; -} -void ImageDataParameter::set_is_color(bool value) { - set_has_is_color(); - is_color_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.is_color) -} - -// optional float scale = 2 [default = 1]; -bool ImageDataParameter::has_scale() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void ImageDataParameter::set_has_scale() { - _has_bits_[0] |= 0x00000080u; -} -void ImageDataParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000080u; -} -void ImageDataParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -float ImageDataParameter::scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.scale) - return scale_; -} -void ImageDataParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.scale) -} - -// optional string mean_file = 3; -bool ImageDataParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -void ImageDataParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000100u; -} -void ImageDataParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000100u; -} -void ImageDataParameter::clear_mean_file() { - mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_mean_file(); -} -const ::std::string& ImageDataParameter::mean_file() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.mean_file) - return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void ImageDataParameter::set_mean_file(const ::std::string& value) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.mean_file) -} -void ImageDataParameter::set_mean_file(const char* value) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.ImageDataParameter.mean_file) -} -void ImageDataParameter::set_mean_file(const char* value, size_t size) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.ImageDataParameter.mean_file) -} -::std::string* ImageDataParameter::mutable_mean_file() { - set_has_mean_file(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.ImageDataParameter.mean_file) - return mean_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* ImageDataParameter::release_mean_file() { - // @@protoc_insertion_point(field_release:opencv_caffe.ImageDataParameter.mean_file) - clear_has_mean_file(); - return mean_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void ImageDataParameter::set_allocated_mean_file(::std::string* mean_file) { - if (mean_file != NULL) { - set_has_mean_file(); - } else { - clear_has_mean_file(); - } - mean_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mean_file); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ImageDataParameter.mean_file) -} - -// optional uint32 crop_size = 5 [default = 0]; -bool ImageDataParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void ImageDataParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000200u; -} -void ImageDataParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000200u; -} -void ImageDataParameter::clear_crop_size() { - crop_size_ = 0u; - clear_has_crop_size(); -} -::google::protobuf::uint32 ImageDataParameter::crop_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.crop_size) - return crop_size_; -} -void ImageDataParameter::set_crop_size(::google::protobuf::uint32 value) { - set_has_crop_size(); - crop_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.crop_size) -} - -// optional bool mirror = 6 [default = false]; -bool ImageDataParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -void ImageDataParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000400u; -} -void ImageDataParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000400u; -} -void ImageDataParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -bool ImageDataParameter::mirror() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.mirror) - return mirror_; -} -void ImageDataParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.mirror) -} - -// optional string root_folder = 12 [default = ""]; -bool ImageDataParameter::has_root_folder() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -void ImageDataParameter::set_has_root_folder() { - _has_bits_[0] |= 0x00000800u; -} -void ImageDataParameter::clear_has_root_folder() { - _has_bits_[0] &= ~0x00000800u; -} -void ImageDataParameter::clear_root_folder() { - root_folder_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_root_folder(); -} -const ::std::string& ImageDataParameter::root_folder() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.root_folder) - return root_folder_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void ImageDataParameter::set_root_folder(const ::std::string& value) { - set_has_root_folder(); - root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.root_folder) -} -void ImageDataParameter::set_root_folder(const char* value) { - set_has_root_folder(); - root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.ImageDataParameter.root_folder) -} -void ImageDataParameter::set_root_folder(const char* value, size_t size) { - set_has_root_folder(); - root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.ImageDataParameter.root_folder) -} -::std::string* ImageDataParameter::mutable_root_folder() { - set_has_root_folder(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.ImageDataParameter.root_folder) - return root_folder_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* ImageDataParameter::release_root_folder() { - // @@protoc_insertion_point(field_release:opencv_caffe.ImageDataParameter.root_folder) - clear_has_root_folder(); - return root_folder_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void ImageDataParameter::set_allocated_root_folder(::std::string* root_folder) { - if (root_folder != NULL) { - set_has_root_folder(); - } else { - clear_has_root_folder(); - } - root_folder_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), root_folder); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ImageDataParameter.root_folder) -} - -inline const ImageDataParameter* ImageDataParameter::internal_default_instance() { - return &ImageDataParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InfogainLossParameter::kSourceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InfogainLossParameter::InfogainLossParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.InfogainLossParameter) -} - -void InfogainLossParameter::InitAsDefaultInstance() { -} - -InfogainLossParameter::InfogainLossParameter(const InfogainLossParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.InfogainLossParameter) -} - -void InfogainLossParameter::SharedCtor() { - _cached_size_ = 0; - source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -InfogainLossParameter::~InfogainLossParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.InfogainLossParameter) - SharedDtor(); -} - -void InfogainLossParameter::SharedDtor() { - source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void InfogainLossParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* InfogainLossParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return InfogainLossParameter_descriptor_; -} - -const InfogainLossParameter& InfogainLossParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed InfogainLossParameter_default_instance_; - -InfogainLossParameter* InfogainLossParameter::New(::google::protobuf::Arena* arena) const { - InfogainLossParameter* n = new InfogainLossParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void InfogainLossParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.InfogainLossParameter) - if (has_source()) { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool InfogainLossParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.InfogainLossParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.InfogainLossParameter.source"); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.InfogainLossParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.InfogainLossParameter) - return false; -#undef DO_ -} - -void InfogainLossParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.InfogainLossParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.InfogainLossParameter.source"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->source(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.InfogainLossParameter) -} - -::google::protobuf::uint8* InfogainLossParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.InfogainLossParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.InfogainLossParameter.source"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->source(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.InfogainLossParameter) - return target; -} - -size_t InfogainLossParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.InfogainLossParameter) - size_t total_size = 0; - - // optional string source = 1; - if (has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->source()); - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InfogainLossParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.InfogainLossParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const InfogainLossParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.InfogainLossParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.InfogainLossParameter) - UnsafeMergeFrom(*source); - } -} - -void InfogainLossParameter::MergeFrom(const InfogainLossParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.InfogainLossParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void InfogainLossParameter::UnsafeMergeFrom(const InfogainLossParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_has_source(); - source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void InfogainLossParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.InfogainLossParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InfogainLossParameter::CopyFrom(const InfogainLossParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.InfogainLossParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool InfogainLossParameter::IsInitialized() const { - - return true; -} - -void InfogainLossParameter::Swap(InfogainLossParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void InfogainLossParameter::InternalSwap(InfogainLossParameter* other) { - source_.Swap(&other->source_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata InfogainLossParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = InfogainLossParameter_descriptor_; - metadata.reflection = InfogainLossParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InfogainLossParameter - -// optional string source = 1; -bool InfogainLossParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void InfogainLossParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -void InfogainLossParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -void InfogainLossParameter::clear_source() { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_source(); -} -const ::std::string& InfogainLossParameter::source() const { - // @@protoc_insertion_point(field_get:opencv_caffe.InfogainLossParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void InfogainLossParameter::set_source(const ::std::string& value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.InfogainLossParameter.source) -} -void InfogainLossParameter::set_source(const char* value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.InfogainLossParameter.source) -} -void InfogainLossParameter::set_source(const char* value, size_t size) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.InfogainLossParameter.source) -} -::std::string* InfogainLossParameter::mutable_source() { - set_has_source(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.InfogainLossParameter.source) - return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* InfogainLossParameter::release_source() { - // @@protoc_insertion_point(field_release:opencv_caffe.InfogainLossParameter.source) - clear_has_source(); - return source_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void InfogainLossParameter::set_allocated_source(::std::string* source) { - if (source != NULL) { - set_has_source(); - } else { - clear_has_source(); - } - source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.InfogainLossParameter.source) -} - -inline const InfogainLossParameter* InfogainLossParameter::internal_default_instance() { - return &InfogainLossParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InnerProductParameter::kNumOutputFieldNumber; -const int InnerProductParameter::kBiasTermFieldNumber; -const int InnerProductParameter::kWeightFillerFieldNumber; -const int InnerProductParameter::kBiasFillerFieldNumber; -const int InnerProductParameter::kAxisFieldNumber; -const int InnerProductParameter::kTransposeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InnerProductParameter::InnerProductParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.InnerProductParameter) -} - -void InnerProductParameter::InitAsDefaultInstance() { - weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); - bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); -} - -InnerProductParameter::InnerProductParameter(const InnerProductParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.InnerProductParameter) -} - -void InnerProductParameter::SharedCtor() { - _cached_size_ = 0; - weight_filler_ = NULL; - bias_filler_ = NULL; - ::memset(&num_output_, 0, reinterpret_cast(&transpose_) - - reinterpret_cast(&num_output_) + sizeof(transpose_)); - bias_term_ = true; - axis_ = 1; -} - -InnerProductParameter::~InnerProductParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.InnerProductParameter) - SharedDtor(); -} - -void InnerProductParameter::SharedDtor() { - if (this != &InnerProductParameter_default_instance_.get()) { - delete weight_filler_; - delete bias_filler_; - } -} - -void InnerProductParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* InnerProductParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return InnerProductParameter_descriptor_; -} - -const InnerProductParameter& InnerProductParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed InnerProductParameter_default_instance_; - -InnerProductParameter* InnerProductParameter::New(::google::protobuf::Arena* arena) const { - InnerProductParameter* n = new InnerProductParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void InnerProductParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.InnerProductParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(InnerProductParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 63u) { - ZR_(num_output_, transpose_); - bias_term_ = true; - if (has_weight_filler()) { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - } - if (has_bias_filler()) { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - } - axis_ = 1; - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool InnerProductParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.InnerProductParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 num_output = 1; - case 1: { - if (tag == 8) { - set_has_num_output(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &num_output_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_bias_term; - break; - } - - // optional bool bias_term = 2 [default = true]; - case 2: { - if (tag == 16) { - parse_bias_term: - set_has_bias_term(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &bias_term_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_weight_filler; - break; - } - - // optional .opencv_caffe.FillerParameter weight_filler = 3; - case 3: { - if (tag == 26) { - parse_weight_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_weight_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_bias_filler; - break; - } - - // optional .opencv_caffe.FillerParameter bias_filler = 4; - case 4: { - if (tag == 34) { - parse_bias_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bias_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_axis; - break; - } - - // optional int32 axis = 5 [default = 1]; - case 5: { - if (tag == 40) { - parse_axis: - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_transpose; - break; - } - - // optional bool transpose = 6 [default = false]; - case 6: { - if (tag == 48) { - parse_transpose: - set_has_transpose(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &transpose_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.InnerProductParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.InnerProductParameter) - return false; -#undef DO_ -} - -void InnerProductParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.InnerProductParameter) - // optional uint32 num_output = 1; - if (has_num_output()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output); - } - - // optional bool bias_term = 2 [default = true]; - if (has_bias_term()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bias_term(), output); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 3; - if (has_weight_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->weight_filler_, output); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 4; - if (has_bias_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *this->bias_filler_, output); - } - - // optional int32 axis = 5 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->axis(), output); - } - - // optional bool transpose = 6 [default = false]; - if (has_transpose()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->transpose(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.InnerProductParameter) -} - -::google::protobuf::uint8* InnerProductParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.InnerProductParameter) - // optional uint32 num_output = 1; - if (has_num_output()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target); - } - - // optional bool bias_term = 2 [default = true]; - if (has_bias_term()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bias_term(), target); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 3; - if (has_weight_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->weight_filler_, false, target); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 4; - if (has_bias_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *this->bias_filler_, false, target); - } - - // optional int32 axis = 5 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->axis(), target); - } - - // optional bool transpose = 6 [default = false]; - if (has_transpose()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->transpose(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.InnerProductParameter) - return target; -} - -size_t InnerProductParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.InnerProductParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 63u) { - // optional uint32 num_output = 1; - if (has_num_output()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->num_output()); - } - - // optional bool bias_term = 2 [default = true]; - if (has_bias_term()) { - total_size += 1 + 1; - } - - // optional .opencv_caffe.FillerParameter weight_filler = 3; - if (has_weight_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->weight_filler_); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 4; - if (has_bias_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->bias_filler_); - } - - // optional int32 axis = 5 [default = 1]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional bool transpose = 6 [default = false]; - if (has_transpose()) { - total_size += 1 + 1; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InnerProductParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.InnerProductParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const InnerProductParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.InnerProductParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.InnerProductParameter) - UnsafeMergeFrom(*source); - } -} - -void InnerProductParameter::MergeFrom(const InnerProductParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.InnerProductParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void InnerProductParameter::UnsafeMergeFrom(const InnerProductParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_num_output()) { - set_num_output(from.num_output()); - } - if (from.has_bias_term()) { - set_bias_term(from.bias_term()); - } - if (from.has_weight_filler()) { - mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); - } - if (from.has_bias_filler()) { - mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); - } - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_transpose()) { - set_transpose(from.transpose()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void InnerProductParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.InnerProductParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InnerProductParameter::CopyFrom(const InnerProductParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.InnerProductParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool InnerProductParameter::IsInitialized() const { - - return true; -} - -void InnerProductParameter::Swap(InnerProductParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void InnerProductParameter::InternalSwap(InnerProductParameter* other) { - std::swap(num_output_, other->num_output_); - std::swap(bias_term_, other->bias_term_); - std::swap(weight_filler_, other->weight_filler_); - std::swap(bias_filler_, other->bias_filler_); - std::swap(axis_, other->axis_); - std::swap(transpose_, other->transpose_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata InnerProductParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = InnerProductParameter_descriptor_; - metadata.reflection = InnerProductParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InnerProductParameter - -// optional uint32 num_output = 1; -bool InnerProductParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void InnerProductParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; -} -void InnerProductParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; -} -void InnerProductParameter::clear_num_output() { - num_output_ = 0u; - clear_has_num_output(); -} -::google::protobuf::uint32 InnerProductParameter::num_output() const { - // @@protoc_insertion_point(field_get:opencv_caffe.InnerProductParameter.num_output) - return num_output_; -} -void InnerProductParameter::set_num_output(::google::protobuf::uint32 value) { - set_has_num_output(); - num_output_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.InnerProductParameter.num_output) -} - -// optional bool bias_term = 2 [default = true]; -bool InnerProductParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void InnerProductParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000002u; -} -void InnerProductParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000002u; -} -void InnerProductParameter::clear_bias_term() { - bias_term_ = true; - clear_has_bias_term(); -} -bool InnerProductParameter::bias_term() const { - // @@protoc_insertion_point(field_get:opencv_caffe.InnerProductParameter.bias_term) - return bias_term_; -} -void InnerProductParameter::set_bias_term(bool value) { - set_has_bias_term(); - bias_term_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.InnerProductParameter.bias_term) -} - -// optional .opencv_caffe.FillerParameter weight_filler = 3; -bool InnerProductParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void InnerProductParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000004u; -} -void InnerProductParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000004u; -} -void InnerProductParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_weight_filler(); -} -const ::opencv_caffe::FillerParameter& InnerProductParameter::weight_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.InnerProductParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* InnerProductParameter::mutable_weight_filler() { - set_has_weight_filler(); - if (weight_filler_ == NULL) { - weight_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.InnerProductParameter.weight_filler) - return weight_filler_; -} -::opencv_caffe::FillerParameter* InnerProductParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.InnerProductParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} -void InnerProductParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; - if (weight_filler) { - set_has_weight_filler(); - } else { - clear_has_weight_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.InnerProductParameter.weight_filler) -} - -// optional .opencv_caffe.FillerParameter bias_filler = 4; -bool InnerProductParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void InnerProductParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000008u; -} -void InnerProductParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000008u; -} -void InnerProductParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_bias_filler(); -} -const ::opencv_caffe::FillerParameter& InnerProductParameter::bias_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.InnerProductParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* InnerProductParameter::mutable_bias_filler() { - set_has_bias_filler(); - if (bias_filler_ == NULL) { - bias_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.InnerProductParameter.bias_filler) - return bias_filler_; -} -::opencv_caffe::FillerParameter* InnerProductParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.InnerProductParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} -void InnerProductParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; - if (bias_filler) { - set_has_bias_filler(); - } else { - clear_has_bias_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.InnerProductParameter.bias_filler) -} - -// optional int32 axis = 5 [default = 1]; -bool InnerProductParameter::has_axis() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void InnerProductParameter::set_has_axis() { - _has_bits_[0] |= 0x00000010u; -} -void InnerProductParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000010u; -} -void InnerProductParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 InnerProductParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.InnerProductParameter.axis) - return axis_; -} -void InnerProductParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.InnerProductParameter.axis) -} - -// optional bool transpose = 6 [default = false]; -bool InnerProductParameter::has_transpose() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void InnerProductParameter::set_has_transpose() { - _has_bits_[0] |= 0x00000020u; -} -void InnerProductParameter::clear_has_transpose() { - _has_bits_[0] &= ~0x00000020u; -} -void InnerProductParameter::clear_transpose() { - transpose_ = false; - clear_has_transpose(); -} -bool InnerProductParameter::transpose() const { - // @@protoc_insertion_point(field_get:opencv_caffe.InnerProductParameter.transpose) - return transpose_; -} -void InnerProductParameter::set_transpose(bool value) { - set_has_transpose(); - transpose_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.InnerProductParameter.transpose) -} - -inline const InnerProductParameter* InnerProductParameter::internal_default_instance() { - return &InnerProductParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InputParameter::kShapeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InputParameter::InputParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.InputParameter) -} - -void InputParameter::InitAsDefaultInstance() { -} - -InputParameter::InputParameter(const InputParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.InputParameter) -} - -void InputParameter::SharedCtor() { - _cached_size_ = 0; -} - -InputParameter::~InputParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.InputParameter) - SharedDtor(); -} - -void InputParameter::SharedDtor() { -} - -void InputParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* InputParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return InputParameter_descriptor_; -} - -const InputParameter& InputParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed InputParameter_default_instance_; - -InputParameter* InputParameter::New(::google::protobuf::Arena* arena) const { - InputParameter* n = new InputParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void InputParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.InputParameter) - shape_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool InputParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.InputParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .opencv_caffe.BlobShape shape = 1; - case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_shape: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_shape())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_loop_shape; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.InputParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.InputParameter) - return false; -#undef DO_ -} - -void InputParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.InputParameter) - // repeated .opencv_caffe.BlobShape shape = 1; - for (unsigned int i = 0, n = this->shape_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->shape(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.InputParameter) -} - -::google::protobuf::uint8* InputParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.InputParameter) - // repeated .opencv_caffe.BlobShape shape = 1; - for (unsigned int i = 0, n = this->shape_size(); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->shape(i), false, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.InputParameter) - return target; -} - -size_t InputParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.InputParameter) - size_t total_size = 0; - - // repeated .opencv_caffe.BlobShape shape = 1; - { - unsigned int count = this->shape_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->shape(i)); - } - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InputParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.InputParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const InputParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.InputParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.InputParameter) - UnsafeMergeFrom(*source); - } -} - -void InputParameter::MergeFrom(const InputParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.InputParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void InputParameter::UnsafeMergeFrom(const InputParameter& from) { - GOOGLE_DCHECK(&from != this); - shape_.MergeFrom(from.shape_); - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void InputParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.InputParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InputParameter::CopyFrom(const InputParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.InputParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool InputParameter::IsInitialized() const { - - return true; -} - -void InputParameter::Swap(InputParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void InputParameter::InternalSwap(InputParameter* other) { - shape_.UnsafeArenaSwap(&other->shape_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata InputParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = InputParameter_descriptor_; - metadata.reflection = InputParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InputParameter - -// repeated .opencv_caffe.BlobShape shape = 1; -int InputParameter::shape_size() const { - return shape_.size(); -} -void InputParameter::clear_shape() { - shape_.Clear(); -} -const ::opencv_caffe::BlobShape& InputParameter::shape(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.InputParameter.shape) - return shape_.Get(index); -} -::opencv_caffe::BlobShape* InputParameter::mutable_shape(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.InputParameter.shape) - return shape_.Mutable(index); -} -::opencv_caffe::BlobShape* InputParameter::add_shape() { - // @@protoc_insertion_point(field_add:opencv_caffe.InputParameter.shape) - return shape_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >* -InputParameter::mutable_shape() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.InputParameter.shape) - return &shape_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >& -InputParameter::shape() const { - // @@protoc_insertion_point(field_list:opencv_caffe.InputParameter.shape) - return shape_; -} - -inline const InputParameter* InputParameter::internal_default_instance() { - return &InputParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LogParameter::kBaseFieldNumber; -const int LogParameter::kScaleFieldNumber; -const int LogParameter::kShiftFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LogParameter::LogParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.LogParameter) -} - -void LogParameter::InitAsDefaultInstance() { -} - -LogParameter::LogParameter(const LogParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.LogParameter) -} - -void LogParameter::SharedCtor() { - _cached_size_ = 0; - shift_ = 0; - base_ = -1; - scale_ = 1; -} - -LogParameter::~LogParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.LogParameter) - SharedDtor(); -} - -void LogParameter::SharedDtor() { -} - -void LogParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* LogParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return LogParameter_descriptor_; -} - -const LogParameter& LogParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed LogParameter_default_instance_; - -LogParameter* LogParameter::New(::google::protobuf::Arena* arena) const { - LogParameter* n = new LogParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void LogParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.LogParameter) - if (_has_bits_[0 / 32] & 7u) { - base_ = -1; - scale_ = 1; - shift_ = 0; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool LogParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.LogParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float base = 1 [default = -1]; - case 1: { - if (tag == 13) { - set_has_base(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &base_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (tag == 21) { - parse_scale: - set_has_scale(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_shift; - break; - } - - // optional float shift = 3 [default = 0]; - case 3: { - if (tag == 29) { - parse_shift: - set_has_shift(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &shift_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.LogParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.LogParameter) - return false; -#undef DO_ -} - -void LogParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.LogParameter) - // optional float base = 1 [default = -1]; - if (has_base()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->base(), output); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); - } - - // optional float shift = 3 [default = 0]; - if (has_shift()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->shift(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.LogParameter) -} - -::google::protobuf::uint8* LogParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LogParameter) - // optional float base = 1 [default = -1]; - if (has_base()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->base(), target); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); - } - - // optional float shift = 3 [default = 0]; - if (has_shift()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->shift(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LogParameter) - return target; -} - -size_t LogParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LogParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional float base = 1 [default = -1]; - if (has_base()) { - total_size += 1 + 4; - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - total_size += 1 + 4; - } - - // optional float shift = 3 [default = 0]; - if (has_shift()) { - total_size += 1 + 4; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LogParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LogParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const LogParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LogParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LogParameter) - UnsafeMergeFrom(*source); - } -} - -void LogParameter::MergeFrom(const LogParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LogParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void LogParameter::UnsafeMergeFrom(const LogParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_base()) { - set_base(from.base()); - } - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_shift()) { - set_shift(from.shift()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void LogParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LogParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LogParameter::CopyFrom(const LogParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LogParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool LogParameter::IsInitialized() const { - - return true; -} - -void LogParameter::Swap(LogParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void LogParameter::InternalSwap(LogParameter* other) { - std::swap(base_, other->base_); - std::swap(scale_, other->scale_); - std::swap(shift_, other->shift_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata LogParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = LogParameter_descriptor_; - metadata.reflection = LogParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// LogParameter - -// optional float base = 1 [default = -1]; -bool LogParameter::has_base() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void LogParameter::set_has_base() { - _has_bits_[0] |= 0x00000001u; -} -void LogParameter::clear_has_base() { - _has_bits_[0] &= ~0x00000001u; -} -void LogParameter::clear_base() { - base_ = -1; - clear_has_base(); -} -float LogParameter::base() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LogParameter.base) - return base_; -} -void LogParameter::set_base(float value) { - set_has_base(); - base_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LogParameter.base) -} - -// optional float scale = 2 [default = 1]; -bool LogParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void LogParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; -} -void LogParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; -} -void LogParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -float LogParameter::scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LogParameter.scale) - return scale_; -} -void LogParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LogParameter.scale) -} - -// optional float shift = 3 [default = 0]; -bool LogParameter::has_shift() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void LogParameter::set_has_shift() { - _has_bits_[0] |= 0x00000004u; -} -void LogParameter::clear_has_shift() { - _has_bits_[0] &= ~0x00000004u; -} -void LogParameter::clear_shift() { - shift_ = 0; - clear_has_shift(); -} -float LogParameter::shift() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LogParameter.shift) - return shift_; -} -void LogParameter::set_shift(float value) { - set_has_shift(); - shift_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LogParameter.shift) -} - -inline const LogParameter* LogParameter::internal_default_instance() { - return &LogParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* LRNParameter_NormRegion_descriptor() { - protobuf_AssignDescriptorsOnce(); - return LRNParameter_NormRegion_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[11]; } bool LRNParameter_NormRegion_IsValid(int value) { switch (value) { @@ -36309,8 +4272,8 @@ const LRNParameter_NormRegion LRNParameter::NormRegion_MAX; const int LRNParameter::NormRegion_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* LRNParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return LRNParameter_Engine_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[12]; } bool LRNParameter_Engine_IsValid(int value) { switch (value) { @@ -36331,1830 +4294,9 @@ const LRNParameter_Engine LRNParameter::Engine_MIN; const LRNParameter_Engine LRNParameter::Engine_MAX; const int LRNParameter::Engine_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LRNParameter::kLocalSizeFieldNumber; -const int LRNParameter::kAlphaFieldNumber; -const int LRNParameter::kBetaFieldNumber; -const int LRNParameter::kNormRegionFieldNumber; -const int LRNParameter::kKFieldNumber; -const int LRNParameter::kEngineFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LRNParameter::LRNParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.LRNParameter) -} - -void LRNParameter::InitAsDefaultInstance() { -} - -LRNParameter::LRNParameter(const LRNParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.LRNParameter) -} - -void LRNParameter::SharedCtor() { - _cached_size_ = 0; - ::memset(&norm_region_, 0, reinterpret_cast(&engine_) - - reinterpret_cast(&norm_region_) + sizeof(engine_)); - local_size_ = 5u; - alpha_ = 1; - beta_ = 0.75f; - k_ = 1; -} - -LRNParameter::~LRNParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.LRNParameter) - SharedDtor(); -} - -void LRNParameter::SharedDtor() { -} - -void LRNParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* LRNParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return LRNParameter_descriptor_; -} - -const LRNParameter& LRNParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed LRNParameter_default_instance_; - -LRNParameter* LRNParameter::New(::google::protobuf::Arena* arena) const { - LRNParameter* n = new LRNParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void LRNParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.LRNParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(LRNParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 63u) { - ZR_(norm_region_, engine_); - local_size_ = 5u; - alpha_ = 1; - beta_ = 0.75f; - k_ = 1; - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool LRNParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.LRNParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 local_size = 1 [default = 5]; - case 1: { - if (tag == 8) { - set_has_local_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &local_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_alpha; - break; - } - - // optional float alpha = 2 [default = 1]; - case 2: { - if (tag == 21) { - parse_alpha: - set_has_alpha(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &alpha_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_beta; - break; - } - - // optional float beta = 3 [default = 0.75]; - case 3: { - if (tag == 29) { - parse_beta: - set_has_beta(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &beta_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_norm_region; - break; - } - - // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; - case 4: { - if (tag == 32) { - parse_norm_region: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::LRNParameter_NormRegion_IsValid(value)) { - set_norm_region(static_cast< ::opencv_caffe::LRNParameter_NormRegion >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(45)) goto parse_k; - break; - } - - // optional float k = 5 [default = 1]; - case 5: { - if (tag == 45) { - parse_k: - set_has_k(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &k_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_engine; - break; - } - - // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; - case 6: { - if (tag == 48) { - parse_engine: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::LRNParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::opencv_caffe::LRNParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.LRNParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.LRNParameter) - return false; -#undef DO_ -} - -void LRNParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.LRNParameter) - // optional uint32 local_size = 1 [default = 5]; - if (has_local_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->local_size(), output); - } - - // optional float alpha = 2 [default = 1]; - if (has_alpha()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->alpha(), output); - } - - // optional float beta = 3 [default = 0.75]; - if (has_beta()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->beta(), output); - } - - // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; - if (has_norm_region()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->norm_region(), output); - } - - // optional float k = 5 [default = 1]; - if (has_k()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->k(), output); - } - - // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->engine(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.LRNParameter) -} - -::google::protobuf::uint8* LRNParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LRNParameter) - // optional uint32 local_size = 1 [default = 5]; - if (has_local_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->local_size(), target); - } - - // optional float alpha = 2 [default = 1]; - if (has_alpha()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->alpha(), target); - } - - // optional float beta = 3 [default = 0.75]; - if (has_beta()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->beta(), target); - } - - // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; - if (has_norm_region()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->norm_region(), target); - } - - // optional float k = 5 [default = 1]; - if (has_k()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->k(), target); - } - - // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->engine(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LRNParameter) - return target; -} - -size_t LRNParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LRNParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 63u) { - // optional uint32 local_size = 1 [default = 5]; - if (has_local_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->local_size()); - } - - // optional float alpha = 2 [default = 1]; - if (has_alpha()) { - total_size += 1 + 4; - } - - // optional float beta = 3 [default = 0.75]; - if (has_beta()) { - total_size += 1 + 4; - } - - // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; - if (has_norm_region()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->norm_region()); - } - - // optional float k = 5 [default = 1]; - if (has_k()) { - total_size += 1 + 4; - } - - // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void LRNParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LRNParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const LRNParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LRNParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LRNParameter) - UnsafeMergeFrom(*source); - } -} - -void LRNParameter::MergeFrom(const LRNParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LRNParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void LRNParameter::UnsafeMergeFrom(const LRNParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_local_size()) { - set_local_size(from.local_size()); - } - if (from.has_alpha()) { - set_alpha(from.alpha()); - } - if (from.has_beta()) { - set_beta(from.beta()); - } - if (from.has_norm_region()) { - set_norm_region(from.norm_region()); - } - if (from.has_k()) { - set_k(from.k()); - } - if (from.has_engine()) { - set_engine(from.engine()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void LRNParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LRNParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LRNParameter::CopyFrom(const LRNParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LRNParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool LRNParameter::IsInitialized() const { - - return true; -} - -void LRNParameter::Swap(LRNParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void LRNParameter::InternalSwap(LRNParameter* other) { - std::swap(local_size_, other->local_size_); - std::swap(alpha_, other->alpha_); - std::swap(beta_, other->beta_); - std::swap(norm_region_, other->norm_region_); - std::swap(k_, other->k_); - std::swap(engine_, other->engine_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata LRNParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = LRNParameter_descriptor_; - metadata.reflection = LRNParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// LRNParameter - -// optional uint32 local_size = 1 [default = 5]; -bool LRNParameter::has_local_size() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void LRNParameter::set_has_local_size() { - _has_bits_[0] |= 0x00000001u; -} -void LRNParameter::clear_has_local_size() { - _has_bits_[0] &= ~0x00000001u; -} -void LRNParameter::clear_local_size() { - local_size_ = 5u; - clear_has_local_size(); -} -::google::protobuf::uint32 LRNParameter::local_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LRNParameter.local_size) - return local_size_; -} -void LRNParameter::set_local_size(::google::protobuf::uint32 value) { - set_has_local_size(); - local_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LRNParameter.local_size) -} - -// optional float alpha = 2 [default = 1]; -bool LRNParameter::has_alpha() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void LRNParameter::set_has_alpha() { - _has_bits_[0] |= 0x00000002u; -} -void LRNParameter::clear_has_alpha() { - _has_bits_[0] &= ~0x00000002u; -} -void LRNParameter::clear_alpha() { - alpha_ = 1; - clear_has_alpha(); -} -float LRNParameter::alpha() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LRNParameter.alpha) - return alpha_; -} -void LRNParameter::set_alpha(float value) { - set_has_alpha(); - alpha_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LRNParameter.alpha) -} - -// optional float beta = 3 [default = 0.75]; -bool LRNParameter::has_beta() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void LRNParameter::set_has_beta() { - _has_bits_[0] |= 0x00000004u; -} -void LRNParameter::clear_has_beta() { - _has_bits_[0] &= ~0x00000004u; -} -void LRNParameter::clear_beta() { - beta_ = 0.75f; - clear_has_beta(); -} -float LRNParameter::beta() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LRNParameter.beta) - return beta_; -} -void LRNParameter::set_beta(float value) { - set_has_beta(); - beta_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LRNParameter.beta) -} - -// optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; -bool LRNParameter::has_norm_region() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void LRNParameter::set_has_norm_region() { - _has_bits_[0] |= 0x00000008u; -} -void LRNParameter::clear_has_norm_region() { - _has_bits_[0] &= ~0x00000008u; -} -void LRNParameter::clear_norm_region() { - norm_region_ = 0; - clear_has_norm_region(); -} -::opencv_caffe::LRNParameter_NormRegion LRNParameter::norm_region() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LRNParameter.norm_region) - return static_cast< ::opencv_caffe::LRNParameter_NormRegion >(norm_region_); -} -void LRNParameter::set_norm_region(::opencv_caffe::LRNParameter_NormRegion value) { - assert(::opencv_caffe::LRNParameter_NormRegion_IsValid(value)); - set_has_norm_region(); - norm_region_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LRNParameter.norm_region) -} - -// optional float k = 5 [default = 1]; -bool LRNParameter::has_k() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void LRNParameter::set_has_k() { - _has_bits_[0] |= 0x00000010u; -} -void LRNParameter::clear_has_k() { - _has_bits_[0] &= ~0x00000010u; -} -void LRNParameter::clear_k() { - k_ = 1; - clear_has_k(); -} -float LRNParameter::k() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LRNParameter.k) - return k_; -} -void LRNParameter::set_k(float value) { - set_has_k(); - k_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LRNParameter.k) -} - -// optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; -bool LRNParameter::has_engine() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void LRNParameter::set_has_engine() { - _has_bits_[0] |= 0x00000020u; -} -void LRNParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000020u; -} -void LRNParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -::opencv_caffe::LRNParameter_Engine LRNParameter::engine() const { - // @@protoc_insertion_point(field_get:opencv_caffe.LRNParameter.engine) - return static_cast< ::opencv_caffe::LRNParameter_Engine >(engine_); -} -void LRNParameter::set_engine(::opencv_caffe::LRNParameter_Engine value) { - assert(::opencv_caffe::LRNParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.LRNParameter.engine) -} - -inline const LRNParameter* LRNParameter::internal_default_instance() { - return &LRNParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int MemoryDataParameter::kBatchSizeFieldNumber; -const int MemoryDataParameter::kChannelsFieldNumber; -const int MemoryDataParameter::kHeightFieldNumber; -const int MemoryDataParameter::kWidthFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -MemoryDataParameter::MemoryDataParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.MemoryDataParameter) -} - -void MemoryDataParameter::InitAsDefaultInstance() { -} - -MemoryDataParameter::MemoryDataParameter(const MemoryDataParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.MemoryDataParameter) -} - -void MemoryDataParameter::SharedCtor() { - _cached_size_ = 0; - ::memset(&batch_size_, 0, reinterpret_cast(&width_) - - reinterpret_cast(&batch_size_) + sizeof(width_)); -} - -MemoryDataParameter::~MemoryDataParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.MemoryDataParameter) - SharedDtor(); -} - -void MemoryDataParameter::SharedDtor() { -} - -void MemoryDataParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MemoryDataParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MemoryDataParameter_descriptor_; -} - -const MemoryDataParameter& MemoryDataParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed MemoryDataParameter_default_instance_; - -MemoryDataParameter* MemoryDataParameter::New(::google::protobuf::Arena* arena) const { - MemoryDataParameter* n = new MemoryDataParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void MemoryDataParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.MemoryDataParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(MemoryDataParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(batch_size_, width_); - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool MemoryDataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.MemoryDataParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 batch_size = 1; - case 1: { - if (tag == 8) { - set_has_batch_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_channels; - break; - } - - // optional uint32 channels = 2; - case 2: { - if (tag == 16) { - parse_channels: - set_has_channels(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &channels_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_height; - break; - } - - // optional uint32 height = 3; - case 3: { - if (tag == 24) { - parse_height: - set_has_height(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &height_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_width; - break; - } - - // optional uint32 width = 4; - case 4: { - if (tag == 32) { - parse_width: - set_has_width(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &width_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.MemoryDataParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.MemoryDataParameter) - return false; -#undef DO_ -} - -void MemoryDataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.MemoryDataParameter) - // optional uint32 batch_size = 1; - if (has_batch_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->batch_size(), output); - } - - // optional uint32 channels = 2; - if (has_channels()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->channels(), output); - } - - // optional uint32 height = 3; - if (has_height()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output); - } - - // optional uint32 width = 4; - if (has_width()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->width(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.MemoryDataParameter) -} - -::google::protobuf::uint8* MemoryDataParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.MemoryDataParameter) - // optional uint32 batch_size = 1; - if (has_batch_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->batch_size(), target); - } - - // optional uint32 channels = 2; - if (has_channels()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->channels(), target); - } - - // optional uint32 height = 3; - if (has_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->height(), target); - } - - // optional uint32 width = 4; - if (has_width()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->width(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.MemoryDataParameter) - return target; -} - -size_t MemoryDataParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.MemoryDataParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 15u) { - // optional uint32 batch_size = 1; - if (has_batch_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->batch_size()); - } - - // optional uint32 channels = 2; - if (has_channels()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->channels()); - } - - // optional uint32 height = 3; - if (has_height()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->height()); - } - - // optional uint32 width = 4; - if (has_width()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->width()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void MemoryDataParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.MemoryDataParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const MemoryDataParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.MemoryDataParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.MemoryDataParameter) - UnsafeMergeFrom(*source); - } -} - -void MemoryDataParameter::MergeFrom(const MemoryDataParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.MemoryDataParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void MemoryDataParameter::UnsafeMergeFrom(const MemoryDataParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_batch_size()) { - set_batch_size(from.batch_size()); - } - if (from.has_channels()) { - set_channels(from.channels()); - } - if (from.has_height()) { - set_height(from.height()); - } - if (from.has_width()) { - set_width(from.width()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void MemoryDataParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.MemoryDataParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MemoryDataParameter::CopyFrom(const MemoryDataParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.MemoryDataParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool MemoryDataParameter::IsInitialized() const { - - return true; -} - -void MemoryDataParameter::Swap(MemoryDataParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void MemoryDataParameter::InternalSwap(MemoryDataParameter* other) { - std::swap(batch_size_, other->batch_size_); - std::swap(channels_, other->channels_); - std::swap(height_, other->height_); - std::swap(width_, other->width_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata MemoryDataParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MemoryDataParameter_descriptor_; - metadata.reflection = MemoryDataParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// MemoryDataParameter - -// optional uint32 batch_size = 1; -bool MemoryDataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void MemoryDataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000001u; -} -void MemoryDataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000001u; -} -void MemoryDataParameter::clear_batch_size() { - batch_size_ = 0u; - clear_has_batch_size(); -} -::google::protobuf::uint32 MemoryDataParameter::batch_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.MemoryDataParameter.batch_size) - return batch_size_; -} -void MemoryDataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.MemoryDataParameter.batch_size) -} - -// optional uint32 channels = 2; -bool MemoryDataParameter::has_channels() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void MemoryDataParameter::set_has_channels() { - _has_bits_[0] |= 0x00000002u; -} -void MemoryDataParameter::clear_has_channels() { - _has_bits_[0] &= ~0x00000002u; -} -void MemoryDataParameter::clear_channels() { - channels_ = 0u; - clear_has_channels(); -} -::google::protobuf::uint32 MemoryDataParameter::channels() const { - // @@protoc_insertion_point(field_get:opencv_caffe.MemoryDataParameter.channels) - return channels_; -} -void MemoryDataParameter::set_channels(::google::protobuf::uint32 value) { - set_has_channels(); - channels_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.MemoryDataParameter.channels) -} - -// optional uint32 height = 3; -bool MemoryDataParameter::has_height() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void MemoryDataParameter::set_has_height() { - _has_bits_[0] |= 0x00000004u; -} -void MemoryDataParameter::clear_has_height() { - _has_bits_[0] &= ~0x00000004u; -} -void MemoryDataParameter::clear_height() { - height_ = 0u; - clear_has_height(); -} -::google::protobuf::uint32 MemoryDataParameter::height() const { - // @@protoc_insertion_point(field_get:opencv_caffe.MemoryDataParameter.height) - return height_; -} -void MemoryDataParameter::set_height(::google::protobuf::uint32 value) { - set_has_height(); - height_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.MemoryDataParameter.height) -} - -// optional uint32 width = 4; -bool MemoryDataParameter::has_width() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void MemoryDataParameter::set_has_width() { - _has_bits_[0] |= 0x00000008u; -} -void MemoryDataParameter::clear_has_width() { - _has_bits_[0] &= ~0x00000008u; -} -void MemoryDataParameter::clear_width() { - width_ = 0u; - clear_has_width(); -} -::google::protobuf::uint32 MemoryDataParameter::width() const { - // @@protoc_insertion_point(field_get:opencv_caffe.MemoryDataParameter.width) - return width_; -} -void MemoryDataParameter::set_width(::google::protobuf::uint32 value) { - set_has_width(); - width_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.MemoryDataParameter.width) -} - -inline const MemoryDataParameter* MemoryDataParameter::internal_default_instance() { - return &MemoryDataParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int MVNParameter::kNormalizeVarianceFieldNumber; -const int MVNParameter::kAcrossChannelsFieldNumber; -const int MVNParameter::kEpsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -MVNParameter::MVNParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.MVNParameter) -} - -void MVNParameter::InitAsDefaultInstance() { -} - -MVNParameter::MVNParameter(const MVNParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.MVNParameter) -} - -void MVNParameter::SharedCtor() { - _cached_size_ = 0; - across_channels_ = false; - normalize_variance_ = true; - eps_ = 1e-09f; -} - -MVNParameter::~MVNParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.MVNParameter) - SharedDtor(); -} - -void MVNParameter::SharedDtor() { -} - -void MVNParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MVNParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MVNParameter_descriptor_; -} - -const MVNParameter& MVNParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed MVNParameter_default_instance_; - -MVNParameter* MVNParameter::New(::google::protobuf::Arena* arena) const { - MVNParameter* n = new MVNParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void MVNParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.MVNParameter) - if (_has_bits_[0 / 32] & 7u) { - normalize_variance_ = true; - across_channels_ = false; - eps_ = 1e-09f; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool MVNParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.MVNParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional bool normalize_variance = 1 [default = true]; - case 1: { - if (tag == 8) { - set_has_normalize_variance(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &normalize_variance_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_across_channels; - break; - } - - // optional bool across_channels = 2 [default = false]; - case 2: { - if (tag == 16) { - parse_across_channels: - set_has_across_channels(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &across_channels_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_eps; - break; - } - - // optional float eps = 3 [default = 1e-09]; - case 3: { - if (tag == 29) { - parse_eps: - set_has_eps(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &eps_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.MVNParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.MVNParameter) - return false; -#undef DO_ -} - -void MVNParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.MVNParameter) - // optional bool normalize_variance = 1 [default = true]; - if (has_normalize_variance()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->normalize_variance(), output); - } - - // optional bool across_channels = 2 [default = false]; - if (has_across_channels()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->across_channels(), output); - } - - // optional float eps = 3 [default = 1e-09]; - if (has_eps()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->eps(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.MVNParameter) -} - -::google::protobuf::uint8* MVNParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.MVNParameter) - // optional bool normalize_variance = 1 [default = true]; - if (has_normalize_variance()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->normalize_variance(), target); - } - - // optional bool across_channels = 2 [default = false]; - if (has_across_channels()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->across_channels(), target); - } - - // optional float eps = 3 [default = 1e-09]; - if (has_eps()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->eps(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.MVNParameter) - return target; -} - -size_t MVNParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.MVNParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional bool normalize_variance = 1 [default = true]; - if (has_normalize_variance()) { - total_size += 1 + 1; - } - - // optional bool across_channels = 2 [default = false]; - if (has_across_channels()) { - total_size += 1 + 1; - } - - // optional float eps = 3 [default = 1e-09]; - if (has_eps()) { - total_size += 1 + 4; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void MVNParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.MVNParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const MVNParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.MVNParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.MVNParameter) - UnsafeMergeFrom(*source); - } -} - -void MVNParameter::MergeFrom(const MVNParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.MVNParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void MVNParameter::UnsafeMergeFrom(const MVNParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_normalize_variance()) { - set_normalize_variance(from.normalize_variance()); - } - if (from.has_across_channels()) { - set_across_channels(from.across_channels()); - } - if (from.has_eps()) { - set_eps(from.eps()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void MVNParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.MVNParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MVNParameter::CopyFrom(const MVNParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.MVNParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool MVNParameter::IsInitialized() const { - - return true; -} - -void MVNParameter::Swap(MVNParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void MVNParameter::InternalSwap(MVNParameter* other) { - std::swap(normalize_variance_, other->normalize_variance_); - std::swap(across_channels_, other->across_channels_); - std::swap(eps_, other->eps_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata MVNParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MVNParameter_descriptor_; - metadata.reflection = MVNParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// MVNParameter - -// optional bool normalize_variance = 1 [default = true]; -bool MVNParameter::has_normalize_variance() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void MVNParameter::set_has_normalize_variance() { - _has_bits_[0] |= 0x00000001u; -} -void MVNParameter::clear_has_normalize_variance() { - _has_bits_[0] &= ~0x00000001u; -} -void MVNParameter::clear_normalize_variance() { - normalize_variance_ = true; - clear_has_normalize_variance(); -} -bool MVNParameter::normalize_variance() const { - // @@protoc_insertion_point(field_get:opencv_caffe.MVNParameter.normalize_variance) - return normalize_variance_; -} -void MVNParameter::set_normalize_variance(bool value) { - set_has_normalize_variance(); - normalize_variance_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.MVNParameter.normalize_variance) -} - -// optional bool across_channels = 2 [default = false]; -bool MVNParameter::has_across_channels() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void MVNParameter::set_has_across_channels() { - _has_bits_[0] |= 0x00000002u; -} -void MVNParameter::clear_has_across_channels() { - _has_bits_[0] &= ~0x00000002u; -} -void MVNParameter::clear_across_channels() { - across_channels_ = false; - clear_has_across_channels(); -} -bool MVNParameter::across_channels() const { - // @@protoc_insertion_point(field_get:opencv_caffe.MVNParameter.across_channels) - return across_channels_; -} -void MVNParameter::set_across_channels(bool value) { - set_has_across_channels(); - across_channels_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.MVNParameter.across_channels) -} - -// optional float eps = 3 [default = 1e-09]; -bool MVNParameter::has_eps() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void MVNParameter::set_has_eps() { - _has_bits_[0] |= 0x00000004u; -} -void MVNParameter::clear_has_eps() { - _has_bits_[0] &= ~0x00000004u; -} -void MVNParameter::clear_eps() { - eps_ = 1e-09f; - clear_has_eps(); -} -float MVNParameter::eps() const { - // @@protoc_insertion_point(field_get:opencv_caffe.MVNParameter.eps) - return eps_; -} -void MVNParameter::set_eps(float value) { - set_has_eps(); - eps_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.MVNParameter.eps) -} - -inline const MVNParameter* MVNParameter::internal_default_instance() { - return &MVNParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ParameterParameter::kShapeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ParameterParameter::ParameterParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ParameterParameter) -} - -void ParameterParameter::InitAsDefaultInstance() { - shape_ = const_cast< ::opencv_caffe::BlobShape*>( - ::opencv_caffe::BlobShape::internal_default_instance()); -} - -ParameterParameter::ParameterParameter(const ParameterParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ParameterParameter) -} - -void ParameterParameter::SharedCtor() { - _cached_size_ = 0; - shape_ = NULL; -} - -ParameterParameter::~ParameterParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ParameterParameter) - SharedDtor(); -} - -void ParameterParameter::SharedDtor() { - if (this != &ParameterParameter_default_instance_.get()) { - delete shape_; - } -} - -void ParameterParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ParameterParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ParameterParameter_descriptor_; -} - -const ParameterParameter& ParameterParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ParameterParameter_default_instance_; - -ParameterParameter* ParameterParameter::New(::google::protobuf::Arena* arena) const { - ParameterParameter* n = new ParameterParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ParameterParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ParameterParameter) - if (has_shape()) { - if (shape_ != NULL) shape_->::opencv_caffe::BlobShape::Clear(); - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ParameterParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ParameterParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.BlobShape shape = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_shape())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ParameterParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ParameterParameter) - return false; -#undef DO_ -} - -void ParameterParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ParameterParameter) - // optional .opencv_caffe.BlobShape shape = 1; - if (has_shape()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->shape_, output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ParameterParameter) -} - -::google::protobuf::uint8* ParameterParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ParameterParameter) - // optional .opencv_caffe.BlobShape shape = 1; - if (has_shape()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->shape_, false, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ParameterParameter) - return target; -} - -size_t ParameterParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ParameterParameter) - size_t total_size = 0; - - // optional .opencv_caffe.BlobShape shape = 1; - if (has_shape()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->shape_); - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ParameterParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ParameterParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ParameterParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ParameterParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ParameterParameter) - UnsafeMergeFrom(*source); - } -} - -void ParameterParameter::MergeFrom(const ParameterParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ParameterParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ParameterParameter::UnsafeMergeFrom(const ParameterParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_shape()) { - mutable_shape()->::opencv_caffe::BlobShape::MergeFrom(from.shape()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ParameterParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ParameterParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParameterParameter::CopyFrom(const ParameterParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ParameterParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ParameterParameter::IsInitialized() const { - - return true; -} - -void ParameterParameter::Swap(ParameterParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ParameterParameter::InternalSwap(ParameterParameter* other) { - std::swap(shape_, other->shape_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ParameterParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ParameterParameter_descriptor_; - metadata.reflection = ParameterParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ParameterParameter - -// optional .opencv_caffe.BlobShape shape = 1; -bool ParameterParameter::has_shape() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ParameterParameter::set_has_shape() { - _has_bits_[0] |= 0x00000001u; -} -void ParameterParameter::clear_has_shape() { - _has_bits_[0] &= ~0x00000001u; -} -void ParameterParameter::clear_shape() { - if (shape_ != NULL) shape_->::opencv_caffe::BlobShape::Clear(); - clear_has_shape(); -} -const ::opencv_caffe::BlobShape& ParameterParameter::shape() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ParameterParameter.shape) - return shape_ != NULL ? *shape_ - : *::opencv_caffe::BlobShape::internal_default_instance(); -} -::opencv_caffe::BlobShape* ParameterParameter::mutable_shape() { - set_has_shape(); - if (shape_ == NULL) { - shape_ = new ::opencv_caffe::BlobShape; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.ParameterParameter.shape) - return shape_; -} -::opencv_caffe::BlobShape* ParameterParameter::release_shape() { - // @@protoc_insertion_point(field_release:opencv_caffe.ParameterParameter.shape) - clear_has_shape(); - ::opencv_caffe::BlobShape* temp = shape_; - shape_ = NULL; - return temp; -} -void ParameterParameter::set_allocated_shape(::opencv_caffe::BlobShape* shape) { - delete shape_; - shape_ = shape; - if (shape) { - set_has_shape(); - } else { - clear_has_shape(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ParameterParameter.shape) -} - -inline const ParameterParameter* ParameterParameter::internal_default_instance() { - return &ParameterParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* PoolingParameter_PoolMethod_descriptor() { - protobuf_AssignDescriptorsOnce(); - return PoolingParameter_PoolMethod_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[13]; } bool PoolingParameter_PoolMethod_IsValid(int value) { switch (value) { @@ -38176,8 +4318,8 @@ const PoolingParameter_PoolMethod PoolingParameter::PoolMethod_MAX; const int PoolingParameter::PoolMethod_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* PoolingParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return PoolingParameter_Engine_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[14]; } bool PoolingParameter_Engine_IsValid(int value) { switch (value) { @@ -38198,2684 +4340,9 @@ const PoolingParameter_Engine PoolingParameter::Engine_MIN; const PoolingParameter_Engine PoolingParameter::Engine_MAX; const int PoolingParameter::Engine_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PoolingParameter::kPoolFieldNumber; -const int PoolingParameter::kPadFieldNumber; -const int PoolingParameter::kPadHFieldNumber; -const int PoolingParameter::kPadWFieldNumber; -const int PoolingParameter::kKernelSizeFieldNumber; -const int PoolingParameter::kKernelHFieldNumber; -const int PoolingParameter::kKernelWFieldNumber; -const int PoolingParameter::kStrideFieldNumber; -const int PoolingParameter::kStrideHFieldNumber; -const int PoolingParameter::kStrideWFieldNumber; -const int PoolingParameter::kEngineFieldNumber; -const int PoolingParameter::kGlobalPoolingFieldNumber; -const int PoolingParameter::kCeilModeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PoolingParameter::PoolingParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.PoolingParameter) -} - -void PoolingParameter::InitAsDefaultInstance() { -} - -PoolingParameter::PoolingParameter(const PoolingParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.PoolingParameter) -} - -void PoolingParameter::SharedCtor() { - _cached_size_ = 0; - ::memset(&pool_, 0, reinterpret_cast(&global_pooling_) - - reinterpret_cast(&pool_) + sizeof(global_pooling_)); - stride_ = 1u; - ceil_mode_ = true; -} - -PoolingParameter::~PoolingParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.PoolingParameter) - SharedDtor(); -} - -void PoolingParameter::SharedDtor() { -} - -void PoolingParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PoolingParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PoolingParameter_descriptor_; -} - -const PoolingParameter& PoolingParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed PoolingParameter_default_instance_; - -PoolingParameter* PoolingParameter::New(::google::protobuf::Arena* arena) const { - PoolingParameter* n = new PoolingParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void PoolingParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.PoolingParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(PoolingParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 255u) { - ZR_(pool_, kernel_w_); - stride_ = 1u; - } - if (_has_bits_[8 / 32] & 7936u) { - ZR_(stride_h_, global_pooling_); - ceil_mode_ = true; - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool PoolingParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.PoolingParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::PoolingParameter_PoolMethod_IsValid(value)) { - set_pool(static_cast< ::opencv_caffe::PoolingParameter_PoolMethod >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_kernel_size; - break; - } - - // optional uint32 kernel_size = 2; - case 2: { - if (tag == 16) { - parse_kernel_size: - set_has_kernel_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_stride; - break; - } - - // optional uint32 stride = 3 [default = 1]; - case 3: { - if (tag == 24) { - parse_stride: - set_has_stride(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_pad; - break; - } - - // optional uint32 pad = 4 [default = 0]; - case 4: { - if (tag == 32) { - parse_pad: - set_has_pad(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_kernel_h; - break; - } - - // optional uint32 kernel_h = 5; - case 5: { - if (tag == 40) { - parse_kernel_h: - set_has_kernel_h(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_h_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_kernel_w; - break; - } - - // optional uint32 kernel_w = 6; - case 6: { - if (tag == 48) { - parse_kernel_w: - set_has_kernel_w(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kernel_w_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(56)) goto parse_stride_h; - break; - } - - // optional uint32 stride_h = 7; - case 7: { - if (tag == 56) { - parse_stride_h: - set_has_stride_h(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_h_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_stride_w; - break; - } - - // optional uint32 stride_w = 8; - case 8: { - if (tag == 64) { - parse_stride_w: - set_has_stride_w(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stride_w_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(72)) goto parse_pad_h; - break; - } - - // optional uint32 pad_h = 9 [default = 0]; - case 9: { - if (tag == 72) { - parse_pad_h: - set_has_pad_h(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_h_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_pad_w; - break; - } - - // optional uint32 pad_w = 10 [default = 0]; - case 10: { - if (tag == 80) { - parse_pad_w: - set_has_pad_w(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pad_w_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(88)) goto parse_engine; - break; - } - - // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; - case 11: { - if (tag == 88) { - parse_engine: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::PoolingParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::opencv_caffe::PoolingParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(11, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(96)) goto parse_global_pooling; - break; - } - - // optional bool global_pooling = 12 [default = false]; - case 12: { - if (tag == 96) { - parse_global_pooling: - set_has_global_pooling(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &global_pooling_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(104)) goto parse_ceil_mode; - break; - } - - // optional bool ceil_mode = 13 [default = true]; - case 13: { - if (tag == 104) { - parse_ceil_mode: - set_has_ceil_mode(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &ceil_mode_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.PoolingParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.PoolingParameter) - return false; -#undef DO_ -} - -void PoolingParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.PoolingParameter) - // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; - if (has_pool()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->pool(), output); - } - - // optional uint32 kernel_size = 2; - if (has_kernel_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->kernel_size(), output); - } - - // optional uint32 stride = 3 [default = 1]; - if (has_stride()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->stride(), output); - } - - // optional uint32 pad = 4 [default = 0]; - if (has_pad()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->pad(), output); - } - - // optional uint32 kernel_h = 5; - if (has_kernel_h()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->kernel_h(), output); - } - - // optional uint32 kernel_w = 6; - if (has_kernel_w()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->kernel_w(), output); - } - - // optional uint32 stride_h = 7; - if (has_stride_h()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->stride_h(), output); - } - - // optional uint32 stride_w = 8; - if (has_stride_w()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->stride_w(), output); - } - - // optional uint32 pad_h = 9 [default = 0]; - if (has_pad_h()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->pad_h(), output); - } - - // optional uint32 pad_w = 10 [default = 0]; - if (has_pad_w()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->pad_w(), output); - } - - // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 11, this->engine(), output); - } - - // optional bool global_pooling = 12 [default = false]; - if (has_global_pooling()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->global_pooling(), output); - } - - // optional bool ceil_mode = 13 [default = true]; - if (has_ceil_mode()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->ceil_mode(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.PoolingParameter) -} - -::google::protobuf::uint8* PoolingParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PoolingParameter) - // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; - if (has_pool()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->pool(), target); - } - - // optional uint32 kernel_size = 2; - if (has_kernel_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->kernel_size(), target); - } - - // optional uint32 stride = 3 [default = 1]; - if (has_stride()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->stride(), target); - } - - // optional uint32 pad = 4 [default = 0]; - if (has_pad()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->pad(), target); - } - - // optional uint32 kernel_h = 5; - if (has_kernel_h()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->kernel_h(), target); - } - - // optional uint32 kernel_w = 6; - if (has_kernel_w()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->kernel_w(), target); - } - - // optional uint32 stride_h = 7; - if (has_stride_h()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->stride_h(), target); - } - - // optional uint32 stride_w = 8; - if (has_stride_w()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->stride_w(), target); - } - - // optional uint32 pad_h = 9 [default = 0]; - if (has_pad_h()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->pad_h(), target); - } - - // optional uint32 pad_w = 10 [default = 0]; - if (has_pad_w()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->pad_w(), target); - } - - // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 11, this->engine(), target); - } - - // optional bool global_pooling = 12 [default = false]; - if (has_global_pooling()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->global_pooling(), target); - } - - // optional bool ceil_mode = 13 [default = true]; - if (has_ceil_mode()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->ceil_mode(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PoolingParameter) - return target; -} - -size_t PoolingParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PoolingParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 255u) { - // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; - if (has_pool()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool()); - } - - // optional uint32 pad = 4 [default = 0]; - if (has_pad()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->pad()); - } - - // optional uint32 pad_h = 9 [default = 0]; - if (has_pad_h()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->pad_h()); - } - - // optional uint32 pad_w = 10 [default = 0]; - if (has_pad_w()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->pad_w()); - } - - // optional uint32 kernel_size = 2; - if (has_kernel_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kernel_size()); - } - - // optional uint32 kernel_h = 5; - if (has_kernel_h()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kernel_h()); - } - - // optional uint32 kernel_w = 6; - if (has_kernel_w()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kernel_w()); - } - - // optional uint32 stride = 3 [default = 1]; - if (has_stride()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->stride()); - } - - } - if (_has_bits_[8 / 32] & 7936u) { - // optional uint32 stride_h = 7; - if (has_stride_h()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->stride_h()); - } - - // optional uint32 stride_w = 8; - if (has_stride_w()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->stride_w()); - } - - // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - // optional bool global_pooling = 12 [default = false]; - if (has_global_pooling()) { - total_size += 1 + 1; - } - - // optional bool ceil_mode = 13 [default = true]; - if (has_ceil_mode()) { - total_size += 1 + 1; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PoolingParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PoolingParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const PoolingParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PoolingParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PoolingParameter) - UnsafeMergeFrom(*source); - } -} - -void PoolingParameter::MergeFrom(const PoolingParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PoolingParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void PoolingParameter::UnsafeMergeFrom(const PoolingParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_pool()) { - set_pool(from.pool()); - } - if (from.has_pad()) { - set_pad(from.pad()); - } - if (from.has_pad_h()) { - set_pad_h(from.pad_h()); - } - if (from.has_pad_w()) { - set_pad_w(from.pad_w()); - } - if (from.has_kernel_size()) { - set_kernel_size(from.kernel_size()); - } - if (from.has_kernel_h()) { - set_kernel_h(from.kernel_h()); - } - if (from.has_kernel_w()) { - set_kernel_w(from.kernel_w()); - } - if (from.has_stride()) { - set_stride(from.stride()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_stride_h()) { - set_stride_h(from.stride_h()); - } - if (from.has_stride_w()) { - set_stride_w(from.stride_w()); - } - if (from.has_engine()) { - set_engine(from.engine()); - } - if (from.has_global_pooling()) { - set_global_pooling(from.global_pooling()); - } - if (from.has_ceil_mode()) { - set_ceil_mode(from.ceil_mode()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void PoolingParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PoolingParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PoolingParameter::CopyFrom(const PoolingParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PoolingParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool PoolingParameter::IsInitialized() const { - - return true; -} - -void PoolingParameter::Swap(PoolingParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void PoolingParameter::InternalSwap(PoolingParameter* other) { - std::swap(pool_, other->pool_); - std::swap(pad_, other->pad_); - std::swap(pad_h_, other->pad_h_); - std::swap(pad_w_, other->pad_w_); - std::swap(kernel_size_, other->kernel_size_); - std::swap(kernel_h_, other->kernel_h_); - std::swap(kernel_w_, other->kernel_w_); - std::swap(stride_, other->stride_); - std::swap(stride_h_, other->stride_h_); - std::swap(stride_w_, other->stride_w_); - std::swap(engine_, other->engine_); - std::swap(global_pooling_, other->global_pooling_); - std::swap(ceil_mode_, other->ceil_mode_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata PoolingParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PoolingParameter_descriptor_; - metadata.reflection = PoolingParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PoolingParameter - -// optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; -bool PoolingParameter::has_pool() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void PoolingParameter::set_has_pool() { - _has_bits_[0] |= 0x00000001u; -} -void PoolingParameter::clear_has_pool() { - _has_bits_[0] &= ~0x00000001u; -} -void PoolingParameter::clear_pool() { - pool_ = 0; - clear_has_pool(); -} -::opencv_caffe::PoolingParameter_PoolMethod PoolingParameter::pool() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.pool) - return static_cast< ::opencv_caffe::PoolingParameter_PoolMethod >(pool_); -} -void PoolingParameter::set_pool(::opencv_caffe::PoolingParameter_PoolMethod value) { - assert(::opencv_caffe::PoolingParameter_PoolMethod_IsValid(value)); - set_has_pool(); - pool_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.pool) -} - -// optional uint32 pad = 4 [default = 0]; -bool PoolingParameter::has_pad() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void PoolingParameter::set_has_pad() { - _has_bits_[0] |= 0x00000002u; -} -void PoolingParameter::clear_has_pad() { - _has_bits_[0] &= ~0x00000002u; -} -void PoolingParameter::clear_pad() { - pad_ = 0u; - clear_has_pad(); -} -::google::protobuf::uint32 PoolingParameter::pad() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.pad) - return pad_; -} -void PoolingParameter::set_pad(::google::protobuf::uint32 value) { - set_has_pad(); - pad_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.pad) -} - -// optional uint32 pad_h = 9 [default = 0]; -bool PoolingParameter::has_pad_h() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void PoolingParameter::set_has_pad_h() { - _has_bits_[0] |= 0x00000004u; -} -void PoolingParameter::clear_has_pad_h() { - _has_bits_[0] &= ~0x00000004u; -} -void PoolingParameter::clear_pad_h() { - pad_h_ = 0u; - clear_has_pad_h(); -} -::google::protobuf::uint32 PoolingParameter::pad_h() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.pad_h) - return pad_h_; -} -void PoolingParameter::set_pad_h(::google::protobuf::uint32 value) { - set_has_pad_h(); - pad_h_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.pad_h) -} - -// optional uint32 pad_w = 10 [default = 0]; -bool PoolingParameter::has_pad_w() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void PoolingParameter::set_has_pad_w() { - _has_bits_[0] |= 0x00000008u; -} -void PoolingParameter::clear_has_pad_w() { - _has_bits_[0] &= ~0x00000008u; -} -void PoolingParameter::clear_pad_w() { - pad_w_ = 0u; - clear_has_pad_w(); -} -::google::protobuf::uint32 PoolingParameter::pad_w() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.pad_w) - return pad_w_; -} -void PoolingParameter::set_pad_w(::google::protobuf::uint32 value) { - set_has_pad_w(); - pad_w_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.pad_w) -} - -// optional uint32 kernel_size = 2; -bool PoolingParameter::has_kernel_size() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void PoolingParameter::set_has_kernel_size() { - _has_bits_[0] |= 0x00000010u; -} -void PoolingParameter::clear_has_kernel_size() { - _has_bits_[0] &= ~0x00000010u; -} -void PoolingParameter::clear_kernel_size() { - kernel_size_ = 0u; - clear_has_kernel_size(); -} -::google::protobuf::uint32 PoolingParameter::kernel_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.kernel_size) - return kernel_size_; -} -void PoolingParameter::set_kernel_size(::google::protobuf::uint32 value) { - set_has_kernel_size(); - kernel_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.kernel_size) -} - -// optional uint32 kernel_h = 5; -bool PoolingParameter::has_kernel_h() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void PoolingParameter::set_has_kernel_h() { - _has_bits_[0] |= 0x00000020u; -} -void PoolingParameter::clear_has_kernel_h() { - _has_bits_[0] &= ~0x00000020u; -} -void PoolingParameter::clear_kernel_h() { - kernel_h_ = 0u; - clear_has_kernel_h(); -} -::google::protobuf::uint32 PoolingParameter::kernel_h() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.kernel_h) - return kernel_h_; -} -void PoolingParameter::set_kernel_h(::google::protobuf::uint32 value) { - set_has_kernel_h(); - kernel_h_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.kernel_h) -} - -// optional uint32 kernel_w = 6; -bool PoolingParameter::has_kernel_w() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void PoolingParameter::set_has_kernel_w() { - _has_bits_[0] |= 0x00000040u; -} -void PoolingParameter::clear_has_kernel_w() { - _has_bits_[0] &= ~0x00000040u; -} -void PoolingParameter::clear_kernel_w() { - kernel_w_ = 0u; - clear_has_kernel_w(); -} -::google::protobuf::uint32 PoolingParameter::kernel_w() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.kernel_w) - return kernel_w_; -} -void PoolingParameter::set_kernel_w(::google::protobuf::uint32 value) { - set_has_kernel_w(); - kernel_w_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.kernel_w) -} - -// optional uint32 stride = 3 [default = 1]; -bool PoolingParameter::has_stride() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void PoolingParameter::set_has_stride() { - _has_bits_[0] |= 0x00000080u; -} -void PoolingParameter::clear_has_stride() { - _has_bits_[0] &= ~0x00000080u; -} -void PoolingParameter::clear_stride() { - stride_ = 1u; - clear_has_stride(); -} -::google::protobuf::uint32 PoolingParameter::stride() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.stride) - return stride_; -} -void PoolingParameter::set_stride(::google::protobuf::uint32 value) { - set_has_stride(); - stride_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.stride) -} - -// optional uint32 stride_h = 7; -bool PoolingParameter::has_stride_h() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -void PoolingParameter::set_has_stride_h() { - _has_bits_[0] |= 0x00000100u; -} -void PoolingParameter::clear_has_stride_h() { - _has_bits_[0] &= ~0x00000100u; -} -void PoolingParameter::clear_stride_h() { - stride_h_ = 0u; - clear_has_stride_h(); -} -::google::protobuf::uint32 PoolingParameter::stride_h() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.stride_h) - return stride_h_; -} -void PoolingParameter::set_stride_h(::google::protobuf::uint32 value) { - set_has_stride_h(); - stride_h_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.stride_h) -} - -// optional uint32 stride_w = 8; -bool PoolingParameter::has_stride_w() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void PoolingParameter::set_has_stride_w() { - _has_bits_[0] |= 0x00000200u; -} -void PoolingParameter::clear_has_stride_w() { - _has_bits_[0] &= ~0x00000200u; -} -void PoolingParameter::clear_stride_w() { - stride_w_ = 0u; - clear_has_stride_w(); -} -::google::protobuf::uint32 PoolingParameter::stride_w() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.stride_w) - return stride_w_; -} -void PoolingParameter::set_stride_w(::google::protobuf::uint32 value) { - set_has_stride_w(); - stride_w_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.stride_w) -} - -// optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; -bool PoolingParameter::has_engine() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -void PoolingParameter::set_has_engine() { - _has_bits_[0] |= 0x00000400u; -} -void PoolingParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000400u; -} -void PoolingParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -::opencv_caffe::PoolingParameter_Engine PoolingParameter::engine() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.engine) - return static_cast< ::opencv_caffe::PoolingParameter_Engine >(engine_); -} -void PoolingParameter::set_engine(::opencv_caffe::PoolingParameter_Engine value) { - assert(::opencv_caffe::PoolingParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.engine) -} - -// optional bool global_pooling = 12 [default = false]; -bool PoolingParameter::has_global_pooling() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -void PoolingParameter::set_has_global_pooling() { - _has_bits_[0] |= 0x00000800u; -} -void PoolingParameter::clear_has_global_pooling() { - _has_bits_[0] &= ~0x00000800u; -} -void PoolingParameter::clear_global_pooling() { - global_pooling_ = false; - clear_has_global_pooling(); -} -bool PoolingParameter::global_pooling() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.global_pooling) - return global_pooling_; -} -void PoolingParameter::set_global_pooling(bool value) { - set_has_global_pooling(); - global_pooling_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.global_pooling) -} - -// optional bool ceil_mode = 13 [default = true]; -bool PoolingParameter::has_ceil_mode() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -void PoolingParameter::set_has_ceil_mode() { - _has_bits_[0] |= 0x00001000u; -} -void PoolingParameter::clear_has_ceil_mode() { - _has_bits_[0] &= ~0x00001000u; -} -void PoolingParameter::clear_ceil_mode() { - ceil_mode_ = true; - clear_has_ceil_mode(); -} -bool PoolingParameter::ceil_mode() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PoolingParameter.ceil_mode) - return ceil_mode_; -} -void PoolingParameter::set_ceil_mode(bool value) { - set_has_ceil_mode(); - ceil_mode_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.ceil_mode) -} - -inline const PoolingParameter* PoolingParameter::internal_default_instance() { - return &PoolingParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PowerParameter::kPowerFieldNumber; -const int PowerParameter::kScaleFieldNumber; -const int PowerParameter::kShiftFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PowerParameter::PowerParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.PowerParameter) -} - -void PowerParameter::InitAsDefaultInstance() { -} - -PowerParameter::PowerParameter(const PowerParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.PowerParameter) -} - -void PowerParameter::SharedCtor() { - _cached_size_ = 0; - shift_ = 0; - power_ = 1; - scale_ = 1; -} - -PowerParameter::~PowerParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.PowerParameter) - SharedDtor(); -} - -void PowerParameter::SharedDtor() { -} - -void PowerParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PowerParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PowerParameter_descriptor_; -} - -const PowerParameter& PowerParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed PowerParameter_default_instance_; - -PowerParameter* PowerParameter::New(::google::protobuf::Arena* arena) const { - PowerParameter* n = new PowerParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void PowerParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.PowerParameter) - if (_has_bits_[0 / 32] & 7u) { - power_ = 1; - scale_ = 1; - shift_ = 0; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool PowerParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.PowerParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float power = 1 [default = 1]; - case 1: { - if (tag == 13) { - set_has_power(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &power_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (tag == 21) { - parse_scale: - set_has_scale(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_shift; - break; - } - - // optional float shift = 3 [default = 0]; - case 3: { - if (tag == 29) { - parse_shift: - set_has_shift(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &shift_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.PowerParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.PowerParameter) - return false; -#undef DO_ -} - -void PowerParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.PowerParameter) - // optional float power = 1 [default = 1]; - if (has_power()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->power(), output); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); - } - - // optional float shift = 3 [default = 0]; - if (has_shift()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->shift(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.PowerParameter) -} - -::google::protobuf::uint8* PowerParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PowerParameter) - // optional float power = 1 [default = 1]; - if (has_power()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->power(), target); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); - } - - // optional float shift = 3 [default = 0]; - if (has_shift()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->shift(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PowerParameter) - return target; -} - -size_t PowerParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PowerParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional float power = 1 [default = 1]; - if (has_power()) { - total_size += 1 + 4; - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - total_size += 1 + 4; - } - - // optional float shift = 3 [default = 0]; - if (has_shift()) { - total_size += 1 + 4; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PowerParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PowerParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const PowerParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PowerParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PowerParameter) - UnsafeMergeFrom(*source); - } -} - -void PowerParameter::MergeFrom(const PowerParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PowerParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void PowerParameter::UnsafeMergeFrom(const PowerParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_power()) { - set_power(from.power()); - } - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_shift()) { - set_shift(from.shift()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void PowerParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PowerParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PowerParameter::CopyFrom(const PowerParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PowerParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool PowerParameter::IsInitialized() const { - - return true; -} - -void PowerParameter::Swap(PowerParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void PowerParameter::InternalSwap(PowerParameter* other) { - std::swap(power_, other->power_); - std::swap(scale_, other->scale_); - std::swap(shift_, other->shift_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata PowerParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PowerParameter_descriptor_; - metadata.reflection = PowerParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PowerParameter - -// optional float power = 1 [default = 1]; -bool PowerParameter::has_power() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void PowerParameter::set_has_power() { - _has_bits_[0] |= 0x00000001u; -} -void PowerParameter::clear_has_power() { - _has_bits_[0] &= ~0x00000001u; -} -void PowerParameter::clear_power() { - power_ = 1; - clear_has_power(); -} -float PowerParameter::power() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PowerParameter.power) - return power_; -} -void PowerParameter::set_power(float value) { - set_has_power(); - power_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PowerParameter.power) -} - -// optional float scale = 2 [default = 1]; -bool PowerParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void PowerParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; -} -void PowerParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; -} -void PowerParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -float PowerParameter::scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PowerParameter.scale) - return scale_; -} -void PowerParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PowerParameter.scale) -} - -// optional float shift = 3 [default = 0]; -bool PowerParameter::has_shift() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void PowerParameter::set_has_shift() { - _has_bits_[0] |= 0x00000004u; -} -void PowerParameter::clear_has_shift() { - _has_bits_[0] &= ~0x00000004u; -} -void PowerParameter::clear_shift() { - shift_ = 0; - clear_has_shift(); -} -float PowerParameter::shift() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PowerParameter.shift) - return shift_; -} -void PowerParameter::set_shift(float value) { - set_has_shift(); - shift_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PowerParameter.shift) -} - -inline const PowerParameter* PowerParameter::internal_default_instance() { - return &PowerParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PythonParameter::kModuleFieldNumber; -const int PythonParameter::kLayerFieldNumber; -const int PythonParameter::kParamStrFieldNumber; -const int PythonParameter::kShareInParallelFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PythonParameter::PythonParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.PythonParameter) -} - -void PythonParameter::InitAsDefaultInstance() { -} - -PythonParameter::PythonParameter(const PythonParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.PythonParameter) -} - -void PythonParameter::SharedCtor() { - _cached_size_ = 0; - module_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - layer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - param_str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - share_in_parallel_ = false; -} - -PythonParameter::~PythonParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.PythonParameter) - SharedDtor(); -} - -void PythonParameter::SharedDtor() { - module_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - layer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - param_str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void PythonParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* PythonParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PythonParameter_descriptor_; -} - -const PythonParameter& PythonParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed PythonParameter_default_instance_; - -PythonParameter* PythonParameter::New(::google::protobuf::Arena* arena) const { - PythonParameter* n = new PythonParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void PythonParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.PythonParameter) - if (_has_bits_[0 / 32] & 15u) { - if (has_module()) { - module_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_layer()) { - layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_param_str()) { - param_str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - share_in_parallel_ = false; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool PythonParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.PythonParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string module = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_module())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->module().data(), this->module().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.PythonParameter.module"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_layer; - break; - } - - // optional string layer = 2; - case 2: { - if (tag == 18) { - parse_layer: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_layer())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->layer().data(), this->layer().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.PythonParameter.layer"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_param_str; - break; - } - - // optional string param_str = 3 [default = ""]; - case 3: { - if (tag == 26) { - parse_param_str: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_param_str())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->param_str().data(), this->param_str().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.PythonParameter.param_str"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_share_in_parallel; - break; - } - - // optional bool share_in_parallel = 4 [default = false]; - case 4: { - if (tag == 32) { - parse_share_in_parallel: - set_has_share_in_parallel(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &share_in_parallel_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.PythonParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.PythonParameter) - return false; -#undef DO_ -} - -void PythonParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.PythonParameter) - // optional string module = 1; - if (has_module()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->module().data(), this->module().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.PythonParameter.module"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->module(), output); - } - - // optional string layer = 2; - if (has_layer()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->layer().data(), this->layer().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.PythonParameter.layer"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->layer(), output); - } - - // optional string param_str = 3 [default = ""]; - if (has_param_str()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->param_str().data(), this->param_str().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.PythonParameter.param_str"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->param_str(), output); - } - - // optional bool share_in_parallel = 4 [default = false]; - if (has_share_in_parallel()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->share_in_parallel(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.PythonParameter) -} - -::google::protobuf::uint8* PythonParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PythonParameter) - // optional string module = 1; - if (has_module()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->module().data(), this->module().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.PythonParameter.module"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->module(), target); - } - - // optional string layer = 2; - if (has_layer()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->layer().data(), this->layer().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.PythonParameter.layer"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->layer(), target); - } - - // optional string param_str = 3 [default = ""]; - if (has_param_str()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->param_str().data(), this->param_str().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.PythonParameter.param_str"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->param_str(), target); - } - - // optional bool share_in_parallel = 4 [default = false]; - if (has_share_in_parallel()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->share_in_parallel(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PythonParameter) - return target; -} - -size_t PythonParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PythonParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 15u) { - // optional string module = 1; - if (has_module()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->module()); - } - - // optional string layer = 2; - if (has_layer()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->layer()); - } - - // optional string param_str = 3 [default = ""]; - if (has_param_str()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->param_str()); - } - - // optional bool share_in_parallel = 4 [default = false]; - if (has_share_in_parallel()) { - total_size += 1 + 1; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void PythonParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PythonParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const PythonParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PythonParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PythonParameter) - UnsafeMergeFrom(*source); - } -} - -void PythonParameter::MergeFrom(const PythonParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PythonParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void PythonParameter::UnsafeMergeFrom(const PythonParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_module()) { - set_has_module(); - module_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.module_); - } - if (from.has_layer()) { - set_has_layer(); - layer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.layer_); - } - if (from.has_param_str()) { - set_has_param_str(); - param_str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.param_str_); - } - if (from.has_share_in_parallel()) { - set_share_in_parallel(from.share_in_parallel()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void PythonParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PythonParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PythonParameter::CopyFrom(const PythonParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PythonParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool PythonParameter::IsInitialized() const { - - return true; -} - -void PythonParameter::Swap(PythonParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void PythonParameter::InternalSwap(PythonParameter* other) { - module_.Swap(&other->module_); - layer_.Swap(&other->layer_); - param_str_.Swap(&other->param_str_); - std::swap(share_in_parallel_, other->share_in_parallel_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata PythonParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PythonParameter_descriptor_; - metadata.reflection = PythonParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PythonParameter - -// optional string module = 1; -bool PythonParameter::has_module() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void PythonParameter::set_has_module() { - _has_bits_[0] |= 0x00000001u; -} -void PythonParameter::clear_has_module() { - _has_bits_[0] &= ~0x00000001u; -} -void PythonParameter::clear_module() { - module_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_module(); -} -const ::std::string& PythonParameter::module() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PythonParameter.module) - return module_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void PythonParameter::set_module(const ::std::string& value) { - set_has_module(); - module_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.PythonParameter.module) -} -void PythonParameter::set_module(const char* value) { - set_has_module(); - module_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.PythonParameter.module) -} -void PythonParameter::set_module(const char* value, size_t size) { - set_has_module(); - module_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.PythonParameter.module) -} -::std::string* PythonParameter::mutable_module() { - set_has_module(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.PythonParameter.module) - return module_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* PythonParameter::release_module() { - // @@protoc_insertion_point(field_release:opencv_caffe.PythonParameter.module) - clear_has_module(); - return module_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void PythonParameter::set_allocated_module(::std::string* module) { - if (module != NULL) { - set_has_module(); - } else { - clear_has_module(); - } - module_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), module); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.PythonParameter.module) -} - -// optional string layer = 2; -bool PythonParameter::has_layer() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void PythonParameter::set_has_layer() { - _has_bits_[0] |= 0x00000002u; -} -void PythonParameter::clear_has_layer() { - _has_bits_[0] &= ~0x00000002u; -} -void PythonParameter::clear_layer() { - layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_layer(); -} -const ::std::string& PythonParameter::layer() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PythonParameter.layer) - return layer_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void PythonParameter::set_layer(const ::std::string& value) { - set_has_layer(); - layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.PythonParameter.layer) -} -void PythonParameter::set_layer(const char* value) { - set_has_layer(); - layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.PythonParameter.layer) -} -void PythonParameter::set_layer(const char* value, size_t size) { - set_has_layer(); - layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.PythonParameter.layer) -} -::std::string* PythonParameter::mutable_layer() { - set_has_layer(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.PythonParameter.layer) - return layer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* PythonParameter::release_layer() { - // @@protoc_insertion_point(field_release:opencv_caffe.PythonParameter.layer) - clear_has_layer(); - return layer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void PythonParameter::set_allocated_layer(::std::string* layer) { - if (layer != NULL) { - set_has_layer(); - } else { - clear_has_layer(); - } - layer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), layer); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.PythonParameter.layer) -} - -// optional string param_str = 3 [default = ""]; -bool PythonParameter::has_param_str() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void PythonParameter::set_has_param_str() { - _has_bits_[0] |= 0x00000004u; -} -void PythonParameter::clear_has_param_str() { - _has_bits_[0] &= ~0x00000004u; -} -void PythonParameter::clear_param_str() { - param_str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_param_str(); -} -const ::std::string& PythonParameter::param_str() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PythonParameter.param_str) - return param_str_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void PythonParameter::set_param_str(const ::std::string& value) { - set_has_param_str(); - param_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.PythonParameter.param_str) -} -void PythonParameter::set_param_str(const char* value) { - set_has_param_str(); - param_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.PythonParameter.param_str) -} -void PythonParameter::set_param_str(const char* value, size_t size) { - set_has_param_str(); - param_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.PythonParameter.param_str) -} -::std::string* PythonParameter::mutable_param_str() { - set_has_param_str(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.PythonParameter.param_str) - return param_str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* PythonParameter::release_param_str() { - // @@protoc_insertion_point(field_release:opencv_caffe.PythonParameter.param_str) - clear_has_param_str(); - return param_str_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void PythonParameter::set_allocated_param_str(::std::string* param_str) { - if (param_str != NULL) { - set_has_param_str(); - } else { - clear_has_param_str(); - } - param_str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), param_str); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.PythonParameter.param_str) -} - -// optional bool share_in_parallel = 4 [default = false]; -bool PythonParameter::has_share_in_parallel() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void PythonParameter::set_has_share_in_parallel() { - _has_bits_[0] |= 0x00000008u; -} -void PythonParameter::clear_has_share_in_parallel() { - _has_bits_[0] &= ~0x00000008u; -} -void PythonParameter::clear_share_in_parallel() { - share_in_parallel_ = false; - clear_has_share_in_parallel(); -} -bool PythonParameter::share_in_parallel() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PythonParameter.share_in_parallel) - return share_in_parallel_; -} -void PythonParameter::set_share_in_parallel(bool value) { - set_has_share_in_parallel(); - share_in_parallel_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PythonParameter.share_in_parallel) -} - -inline const PythonParameter* PythonParameter::internal_default_instance() { - return &PythonParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RecurrentParameter::kNumOutputFieldNumber; -const int RecurrentParameter::kWeightFillerFieldNumber; -const int RecurrentParameter::kBiasFillerFieldNumber; -const int RecurrentParameter::kDebugInfoFieldNumber; -const int RecurrentParameter::kExposeHiddenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RecurrentParameter::RecurrentParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.RecurrentParameter) -} - -void RecurrentParameter::InitAsDefaultInstance() { - weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); - bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); -} - -RecurrentParameter::RecurrentParameter(const RecurrentParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.RecurrentParameter) -} - -void RecurrentParameter::SharedCtor() { - _cached_size_ = 0; - weight_filler_ = NULL; - bias_filler_ = NULL; - ::memset(&num_output_, 0, reinterpret_cast(&expose_hidden_) - - reinterpret_cast(&num_output_) + sizeof(expose_hidden_)); -} - -RecurrentParameter::~RecurrentParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.RecurrentParameter) - SharedDtor(); -} - -void RecurrentParameter::SharedDtor() { - if (this != &RecurrentParameter_default_instance_.get()) { - delete weight_filler_; - delete bias_filler_; - } -} - -void RecurrentParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* RecurrentParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return RecurrentParameter_descriptor_; -} - -const RecurrentParameter& RecurrentParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed RecurrentParameter_default_instance_; - -RecurrentParameter* RecurrentParameter::New(::google::protobuf::Arena* arena) const { - RecurrentParameter* n = new RecurrentParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void RecurrentParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.RecurrentParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(RecurrentParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 31u) { - ZR_(num_output_, expose_hidden_); - if (has_weight_filler()) { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - } - if (has_bias_filler()) { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - } - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool RecurrentParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.RecurrentParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 num_output = 1 [default = 0]; - case 1: { - if (tag == 8) { - set_has_num_output(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &num_output_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_weight_filler; - break; - } - - // optional .opencv_caffe.FillerParameter weight_filler = 2; - case 2: { - if (tag == 18) { - parse_weight_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_weight_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_bias_filler; - break; - } - - // optional .opencv_caffe.FillerParameter bias_filler = 3; - case 3: { - if (tag == 26) { - parse_bias_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bias_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_debug_info; - break; - } - - // optional bool debug_info = 4 [default = false]; - case 4: { - if (tag == 32) { - parse_debug_info: - set_has_debug_info(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &debug_info_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_expose_hidden; - break; - } - - // optional bool expose_hidden = 5 [default = false]; - case 5: { - if (tag == 40) { - parse_expose_hidden: - set_has_expose_hidden(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &expose_hidden_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.RecurrentParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.RecurrentParameter) - return false; -#undef DO_ -} - -void RecurrentParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.RecurrentParameter) - // optional uint32 num_output = 1 [default = 0]; - if (has_num_output()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 2; - if (has_weight_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->weight_filler_, output); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 3; - if (has_bias_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->bias_filler_, output); - } - - // optional bool debug_info = 4 [default = false]; - if (has_debug_info()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->debug_info(), output); - } - - // optional bool expose_hidden = 5 [default = false]; - if (has_expose_hidden()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->expose_hidden(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.RecurrentParameter) -} - -::google::protobuf::uint8* RecurrentParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.RecurrentParameter) - // optional uint32 num_output = 1 [default = 0]; - if (has_num_output()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 2; - if (has_weight_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->weight_filler_, false, target); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 3; - if (has_bias_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->bias_filler_, false, target); - } - - // optional bool debug_info = 4 [default = false]; - if (has_debug_info()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->debug_info(), target); - } - - // optional bool expose_hidden = 5 [default = false]; - if (has_expose_hidden()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->expose_hidden(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.RecurrentParameter) - return target; -} - -size_t RecurrentParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.RecurrentParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 31u) { - // optional uint32 num_output = 1 [default = 0]; - if (has_num_output()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->num_output()); - } - - // optional .opencv_caffe.FillerParameter weight_filler = 2; - if (has_weight_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->weight_filler_); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 3; - if (has_bias_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->bias_filler_); - } - - // optional bool debug_info = 4 [default = false]; - if (has_debug_info()) { - total_size += 1 + 1; - } - - // optional bool expose_hidden = 5 [default = false]; - if (has_expose_hidden()) { - total_size += 1 + 1; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void RecurrentParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.RecurrentParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const RecurrentParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.RecurrentParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.RecurrentParameter) - UnsafeMergeFrom(*source); - } -} - -void RecurrentParameter::MergeFrom(const RecurrentParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.RecurrentParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void RecurrentParameter::UnsafeMergeFrom(const RecurrentParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_num_output()) { - set_num_output(from.num_output()); - } - if (from.has_weight_filler()) { - mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); - } - if (from.has_bias_filler()) { - mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); - } - if (from.has_debug_info()) { - set_debug_info(from.debug_info()); - } - if (from.has_expose_hidden()) { - set_expose_hidden(from.expose_hidden()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void RecurrentParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.RecurrentParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RecurrentParameter::CopyFrom(const RecurrentParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.RecurrentParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool RecurrentParameter::IsInitialized() const { - - return true; -} - -void RecurrentParameter::Swap(RecurrentParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void RecurrentParameter::InternalSwap(RecurrentParameter* other) { - std::swap(num_output_, other->num_output_); - std::swap(weight_filler_, other->weight_filler_); - std::swap(bias_filler_, other->bias_filler_); - std::swap(debug_info_, other->debug_info_); - std::swap(expose_hidden_, other->expose_hidden_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata RecurrentParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = RecurrentParameter_descriptor_; - metadata.reflection = RecurrentParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RecurrentParameter - -// optional uint32 num_output = 1 [default = 0]; -bool RecurrentParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void RecurrentParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; -} -void RecurrentParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; -} -void RecurrentParameter::clear_num_output() { - num_output_ = 0u; - clear_has_num_output(); -} -::google::protobuf::uint32 RecurrentParameter::num_output() const { - // @@protoc_insertion_point(field_get:opencv_caffe.RecurrentParameter.num_output) - return num_output_; -} -void RecurrentParameter::set_num_output(::google::protobuf::uint32 value) { - set_has_num_output(); - num_output_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.RecurrentParameter.num_output) -} - -// optional .opencv_caffe.FillerParameter weight_filler = 2; -bool RecurrentParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void RecurrentParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000002u; -} -void RecurrentParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000002u; -} -void RecurrentParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_weight_filler(); -} -const ::opencv_caffe::FillerParameter& RecurrentParameter::weight_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.RecurrentParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* RecurrentParameter::mutable_weight_filler() { - set_has_weight_filler(); - if (weight_filler_ == NULL) { - weight_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.RecurrentParameter.weight_filler) - return weight_filler_; -} -::opencv_caffe::FillerParameter* RecurrentParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.RecurrentParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} -void RecurrentParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; - if (weight_filler) { - set_has_weight_filler(); - } else { - clear_has_weight_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.RecurrentParameter.weight_filler) -} - -// optional .opencv_caffe.FillerParameter bias_filler = 3; -bool RecurrentParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void RecurrentParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000004u; -} -void RecurrentParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000004u; -} -void RecurrentParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_bias_filler(); -} -const ::opencv_caffe::FillerParameter& RecurrentParameter::bias_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.RecurrentParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* RecurrentParameter::mutable_bias_filler() { - set_has_bias_filler(); - if (bias_filler_ == NULL) { - bias_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.RecurrentParameter.bias_filler) - return bias_filler_; -} -::opencv_caffe::FillerParameter* RecurrentParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.RecurrentParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} -void RecurrentParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; - if (bias_filler) { - set_has_bias_filler(); - } else { - clear_has_bias_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.RecurrentParameter.bias_filler) -} - -// optional bool debug_info = 4 [default = false]; -bool RecurrentParameter::has_debug_info() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void RecurrentParameter::set_has_debug_info() { - _has_bits_[0] |= 0x00000008u; -} -void RecurrentParameter::clear_has_debug_info() { - _has_bits_[0] &= ~0x00000008u; -} -void RecurrentParameter::clear_debug_info() { - debug_info_ = false; - clear_has_debug_info(); -} -bool RecurrentParameter::debug_info() const { - // @@protoc_insertion_point(field_get:opencv_caffe.RecurrentParameter.debug_info) - return debug_info_; -} -void RecurrentParameter::set_debug_info(bool value) { - set_has_debug_info(); - debug_info_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.RecurrentParameter.debug_info) -} - -// optional bool expose_hidden = 5 [default = false]; -bool RecurrentParameter::has_expose_hidden() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void RecurrentParameter::set_has_expose_hidden() { - _has_bits_[0] |= 0x00000010u; -} -void RecurrentParameter::clear_has_expose_hidden() { - _has_bits_[0] &= ~0x00000010u; -} -void RecurrentParameter::clear_expose_hidden() { - expose_hidden_ = false; - clear_has_expose_hidden(); -} -bool RecurrentParameter::expose_hidden() const { - // @@protoc_insertion_point(field_get:opencv_caffe.RecurrentParameter.expose_hidden) - return expose_hidden_; -} -void RecurrentParameter::set_expose_hidden(bool value) { - set_has_expose_hidden(); - expose_hidden_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.RecurrentParameter.expose_hidden) -} - -inline const RecurrentParameter* RecurrentParameter::internal_default_instance() { - return &RecurrentParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* ReductionParameter_ReductionOp_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ReductionParameter_ReductionOp_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[15]; } bool ReductionParameter_ReductionOp_IsValid(int value) { switch (value) { @@ -40898,423 +4365,9 @@ const ReductionParameter_ReductionOp ReductionParameter::ReductionOp_MIN; const ReductionParameter_ReductionOp ReductionParameter::ReductionOp_MAX; const int ReductionParameter::ReductionOp_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReductionParameter::kOperationFieldNumber; -const int ReductionParameter::kAxisFieldNumber; -const int ReductionParameter::kCoeffFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReductionParameter::ReductionParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ReductionParameter) -} - -void ReductionParameter::InitAsDefaultInstance() { -} - -ReductionParameter::ReductionParameter(const ReductionParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ReductionParameter) -} - -void ReductionParameter::SharedCtor() { - _cached_size_ = 0; - axis_ = 0; - operation_ = 1; - coeff_ = 1; -} - -ReductionParameter::~ReductionParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ReductionParameter) - SharedDtor(); -} - -void ReductionParameter::SharedDtor() { -} - -void ReductionParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ReductionParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ReductionParameter_descriptor_; -} - -const ReductionParameter& ReductionParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ReductionParameter_default_instance_; - -ReductionParameter* ReductionParameter::New(::google::protobuf::Arena* arena) const { - ReductionParameter* n = new ReductionParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ReductionParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ReductionParameter) - if (_has_bits_[0 / 32] & 7u) { - operation_ = 1; - axis_ = 0; - coeff_ = 1; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ReductionParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ReductionParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::ReductionParameter_ReductionOp_IsValid(value)) { - set_operation(static_cast< ::opencv_caffe::ReductionParameter_ReductionOp >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 0]; - case 2: { - if (tag == 16) { - parse_axis: - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(29)) goto parse_coeff; - break; - } - - // optional float coeff = 3 [default = 1]; - case 3: { - if (tag == 29) { - parse_coeff: - set_has_coeff(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &coeff_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ReductionParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ReductionParameter) - return false; -#undef DO_ -} - -void ReductionParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ReductionParameter) - // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; - if (has_operation()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->operation(), output); - } - - // optional int32 axis = 2 [default = 0]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); - } - - // optional float coeff = 3 [default = 1]; - if (has_coeff()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->coeff(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ReductionParameter) -} - -::google::protobuf::uint8* ReductionParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ReductionParameter) - // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; - if (has_operation()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->operation(), target); - } - - // optional int32 axis = 2 [default = 0]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); - } - - // optional float coeff = 3 [default = 1]; - if (has_coeff()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->coeff(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ReductionParameter) - return target; -} - -size_t ReductionParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ReductionParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; - if (has_operation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation()); - } - - // optional int32 axis = 2 [default = 0]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional float coeff = 3 [default = 1]; - if (has_coeff()) { - total_size += 1 + 4; - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReductionParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ReductionParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ReductionParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ReductionParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ReductionParameter) - UnsafeMergeFrom(*source); - } -} - -void ReductionParameter::MergeFrom(const ReductionParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ReductionParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ReductionParameter::UnsafeMergeFrom(const ReductionParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_operation()) { - set_operation(from.operation()); - } - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_coeff()) { - set_coeff(from.coeff()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ReductionParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ReductionParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReductionParameter::CopyFrom(const ReductionParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ReductionParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ReductionParameter::IsInitialized() const { - - return true; -} - -void ReductionParameter::Swap(ReductionParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ReductionParameter::InternalSwap(ReductionParameter* other) { - std::swap(operation_, other->operation_); - std::swap(axis_, other->axis_); - std::swap(coeff_, other->coeff_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ReductionParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ReductionParameter_descriptor_; - metadata.reflection = ReductionParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ReductionParameter - -// optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; -bool ReductionParameter::has_operation() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ReductionParameter::set_has_operation() { - _has_bits_[0] |= 0x00000001u; -} -void ReductionParameter::clear_has_operation() { - _has_bits_[0] &= ~0x00000001u; -} -void ReductionParameter::clear_operation() { - operation_ = 1; - clear_has_operation(); -} -::opencv_caffe::ReductionParameter_ReductionOp ReductionParameter::operation() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ReductionParameter.operation) - return static_cast< ::opencv_caffe::ReductionParameter_ReductionOp >(operation_); -} -void ReductionParameter::set_operation(::opencv_caffe::ReductionParameter_ReductionOp value) { - assert(::opencv_caffe::ReductionParameter_ReductionOp_IsValid(value)); - set_has_operation(); - operation_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ReductionParameter.operation) -} - -// optional int32 axis = 2 [default = 0]; -bool ReductionParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ReductionParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; -} -void ReductionParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; -} -void ReductionParameter::clear_axis() { - axis_ = 0; - clear_has_axis(); -} -::google::protobuf::int32 ReductionParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ReductionParameter.axis) - return axis_; -} -void ReductionParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ReductionParameter.axis) -} - -// optional float coeff = 3 [default = 1]; -bool ReductionParameter::has_coeff() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void ReductionParameter::set_has_coeff() { - _has_bits_[0] |= 0x00000004u; -} -void ReductionParameter::clear_has_coeff() { - _has_bits_[0] &= ~0x00000004u; -} -void ReductionParameter::clear_coeff() { - coeff_ = 1; - clear_has_coeff(); -} -float ReductionParameter::coeff() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ReductionParameter.coeff) - return coeff_; -} -void ReductionParameter::set_coeff(float value) { - set_has_coeff(); - coeff_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ReductionParameter.coeff) -} - -inline const ReductionParameter* ReductionParameter::internal_default_instance() { - return &ReductionParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* ReLUParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return ReLUParameter_Engine_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[16]; } bool ReLUParameter_Engine_IsValid(int value) { switch (value) { @@ -41335,1404 +4388,9 @@ const ReLUParameter_Engine ReLUParameter::Engine_MIN; const ReLUParameter_Engine ReLUParameter::Engine_MAX; const int ReLUParameter::Engine_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReLUParameter::kNegativeSlopeFieldNumber; -const int ReLUParameter::kEngineFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReLUParameter::ReLUParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ReLUParameter) -} - -void ReLUParameter::InitAsDefaultInstance() { -} - -ReLUParameter::ReLUParameter(const ReLUParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ReLUParameter) -} - -void ReLUParameter::SharedCtor() { - _cached_size_ = 0; - ::memset(&negative_slope_, 0, reinterpret_cast(&engine_) - - reinterpret_cast(&negative_slope_) + sizeof(engine_)); -} - -ReLUParameter::~ReLUParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ReLUParameter) - SharedDtor(); -} - -void ReLUParameter::SharedDtor() { -} - -void ReLUParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ReLUParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ReLUParameter_descriptor_; -} - -const ReLUParameter& ReLUParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ReLUParameter_default_instance_; - -ReLUParameter* ReLUParameter::New(::google::protobuf::Arena* arena) const { - ReLUParameter* n = new ReLUParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ReLUParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ReLUParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(ReLUParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(negative_slope_, engine_); - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ReLUParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ReLUParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float negative_slope = 1 [default = 0]; - case 1: { - if (tag == 13) { - set_has_negative_slope(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &negative_slope_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_engine; - break; - } - - // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; - case 2: { - if (tag == 16) { - parse_engine: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::ReLUParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::opencv_caffe::ReLUParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ReLUParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ReLUParameter) - return false; -#undef DO_ -} - -void ReLUParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ReLUParameter) - // optional float negative_slope = 1 [default = 0]; - if (has_negative_slope()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->negative_slope(), output); - } - - // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->engine(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ReLUParameter) -} - -::google::protobuf::uint8* ReLUParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ReLUParameter) - // optional float negative_slope = 1 [default = 0]; - if (has_negative_slope()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->negative_slope(), target); - } - - // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->engine(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ReLUParameter) - return target; -} - -size_t ReLUParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ReLUParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 3u) { - // optional float negative_slope = 1 [default = 0]; - if (has_negative_slope()) { - total_size += 1 + 4; - } - - // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReLUParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ReLUParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ReLUParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ReLUParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ReLUParameter) - UnsafeMergeFrom(*source); - } -} - -void ReLUParameter::MergeFrom(const ReLUParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ReLUParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ReLUParameter::UnsafeMergeFrom(const ReLUParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_negative_slope()) { - set_negative_slope(from.negative_slope()); - } - if (from.has_engine()) { - set_engine(from.engine()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ReLUParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ReLUParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReLUParameter::CopyFrom(const ReLUParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ReLUParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ReLUParameter::IsInitialized() const { - - return true; -} - -void ReLUParameter::Swap(ReLUParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ReLUParameter::InternalSwap(ReLUParameter* other) { - std::swap(negative_slope_, other->negative_slope_); - std::swap(engine_, other->engine_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ReLUParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ReLUParameter_descriptor_; - metadata.reflection = ReLUParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ReLUParameter - -// optional float negative_slope = 1 [default = 0]; -bool ReLUParameter::has_negative_slope() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ReLUParameter::set_has_negative_slope() { - _has_bits_[0] |= 0x00000001u; -} -void ReLUParameter::clear_has_negative_slope() { - _has_bits_[0] &= ~0x00000001u; -} -void ReLUParameter::clear_negative_slope() { - negative_slope_ = 0; - clear_has_negative_slope(); -} -float ReLUParameter::negative_slope() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ReLUParameter.negative_slope) - return negative_slope_; -} -void ReLUParameter::set_negative_slope(float value) { - set_has_negative_slope(); - negative_slope_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ReLUParameter.negative_slope) -} - -// optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; -bool ReLUParameter::has_engine() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ReLUParameter::set_has_engine() { - _has_bits_[0] |= 0x00000002u; -} -void ReLUParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000002u; -} -void ReLUParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -::opencv_caffe::ReLUParameter_Engine ReLUParameter::engine() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ReLUParameter.engine) - return static_cast< ::opencv_caffe::ReLUParameter_Engine >(engine_); -} -void ReLUParameter::set_engine(::opencv_caffe::ReLUParameter_Engine value) { - assert(::opencv_caffe::ReLUParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ReLUParameter.engine) -} - -inline const ReLUParameter* ReLUParameter::internal_default_instance() { - return &ReLUParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReshapeParameter::kShapeFieldNumber; -const int ReshapeParameter::kAxisFieldNumber; -const int ReshapeParameter::kNumAxesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReshapeParameter::ReshapeParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ReshapeParameter) -} - -void ReshapeParameter::InitAsDefaultInstance() { - shape_ = const_cast< ::opencv_caffe::BlobShape*>( - ::opencv_caffe::BlobShape::internal_default_instance()); -} - -ReshapeParameter::ReshapeParameter(const ReshapeParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ReshapeParameter) -} - -void ReshapeParameter::SharedCtor() { - _cached_size_ = 0; - shape_ = NULL; - axis_ = 0; - num_axes_ = -1; -} - -ReshapeParameter::~ReshapeParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ReshapeParameter) - SharedDtor(); -} - -void ReshapeParameter::SharedDtor() { - if (this != &ReshapeParameter_default_instance_.get()) { - delete shape_; - } -} - -void ReshapeParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ReshapeParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ReshapeParameter_descriptor_; -} - -const ReshapeParameter& ReshapeParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ReshapeParameter_default_instance_; - -ReshapeParameter* ReshapeParameter::New(::google::protobuf::Arena* arena) const { - ReshapeParameter* n = new ReshapeParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ReshapeParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ReshapeParameter) - if (_has_bits_[0 / 32] & 7u) { - if (has_shape()) { - if (shape_ != NULL) shape_->::opencv_caffe::BlobShape::Clear(); - } - axis_ = 0; - num_axes_ = -1; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ReshapeParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ReshapeParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.BlobShape shape = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_shape())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 0]; - case 2: { - if (tag == 16) { - parse_axis: - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_num_axes; - break; - } - - // optional int32 num_axes = 3 [default = -1]; - case 3: { - if (tag == 24) { - parse_num_axes: - set_has_num_axes(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &num_axes_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ReshapeParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ReshapeParameter) - return false; -#undef DO_ -} - -void ReshapeParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ReshapeParameter) - // optional .opencv_caffe.BlobShape shape = 1; - if (has_shape()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->shape_, output); - } - - // optional int32 axis = 2 [default = 0]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); - } - - // optional int32 num_axes = 3 [default = -1]; - if (has_num_axes()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->num_axes(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ReshapeParameter) -} - -::google::protobuf::uint8* ReshapeParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ReshapeParameter) - // optional .opencv_caffe.BlobShape shape = 1; - if (has_shape()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->shape_, false, target); - } - - // optional int32 axis = 2 [default = 0]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); - } - - // optional int32 num_axes = 3 [default = -1]; - if (has_num_axes()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->num_axes(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ReshapeParameter) - return target; -} - -size_t ReshapeParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ReshapeParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional .opencv_caffe.BlobShape shape = 1; - if (has_shape()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->shape_); - } - - // optional int32 axis = 2 [default = 0]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional int32 num_axes = 3 [default = -1]; - if (has_num_axes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->num_axes()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ReshapeParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ReshapeParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ReshapeParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ReshapeParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ReshapeParameter) - UnsafeMergeFrom(*source); - } -} - -void ReshapeParameter::MergeFrom(const ReshapeParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ReshapeParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ReshapeParameter::UnsafeMergeFrom(const ReshapeParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_shape()) { - mutable_shape()->::opencv_caffe::BlobShape::MergeFrom(from.shape()); - } - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_num_axes()) { - set_num_axes(from.num_axes()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ReshapeParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ReshapeParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReshapeParameter::CopyFrom(const ReshapeParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ReshapeParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ReshapeParameter::IsInitialized() const { - - return true; -} - -void ReshapeParameter::Swap(ReshapeParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ReshapeParameter::InternalSwap(ReshapeParameter* other) { - std::swap(shape_, other->shape_); - std::swap(axis_, other->axis_); - std::swap(num_axes_, other->num_axes_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ReshapeParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ReshapeParameter_descriptor_; - metadata.reflection = ReshapeParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ReshapeParameter - -// optional .opencv_caffe.BlobShape shape = 1; -bool ReshapeParameter::has_shape() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ReshapeParameter::set_has_shape() { - _has_bits_[0] |= 0x00000001u; -} -void ReshapeParameter::clear_has_shape() { - _has_bits_[0] &= ~0x00000001u; -} -void ReshapeParameter::clear_shape() { - if (shape_ != NULL) shape_->::opencv_caffe::BlobShape::Clear(); - clear_has_shape(); -} -const ::opencv_caffe::BlobShape& ReshapeParameter::shape() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ReshapeParameter.shape) - return shape_ != NULL ? *shape_ - : *::opencv_caffe::BlobShape::internal_default_instance(); -} -::opencv_caffe::BlobShape* ReshapeParameter::mutable_shape() { - set_has_shape(); - if (shape_ == NULL) { - shape_ = new ::opencv_caffe::BlobShape; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.ReshapeParameter.shape) - return shape_; -} -::opencv_caffe::BlobShape* ReshapeParameter::release_shape() { - // @@protoc_insertion_point(field_release:opencv_caffe.ReshapeParameter.shape) - clear_has_shape(); - ::opencv_caffe::BlobShape* temp = shape_; - shape_ = NULL; - return temp; -} -void ReshapeParameter::set_allocated_shape(::opencv_caffe::BlobShape* shape) { - delete shape_; - shape_ = shape; - if (shape) { - set_has_shape(); - } else { - clear_has_shape(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ReshapeParameter.shape) -} - -// optional int32 axis = 2 [default = 0]; -bool ReshapeParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ReshapeParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; -} -void ReshapeParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; -} -void ReshapeParameter::clear_axis() { - axis_ = 0; - clear_has_axis(); -} -::google::protobuf::int32 ReshapeParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ReshapeParameter.axis) - return axis_; -} -void ReshapeParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ReshapeParameter.axis) -} - -// optional int32 num_axes = 3 [default = -1]; -bool ReshapeParameter::has_num_axes() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void ReshapeParameter::set_has_num_axes() { - _has_bits_[0] |= 0x00000004u; -} -void ReshapeParameter::clear_has_num_axes() { - _has_bits_[0] &= ~0x00000004u; -} -void ReshapeParameter::clear_num_axes() { - num_axes_ = -1; - clear_has_num_axes(); -} -::google::protobuf::int32 ReshapeParameter::num_axes() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ReshapeParameter.num_axes) - return num_axes_; -} -void ReshapeParameter::set_num_axes(::google::protobuf::int32 value) { - set_has_num_axes(); - num_axes_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ReshapeParameter.num_axes) -} - -inline const ReshapeParameter* ReshapeParameter::internal_default_instance() { - return &ReshapeParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ScaleParameter::kAxisFieldNumber; -const int ScaleParameter::kNumAxesFieldNumber; -const int ScaleParameter::kFillerFieldNumber; -const int ScaleParameter::kBiasTermFieldNumber; -const int ScaleParameter::kBiasFillerFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ScaleParameter::ScaleParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ScaleParameter) -} - -void ScaleParameter::InitAsDefaultInstance() { - filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); - bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); -} - -ScaleParameter::ScaleParameter(const ScaleParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ScaleParameter) -} - -void ScaleParameter::SharedCtor() { - _cached_size_ = 0; - filler_ = NULL; - bias_filler_ = NULL; - bias_term_ = false; - axis_ = 1; - num_axes_ = 1; -} - -ScaleParameter::~ScaleParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ScaleParameter) - SharedDtor(); -} - -void ScaleParameter::SharedDtor() { - if (this != &ScaleParameter_default_instance_.get()) { - delete filler_; - delete bias_filler_; - } -} - -void ScaleParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ScaleParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ScaleParameter_descriptor_; -} - -const ScaleParameter& ScaleParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ScaleParameter_default_instance_; - -ScaleParameter* ScaleParameter::New(::google::protobuf::Arena* arena) const { - ScaleParameter* n = new ScaleParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ScaleParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ScaleParameter) - if (_has_bits_[0 / 32] & 31u) { - axis_ = 1; - num_axes_ = 1; - if (has_filler()) { - if (filler_ != NULL) filler_->::opencv_caffe::FillerParameter::Clear(); - } - bias_term_ = false; - if (has_bias_filler()) { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - } - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ScaleParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ScaleParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 axis = 1 [default = 1]; - case 1: { - if (tag == 8) { - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_num_axes; - break; - } - - // optional int32 num_axes = 2 [default = 1]; - case 2: { - if (tag == 16) { - parse_num_axes: - set_has_num_axes(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &num_axes_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_filler; - break; - } - - // optional .opencv_caffe.FillerParameter filler = 3; - case 3: { - if (tag == 26) { - parse_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_bias_term; - break; - } - - // optional bool bias_term = 4 [default = false]; - case 4: { - if (tag == 32) { - parse_bias_term: - set_has_bias_term(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &bias_term_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_bias_filler; - break; - } - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - case 5: { - if (tag == 42) { - parse_bias_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_bias_filler())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ScaleParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ScaleParameter) - return false; -#undef DO_ -} - -void ScaleParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ScaleParameter) - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); - } - - // optional int32 num_axes = 2 [default = 1]; - if (has_num_axes()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_axes(), output); - } - - // optional .opencv_caffe.FillerParameter filler = 3; - if (has_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->filler_, output); - } - - // optional bool bias_term = 4 [default = false]; - if (has_bias_term()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->bias_term(), output); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - if (has_bias_filler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *this->bias_filler_, output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ScaleParameter) -} - -::google::protobuf::uint8* ScaleParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ScaleParameter) - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); - } - - // optional int32 num_axes = 2 [default = 1]; - if (has_num_axes()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_axes(), target); - } - - // optional .opencv_caffe.FillerParameter filler = 3; - if (has_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->filler_, false, target); - } - - // optional bool bias_term = 4 [default = false]; - if (has_bias_term()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->bias_term(), target); - } - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - if (has_bias_filler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *this->bias_filler_, false, target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ScaleParameter) - return target; -} - -size_t ScaleParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ScaleParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 31u) { - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional int32 num_axes = 2 [default = 1]; - if (has_num_axes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->num_axes()); - } - - // optional .opencv_caffe.FillerParameter filler = 3; - if (has_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->filler_); - } - - // optional bool bias_term = 4 [default = false]; - if (has_bias_term()) { - total_size += 1 + 1; - } - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - if (has_bias_filler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->bias_filler_); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ScaleParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ScaleParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ScaleParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ScaleParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ScaleParameter) - UnsafeMergeFrom(*source); - } -} - -void ScaleParameter::MergeFrom(const ScaleParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ScaleParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ScaleParameter::UnsafeMergeFrom(const ScaleParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_num_axes()) { - set_num_axes(from.num_axes()); - } - if (from.has_filler()) { - mutable_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.filler()); - } - if (from.has_bias_term()) { - set_bias_term(from.bias_term()); - } - if (from.has_bias_filler()) { - mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ScaleParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ScaleParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ScaleParameter::CopyFrom(const ScaleParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ScaleParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ScaleParameter::IsInitialized() const { - - return true; -} - -void ScaleParameter::Swap(ScaleParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ScaleParameter::InternalSwap(ScaleParameter* other) { - std::swap(axis_, other->axis_); - std::swap(num_axes_, other->num_axes_); - std::swap(filler_, other->filler_); - std::swap(bias_term_, other->bias_term_); - std::swap(bias_filler_, other->bias_filler_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ScaleParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ScaleParameter_descriptor_; - metadata.reflection = ScaleParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ScaleParameter - -// optional int32 axis = 1 [default = 1]; -bool ScaleParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ScaleParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -void ScaleParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -void ScaleParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 ScaleParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ScaleParameter.axis) - return axis_; -} -void ScaleParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ScaleParameter.axis) -} - -// optional int32 num_axes = 2 [default = 1]; -bool ScaleParameter::has_num_axes() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ScaleParameter::set_has_num_axes() { - _has_bits_[0] |= 0x00000002u; -} -void ScaleParameter::clear_has_num_axes() { - _has_bits_[0] &= ~0x00000002u; -} -void ScaleParameter::clear_num_axes() { - num_axes_ = 1; - clear_has_num_axes(); -} -::google::protobuf::int32 ScaleParameter::num_axes() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ScaleParameter.num_axes) - return num_axes_; -} -void ScaleParameter::set_num_axes(::google::protobuf::int32 value) { - set_has_num_axes(); - num_axes_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ScaleParameter.num_axes) -} - -// optional .opencv_caffe.FillerParameter filler = 3; -bool ScaleParameter::has_filler() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void ScaleParameter::set_has_filler() { - _has_bits_[0] |= 0x00000004u; -} -void ScaleParameter::clear_has_filler() { - _has_bits_[0] &= ~0x00000004u; -} -void ScaleParameter::clear_filler() { - if (filler_ != NULL) filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_filler(); -} -const ::opencv_caffe::FillerParameter& ScaleParameter::filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ScaleParameter.filler) - return filler_ != NULL ? *filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* ScaleParameter::mutable_filler() { - set_has_filler(); - if (filler_ == NULL) { - filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.ScaleParameter.filler) - return filler_; -} -::opencv_caffe::FillerParameter* ScaleParameter::release_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.ScaleParameter.filler) - clear_has_filler(); - ::opencv_caffe::FillerParameter* temp = filler_; - filler_ = NULL; - return temp; -} -void ScaleParameter::set_allocated_filler(::opencv_caffe::FillerParameter* filler) { - delete filler_; - filler_ = filler; - if (filler) { - set_has_filler(); - } else { - clear_has_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ScaleParameter.filler) -} - -// optional bool bias_term = 4 [default = false]; -bool ScaleParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void ScaleParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000008u; -} -void ScaleParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000008u; -} -void ScaleParameter::clear_bias_term() { - bias_term_ = false; - clear_has_bias_term(); -} -bool ScaleParameter::bias_term() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ScaleParameter.bias_term) - return bias_term_; -} -void ScaleParameter::set_bias_term(bool value) { - set_has_bias_term(); - bias_term_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ScaleParameter.bias_term) -} - -// optional .opencv_caffe.FillerParameter bias_filler = 5; -bool ScaleParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void ScaleParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000010u; -} -void ScaleParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000010u; -} -void ScaleParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_bias_filler(); -} -const ::opencv_caffe::FillerParameter& ScaleParameter::bias_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ScaleParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* ScaleParameter::mutable_bias_filler() { - set_has_bias_filler(); - if (bias_filler_ == NULL) { - bias_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.ScaleParameter.bias_filler) - return bias_filler_; -} -::opencv_caffe::FillerParameter* ScaleParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.ScaleParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} -void ScaleParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; - if (bias_filler) { - set_has_bias_filler(); - } else { - clear_has_bias_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ScaleParameter.bias_filler) -} - -inline const ScaleParameter* ScaleParameter::internal_default_instance() { - return &ScaleParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* SigmoidParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SigmoidParameter_Engine_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[17]; } bool SigmoidParameter_Engine_IsValid(int value) { switch (value) { @@ -42753,719 +4411,9 @@ const SigmoidParameter_Engine SigmoidParameter::Engine_MIN; const SigmoidParameter_Engine SigmoidParameter::Engine_MAX; const int SigmoidParameter::Engine_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SigmoidParameter::kEngineFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SigmoidParameter::SigmoidParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.SigmoidParameter) -} - -void SigmoidParameter::InitAsDefaultInstance() { -} - -SigmoidParameter::SigmoidParameter(const SigmoidParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.SigmoidParameter) -} - -void SigmoidParameter::SharedCtor() { - _cached_size_ = 0; - engine_ = 0; -} - -SigmoidParameter::~SigmoidParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.SigmoidParameter) - SharedDtor(); -} - -void SigmoidParameter::SharedDtor() { -} - -void SigmoidParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SigmoidParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SigmoidParameter_descriptor_; -} - -const SigmoidParameter& SigmoidParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed SigmoidParameter_default_instance_; - -SigmoidParameter* SigmoidParameter::New(::google::protobuf::Arena* arena) const { - SigmoidParameter* n = new SigmoidParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SigmoidParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.SigmoidParameter) - engine_ = 0; - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool SigmoidParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.SigmoidParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::SigmoidParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::opencv_caffe::SigmoidParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.SigmoidParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.SigmoidParameter) - return false; -#undef DO_ -} - -void SigmoidParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.SigmoidParameter) - // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->engine(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.SigmoidParameter) -} - -::google::protobuf::uint8* SigmoidParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SigmoidParameter) - // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->engine(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SigmoidParameter) - return target; -} - -size_t SigmoidParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SigmoidParameter) - size_t total_size = 0; - - // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SigmoidParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SigmoidParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const SigmoidParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SigmoidParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SigmoidParameter) - UnsafeMergeFrom(*source); - } -} - -void SigmoidParameter::MergeFrom(const SigmoidParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SigmoidParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void SigmoidParameter::UnsafeMergeFrom(const SigmoidParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_engine()) { - set_engine(from.engine()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void SigmoidParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SigmoidParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SigmoidParameter::CopyFrom(const SigmoidParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SigmoidParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool SigmoidParameter::IsInitialized() const { - - return true; -} - -void SigmoidParameter::Swap(SigmoidParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void SigmoidParameter::InternalSwap(SigmoidParameter* other) { - std::swap(engine_, other->engine_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SigmoidParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SigmoidParameter_descriptor_; - metadata.reflection = SigmoidParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SigmoidParameter - -// optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; -bool SigmoidParameter::has_engine() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void SigmoidParameter::set_has_engine() { - _has_bits_[0] |= 0x00000001u; -} -void SigmoidParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000001u; -} -void SigmoidParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -::opencv_caffe::SigmoidParameter_Engine SigmoidParameter::engine() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SigmoidParameter.engine) - return static_cast< ::opencv_caffe::SigmoidParameter_Engine >(engine_); -} -void SigmoidParameter::set_engine(::opencv_caffe::SigmoidParameter_Engine value) { - assert(::opencv_caffe::SigmoidParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SigmoidParameter.engine) -} - -inline const SigmoidParameter* SigmoidParameter::internal_default_instance() { - return &SigmoidParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SliceParameter::kAxisFieldNumber; -const int SliceParameter::kSlicePointFieldNumber; -const int SliceParameter::kSliceDimFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SliceParameter::SliceParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.SliceParameter) -} - -void SliceParameter::InitAsDefaultInstance() { -} - -SliceParameter::SliceParameter(const SliceParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.SliceParameter) -} - -void SliceParameter::SharedCtor() { - _cached_size_ = 0; - axis_ = 1; - slice_dim_ = 1u; -} - -SliceParameter::~SliceParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.SliceParameter) - SharedDtor(); -} - -void SliceParameter::SharedDtor() { -} - -void SliceParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SliceParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SliceParameter_descriptor_; -} - -const SliceParameter& SliceParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed SliceParameter_default_instance_; - -SliceParameter* SliceParameter::New(::google::protobuf::Arena* arena) const { - SliceParameter* n = new SliceParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SliceParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.SliceParameter) - if (_has_bits_[0 / 32] & 5u) { - axis_ = 1; - slice_dim_ = 1u; - } - slice_point_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool SliceParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.SliceParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 slice_dim = 1 [default = 1]; - case 1: { - if (tag == 8) { - set_has_slice_dim(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &slice_dim_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_slice_point; - break; - } - - // repeated uint32 slice_point = 2; - case 2: { - if (tag == 16) { - parse_slice_point: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 16, input, this->mutable_slice_point()))); - } else if (tag == 18) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_slice_point()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_slice_point; - if (input->ExpectTag(24)) goto parse_axis; - break; - } - - // optional int32 axis = 3 [default = 1]; - case 3: { - if (tag == 24) { - parse_axis: - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.SliceParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.SliceParameter) - return false; -#undef DO_ -} - -void SliceParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.SliceParameter) - // optional uint32 slice_dim = 1 [default = 1]; - if (has_slice_dim()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->slice_dim(), output); - } - - // repeated uint32 slice_point = 2; - for (int i = 0; i < this->slice_point_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32( - 2, this->slice_point(i), output); - } - - // optional int32 axis = 3 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->axis(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.SliceParameter) -} - -::google::protobuf::uint8* SliceParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SliceParameter) - // optional uint32 slice_dim = 1 [default = 1]; - if (has_slice_dim()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->slice_dim(), target); - } - - // repeated uint32 slice_point = 2; - for (int i = 0; i < this->slice_point_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt32ToArray(2, this->slice_point(i), target); - } - - // optional int32 axis = 3 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->axis(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SliceParameter) - return target; -} - -size_t SliceParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SliceParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 5u) { - // optional int32 axis = 3 [default = 1]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional uint32 slice_dim = 1 [default = 1]; - if (has_slice_dim()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->slice_dim()); - } - - } - // repeated uint32 slice_point = 2; - { - size_t data_size = 0; - unsigned int count = this->slice_point_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->slice_point(i)); - } - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->slice_point_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SliceParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SliceParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const SliceParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SliceParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SliceParameter) - UnsafeMergeFrom(*source); - } -} - -void SliceParameter::MergeFrom(const SliceParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SliceParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void SliceParameter::UnsafeMergeFrom(const SliceParameter& from) { - GOOGLE_DCHECK(&from != this); - slice_point_.UnsafeMergeFrom(from.slice_point_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_slice_dim()) { - set_slice_dim(from.slice_dim()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void SliceParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SliceParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SliceParameter::CopyFrom(const SliceParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SliceParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool SliceParameter::IsInitialized() const { - - return true; -} - -void SliceParameter::Swap(SliceParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void SliceParameter::InternalSwap(SliceParameter* other) { - std::swap(axis_, other->axis_); - slice_point_.UnsafeArenaSwap(&other->slice_point_); - std::swap(slice_dim_, other->slice_dim_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SliceParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SliceParameter_descriptor_; - metadata.reflection = SliceParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SliceParameter - -// optional int32 axis = 3 [default = 1]; -bool SliceParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void SliceParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -void SliceParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -void SliceParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 SliceParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SliceParameter.axis) - return axis_; -} -void SliceParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SliceParameter.axis) -} - -// repeated uint32 slice_point = 2; -int SliceParameter::slice_point_size() const { - return slice_point_.size(); -} -void SliceParameter::clear_slice_point() { - slice_point_.Clear(); -} -::google::protobuf::uint32 SliceParameter::slice_point(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.SliceParameter.slice_point) - return slice_point_.Get(index); -} -void SliceParameter::set_slice_point(int index, ::google::protobuf::uint32 value) { - slice_point_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.SliceParameter.slice_point) -} -void SliceParameter::add_slice_point(::google::protobuf::uint32 value) { - slice_point_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.SliceParameter.slice_point) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -SliceParameter::slice_point() const { - // @@protoc_insertion_point(field_list:opencv_caffe.SliceParameter.slice_point) - return slice_point_; -} -::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -SliceParameter::mutable_slice_point() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.SliceParameter.slice_point) - return &slice_point_; -} - -// optional uint32 slice_dim = 1 [default = 1]; -bool SliceParameter::has_slice_dim() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void SliceParameter::set_has_slice_dim() { - _has_bits_[0] |= 0x00000004u; -} -void SliceParameter::clear_has_slice_dim() { - _has_bits_[0] &= ~0x00000004u; -} -void SliceParameter::clear_slice_dim() { - slice_dim_ = 1u; - clear_has_slice_dim(); -} -::google::protobuf::uint32 SliceParameter::slice_dim() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SliceParameter.slice_dim) - return slice_dim_; -} -void SliceParameter::set_slice_dim(::google::protobuf::uint32 value) { - set_has_slice_dim(); - slice_dim_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SliceParameter.slice_dim) -} - -inline const SliceParameter* SliceParameter::internal_default_instance() { - return &SliceParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* SoftmaxParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SoftmaxParameter_Engine_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[18]; } bool SoftmaxParameter_Engine_IsValid(int value) { switch (value) { @@ -43486,362 +4434,9 @@ const SoftmaxParameter_Engine SoftmaxParameter::Engine_MIN; const SoftmaxParameter_Engine SoftmaxParameter::Engine_MAX; const int SoftmaxParameter::Engine_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SoftmaxParameter::kEngineFieldNumber; -const int SoftmaxParameter::kAxisFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SoftmaxParameter::SoftmaxParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.SoftmaxParameter) -} - -void SoftmaxParameter::InitAsDefaultInstance() { -} - -SoftmaxParameter::SoftmaxParameter(const SoftmaxParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.SoftmaxParameter) -} - -void SoftmaxParameter::SharedCtor() { - _cached_size_ = 0; - engine_ = 0; - axis_ = 1; -} - -SoftmaxParameter::~SoftmaxParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.SoftmaxParameter) - SharedDtor(); -} - -void SoftmaxParameter::SharedDtor() { -} - -void SoftmaxParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SoftmaxParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SoftmaxParameter_descriptor_; -} - -const SoftmaxParameter& SoftmaxParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed SoftmaxParameter_default_instance_; - -SoftmaxParameter* SoftmaxParameter::New(::google::protobuf::Arena* arena) const { - SoftmaxParameter* n = new SoftmaxParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SoftmaxParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.SoftmaxParameter) - if (_has_bits_[0 / 32] & 3u) { - engine_ = 0; - axis_ = 1; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool SoftmaxParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.SoftmaxParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::SoftmaxParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::opencv_caffe::SoftmaxParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_axis; - break; - } - - // optional int32 axis = 2 [default = 1]; - case 2: { - if (tag == 16) { - parse_axis: - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.SoftmaxParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.SoftmaxParameter) - return false; -#undef DO_ -} - -void SoftmaxParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.SoftmaxParameter) - // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->engine(), output); - } - - // optional int32 axis = 2 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.SoftmaxParameter) -} - -::google::protobuf::uint8* SoftmaxParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SoftmaxParameter) - // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->engine(), target); - } - - // optional int32 axis = 2 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SoftmaxParameter) - return target; -} - -size_t SoftmaxParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SoftmaxParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 3u) { - // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - // optional int32 axis = 2 [default = 1]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SoftmaxParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SoftmaxParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const SoftmaxParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SoftmaxParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SoftmaxParameter) - UnsafeMergeFrom(*source); - } -} - -void SoftmaxParameter::MergeFrom(const SoftmaxParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SoftmaxParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void SoftmaxParameter::UnsafeMergeFrom(const SoftmaxParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_engine()) { - set_engine(from.engine()); - } - if (from.has_axis()) { - set_axis(from.axis()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void SoftmaxParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SoftmaxParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SoftmaxParameter::CopyFrom(const SoftmaxParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SoftmaxParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool SoftmaxParameter::IsInitialized() const { - - return true; -} - -void SoftmaxParameter::Swap(SoftmaxParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void SoftmaxParameter::InternalSwap(SoftmaxParameter* other) { - std::swap(engine_, other->engine_); - std::swap(axis_, other->axis_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SoftmaxParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SoftmaxParameter_descriptor_; - metadata.reflection = SoftmaxParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SoftmaxParameter - -// optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; -bool SoftmaxParameter::has_engine() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void SoftmaxParameter::set_has_engine() { - _has_bits_[0] |= 0x00000001u; -} -void SoftmaxParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000001u; -} -void SoftmaxParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -::opencv_caffe::SoftmaxParameter_Engine SoftmaxParameter::engine() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SoftmaxParameter.engine) - return static_cast< ::opencv_caffe::SoftmaxParameter_Engine >(engine_); -} -void SoftmaxParameter::set_engine(::opencv_caffe::SoftmaxParameter_Engine value) { - assert(::opencv_caffe::SoftmaxParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SoftmaxParameter.engine) -} - -// optional int32 axis = 2 [default = 1]; -bool SoftmaxParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void SoftmaxParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; -} -void SoftmaxParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; -} -void SoftmaxParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 SoftmaxParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SoftmaxParameter.axis) - return axis_; -} -void SoftmaxParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SoftmaxParameter.axis) -} - -inline const SoftmaxParameter* SoftmaxParameter::internal_default_instance() { - return &SoftmaxParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* TanHParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return TanHParameter_Engine_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[19]; } bool TanHParameter_Engine_IsValid(int value) { switch (value) { @@ -43862,2154 +4457,9 @@ const TanHParameter_Engine TanHParameter::Engine_MIN; const TanHParameter_Engine TanHParameter::Engine_MAX; const int TanHParameter::Engine_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TanHParameter::kEngineFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TanHParameter::TanHParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.TanHParameter) -} - -void TanHParameter::InitAsDefaultInstance() { -} - -TanHParameter::TanHParameter(const TanHParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.TanHParameter) -} - -void TanHParameter::SharedCtor() { - _cached_size_ = 0; - engine_ = 0; -} - -TanHParameter::~TanHParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.TanHParameter) - SharedDtor(); -} - -void TanHParameter::SharedDtor() { -} - -void TanHParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* TanHParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TanHParameter_descriptor_; -} - -const TanHParameter& TanHParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed TanHParameter_default_instance_; - -TanHParameter* TanHParameter::New(::google::protobuf::Arena* arena) const { - TanHParameter* n = new TanHParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void TanHParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.TanHParameter) - engine_ = 0; - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool TanHParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.TanHParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; - case 1: { - if (tag == 8) { - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::TanHParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::opencv_caffe::TanHParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.TanHParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.TanHParameter) - return false; -#undef DO_ -} - -void TanHParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.TanHParameter) - // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->engine(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.TanHParameter) -} - -::google::protobuf::uint8* TanHParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.TanHParameter) - // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->engine(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.TanHParameter) - return target; -} - -size_t TanHParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.TanHParameter) - size_t total_size = 0; - - // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TanHParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.TanHParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const TanHParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.TanHParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.TanHParameter) - UnsafeMergeFrom(*source); - } -} - -void TanHParameter::MergeFrom(const TanHParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.TanHParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void TanHParameter::UnsafeMergeFrom(const TanHParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_engine()) { - set_engine(from.engine()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void TanHParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.TanHParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TanHParameter::CopyFrom(const TanHParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.TanHParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool TanHParameter::IsInitialized() const { - - return true; -} - -void TanHParameter::Swap(TanHParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void TanHParameter::InternalSwap(TanHParameter* other) { - std::swap(engine_, other->engine_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata TanHParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TanHParameter_descriptor_; - metadata.reflection = TanHParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TanHParameter - -// optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; -bool TanHParameter::has_engine() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void TanHParameter::set_has_engine() { - _has_bits_[0] |= 0x00000001u; -} -void TanHParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000001u; -} -void TanHParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -::opencv_caffe::TanHParameter_Engine TanHParameter::engine() const { - // @@protoc_insertion_point(field_get:opencv_caffe.TanHParameter.engine) - return static_cast< ::opencv_caffe::TanHParameter_Engine >(engine_); -} -void TanHParameter::set_engine(::opencv_caffe::TanHParameter_Engine value) { - assert(::opencv_caffe::TanHParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.TanHParameter.engine) -} - -inline const TanHParameter* TanHParameter::internal_default_instance() { - return &TanHParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TileParameter::kAxisFieldNumber; -const int TileParameter::kTilesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TileParameter::TileParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.TileParameter) -} - -void TileParameter::InitAsDefaultInstance() { -} - -TileParameter::TileParameter(const TileParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.TileParameter) -} - -void TileParameter::SharedCtor() { - _cached_size_ = 0; - tiles_ = 0; - axis_ = 1; -} - -TileParameter::~TileParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.TileParameter) - SharedDtor(); -} - -void TileParameter::SharedDtor() { -} - -void TileParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* TileParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TileParameter_descriptor_; -} - -const TileParameter& TileParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed TileParameter_default_instance_; - -TileParameter* TileParameter::New(::google::protobuf::Arena* arena) const { - TileParameter* n = new TileParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void TileParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.TileParameter) - if (_has_bits_[0 / 32] & 3u) { - axis_ = 1; - tiles_ = 0; - } - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool TileParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.TileParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 axis = 1 [default = 1]; - case 1: { - if (tag == 8) { - set_has_axis(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &axis_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_tiles; - break; - } - - // optional int32 tiles = 2; - case 2: { - if (tag == 16) { - parse_tiles: - set_has_tiles(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &tiles_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.TileParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.TileParameter) - return false; -#undef DO_ -} - -void TileParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.TileParameter) - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); - } - - // optional int32 tiles = 2; - if (has_tiles()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->tiles(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.TileParameter) -} - -::google::protobuf::uint8* TileParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.TileParameter) - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); - } - - // optional int32 tiles = 2; - if (has_tiles()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->tiles(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.TileParameter) - return target; -} - -size_t TileParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.TileParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 3u) { - // optional int32 axis = 1 [default = 1]; - if (has_axis()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->axis()); - } - - // optional int32 tiles = 2; - if (has_tiles()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->tiles()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void TileParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.TileParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const TileParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.TileParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.TileParameter) - UnsafeMergeFrom(*source); - } -} - -void TileParameter::MergeFrom(const TileParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.TileParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void TileParameter::UnsafeMergeFrom(const TileParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_axis()) { - set_axis(from.axis()); - } - if (from.has_tiles()) { - set_tiles(from.tiles()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void TileParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.TileParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TileParameter::CopyFrom(const TileParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.TileParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool TileParameter::IsInitialized() const { - - return true; -} - -void TileParameter::Swap(TileParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void TileParameter::InternalSwap(TileParameter* other) { - std::swap(axis_, other->axis_); - std::swap(tiles_, other->tiles_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata TileParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TileParameter_descriptor_; - metadata.reflection = TileParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TileParameter - -// optional int32 axis = 1 [default = 1]; -bool TileParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void TileParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; -} -void TileParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; -} -void TileParameter::clear_axis() { - axis_ = 1; - clear_has_axis(); -} -::google::protobuf::int32 TileParameter::axis() const { - // @@protoc_insertion_point(field_get:opencv_caffe.TileParameter.axis) - return axis_; -} -void TileParameter::set_axis(::google::protobuf::int32 value) { - set_has_axis(); - axis_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.TileParameter.axis) -} - -// optional int32 tiles = 2; -bool TileParameter::has_tiles() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void TileParameter::set_has_tiles() { - _has_bits_[0] |= 0x00000002u; -} -void TileParameter::clear_has_tiles() { - _has_bits_[0] &= ~0x00000002u; -} -void TileParameter::clear_tiles() { - tiles_ = 0; - clear_has_tiles(); -} -::google::protobuf::int32 TileParameter::tiles() const { - // @@protoc_insertion_point(field_get:opencv_caffe.TileParameter.tiles) - return tiles_; -} -void TileParameter::set_tiles(::google::protobuf::int32 value) { - set_has_tiles(); - tiles_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.TileParameter.tiles) -} - -inline const TileParameter* TileParameter::internal_default_instance() { - return &TileParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ThresholdParameter::kThresholdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ThresholdParameter::ThresholdParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.ThresholdParameter) -} - -void ThresholdParameter::InitAsDefaultInstance() { -} - -ThresholdParameter::ThresholdParameter(const ThresholdParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.ThresholdParameter) -} - -void ThresholdParameter::SharedCtor() { - _cached_size_ = 0; - threshold_ = 0; -} - -ThresholdParameter::~ThresholdParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.ThresholdParameter) - SharedDtor(); -} - -void ThresholdParameter::SharedDtor() { -} - -void ThresholdParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* ThresholdParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ThresholdParameter_descriptor_; -} - -const ThresholdParameter& ThresholdParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed ThresholdParameter_default_instance_; - -ThresholdParameter* ThresholdParameter::New(::google::protobuf::Arena* arena) const { - ThresholdParameter* n = new ThresholdParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void ThresholdParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.ThresholdParameter) - threshold_ = 0; - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool ThresholdParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.ThresholdParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional float threshold = 1 [default = 0]; - case 1: { - if (tag == 13) { - set_has_threshold(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &threshold_))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.ThresholdParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.ThresholdParameter) - return false; -#undef DO_ -} - -void ThresholdParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.ThresholdParameter) - // optional float threshold = 1 [default = 0]; - if (has_threshold()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->threshold(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.ThresholdParameter) -} - -::google::protobuf::uint8* ThresholdParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ThresholdParameter) - // optional float threshold = 1 [default = 0]; - if (has_threshold()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->threshold(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ThresholdParameter) - return target; -} - -size_t ThresholdParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ThresholdParameter) - size_t total_size = 0; - - // optional float threshold = 1 [default = 0]; - if (has_threshold()) { - total_size += 1 + 4; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void ThresholdParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ThresholdParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const ThresholdParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ThresholdParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ThresholdParameter) - UnsafeMergeFrom(*source); - } -} - -void ThresholdParameter::MergeFrom(const ThresholdParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ThresholdParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void ThresholdParameter::UnsafeMergeFrom(const ThresholdParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_threshold()) { - set_threshold(from.threshold()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void ThresholdParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ThresholdParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ThresholdParameter::CopyFrom(const ThresholdParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ThresholdParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool ThresholdParameter::IsInitialized() const { - - return true; -} - -void ThresholdParameter::Swap(ThresholdParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void ThresholdParameter::InternalSwap(ThresholdParameter* other) { - std::swap(threshold_, other->threshold_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata ThresholdParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ThresholdParameter_descriptor_; - metadata.reflection = ThresholdParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ThresholdParameter - -// optional float threshold = 1 [default = 0]; -bool ThresholdParameter::has_threshold() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ThresholdParameter::set_has_threshold() { - _has_bits_[0] |= 0x00000001u; -} -void ThresholdParameter::clear_has_threshold() { - _has_bits_[0] &= ~0x00000001u; -} -void ThresholdParameter::clear_threshold() { - threshold_ = 0; - clear_has_threshold(); -} -float ThresholdParameter::threshold() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ThresholdParameter.threshold) - return threshold_; -} -void ThresholdParameter::set_threshold(float value) { - set_has_threshold(); - threshold_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ThresholdParameter.threshold) -} - -inline const ThresholdParameter* ThresholdParameter::internal_default_instance() { - return &ThresholdParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -::std::string* WindowDataParameter::_default_crop_mode_ = NULL; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WindowDataParameter::kSourceFieldNumber; -const int WindowDataParameter::kScaleFieldNumber; -const int WindowDataParameter::kMeanFileFieldNumber; -const int WindowDataParameter::kBatchSizeFieldNumber; -const int WindowDataParameter::kCropSizeFieldNumber; -const int WindowDataParameter::kMirrorFieldNumber; -const int WindowDataParameter::kFgThresholdFieldNumber; -const int WindowDataParameter::kBgThresholdFieldNumber; -const int WindowDataParameter::kFgFractionFieldNumber; -const int WindowDataParameter::kContextPadFieldNumber; -const int WindowDataParameter::kCropModeFieldNumber; -const int WindowDataParameter::kCacheImagesFieldNumber; -const int WindowDataParameter::kRootFolderFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WindowDataParameter::WindowDataParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.WindowDataParameter) -} - -void WindowDataParameter::InitAsDefaultInstance() { -} - -WindowDataParameter::WindowDataParameter(const WindowDataParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.WindowDataParameter) -} - -void WindowDataParameter::SharedCtor() { - _cached_size_ = 0; - source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - crop_mode_.UnsafeSetDefault(_default_crop_mode_); - root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&batch_size_, 0, reinterpret_cast(&context_pad_) - - reinterpret_cast(&batch_size_) + sizeof(context_pad_)); - scale_ = 1; - fg_threshold_ = 0.5f; - bg_threshold_ = 0.5f; - fg_fraction_ = 0.25f; -} - -WindowDataParameter::~WindowDataParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.WindowDataParameter) - SharedDtor(); -} - -void WindowDataParameter::SharedDtor() { - source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - crop_mode_.DestroyNoArena(_default_crop_mode_); - root_folder_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void WindowDataParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* WindowDataParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return WindowDataParameter_descriptor_; -} - -const WindowDataParameter& WindowDataParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed WindowDataParameter_default_instance_; - -WindowDataParameter* WindowDataParameter::New(::google::protobuf::Arena* arena) const { - WindowDataParameter* n = new WindowDataParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void WindowDataParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.WindowDataParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(WindowDataParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 255u) { - ZR_(batch_size_, mirror_); - if (has_source()) { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - scale_ = 1; - if (has_mean_file()) { - mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - fg_threshold_ = 0.5f; - bg_threshold_ = 0.5f; - } - if (_has_bits_[8 / 32] & 7936u) { - ZR_(cache_images_, context_pad_); - fg_fraction_ = 0.25f; - if (has_crop_mode()) { - crop_mode_.ClearToDefaultNoArena(_default_crop_mode_); - } - if (has_root_folder()) { - root_folder_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - } - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool WindowDataParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.WindowDataParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string source = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_source())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.WindowDataParameter.source"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(21)) goto parse_scale; - break; - } - - // optional float scale = 2 [default = 1]; - case 2: { - if (tag == 21) { - parse_scale: - set_has_scale(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &scale_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_mean_file; - break; - } - - // optional string mean_file = 3; - case 3: { - if (tag == 26) { - parse_mean_file: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mean_file())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.WindowDataParameter.mean_file"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_batch_size; - break; - } - - // optional uint32 batch_size = 4; - case 4: { - if (tag == 32) { - parse_batch_size: - set_has_batch_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &batch_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_crop_size; - break; - } - - // optional uint32 crop_size = 5 [default = 0]; - case 5: { - if (tag == 40) { - parse_crop_size: - set_has_crop_size(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &crop_size_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_mirror; - break; - } - - // optional bool mirror = 6 [default = false]; - case 6: { - if (tag == 48) { - parse_mirror: - set_has_mirror(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &mirror_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(61)) goto parse_fg_threshold; - break; - } - - // optional float fg_threshold = 7 [default = 0.5]; - case 7: { - if (tag == 61) { - parse_fg_threshold: - set_has_fg_threshold(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &fg_threshold_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(69)) goto parse_bg_threshold; - break; - } - - // optional float bg_threshold = 8 [default = 0.5]; - case 8: { - if (tag == 69) { - parse_bg_threshold: - set_has_bg_threshold(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &bg_threshold_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(77)) goto parse_fg_fraction; - break; - } - - // optional float fg_fraction = 9 [default = 0.25]; - case 9: { - if (tag == 77) { - parse_fg_fraction: - set_has_fg_fraction(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &fg_fraction_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(80)) goto parse_context_pad; - break; - } - - // optional uint32 context_pad = 10 [default = 0]; - case 10: { - if (tag == 80) { - parse_context_pad: - set_has_context_pad(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &context_pad_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(90)) goto parse_crop_mode; - break; - } - - // optional string crop_mode = 11 [default = "warp"]; - case 11: { - if (tag == 90) { - parse_crop_mode: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_crop_mode())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->crop_mode().data(), this->crop_mode().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.WindowDataParameter.crop_mode"); - } else { - goto handle_unusual; - } - if (input->ExpectTag(96)) goto parse_cache_images; - break; - } - - // optional bool cache_images = 12 [default = false]; - case 12: { - if (tag == 96) { - parse_cache_images: - set_has_cache_images(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &cache_images_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(106)) goto parse_root_folder; - break; - } - - // optional string root_folder = 13 [default = ""]; - case 13: { - if (tag == 106) { - parse_root_folder: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_root_folder())); - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::PARSE, - "opencv_caffe.WindowDataParameter.root_folder"); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.WindowDataParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.WindowDataParameter) - return false; -#undef DO_ -} - -void WindowDataParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.WindowDataParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.WindowDataParameter.source"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->source(), output); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); - } - - // optional string mean_file = 3; - if (has_mean_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.WindowDataParameter.mean_file"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->mean_file(), output); - } - - // optional uint32 batch_size = 4; - if (has_batch_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->batch_size(), output); - } - - // optional uint32 crop_size = 5 [default = 0]; - if (has_crop_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->crop_size(), output); - } - - // optional bool mirror = 6 [default = false]; - if (has_mirror()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->mirror(), output); - } - - // optional float fg_threshold = 7 [default = 0.5]; - if (has_fg_threshold()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->fg_threshold(), output); - } - - // optional float bg_threshold = 8 [default = 0.5]; - if (has_bg_threshold()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->bg_threshold(), output); - } - - // optional float fg_fraction = 9 [default = 0.25]; - if (has_fg_fraction()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->fg_fraction(), output); - } - - // optional uint32 context_pad = 10 [default = 0]; - if (has_context_pad()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->context_pad(), output); - } - - // optional string crop_mode = 11 [default = "warp"]; - if (has_crop_mode()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->crop_mode().data(), this->crop_mode().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.WindowDataParameter.crop_mode"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 11, this->crop_mode(), output); - } - - // optional bool cache_images = 12 [default = false]; - if (has_cache_images()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->cache_images(), output); - } - - // optional string root_folder = 13 [default = ""]; - if (has_root_folder()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.WindowDataParameter.root_folder"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 13, this->root_folder(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.WindowDataParameter) -} - -::google::protobuf::uint8* WindowDataParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.WindowDataParameter) - // optional string source = 1; - if (has_source()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.WindowDataParameter.source"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->source(), target); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); - } - - // optional string mean_file = 3; - if (has_mean_file()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->mean_file().data(), this->mean_file().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.WindowDataParameter.mean_file"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->mean_file(), target); - } - - // optional uint32 batch_size = 4; - if (has_batch_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->batch_size(), target); - } - - // optional uint32 crop_size = 5 [default = 0]; - if (has_crop_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->crop_size(), target); - } - - // optional bool mirror = 6 [default = false]; - if (has_mirror()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->mirror(), target); - } - - // optional float fg_threshold = 7 [default = 0.5]; - if (has_fg_threshold()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->fg_threshold(), target); - } - - // optional float bg_threshold = 8 [default = 0.5]; - if (has_bg_threshold()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->bg_threshold(), target); - } - - // optional float fg_fraction = 9 [default = 0.25]; - if (has_fg_fraction()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->fg_fraction(), target); - } - - // optional uint32 context_pad = 10 [default = 0]; - if (has_context_pad()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->context_pad(), target); - } - - // optional string crop_mode = 11 [default = "warp"]; - if (has_crop_mode()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->crop_mode().data(), this->crop_mode().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.WindowDataParameter.crop_mode"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 11, this->crop_mode(), target); - } - - // optional bool cache_images = 12 [default = false]; - if (has_cache_images()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->cache_images(), target); - } - - // optional string root_folder = 13 [default = ""]; - if (has_root_folder()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->root_folder().data(), this->root_folder().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE, - "opencv_caffe.WindowDataParameter.root_folder"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 13, this->root_folder(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.WindowDataParameter) - return target; -} - -size_t WindowDataParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.WindowDataParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 255u) { - // optional string source = 1; - if (has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->source()); - } - - // optional float scale = 2 [default = 1]; - if (has_scale()) { - total_size += 1 + 4; - } - - // optional string mean_file = 3; - if (has_mean_file()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->mean_file()); - } - - // optional uint32 batch_size = 4; - if (has_batch_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->batch_size()); - } - - // optional uint32 crop_size = 5 [default = 0]; - if (has_crop_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->crop_size()); - } - - // optional bool mirror = 6 [default = false]; - if (has_mirror()) { - total_size += 1 + 1; - } - - // optional float fg_threshold = 7 [default = 0.5]; - if (has_fg_threshold()) { - total_size += 1 + 4; - } - - // optional float bg_threshold = 8 [default = 0.5]; - if (has_bg_threshold()) { - total_size += 1 + 4; - } - - } - if (_has_bits_[8 / 32] & 7936u) { - // optional float fg_fraction = 9 [default = 0.25]; - if (has_fg_fraction()) { - total_size += 1 + 4; - } - - // optional uint32 context_pad = 10 [default = 0]; - if (has_context_pad()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->context_pad()); - } - - // optional string crop_mode = 11 [default = "warp"]; - if (has_crop_mode()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->crop_mode()); - } - - // optional bool cache_images = 12 [default = false]; - if (has_cache_images()) { - total_size += 1 + 1; - } - - // optional string root_folder = 13 [default = ""]; - if (has_root_folder()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->root_folder()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void WindowDataParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.WindowDataParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const WindowDataParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.WindowDataParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.WindowDataParameter) - UnsafeMergeFrom(*source); - } -} - -void WindowDataParameter::MergeFrom(const WindowDataParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.WindowDataParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void WindowDataParameter::UnsafeMergeFrom(const WindowDataParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_source()) { - set_has_source(); - source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); - } - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_mean_file()) { - set_has_mean_file(); - mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); - } - if (from.has_batch_size()) { - set_batch_size(from.batch_size()); - } - if (from.has_crop_size()) { - set_crop_size(from.crop_size()); - } - if (from.has_mirror()) { - set_mirror(from.mirror()); - } - if (from.has_fg_threshold()) { - set_fg_threshold(from.fg_threshold()); - } - if (from.has_bg_threshold()) { - set_bg_threshold(from.bg_threshold()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_fg_fraction()) { - set_fg_fraction(from.fg_fraction()); - } - if (from.has_context_pad()) { - set_context_pad(from.context_pad()); - } - if (from.has_crop_mode()) { - set_has_crop_mode(); - crop_mode_.AssignWithDefault(_default_crop_mode_, from.crop_mode_); - } - if (from.has_cache_images()) { - set_cache_images(from.cache_images()); - } - if (from.has_root_folder()) { - set_has_root_folder(); - root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void WindowDataParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.WindowDataParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WindowDataParameter::CopyFrom(const WindowDataParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.WindowDataParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool WindowDataParameter::IsInitialized() const { - - return true; -} - -void WindowDataParameter::Swap(WindowDataParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void WindowDataParameter::InternalSwap(WindowDataParameter* other) { - source_.Swap(&other->source_); - std::swap(scale_, other->scale_); - mean_file_.Swap(&other->mean_file_); - std::swap(batch_size_, other->batch_size_); - std::swap(crop_size_, other->crop_size_); - std::swap(mirror_, other->mirror_); - std::swap(fg_threshold_, other->fg_threshold_); - std::swap(bg_threshold_, other->bg_threshold_); - std::swap(fg_fraction_, other->fg_fraction_); - std::swap(context_pad_, other->context_pad_); - crop_mode_.Swap(&other->crop_mode_); - std::swap(cache_images_, other->cache_images_); - root_folder_.Swap(&other->root_folder_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata WindowDataParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = WindowDataParameter_descriptor_; - metadata.reflection = WindowDataParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// WindowDataParameter - -// optional string source = 1; -bool WindowDataParameter::has_source() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void WindowDataParameter::set_has_source() { - _has_bits_[0] |= 0x00000001u; -} -void WindowDataParameter::clear_has_source() { - _has_bits_[0] &= ~0x00000001u; -} -void WindowDataParameter::clear_source() { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_source(); -} -const ::std::string& WindowDataParameter::source() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void WindowDataParameter::set_source(const ::std::string& value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.source) -} -void WindowDataParameter::set_source(const char* value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.WindowDataParameter.source) -} -void WindowDataParameter::set_source(const char* value, size_t size) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.WindowDataParameter.source) -} -::std::string* WindowDataParameter::mutable_source() { - set_has_source(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.WindowDataParameter.source) - return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* WindowDataParameter::release_source() { - // @@protoc_insertion_point(field_release:opencv_caffe.WindowDataParameter.source) - clear_has_source(); - return source_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void WindowDataParameter::set_allocated_source(::std::string* source) { - if (source != NULL) { - set_has_source(); - } else { - clear_has_source(); - } - source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.WindowDataParameter.source) -} - -// optional float scale = 2 [default = 1]; -bool WindowDataParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void WindowDataParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; -} -void WindowDataParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; -} -void WindowDataParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -float WindowDataParameter::scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.scale) - return scale_; -} -void WindowDataParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.scale) -} - -// optional string mean_file = 3; -bool WindowDataParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void WindowDataParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000004u; -} -void WindowDataParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000004u; -} -void WindowDataParameter::clear_mean_file() { - mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_mean_file(); -} -const ::std::string& WindowDataParameter::mean_file() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.mean_file) - return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void WindowDataParameter::set_mean_file(const ::std::string& value) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.mean_file) -} -void WindowDataParameter::set_mean_file(const char* value) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.WindowDataParameter.mean_file) -} -void WindowDataParameter::set_mean_file(const char* value, size_t size) { - set_has_mean_file(); - mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.WindowDataParameter.mean_file) -} -::std::string* WindowDataParameter::mutable_mean_file() { - set_has_mean_file(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.WindowDataParameter.mean_file) - return mean_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* WindowDataParameter::release_mean_file() { - // @@protoc_insertion_point(field_release:opencv_caffe.WindowDataParameter.mean_file) - clear_has_mean_file(); - return mean_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void WindowDataParameter::set_allocated_mean_file(::std::string* mean_file) { - if (mean_file != NULL) { - set_has_mean_file(); - } else { - clear_has_mean_file(); - } - mean_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mean_file); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.WindowDataParameter.mean_file) -} - -// optional uint32 batch_size = 4; -bool WindowDataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void WindowDataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000008u; -} -void WindowDataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000008u; -} -void WindowDataParameter::clear_batch_size() { - batch_size_ = 0u; - clear_has_batch_size(); -} -::google::protobuf::uint32 WindowDataParameter::batch_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.batch_size) - return batch_size_; -} -void WindowDataParameter::set_batch_size(::google::protobuf::uint32 value) { - set_has_batch_size(); - batch_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.batch_size) -} - -// optional uint32 crop_size = 5 [default = 0]; -bool WindowDataParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void WindowDataParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000010u; -} -void WindowDataParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000010u; -} -void WindowDataParameter::clear_crop_size() { - crop_size_ = 0u; - clear_has_crop_size(); -} -::google::protobuf::uint32 WindowDataParameter::crop_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.crop_size) - return crop_size_; -} -void WindowDataParameter::set_crop_size(::google::protobuf::uint32 value) { - set_has_crop_size(); - crop_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.crop_size) -} - -// optional bool mirror = 6 [default = false]; -bool WindowDataParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void WindowDataParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000020u; -} -void WindowDataParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000020u; -} -void WindowDataParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -bool WindowDataParameter::mirror() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.mirror) - return mirror_; -} -void WindowDataParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.mirror) -} - -// optional float fg_threshold = 7 [default = 0.5]; -bool WindowDataParameter::has_fg_threshold() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void WindowDataParameter::set_has_fg_threshold() { - _has_bits_[0] |= 0x00000040u; -} -void WindowDataParameter::clear_has_fg_threshold() { - _has_bits_[0] &= ~0x00000040u; -} -void WindowDataParameter::clear_fg_threshold() { - fg_threshold_ = 0.5f; - clear_has_fg_threshold(); -} -float WindowDataParameter::fg_threshold() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.fg_threshold) - return fg_threshold_; -} -void WindowDataParameter::set_fg_threshold(float value) { - set_has_fg_threshold(); - fg_threshold_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.fg_threshold) -} - -// optional float bg_threshold = 8 [default = 0.5]; -bool WindowDataParameter::has_bg_threshold() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void WindowDataParameter::set_has_bg_threshold() { - _has_bits_[0] |= 0x00000080u; -} -void WindowDataParameter::clear_has_bg_threshold() { - _has_bits_[0] &= ~0x00000080u; -} -void WindowDataParameter::clear_bg_threshold() { - bg_threshold_ = 0.5f; - clear_has_bg_threshold(); -} -float WindowDataParameter::bg_threshold() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.bg_threshold) - return bg_threshold_; -} -void WindowDataParameter::set_bg_threshold(float value) { - set_has_bg_threshold(); - bg_threshold_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.bg_threshold) -} - -// optional float fg_fraction = 9 [default = 0.25]; -bool WindowDataParameter::has_fg_fraction() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -void WindowDataParameter::set_has_fg_fraction() { - _has_bits_[0] |= 0x00000100u; -} -void WindowDataParameter::clear_has_fg_fraction() { - _has_bits_[0] &= ~0x00000100u; -} -void WindowDataParameter::clear_fg_fraction() { - fg_fraction_ = 0.25f; - clear_has_fg_fraction(); -} -float WindowDataParameter::fg_fraction() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.fg_fraction) - return fg_fraction_; -} -void WindowDataParameter::set_fg_fraction(float value) { - set_has_fg_fraction(); - fg_fraction_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.fg_fraction) -} - -// optional uint32 context_pad = 10 [default = 0]; -bool WindowDataParameter::has_context_pad() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void WindowDataParameter::set_has_context_pad() { - _has_bits_[0] |= 0x00000200u; -} -void WindowDataParameter::clear_has_context_pad() { - _has_bits_[0] &= ~0x00000200u; -} -void WindowDataParameter::clear_context_pad() { - context_pad_ = 0u; - clear_has_context_pad(); -} -::google::protobuf::uint32 WindowDataParameter::context_pad() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.context_pad) - return context_pad_; -} -void WindowDataParameter::set_context_pad(::google::protobuf::uint32 value) { - set_has_context_pad(); - context_pad_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.context_pad) -} - -// optional string crop_mode = 11 [default = "warp"]; -bool WindowDataParameter::has_crop_mode() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -void WindowDataParameter::set_has_crop_mode() { - _has_bits_[0] |= 0x00000400u; -} -void WindowDataParameter::clear_has_crop_mode() { - _has_bits_[0] &= ~0x00000400u; -} -void WindowDataParameter::clear_crop_mode() { - crop_mode_.ClearToDefaultNoArena(_default_crop_mode_); - clear_has_crop_mode(); -} -const ::std::string& WindowDataParameter::crop_mode() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.crop_mode) - return crop_mode_.GetNoArena(_default_crop_mode_); -} -void WindowDataParameter::set_crop_mode(const ::std::string& value) { - set_has_crop_mode(); - crop_mode_.SetNoArena(_default_crop_mode_, value); - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.crop_mode) -} -void WindowDataParameter::set_crop_mode(const char* value) { - set_has_crop_mode(); - crop_mode_.SetNoArena(_default_crop_mode_, ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.WindowDataParameter.crop_mode) -} -void WindowDataParameter::set_crop_mode(const char* value, size_t size) { - set_has_crop_mode(); - crop_mode_.SetNoArena(_default_crop_mode_, - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.WindowDataParameter.crop_mode) -} -::std::string* WindowDataParameter::mutable_crop_mode() { - set_has_crop_mode(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.WindowDataParameter.crop_mode) - return crop_mode_.MutableNoArena(_default_crop_mode_); -} -::std::string* WindowDataParameter::release_crop_mode() { - // @@protoc_insertion_point(field_release:opencv_caffe.WindowDataParameter.crop_mode) - clear_has_crop_mode(); - return crop_mode_.ReleaseNoArena(_default_crop_mode_); -} -void WindowDataParameter::set_allocated_crop_mode(::std::string* crop_mode) { - if (crop_mode != NULL) { - set_has_crop_mode(); - } else { - clear_has_crop_mode(); - } - crop_mode_.SetAllocatedNoArena(_default_crop_mode_, crop_mode); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.WindowDataParameter.crop_mode) -} - -// optional bool cache_images = 12 [default = false]; -bool WindowDataParameter::has_cache_images() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -void WindowDataParameter::set_has_cache_images() { - _has_bits_[0] |= 0x00000800u; -} -void WindowDataParameter::clear_has_cache_images() { - _has_bits_[0] &= ~0x00000800u; -} -void WindowDataParameter::clear_cache_images() { - cache_images_ = false; - clear_has_cache_images(); -} -bool WindowDataParameter::cache_images() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.cache_images) - return cache_images_; -} -void WindowDataParameter::set_cache_images(bool value) { - set_has_cache_images(); - cache_images_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.cache_images) -} - -// optional string root_folder = 13 [default = ""]; -bool WindowDataParameter::has_root_folder() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -void WindowDataParameter::set_has_root_folder() { - _has_bits_[0] |= 0x00001000u; -} -void WindowDataParameter::clear_has_root_folder() { - _has_bits_[0] &= ~0x00001000u; -} -void WindowDataParameter::clear_root_folder() { - root_folder_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_root_folder(); -} -const ::std::string& WindowDataParameter::root_folder() const { - // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.root_folder) - return root_folder_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void WindowDataParameter::set_root_folder(const ::std::string& value) { - set_has_root_folder(); - root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.root_folder) -} -void WindowDataParameter::set_root_folder(const char* value) { - set_has_root_folder(); - root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.WindowDataParameter.root_folder) -} -void WindowDataParameter::set_root_folder(const char* value, size_t size) { - set_has_root_folder(); - root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.WindowDataParameter.root_folder) -} -::std::string* WindowDataParameter::mutable_root_folder() { - set_has_root_folder(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.WindowDataParameter.root_folder) - return root_folder_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* WindowDataParameter::release_root_folder() { - // @@protoc_insertion_point(field_release:opencv_caffe.WindowDataParameter.root_folder) - clear_has_root_folder(); - return root_folder_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void WindowDataParameter::set_allocated_root_folder(::std::string* root_folder) { - if (root_folder != NULL) { - set_has_root_folder(); - } else { - clear_has_root_folder(); - } - root_folder_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), root_folder); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.WindowDataParameter.root_folder) -} - -inline const WindowDataParameter* WindowDataParameter::internal_default_instance() { - return &WindowDataParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* SPPParameter_PoolMethod_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SPPParameter_PoolMethod_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[20]; } bool SPPParameter_PoolMethod_IsValid(int value) { switch (value) { @@ -46031,8 +4481,8 @@ const SPPParameter_PoolMethod SPPParameter::PoolMethod_MAX; const int SPPParameter::PoolMethod_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* SPPParameter_Engine_descriptor() { - protobuf_AssignDescriptorsOnce(); - return SPPParameter_Engine_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[21]; } bool SPPParameter_Engine_IsValid(int value) { switch (value) { @@ -46053,447 +4503,9 @@ const SPPParameter_Engine SPPParameter::Engine_MIN; const SPPParameter_Engine SPPParameter::Engine_MAX; const int SPPParameter::Engine_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SPPParameter::kPyramidHeightFieldNumber; -const int SPPParameter::kPoolFieldNumber; -const int SPPParameter::kEngineFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SPPParameter::SPPParameter() - : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - SharedCtor(); - // @@protoc_insertion_point(constructor:opencv_caffe.SPPParameter) -} - -void SPPParameter::InitAsDefaultInstance() { -} - -SPPParameter::SPPParameter(const SPPParameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); - // @@protoc_insertion_point(copy_constructor:opencv_caffe.SPPParameter) -} - -void SPPParameter::SharedCtor() { - _cached_size_ = 0; - ::memset(&pyramid_height_, 0, reinterpret_cast(&engine_) - - reinterpret_cast(&pyramid_height_) + sizeof(engine_)); -} - -SPPParameter::~SPPParameter() { - // @@protoc_insertion_point(destructor:opencv_caffe.SPPParameter) - SharedDtor(); -} - -void SPPParameter::SharedDtor() { -} - -void SPPParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* SPPParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return SPPParameter_descriptor_; -} - -const SPPParameter& SPPParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); - return *internal_default_instance(); -} - -::google::protobuf::internal::ExplicitlyConstructed SPPParameter_default_instance_; - -SPPParameter* SPPParameter::New(::google::protobuf::Arena* arena) const { - SPPParameter* n = new SPPParameter; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void SPPParameter::Clear() { -// @@protoc_insertion_point(message_clear_start:opencv_caffe.SPPParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(SPPParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(pyramid_height_, engine_); - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } -} - -bool SPPParameter::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:opencv_caffe.SPPParameter) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 pyramid_height = 1; - case 1: { - if (tag == 8) { - set_has_pyramid_height(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &pyramid_height_))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_pool; - break; - } - - // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; - case 2: { - if (tag == 16) { - parse_pool: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::SPPParameter_PoolMethod_IsValid(value)) { - set_pool(static_cast< ::opencv_caffe::SPPParameter_PoolMethod >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(48)) goto parse_engine; - break; - } - - // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; - case 6: { - if (tag == 48) { - parse_engine: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::opencv_caffe::SPPParameter_Engine_IsValid(value)) { - set_engine(static_cast< ::opencv_caffe::SPPParameter_Engine >(value)); - } else { - mutable_unknown_fields()->AddVarint(6, value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:opencv_caffe.SPPParameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:opencv_caffe.SPPParameter) - return false; -#undef DO_ -} - -void SPPParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:opencv_caffe.SPPParameter) - // optional uint32 pyramid_height = 1; - if (has_pyramid_height()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->pyramid_height(), output); - } - - // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; - if (has_pool()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->pool(), output); - } - - // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; - if (has_engine()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->engine(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:opencv_caffe.SPPParameter) -} - -::google::protobuf::uint8* SPPParameter::InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SPPParameter) - // optional uint32 pyramid_height = 1; - if (has_pyramid_height()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->pyramid_height(), target); - } - - // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; - if (has_pool()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->pool(), target); - } - - // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; - if (has_engine()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->engine(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SPPParameter) - return target; -} - -size_t SPPParameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SPPParameter) - size_t total_size = 0; - - if (_has_bits_[0 / 32] & 7u) { - // optional uint32 pyramid_height = 1; - if (has_pyramid_height()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->pyramid_height()); - } - - // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; - if (has_pool()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool()); - } - - // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; - if (has_engine()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); - } - - } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void SPPParameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SPPParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - const SPPParameter* source = - ::google::protobuf::internal::DynamicCastToGenerated( - &from); - if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SPPParameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SPPParameter) - UnsafeMergeFrom(*source); - } -} - -void SPPParameter::MergeFrom(const SPPParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SPPParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} - -void SPPParameter::UnsafeMergeFrom(const SPPParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_pyramid_height()) { - set_pyramid_height(from.pyramid_height()); - } - if (from.has_pool()) { - set_pool(from.pool()); - } - if (from.has_engine()) { - set_engine(from.engine()); - } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); - } -} - -void SPPParameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SPPParameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SPPParameter::CopyFrom(const SPPParameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SPPParameter) - if (&from == this) return; - Clear(); - UnsafeMergeFrom(from); -} - -bool SPPParameter::IsInitialized() const { - - return true; -} - -void SPPParameter::Swap(SPPParameter* other) { - if (other == this) return; - InternalSwap(other); -} -void SPPParameter::InternalSwap(SPPParameter* other) { - std::swap(pyramid_height_, other->pyramid_height_); - std::swap(pool_, other->pool_); - std::swap(engine_, other->engine_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); -} - -::google::protobuf::Metadata SPPParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = SPPParameter_descriptor_; - metadata.reflection = SPPParameter_reflection_; - return metadata; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SPPParameter - -// optional uint32 pyramid_height = 1; -bool SPPParameter::has_pyramid_height() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void SPPParameter::set_has_pyramid_height() { - _has_bits_[0] |= 0x00000001u; -} -void SPPParameter::clear_has_pyramid_height() { - _has_bits_[0] &= ~0x00000001u; -} -void SPPParameter::clear_pyramid_height() { - pyramid_height_ = 0u; - clear_has_pyramid_height(); -} -::google::protobuf::uint32 SPPParameter::pyramid_height() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SPPParameter.pyramid_height) - return pyramid_height_; -} -void SPPParameter::set_pyramid_height(::google::protobuf::uint32 value) { - set_has_pyramid_height(); - pyramid_height_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SPPParameter.pyramid_height) -} - -// optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; -bool SPPParameter::has_pool() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void SPPParameter::set_has_pool() { - _has_bits_[0] |= 0x00000002u; -} -void SPPParameter::clear_has_pool() { - _has_bits_[0] &= ~0x00000002u; -} -void SPPParameter::clear_pool() { - pool_ = 0; - clear_has_pool(); -} -::opencv_caffe::SPPParameter_PoolMethod SPPParameter::pool() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SPPParameter.pool) - return static_cast< ::opencv_caffe::SPPParameter_PoolMethod >(pool_); -} -void SPPParameter::set_pool(::opencv_caffe::SPPParameter_PoolMethod value) { - assert(::opencv_caffe::SPPParameter_PoolMethod_IsValid(value)); - set_has_pool(); - pool_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SPPParameter.pool) -} - -// optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; -bool SPPParameter::has_engine() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void SPPParameter::set_has_engine() { - _has_bits_[0] |= 0x00000004u; -} -void SPPParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000004u; -} -void SPPParameter::clear_engine() { - engine_ = 0; - clear_has_engine(); -} -::opencv_caffe::SPPParameter_Engine SPPParameter::engine() const { - // @@protoc_insertion_point(field_get:opencv_caffe.SPPParameter.engine) - return static_cast< ::opencv_caffe::SPPParameter_Engine >(engine_); -} -void SPPParameter::set_engine(::opencv_caffe::SPPParameter_Engine value) { - assert(::opencv_caffe::SPPParameter_Engine_IsValid(value)); - set_has_engine(); - engine_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.SPPParameter.engine) -} - -inline const SPPParameter* SPPParameter::internal_default_instance() { - return &SPPParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - const ::google::protobuf::EnumDescriptor* V1LayerParameter_LayerType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return V1LayerParameter_LayerType_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[22]; } bool V1LayerParameter_LayerType_IsValid(int value) { switch (value) { @@ -46589,8 +4601,8 @@ const V1LayerParameter_LayerType V1LayerParameter::LayerType_MAX; const int V1LayerParameter::LayerType_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 const ::google::protobuf::EnumDescriptor* V1LayerParameter_DimCheckMode_descriptor() { - protobuf_AssignDescriptorsOnce(); - return V1LayerParameter_DimCheckMode_descriptor_; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[23]; } bool V1LayerParameter_DimCheckMode_IsValid(int value) { switch (value) { @@ -46609,6 +4621,30378 @@ const V1LayerParameter_DimCheckMode V1LayerParameter::DimCheckMode_MIN; const V1LayerParameter_DimCheckMode V1LayerParameter::DimCheckMode_MAX; const int V1LayerParameter::DimCheckMode_ARRAYSIZE; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* V0LayerParameter_PoolMethod_descriptor() { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[24]; +} +bool V0LayerParameter_PoolMethod_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const V0LayerParameter_PoolMethod V0LayerParameter::MAX; +const V0LayerParameter_PoolMethod V0LayerParameter::AVE; +const V0LayerParameter_PoolMethod V0LayerParameter::STOCHASTIC; +const V0LayerParameter_PoolMethod V0LayerParameter::PoolMethod_MIN; +const V0LayerParameter_PoolMethod V0LayerParameter::PoolMethod_MAX; +const int V0LayerParameter::PoolMethod_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* Type_descriptor() { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[25]; +} +bool Type_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* Phase_descriptor() { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[26]; +} +bool Phase_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +void BlobShape::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlobShape::kDimFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BlobShape::BlobShape() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.BlobShape) +} +BlobShape::BlobShape(const BlobShape& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + dim_(from.dim_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.BlobShape) +} + +void BlobShape::SharedCtor() { + _cached_size_ = 0; +} + +BlobShape::~BlobShape() { + // @@protoc_insertion_point(destructor:opencv_caffe.BlobShape) + SharedDtor(); +} + +void BlobShape::SharedDtor() { +} + +void BlobShape::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BlobShape::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BlobShape& BlobShape::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape(); + return *internal_default_instance(); +} + +BlobShape* BlobShape::New(::google::protobuf::Arena* arena) const { + BlobShape* n = new BlobShape; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BlobShape::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.BlobShape) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + dim_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BlobShape::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.BlobShape) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated int64 dim = 1 [packed = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, this->mutable_dim()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + 1, 10u, input, this->mutable_dim()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.BlobShape) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.BlobShape) + return false; +#undef DO_ +} + +void BlobShape::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.BlobShape) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated int64 dim = 1 [packed = true]; + if (this->dim_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _dim_cached_byte_size_)); + } + for (int i = 0, n = this->dim_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + this->dim(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.BlobShape) +} + +::google::protobuf::uint8* BlobShape::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BlobShape) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated int64 dim = 1 [packed = true]; + if (this->dim_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 1, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + static_cast< ::google::protobuf::int32>( + _dim_cached_byte_size_), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->dim_, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BlobShape) + return target; +} + +size_t BlobShape::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BlobShape) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated int64 dim = 1 [packed = true]; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + Int64Size(this->dim_); + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _dim_cached_byte_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BlobShape::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BlobShape) + GOOGLE_DCHECK_NE(&from, this); + const BlobShape* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BlobShape) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BlobShape) + MergeFrom(*source); + } +} + +void BlobShape::MergeFrom(const BlobShape& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BlobShape) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + dim_.MergeFrom(from.dim_); +} + +void BlobShape::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BlobShape) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BlobShape::CopyFrom(const BlobShape& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BlobShape) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BlobShape::IsInitialized() const { + return true; +} + +void BlobShape::Swap(BlobShape* other) { + if (other == this) return; + InternalSwap(other); +} +void BlobShape::InternalSwap(BlobShape* other) { + using std::swap; + dim_.InternalSwap(&other->dim_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BlobShape::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BlobProto::InitAsDefaultInstance() { + ::opencv_caffe::_BlobProto_default_instance_._instance.get_mutable()->shape_ = const_cast< ::opencv_caffe::BlobShape*>( + ::opencv_caffe::BlobShape::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlobProto::kShapeFieldNumber; +const int BlobProto::kDataFieldNumber; +const int BlobProto::kDiffFieldNumber; +const int BlobProto::kDoubleDataFieldNumber; +const int BlobProto::kDoubleDiffFieldNumber; +const int BlobProto::kRawDataTypeFieldNumber; +const int BlobProto::kRawDataFieldNumber; +const int BlobProto::kNumFieldNumber; +const int BlobProto::kChannelsFieldNumber; +const int BlobProto::kHeightFieldNumber; +const int BlobProto::kWidthFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BlobProto::BlobProto() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.BlobProto) +} +BlobProto::BlobProto(const BlobProto& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + data_(from.data_), + diff_(from.diff_), + double_data_(from.double_data_), + double_diff_(from.double_diff_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + raw_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_raw_data()) { + raw_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_data_); + } + if (from.has_shape()) { + shape_ = new ::opencv_caffe::BlobShape(*from.shape_); + } else { + shape_ = NULL; + } + ::memcpy(&num_, &from.num_, + static_cast(reinterpret_cast(&raw_data_type_) - + reinterpret_cast(&num_)) + sizeof(raw_data_type_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.BlobProto) +} + +void BlobProto::SharedCtor() { + _cached_size_ = 0; + raw_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&shape_, 0, static_cast( + reinterpret_cast(&raw_data_type_) - + reinterpret_cast(&shape_)) + sizeof(raw_data_type_)); +} + +BlobProto::~BlobProto() { + // @@protoc_insertion_point(destructor:opencv_caffe.BlobProto) + SharedDtor(); +} + +void BlobProto::SharedDtor() { + raw_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete shape_; +} + +void BlobProto::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BlobProto::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BlobProto& BlobProto::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto(); + return *internal_default_instance(); +} + +BlobProto* BlobProto::New(::google::protobuf::Arena* arena) const { + BlobProto* n = new BlobProto; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BlobProto::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.BlobProto) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + diff_.Clear(); + double_data_.Clear(); + double_diff_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!raw_data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*raw_data_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(shape_ != NULL); + shape_->Clear(); + } + } + if (cached_has_bits & 124u) { + ::memset(&num_, 0, static_cast( + reinterpret_cast(&raw_data_type_) - + reinterpret_cast(&num_)) + sizeof(raw_data_type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BlobProto::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.BlobProto) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 num = 1 [default = 0]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_num(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &num_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 channels = 2 [default = 0]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_channels(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &channels_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 height = 3 [default = 0]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_height(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &height_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 width = 4 [default = 0]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_width(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &width_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated float data = 5 [packed = true]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_data()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 42u, input, this->mutable_data()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated float diff = 6 [packed = true]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_diff()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 50u, input, this->mutable_diff()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.BlobShape shape = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_shape())); + } else { + goto handle_unusual; + } + break; + } + + // repeated double double_data = 8 [packed = true]; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, this->mutable_double_data()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + 1, 66u, input, this->mutable_double_data()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated double double_diff = 9 [packed = true]; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, this->mutable_double_diff()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + 1, 74u, input, this->mutable_double_diff()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.Type raw_data_type = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::Type_IsValid(value)) { + set_raw_data_type(static_cast< ::opencv_caffe::Type >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 10, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional bytes raw_data = 12 [packed = false]; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_raw_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.BlobProto) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.BlobProto) + return false; +#undef DO_ +} + +void BlobProto::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.BlobProto) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 num = 1 [default = 0]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->num(), output); + } + + // optional int32 channels = 2 [default = 0]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->channels(), output); + } + + // optional int32 height = 3 [default = 0]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->height(), output); + } + + // optional int32 width = 4 [default = 0]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->width(), output); + } + + // repeated float data = 5 [packed = true]; + if (this->data_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _data_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteFloatArray( + this->data().data(), this->data_size(), output); + } + + // repeated float diff = 6 [packed = true]; + if (this->diff_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _diff_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteFloatArray( + this->diff().data(), this->diff_size(), output); + } + + // optional .opencv_caffe.BlobShape shape = 7; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *this->shape_, output); + } + + // repeated double double_data = 8 [packed = true]; + if (this->double_data_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _double_data_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( + this->double_data().data(), this->double_data_size(), output); + } + + // repeated double double_diff = 9 [packed = true]; + if (this->double_diff_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _double_diff_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( + this->double_diff().data(), this->double_diff_size(), output); + } + + // optional .opencv_caffe.Type raw_data_type = 10; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 10, this->raw_data_type(), output); + } + + // optional bytes raw_data = 12 [packed = false]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 12, this->raw_data(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.BlobProto) +} + +::google::protobuf::uint8* BlobProto::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BlobProto) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 num = 1 [default = 0]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->num(), target); + } + + // optional int32 channels = 2 [default = 0]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->channels(), target); + } + + // optional int32 height = 3 [default = 0]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->height(), target); + } + + // optional int32 width = 4 [default = 0]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->width(), target); + } + + // repeated float data = 5 [packed = true]; + if (this->data_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 5, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + static_cast< ::google::protobuf::int32>( + _data_cached_byte_size_), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatNoTagToArray(this->data_, target); + } + + // repeated float diff = 6 [packed = true]; + if (this->diff_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 6, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + static_cast< ::google::protobuf::int32>( + _diff_cached_byte_size_), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatNoTagToArray(this->diff_, target); + } + + // optional .opencv_caffe.BlobShape shape = 7; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *this->shape_, deterministic, target); + } + + // repeated double double_data = 8 [packed = true]; + if (this->double_data_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 8, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + static_cast< ::google::protobuf::int32>( + _double_data_cached_byte_size_), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteDoubleNoTagToArray(this->double_data_, target); + } + + // repeated double double_diff = 9 [packed = true]; + if (this->double_diff_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 9, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + static_cast< ::google::protobuf::int32>( + _double_diff_cached_byte_size_), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteDoubleNoTagToArray(this->double_diff_, target); + } + + // optional .opencv_caffe.Type raw_data_type = 10; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 10, this->raw_data_type(), target); + } + + // optional bytes raw_data = 12 [packed = false]; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 12, this->raw_data(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BlobProto) + return target; +} + +size_t BlobProto::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BlobProto) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated float data = 5 [packed = true]; + { + unsigned int count = static_cast(this->data_size()); + size_t data_size = 4UL * count; + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _data_cached_byte_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + // repeated float diff = 6 [packed = true]; + { + unsigned int count = static_cast(this->diff_size()); + size_t data_size = 4UL * count; + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _diff_cached_byte_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + // repeated double double_data = 8 [packed = true]; + { + unsigned int count = static_cast(this->double_data_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _double_data_cached_byte_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + // repeated double double_diff = 9 [packed = true]; + { + unsigned int count = static_cast(this->double_diff_size()); + size_t data_size = 8UL * count; + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _double_diff_cached_byte_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 127u) { + // optional bytes raw_data = 12 [packed = false]; + if (has_raw_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->raw_data()); + } + + // optional .opencv_caffe.BlobShape shape = 7; + if (has_shape()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->shape_); + } + + // optional int32 num = 1 [default = 0]; + if (has_num()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->num()); + } + + // optional int32 channels = 2 [default = 0]; + if (has_channels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->channels()); + } + + // optional int32 height = 3 [default = 0]; + if (has_height()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->height()); + } + + // optional int32 width = 4 [default = 0]; + if (has_width()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->width()); + } + + // optional .opencv_caffe.Type raw_data_type = 10; + if (has_raw_data_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->raw_data_type()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BlobProto::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BlobProto) + GOOGLE_DCHECK_NE(&from, this); + const BlobProto* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BlobProto) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BlobProto) + MergeFrom(*source); + } +} + +void BlobProto::MergeFrom(const BlobProto& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BlobProto) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); + diff_.MergeFrom(from.diff_); + double_data_.MergeFrom(from.double_data_); + double_diff_.MergeFrom(from.double_diff_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 127u) { + if (cached_has_bits & 0x00000001u) { + set_has_raw_data(); + raw_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_data_); + } + if (cached_has_bits & 0x00000002u) { + mutable_shape()->::opencv_caffe::BlobShape::MergeFrom(from.shape()); + } + if (cached_has_bits & 0x00000004u) { + num_ = from.num_; + } + if (cached_has_bits & 0x00000008u) { + channels_ = from.channels_; + } + if (cached_has_bits & 0x00000010u) { + height_ = from.height_; + } + if (cached_has_bits & 0x00000020u) { + width_ = from.width_; + } + if (cached_has_bits & 0x00000040u) { + raw_data_type_ = from.raw_data_type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BlobProto::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BlobProto) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BlobProto::CopyFrom(const BlobProto& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BlobProto) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BlobProto::IsInitialized() const { + return true; +} + +void BlobProto::Swap(BlobProto* other) { + if (other == this) return; + InternalSwap(other); +} +void BlobProto::InternalSwap(BlobProto* other) { + using std::swap; + data_.InternalSwap(&other->data_); + diff_.InternalSwap(&other->diff_); + double_data_.InternalSwap(&other->double_data_); + double_diff_.InternalSwap(&other->double_diff_); + raw_data_.Swap(&other->raw_data_); + swap(shape_, other->shape_); + swap(num_, other->num_); + swap(channels_, other->channels_); + swap(height_, other->height_); + swap(width_, other->width_); + swap(raw_data_type_, other->raw_data_type_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BlobProto::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BlobProtoVector::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlobProtoVector::kBlobsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BlobProtoVector::BlobProtoVector() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProtoVector(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.BlobProtoVector) +} +BlobProtoVector::BlobProtoVector(const BlobProtoVector& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + blobs_(from.blobs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.BlobProtoVector) +} + +void BlobProtoVector::SharedCtor() { + _cached_size_ = 0; +} + +BlobProtoVector::~BlobProtoVector() { + // @@protoc_insertion_point(destructor:opencv_caffe.BlobProtoVector) + SharedDtor(); +} + +void BlobProtoVector::SharedDtor() { +} + +void BlobProtoVector::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BlobProtoVector::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BlobProtoVector& BlobProtoVector::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProtoVector(); + return *internal_default_instance(); +} + +BlobProtoVector* BlobProtoVector::New(::google::protobuf::Arena* arena) const { + BlobProtoVector* n = new BlobProtoVector; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BlobProtoVector::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.BlobProtoVector) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + blobs_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BlobProtoVector::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.BlobProtoVector) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .opencv_caffe.BlobProto blobs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_blobs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.BlobProtoVector) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.BlobProtoVector) + return false; +#undef DO_ +} + +void BlobProtoVector::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.BlobProtoVector) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .opencv_caffe.BlobProto blobs = 1; + for (unsigned int i = 0, + n = static_cast(this->blobs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->blobs(static_cast(i)), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.BlobProtoVector) +} + +::google::protobuf::uint8* BlobProtoVector::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BlobProtoVector) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .opencv_caffe.BlobProto blobs = 1; + for (unsigned int i = 0, + n = static_cast(this->blobs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->blobs(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BlobProtoVector) + return target; +} + +size_t BlobProtoVector::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BlobProtoVector) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .opencv_caffe.BlobProto blobs = 1; + { + unsigned int count = static_cast(this->blobs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->blobs(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BlobProtoVector::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BlobProtoVector) + GOOGLE_DCHECK_NE(&from, this); + const BlobProtoVector* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BlobProtoVector) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BlobProtoVector) + MergeFrom(*source); + } +} + +void BlobProtoVector::MergeFrom(const BlobProtoVector& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BlobProtoVector) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + blobs_.MergeFrom(from.blobs_); +} + +void BlobProtoVector::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BlobProtoVector) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BlobProtoVector::CopyFrom(const BlobProtoVector& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BlobProtoVector) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BlobProtoVector::IsInitialized() const { + return true; +} + +void BlobProtoVector::Swap(BlobProtoVector* other) { + if (other == this) return; + InternalSwap(other); +} +void BlobProtoVector::InternalSwap(BlobProtoVector* other) { + using std::swap; + blobs_.InternalSwap(&other->blobs_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BlobProtoVector::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PermuteParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PermuteParameter::kOrderFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PermuteParameter::PermuteParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPermuteParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.PermuteParameter) +} +PermuteParameter::PermuteParameter(const PermuteParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + order_(from.order_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.PermuteParameter) +} + +void PermuteParameter::SharedCtor() { + _cached_size_ = 0; +} + +PermuteParameter::~PermuteParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.PermuteParameter) + SharedDtor(); +} + +void PermuteParameter::SharedDtor() { +} + +void PermuteParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PermuteParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PermuteParameter& PermuteParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPermuteParameter(); + return *internal_default_instance(); +} + +PermuteParameter* PermuteParameter::New(::google::protobuf::Arena* arena) const { + PermuteParameter* n = new PermuteParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void PermuteParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.PermuteParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + order_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PermuteParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.PermuteParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated uint32 order = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 8u, input, this->mutable_order()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_order()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.PermuteParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.PermuteParameter) + return false; +#undef DO_ +} + +void PermuteParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.PermuteParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 order = 1; + for (int i = 0, n = this->order_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 1, this->order(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.PermuteParameter) +} + +::google::protobuf::uint8* PermuteParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PermuteParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint32 order = 1; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(1, this->order_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PermuteParameter) + return target; +} + +size_t PermuteParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PermuteParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 order = 1; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->order_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->order_size()); + total_size += data_size; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PermuteParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PermuteParameter) + GOOGLE_DCHECK_NE(&from, this); + const PermuteParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PermuteParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PermuteParameter) + MergeFrom(*source); + } +} + +void PermuteParameter::MergeFrom(const PermuteParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PermuteParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + order_.MergeFrom(from.order_); +} + +void PermuteParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PermuteParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PermuteParameter::CopyFrom(const PermuteParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PermuteParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PermuteParameter::IsInitialized() const { + return true; +} + +void PermuteParameter::Swap(PermuteParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void PermuteParameter::InternalSwap(PermuteParameter* other) { + using std::swap; + order_.InternalSwap(&other->order_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata PermuteParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NormalizeBBoxParameter::InitAsDefaultInstance() { + ::opencv_caffe::_NormalizeBBoxParameter_default_instance_._instance.get_mutable()->scale_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NormalizeBBoxParameter::kAcrossSpatialFieldNumber; +const int NormalizeBBoxParameter::kScaleFillerFieldNumber; +const int NormalizeBBoxParameter::kChannelSharedFieldNumber; +const int NormalizeBBoxParameter::kEpsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NormalizeBBoxParameter::NormalizeBBoxParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizeBBoxParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.NormalizeBBoxParameter) +} +NormalizeBBoxParameter::NormalizeBBoxParameter(const NormalizeBBoxParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_scale_filler()) { + scale_filler_ = new ::opencv_caffe::FillerParameter(*from.scale_filler_); + } else { + scale_filler_ = NULL; + } + ::memcpy(&across_spatial_, &from.across_spatial_, + static_cast(reinterpret_cast(&eps_) - + reinterpret_cast(&across_spatial_)) + sizeof(eps_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.NormalizeBBoxParameter) +} + +void NormalizeBBoxParameter::SharedCtor() { + _cached_size_ = 0; + scale_filler_ = NULL; + across_spatial_ = true; + channel_shared_ = true; + eps_ = 1e-10f; +} + +NormalizeBBoxParameter::~NormalizeBBoxParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.NormalizeBBoxParameter) + SharedDtor(); +} + +void NormalizeBBoxParameter::SharedDtor() { + if (this != internal_default_instance()) delete scale_filler_; +} + +void NormalizeBBoxParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NormalizeBBoxParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NormalizeBBoxParameter& NormalizeBBoxParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizeBBoxParameter(); + return *internal_default_instance(); +} + +NormalizeBBoxParameter* NormalizeBBoxParameter::New(::google::protobuf::Arena* arena) const { + NormalizeBBoxParameter* n = new NormalizeBBoxParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NormalizeBBoxParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.NormalizeBBoxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(scale_filler_ != NULL); + scale_filler_->Clear(); + } + across_spatial_ = true; + channel_shared_ = true; + eps_ = 1e-10f; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NormalizeBBoxParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.NormalizeBBoxParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool across_spatial = 1 [default = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_across_spatial(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &across_spatial_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter scale_filler = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scale_filler())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool channel_shared = 3 [default = true]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_channel_shared(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &channel_shared_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float eps = 4 [default = 1e-10]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { + set_has_eps(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &eps_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.NormalizeBBoxParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.NormalizeBBoxParameter) + return false; +#undef DO_ +} + +void NormalizeBBoxParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.NormalizeBBoxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool across_spatial = 1 [default = true]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->across_spatial(), output); + } + + // optional .opencv_caffe.FillerParameter scale_filler = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->scale_filler_, output); + } + + // optional bool channel_shared = 3 [default = true]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->channel_shared(), output); + } + + // optional float eps = 4 [default = 1e-10]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->eps(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.NormalizeBBoxParameter) +} + +::google::protobuf::uint8* NormalizeBBoxParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NormalizeBBoxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool across_spatial = 1 [default = true]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->across_spatial(), target); + } + + // optional .opencv_caffe.FillerParameter scale_filler = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->scale_filler_, deterministic, target); + } + + // optional bool channel_shared = 3 [default = true]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->channel_shared(), target); + } + + // optional float eps = 4 [default = 1e-10]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->eps(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NormalizeBBoxParameter) + return target; +} + +size_t NormalizeBBoxParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NormalizeBBoxParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional .opencv_caffe.FillerParameter scale_filler = 2; + if (has_scale_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->scale_filler_); + } + + // optional bool across_spatial = 1 [default = true]; + if (has_across_spatial()) { + total_size += 1 + 1; + } + + // optional bool channel_shared = 3 [default = true]; + if (has_channel_shared()) { + total_size += 1 + 1; + } + + // optional float eps = 4 [default = 1e-10]; + if (has_eps()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NormalizeBBoxParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NormalizeBBoxParameter) + GOOGLE_DCHECK_NE(&from, this); + const NormalizeBBoxParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NormalizeBBoxParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NormalizeBBoxParameter) + MergeFrom(*source); + } +} + +void NormalizeBBoxParameter::MergeFrom(const NormalizeBBoxParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NormalizeBBoxParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + mutable_scale_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.scale_filler()); + } + if (cached_has_bits & 0x00000002u) { + across_spatial_ = from.across_spatial_; + } + if (cached_has_bits & 0x00000004u) { + channel_shared_ = from.channel_shared_; + } + if (cached_has_bits & 0x00000008u) { + eps_ = from.eps_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NormalizeBBoxParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NormalizeBBoxParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NormalizeBBoxParameter::CopyFrom(const NormalizeBBoxParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NormalizeBBoxParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NormalizeBBoxParameter::IsInitialized() const { + return true; +} + +void NormalizeBBoxParameter::Swap(NormalizeBBoxParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void NormalizeBBoxParameter::InternalSwap(NormalizeBBoxParameter* other) { + using std::swap; + swap(scale_filler_, other->scale_filler_); + swap(across_spatial_, other->across_spatial_); + swap(channel_shared_, other->channel_shared_); + swap(eps_, other->eps_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NormalizeBBoxParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PriorBoxParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PriorBoxParameter::kMinSizeFieldNumber; +const int PriorBoxParameter::kMaxSizeFieldNumber; +const int PriorBoxParameter::kAspectRatioFieldNumber; +const int PriorBoxParameter::kFlipFieldNumber; +const int PriorBoxParameter::kClipFieldNumber; +const int PriorBoxParameter::kVarianceFieldNumber; +const int PriorBoxParameter::kImgSizeFieldNumber; +const int PriorBoxParameter::kImgHFieldNumber; +const int PriorBoxParameter::kImgWFieldNumber; +const int PriorBoxParameter::kStepFieldNumber; +const int PriorBoxParameter::kStepHFieldNumber; +const int PriorBoxParameter::kStepWFieldNumber; +const int PriorBoxParameter::kOffsetFieldNumber; +const int PriorBoxParameter::kOffsetHFieldNumber; +const int PriorBoxParameter::kOffsetWFieldNumber; +const int PriorBoxParameter::kWidthFieldNumber; +const int PriorBoxParameter::kHeightFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PriorBoxParameter::PriorBoxParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPriorBoxParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.PriorBoxParameter) +} +PriorBoxParameter::PriorBoxParameter(const PriorBoxParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + aspect_ratio_(from.aspect_ratio_), + variance_(from.variance_), + offset_h_(from.offset_h_), + offset_w_(from.offset_w_), + width_(from.width_), + height_(from.height_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&min_size_, &from.min_size_, + static_cast(reinterpret_cast(&offset_) - + reinterpret_cast(&min_size_)) + sizeof(offset_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.PriorBoxParameter) +} + +void PriorBoxParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&min_size_, 0, static_cast( + reinterpret_cast(&step_w_) - + reinterpret_cast(&min_size_)) + sizeof(step_w_)); + flip_ = true; + clip_ = true; + offset_ = 0.5f; +} + +PriorBoxParameter::~PriorBoxParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.PriorBoxParameter) + SharedDtor(); +} + +void PriorBoxParameter::SharedDtor() { +} + +void PriorBoxParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PriorBoxParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PriorBoxParameter& PriorBoxParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPriorBoxParameter(); + return *internal_default_instance(); +} + +PriorBoxParameter* PriorBoxParameter::New(::google::protobuf::Arena* arena) const { + PriorBoxParameter* n = new PriorBoxParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void PriorBoxParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.PriorBoxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + aspect_ratio_.Clear(); + variance_.Clear(); + offset_h_.Clear(); + offset_w_.Clear(); + width_.Clear(); + height_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + ::memset(&min_size_, 0, static_cast( + reinterpret_cast(&step_w_) - + reinterpret_cast(&min_size_)) + sizeof(step_w_)); + } + if (cached_has_bits & 1792u) { + flip_ = true; + clip_ = true; + offset_ = 0.5f; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PriorBoxParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.PriorBoxParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float min_size = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_min_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &min_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float max_size = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_max_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &max_size_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated float aspect_ratio = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 29u, input, this->mutable_aspect_ratio()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_aspect_ratio()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool flip = 4 [default = true]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_flip(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &flip_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool clip = 5 [default = true]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_clip(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &clip_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated float variance = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 53u, input, this->mutable_variance()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_variance()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 img_size = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_img_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &img_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 img_h = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_img_h(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &img_h_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 img_w = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_img_w(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &img_w_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float step = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) { + set_has_step(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &step_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float step_h = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) { + set_has_step_h(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &step_h_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float step_w = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) { + set_has_step_w(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &step_w_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float offset = 13 [default = 0.5]; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(109u /* 109 & 0xFF */)) { + set_has_offset(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &offset_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated float offset_h = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 117u, input, this->mutable_offset_h()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_offset_h()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated float offset_w = 15; + case 15: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 125u, input, this->mutable_offset_w()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_offset_w()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated float width = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(133u /* 133 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 2, 133u, input, this->mutable_width()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_width()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated float height = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(141u /* 141 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 2, 141u, input, this->mutable_height()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_height()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.PriorBoxParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.PriorBoxParameter) + return false; +#undef DO_ +} + +void PriorBoxParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.PriorBoxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float min_size = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->min_size(), output); + } + + // optional float max_size = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->max_size(), output); + } + + // repeated float aspect_ratio = 3; + for (int i = 0, n = this->aspect_ratio_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 3, this->aspect_ratio(i), output); + } + + // optional bool flip = 4 [default = true]; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->flip(), output); + } + + // optional bool clip = 5 [default = true]; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->clip(), output); + } + + // repeated float variance = 6; + for (int i = 0, n = this->variance_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 6, this->variance(i), output); + } + + // optional uint32 img_size = 7; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->img_size(), output); + } + + // optional uint32 img_h = 8; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->img_h(), output); + } + + // optional uint32 img_w = 9; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->img_w(), output); + } + + // optional float step = 10; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->step(), output); + } + + // optional float step_h = 11; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->step_h(), output); + } + + // optional float step_w = 12; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->step_w(), output); + } + + // optional float offset = 13 [default = 0.5]; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->offset(), output); + } + + // repeated float offset_h = 14; + for (int i = 0, n = this->offset_h_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 14, this->offset_h(i), output); + } + + // repeated float offset_w = 15; + for (int i = 0, n = this->offset_w_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 15, this->offset_w(i), output); + } + + // repeated float width = 16; + for (int i = 0, n = this->width_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 16, this->width(i), output); + } + + // repeated float height = 17; + for (int i = 0, n = this->height_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 17, this->height(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.PriorBoxParameter) +} + +::google::protobuf::uint8* PriorBoxParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PriorBoxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float min_size = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->min_size(), target); + } + + // optional float max_size = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->max_size(), target); + } + + // repeated float aspect_ratio = 3; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(3, this->aspect_ratio_, target); + + // optional bool flip = 4 [default = true]; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->flip(), target); + } + + // optional bool clip = 5 [default = true]; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->clip(), target); + } + + // repeated float variance = 6; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(6, this->variance_, target); + + // optional uint32 img_size = 7; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->img_size(), target); + } + + // optional uint32 img_h = 8; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->img_h(), target); + } + + // optional uint32 img_w = 9; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->img_w(), target); + } + + // optional float step = 10; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->step(), target); + } + + // optional float step_h = 11; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->step_h(), target); + } + + // optional float step_w = 12; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->step_w(), target); + } + + // optional float offset = 13 [default = 0.5]; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->offset(), target); + } + + // repeated float offset_h = 14; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(14, this->offset_h_, target); + + // repeated float offset_w = 15; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(15, this->offset_w_, target); + + // repeated float width = 16; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(16, this->width_, target); + + // repeated float height = 17; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(17, this->height_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PriorBoxParameter) + return target; +} + +size_t PriorBoxParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PriorBoxParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated float aspect_ratio = 3; + { + unsigned int count = static_cast(this->aspect_ratio_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->aspect_ratio_size()); + total_size += data_size; + } + + // repeated float variance = 6; + { + unsigned int count = static_cast(this->variance_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->variance_size()); + total_size += data_size; + } + + // repeated float offset_h = 14; + { + unsigned int count = static_cast(this->offset_h_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->offset_h_size()); + total_size += data_size; + } + + // repeated float offset_w = 15; + { + unsigned int count = static_cast(this->offset_w_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->offset_w_size()); + total_size += data_size; + } + + // repeated float width = 16; + { + unsigned int count = static_cast(this->width_size()); + size_t data_size = 4UL * count; + total_size += 2 * + ::google::protobuf::internal::FromIntSize(this->width_size()); + total_size += data_size; + } + + // repeated float height = 17; + { + unsigned int count = static_cast(this->height_size()); + size_t data_size = 4UL * count; + total_size += 2 * + ::google::protobuf::internal::FromIntSize(this->height_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 255u) { + // optional float min_size = 1; + if (has_min_size()) { + total_size += 1 + 4; + } + + // optional float max_size = 2; + if (has_max_size()) { + total_size += 1 + 4; + } + + // optional uint32 img_size = 7; + if (has_img_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->img_size()); + } + + // optional uint32 img_h = 8; + if (has_img_h()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->img_h()); + } + + // optional uint32 img_w = 9; + if (has_img_w()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->img_w()); + } + + // optional float step = 10; + if (has_step()) { + total_size += 1 + 4; + } + + // optional float step_h = 11; + if (has_step_h()) { + total_size += 1 + 4; + } + + // optional float step_w = 12; + if (has_step_w()) { + total_size += 1 + 4; + } + + } + if (_has_bits_[8 / 32] & 1792u) { + // optional bool flip = 4 [default = true]; + if (has_flip()) { + total_size += 1 + 1; + } + + // optional bool clip = 5 [default = true]; + if (has_clip()) { + total_size += 1 + 1; + } + + // optional float offset = 13 [default = 0.5]; + if (has_offset()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PriorBoxParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PriorBoxParameter) + GOOGLE_DCHECK_NE(&from, this); + const PriorBoxParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PriorBoxParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PriorBoxParameter) + MergeFrom(*source); + } +} + +void PriorBoxParameter::MergeFrom(const PriorBoxParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PriorBoxParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + aspect_ratio_.MergeFrom(from.aspect_ratio_); + variance_.MergeFrom(from.variance_); + offset_h_.MergeFrom(from.offset_h_); + offset_w_.MergeFrom(from.offset_w_); + width_.MergeFrom(from.width_); + height_.MergeFrom(from.height_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + min_size_ = from.min_size_; + } + if (cached_has_bits & 0x00000002u) { + max_size_ = from.max_size_; + } + if (cached_has_bits & 0x00000004u) { + img_size_ = from.img_size_; + } + if (cached_has_bits & 0x00000008u) { + img_h_ = from.img_h_; + } + if (cached_has_bits & 0x00000010u) { + img_w_ = from.img_w_; + } + if (cached_has_bits & 0x00000020u) { + step_ = from.step_; + } + if (cached_has_bits & 0x00000040u) { + step_h_ = from.step_h_; + } + if (cached_has_bits & 0x00000080u) { + step_w_ = from.step_w_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 1792u) { + if (cached_has_bits & 0x00000100u) { + flip_ = from.flip_; + } + if (cached_has_bits & 0x00000200u) { + clip_ = from.clip_; + } + if (cached_has_bits & 0x00000400u) { + offset_ = from.offset_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PriorBoxParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PriorBoxParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PriorBoxParameter::CopyFrom(const PriorBoxParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PriorBoxParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PriorBoxParameter::IsInitialized() const { + return true; +} + +void PriorBoxParameter::Swap(PriorBoxParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void PriorBoxParameter::InternalSwap(PriorBoxParameter* other) { + using std::swap; + aspect_ratio_.InternalSwap(&other->aspect_ratio_); + variance_.InternalSwap(&other->variance_); + offset_h_.InternalSwap(&other->offset_h_); + offset_w_.InternalSwap(&other->offset_w_); + width_.InternalSwap(&other->width_); + height_.InternalSwap(&other->height_); + swap(min_size_, other->min_size_); + swap(max_size_, other->max_size_); + swap(img_size_, other->img_size_); + swap(img_h_, other->img_h_); + swap(img_w_, other->img_w_); + swap(step_, other->step_); + swap(step_h_, other->step_h_); + swap(step_w_, other->step_w_); + swap(flip_, other->flip_); + swap(clip_, other->clip_); + swap(offset_, other->offset_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata PriorBoxParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DetectionOutputParameter::InitAsDefaultInstance() { + ::opencv_caffe::_DetectionOutputParameter_default_instance_._instance.get_mutable()->nms_param_ = const_cast< ::opencv_caffe::NonMaximumSuppressionParameter*>( + ::opencv_caffe::NonMaximumSuppressionParameter::internal_default_instance()); + ::opencv_caffe::_DetectionOutputParameter_default_instance_._instance.get_mutable()->save_output_param_ = const_cast< ::opencv_caffe::SaveOutputParameter*>( + ::opencv_caffe::SaveOutputParameter::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DetectionOutputParameter::kNumClassesFieldNumber; +const int DetectionOutputParameter::kShareLocationFieldNumber; +const int DetectionOutputParameter::kBackgroundLabelIdFieldNumber; +const int DetectionOutputParameter::kNmsParamFieldNumber; +const int DetectionOutputParameter::kSaveOutputParamFieldNumber; +const int DetectionOutputParameter::kCodeTypeFieldNumber; +const int DetectionOutputParameter::kVarianceEncodedInTargetFieldNumber; +const int DetectionOutputParameter::kKeepTopKFieldNumber; +const int DetectionOutputParameter::kConfidenceThresholdFieldNumber; +const int DetectionOutputParameter::kNormalizedBboxFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DetectionOutputParameter::DetectionOutputParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDetectionOutputParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.DetectionOutputParameter) +} +DetectionOutputParameter::DetectionOutputParameter(const DetectionOutputParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_nms_param()) { + nms_param_ = new ::opencv_caffe::NonMaximumSuppressionParameter(*from.nms_param_); + } else { + nms_param_ = NULL; + } + if (from.has_save_output_param()) { + save_output_param_ = new ::opencv_caffe::SaveOutputParameter(*from.save_output_param_); + } else { + save_output_param_ = NULL; + } + ::memcpy(&num_classes_, &from.num_classes_, + static_cast(reinterpret_cast(&normalized_bbox_) - + reinterpret_cast(&num_classes_)) + sizeof(normalized_bbox_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.DetectionOutputParameter) +} + +void DetectionOutputParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&nms_param_, 0, static_cast( + reinterpret_cast(&confidence_threshold_) - + reinterpret_cast(&nms_param_)) + sizeof(confidence_threshold_)); + keep_top_k_ = -1; + code_type_ = 1; + share_location_ = true; + normalized_bbox_ = true; +} + +DetectionOutputParameter::~DetectionOutputParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.DetectionOutputParameter) + SharedDtor(); +} + +void DetectionOutputParameter::SharedDtor() { + if (this != internal_default_instance()) delete nms_param_; + if (this != internal_default_instance()) delete save_output_param_; +} + +void DetectionOutputParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DetectionOutputParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DetectionOutputParameter& DetectionOutputParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDetectionOutputParameter(); + return *internal_default_instance(); +} + +DetectionOutputParameter* DetectionOutputParameter::New(::google::protobuf::Arena* arena) const { + DetectionOutputParameter* n = new DetectionOutputParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void DetectionOutputParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.DetectionOutputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(nms_param_ != NULL); + nms_param_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(save_output_param_ != NULL); + save_output_param_->Clear(); + } + } + if (cached_has_bits & 252u) { + ::memset(&num_classes_, 0, static_cast( + reinterpret_cast(&confidence_threshold_) - + reinterpret_cast(&num_classes_)) + sizeof(confidence_threshold_)); + keep_top_k_ = -1; + code_type_ = 1; + } + if (cached_has_bits & 768u) { + share_location_ = true; + normalized_bbox_ = true; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DetectionOutputParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.DetectionOutputParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 num_classes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_num_classes(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_classes_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool share_location = 2 [default = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_share_location(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &share_location_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 background_label_id = 3 [default = 0]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_background_label_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &background_label_id_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_nms_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_save_output_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::PriorBoxParameter_CodeType_IsValid(value)) { + set_code_type(static_cast< ::opencv_caffe::PriorBoxParameter_CodeType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 6, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional int32 keep_top_k = 7 [default = -1]; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_keep_top_k(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &keep_top_k_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool variance_encoded_in_target = 8 [default = false]; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_variance_encoded_in_target(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &variance_encoded_in_target_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float confidence_threshold = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) { + set_has_confidence_threshold(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &confidence_threshold_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool normalized_bbox = 10 [default = true]; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_normalized_bbox(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &normalized_bbox_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.DetectionOutputParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.DetectionOutputParameter) + return false; +#undef DO_ +} + +void DetectionOutputParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.DetectionOutputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_classes = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_classes(), output); + } + + // optional bool share_location = 2 [default = true]; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->share_location(), output); + } + + // optional int32 background_label_id = 3 [default = 0]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->background_label_id(), output); + } + + // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->nms_param_, output); + } + + // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->save_output_param_, output); + } + + // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 6, this->code_type(), output); + } + + // optional int32 keep_top_k = 7 [default = -1]; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->keep_top_k(), output); + } + + // optional bool variance_encoded_in_target = 8 [default = false]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->variance_encoded_in_target(), output); + } + + // optional float confidence_threshold = 9; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->confidence_threshold(), output); + } + + // optional bool normalized_bbox = 10 [default = true]; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->normalized_bbox(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.DetectionOutputParameter) +} + +::google::protobuf::uint8* DetectionOutputParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DetectionOutputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_classes = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_classes(), target); + } + + // optional bool share_location = 2 [default = true]; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->share_location(), target); + } + + // optional int32 background_label_id = 3 [default = 0]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->background_label_id(), target); + } + + // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->nms_param_, deterministic, target); + } + + // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->save_output_param_, deterministic, target); + } + + // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 6, this->code_type(), target); + } + + // optional int32 keep_top_k = 7 [default = -1]; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->keep_top_k(), target); + } + + // optional bool variance_encoded_in_target = 8 [default = false]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->variance_encoded_in_target(), target); + } + + // optional float confidence_threshold = 9; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->confidence_threshold(), target); + } + + // optional bool normalized_bbox = 10 [default = true]; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->normalized_bbox(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DetectionOutputParameter) + return target; +} + +size_t DetectionOutputParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DetectionOutputParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; + if (has_nms_param()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->nms_param_); + } + + // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; + if (has_save_output_param()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->save_output_param_); + } + + // optional uint32 num_classes = 1; + if (has_num_classes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_classes()); + } + + // optional int32 background_label_id = 3 [default = 0]; + if (has_background_label_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->background_label_id()); + } + + // optional bool variance_encoded_in_target = 8 [default = false]; + if (has_variance_encoded_in_target()) { + total_size += 1 + 1; + } + + // optional float confidence_threshold = 9; + if (has_confidence_threshold()) { + total_size += 1 + 4; + } + + // optional int32 keep_top_k = 7 [default = -1]; + if (has_keep_top_k()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->keep_top_k()); + } + + // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; + if (has_code_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->code_type()); + } + + } + if (_has_bits_[8 / 32] & 768u) { + // optional bool share_location = 2 [default = true]; + if (has_share_location()) { + total_size += 1 + 1; + } + + // optional bool normalized_bbox = 10 [default = true]; + if (has_normalized_bbox()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DetectionOutputParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DetectionOutputParameter) + GOOGLE_DCHECK_NE(&from, this); + const DetectionOutputParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DetectionOutputParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DetectionOutputParameter) + MergeFrom(*source); + } +} + +void DetectionOutputParameter::MergeFrom(const DetectionOutputParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DetectionOutputParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + mutable_nms_param()->::opencv_caffe::NonMaximumSuppressionParameter::MergeFrom(from.nms_param()); + } + if (cached_has_bits & 0x00000002u) { + mutable_save_output_param()->::opencv_caffe::SaveOutputParameter::MergeFrom(from.save_output_param()); + } + if (cached_has_bits & 0x00000004u) { + num_classes_ = from.num_classes_; + } + if (cached_has_bits & 0x00000008u) { + background_label_id_ = from.background_label_id_; + } + if (cached_has_bits & 0x00000010u) { + variance_encoded_in_target_ = from.variance_encoded_in_target_; + } + if (cached_has_bits & 0x00000020u) { + confidence_threshold_ = from.confidence_threshold_; + } + if (cached_has_bits & 0x00000040u) { + keep_top_k_ = from.keep_top_k_; + } + if (cached_has_bits & 0x00000080u) { + code_type_ = from.code_type_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 768u) { + if (cached_has_bits & 0x00000100u) { + share_location_ = from.share_location_; + } + if (cached_has_bits & 0x00000200u) { + normalized_bbox_ = from.normalized_bbox_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DetectionOutputParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DetectionOutputParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DetectionOutputParameter::CopyFrom(const DetectionOutputParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DetectionOutputParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DetectionOutputParameter::IsInitialized() const { + return true; +} + +void DetectionOutputParameter::Swap(DetectionOutputParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void DetectionOutputParameter::InternalSwap(DetectionOutputParameter* other) { + using std::swap; + swap(nms_param_, other->nms_param_); + swap(save_output_param_, other->save_output_param_); + swap(num_classes_, other->num_classes_); + swap(background_label_id_, other->background_label_id_); + swap(variance_encoded_in_target_, other->variance_encoded_in_target_); + swap(confidence_threshold_, other->confidence_threshold_); + swap(keep_top_k_, other->keep_top_k_); + swap(code_type_, other->code_type_); + swap(share_location_, other->share_location_); + swap(normalized_bbox_, other->normalized_bbox_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata DetectionOutputParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Datum::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Datum::kChannelsFieldNumber; +const int Datum::kHeightFieldNumber; +const int Datum::kWidthFieldNumber; +const int Datum::kDataFieldNumber; +const int Datum::kLabelFieldNumber; +const int Datum::kFloatDataFieldNumber; +const int Datum::kEncodedFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Datum::Datum() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDatum(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.Datum) +} +Datum::Datum(const Datum& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + float_data_(from.float_data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_data()) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + ::memcpy(&channels_, &from.channels_, + static_cast(reinterpret_cast(&encoded_) - + reinterpret_cast(&channels_)) + sizeof(encoded_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.Datum) +} + +void Datum::SharedCtor() { + _cached_size_ = 0; + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&channels_, 0, static_cast( + reinterpret_cast(&encoded_) - + reinterpret_cast(&channels_)) + sizeof(encoded_)); +} + +Datum::~Datum() { + // @@protoc_insertion_point(destructor:opencv_caffe.Datum) + SharedDtor(); +} + +void Datum::SharedDtor() { + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Datum::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Datum::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Datum& Datum::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDatum(); + return *internal_default_instance(); +} + +Datum* Datum::New(::google::protobuf::Arena* arena) const { + Datum* n = new Datum; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Datum::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.Datum) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + float_data_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*data_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 62u) { + ::memset(&channels_, 0, static_cast( + reinterpret_cast(&encoded_) - + reinterpret_cast(&channels_)) + sizeof(encoded_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Datum::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.Datum) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 channels = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_channels(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &channels_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 height = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_height(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &height_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 width = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_width(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &width_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bytes data = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 label = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_label(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &label_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated float float_data = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 53u, input, this->mutable_float_data()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_float_data()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool encoded = 7 [default = false]; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_encoded(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &encoded_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.Datum) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.Datum) + return false; +#undef DO_ +} + +void Datum::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.Datum) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 channels = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->channels(), output); + } + + // optional int32 height = 2; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->height(), output); + } + + // optional int32 width = 3; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->width(), output); + } + + // optional bytes data = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->data(), output); + } + + // optional int32 label = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->label(), output); + } + + // repeated float float_data = 6; + for (int i = 0, n = this->float_data_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 6, this->float_data(i), output); + } + + // optional bool encoded = 7 [default = false]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->encoded(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.Datum) +} + +::google::protobuf::uint8* Datum::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.Datum) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 channels = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->channels(), target); + } + + // optional int32 height = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->height(), target); + } + + // optional int32 width = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->width(), target); + } + + // optional bytes data = 4; + if (cached_has_bits & 0x00000001u) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->data(), target); + } + + // optional int32 label = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->label(), target); + } + + // repeated float float_data = 6; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(6, this->float_data_, target); + + // optional bool encoded = 7 [default = false]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->encoded(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.Datum) + return target; +} + +size_t Datum::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.Datum) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated float float_data = 6; + { + unsigned int count = static_cast(this->float_data_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->float_data_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 63u) { + // optional bytes data = 4; + if (has_data()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); + } + + // optional int32 channels = 1; + if (has_channels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->channels()); + } + + // optional int32 height = 2; + if (has_height()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->height()); + } + + // optional int32 width = 3; + if (has_width()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->width()); + } + + // optional int32 label = 5; + if (has_label()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->label()); + } + + // optional bool encoded = 7 [default = false]; + if (has_encoded()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Datum::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.Datum) + GOOGLE_DCHECK_NE(&from, this); + const Datum* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.Datum) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.Datum) + MergeFrom(*source); + } +} + +void Datum::MergeFrom(const Datum& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.Datum) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + float_data_.MergeFrom(from.float_data_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_data(); + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); + } + if (cached_has_bits & 0x00000002u) { + channels_ = from.channels_; + } + if (cached_has_bits & 0x00000004u) { + height_ = from.height_; + } + if (cached_has_bits & 0x00000008u) { + width_ = from.width_; + } + if (cached_has_bits & 0x00000010u) { + label_ = from.label_; + } + if (cached_has_bits & 0x00000020u) { + encoded_ = from.encoded_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void Datum::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.Datum) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Datum::CopyFrom(const Datum& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.Datum) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Datum::IsInitialized() const { + return true; +} + +void Datum::Swap(Datum* other) { + if (other == this) return; + InternalSwap(other); +} +void Datum::InternalSwap(Datum* other) { + using std::swap; + float_data_.InternalSwap(&other->float_data_); + data_.Swap(&other->data_); + swap(channels_, other->channels_); + swap(height_, other->height_); + swap(width_, other->width_); + swap(label_, other->label_); + swap(encoded_, other->encoded_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Datum::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void FillerParameter::InitAsDefaultInstance() { +} +::google::protobuf::internal::ExplicitlyConstructed< ::std::string> FillerParameter::_default_type_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FillerParameter::kTypeFieldNumber; +const int FillerParameter::kValueFieldNumber; +const int FillerParameter::kMinFieldNumber; +const int FillerParameter::kMaxFieldNumber; +const int FillerParameter::kMeanFieldNumber; +const int FillerParameter::kStdFieldNumber; +const int FillerParameter::kSparseFieldNumber; +const int FillerParameter::kVarianceNormFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FillerParameter::FillerParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.FillerParameter) +} +FillerParameter::FillerParameter(const FillerParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + type_.UnsafeSetDefault(&::opencv_caffe::FillerParameter::_default_type_.get()); + if (from.has_type()) { + type_.AssignWithDefault(&::opencv_caffe::FillerParameter::_default_type_.get(), from.type_); + } + ::memcpy(&value_, &from.value_, + static_cast(reinterpret_cast(&std_) - + reinterpret_cast(&value_)) + sizeof(std_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.FillerParameter) +} + +void FillerParameter::SharedCtor() { + _cached_size_ = 0; + type_.UnsafeSetDefault(&::opencv_caffe::FillerParameter::_default_type_.get()); + ::memset(&value_, 0, static_cast( + reinterpret_cast(&variance_norm_) - + reinterpret_cast(&value_)) + sizeof(variance_norm_)); + sparse_ = -1; + max_ = 1; + std_ = 1; +} + +FillerParameter::~FillerParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.FillerParameter) + SharedDtor(); +} + +void FillerParameter::SharedDtor() { + type_.DestroyNoArena(&::opencv_caffe::FillerParameter::_default_type_.get()); +} + +void FillerParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FillerParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const FillerParameter& FillerParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter(); + return *internal_default_instance(); +} + +FillerParameter* FillerParameter::New(::google::protobuf::Arena* arena) const { + FillerParameter* n = new FillerParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void FillerParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.FillerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!type_.IsDefault(&::opencv_caffe::FillerParameter::_default_type_.get())); + (*type_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::FillerParameter::_default_type_.get()); + } + if (cached_has_bits & 254u) { + ::memset(&value_, 0, static_cast( + reinterpret_cast(&variance_norm_) - + reinterpret_cast(&value_)) + sizeof(variance_norm_)); + sparse_ = -1; + max_ = 1; + std_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool FillerParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.FillerParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string type = 1 [default = "constant"]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_type())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.FillerParameter.type"); + } else { + goto handle_unusual; + } + break; + } + + // optional float value = 2 [default = 0]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &value_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float min = 3 [default = 0]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_min(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &min_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float max = 4 [default = 1]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { + set_has_max(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &max_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float mean = 5 [default = 0]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { + set_has_mean(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &mean_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float std = 6 [default = 1]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) { + set_has_std(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &std_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 sparse = 7 [default = -1]; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_sparse(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &sparse_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::FillerParameter_VarianceNorm_IsValid(value)) { + set_variance_norm(static_cast< ::opencv_caffe::FillerParameter_VarianceNorm >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 8, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.FillerParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.FillerParameter) + return false; +#undef DO_ +} + +void FillerParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.FillerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string type = 1 [default = "constant"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.FillerParameter.type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->type(), output); + } + + // optional float value = 2 [default = 0]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->value(), output); + } + + // optional float min = 3 [default = 0]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->min(), output); + } + + // optional float max = 4 [default = 1]; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->max(), output); + } + + // optional float mean = 5 [default = 0]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->mean(), output); + } + + // optional float std = 6 [default = 1]; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->std(), output); + } + + // optional int32 sparse = 7 [default = -1]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->sparse(), output); + } + + // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 8, this->variance_norm(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.FillerParameter) +} + +::google::protobuf::uint8* FillerParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.FillerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string type = 1 [default = "constant"]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.FillerParameter.type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->type(), target); + } + + // optional float value = 2 [default = 0]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->value(), target); + } + + // optional float min = 3 [default = 0]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->min(), target); + } + + // optional float max = 4 [default = 1]; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->max(), target); + } + + // optional float mean = 5 [default = 0]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->mean(), target); + } + + // optional float std = 6 [default = 1]; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->std(), target); + } + + // optional int32 sparse = 7 [default = -1]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->sparse(), target); + } + + // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 8, this->variance_norm(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.FillerParameter) + return target; +} + +size_t FillerParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.FillerParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string type = 1 [default = "constant"]; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->type()); + } + + // optional float value = 2 [default = 0]; + if (has_value()) { + total_size += 1 + 4; + } + + // optional float min = 3 [default = 0]; + if (has_min()) { + total_size += 1 + 4; + } + + // optional float mean = 5 [default = 0]; + if (has_mean()) { + total_size += 1 + 4; + } + + // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; + if (has_variance_norm()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->variance_norm()); + } + + // optional int32 sparse = 7 [default = -1]; + if (has_sparse()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->sparse()); + } + + // optional float max = 4 [default = 1]; + if (has_max()) { + total_size += 1 + 4; + } + + // optional float std = 6 [default = 1]; + if (has_std()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FillerParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.FillerParameter) + GOOGLE_DCHECK_NE(&from, this); + const FillerParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.FillerParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.FillerParameter) + MergeFrom(*source); + } +} + +void FillerParameter::MergeFrom(const FillerParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.FillerParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_type(); + type_.AssignWithDefault(&::opencv_caffe::FillerParameter::_default_type_.get(), from.type_); + } + if (cached_has_bits & 0x00000002u) { + value_ = from.value_; + } + if (cached_has_bits & 0x00000004u) { + min_ = from.min_; + } + if (cached_has_bits & 0x00000008u) { + mean_ = from.mean_; + } + if (cached_has_bits & 0x00000010u) { + variance_norm_ = from.variance_norm_; + } + if (cached_has_bits & 0x00000020u) { + sparse_ = from.sparse_; + } + if (cached_has_bits & 0x00000040u) { + max_ = from.max_; + } + if (cached_has_bits & 0x00000080u) { + std_ = from.std_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void FillerParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.FillerParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FillerParameter::CopyFrom(const FillerParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.FillerParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FillerParameter::IsInitialized() const { + return true; +} + +void FillerParameter::Swap(FillerParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void FillerParameter::InternalSwap(FillerParameter* other) { + using std::swap; + type_.Swap(&other->type_); + swap(value_, other->value_); + swap(min_, other->min_); + swap(mean_, other->mean_); + swap(variance_norm_, other->variance_norm_); + swap(sparse_, other->sparse_); + swap(max_, other->max_); + swap(std_, other->std_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata FillerParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NetParameter::InitAsDefaultInstance() { + ::opencv_caffe::_NetParameter_default_instance_._instance.get_mutable()->state_ = const_cast< ::opencv_caffe::NetState*>( + ::opencv_caffe::NetState::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NetParameter::kNameFieldNumber; +const int NetParameter::kInputFieldNumber; +const int NetParameter::kInputShapeFieldNumber; +const int NetParameter::kInputDimFieldNumber; +const int NetParameter::kForceBackwardFieldNumber; +const int NetParameter::kStateFieldNumber; +const int NetParameter::kDebugInfoFieldNumber; +const int NetParameter::kLayerFieldNumber; +const int NetParameter::kLayersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NetParameter::NetParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.NetParameter) +} +NetParameter::NetParameter(const NetParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + layers_(from.layers_), + input_(from.input_), + input_dim_(from.input_dim_), + input_shape_(from.input_shape_), + layer_(from.layer_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_name()) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_state()) { + state_ = new ::opencv_caffe::NetState(*from.state_); + } else { + state_ = NULL; + } + ::memcpy(&force_backward_, &from.force_backward_, + static_cast(reinterpret_cast(&debug_info_) - + reinterpret_cast(&force_backward_)) + sizeof(debug_info_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.NetParameter) +} + +void NetParameter::SharedCtor() { + _cached_size_ = 0; + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&state_, 0, static_cast( + reinterpret_cast(&debug_info_) - + reinterpret_cast(&state_)) + sizeof(debug_info_)); +} + +NetParameter::~NetParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.NetParameter) + SharedDtor(); +} + +void NetParameter::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete state_; +} + +void NetParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NetParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NetParameter& NetParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetParameter(); + return *internal_default_instance(); +} + +NetParameter* NetParameter::New(::google::protobuf::Arena* arena) const { + NetParameter* n = new NetParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NetParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.NetParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + layers_.Clear(); + input_.Clear(); + input_dim_.Clear(); + input_shape_.Clear(); + layer_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*name_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(state_ != NULL); + state_->Clear(); + } + } + ::memset(&force_backward_, 0, static_cast( + reinterpret_cast(&debug_info_) - + reinterpret_cast(&force_backward_)) + sizeof(debug_info_)); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NetParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.NetParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.NetParameter.name"); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.V1LayerParameter layers = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_layers())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string input = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_input())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->input(this->input_size() - 1).data(), + static_cast(this->input(this->input_size() - 1).length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.NetParameter.input"); + } else { + goto handle_unusual; + } + break; + } + + // repeated int32 input_dim = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + 1, 32u, input, this->mutable_input_dim()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, this->mutable_input_dim()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool force_backward = 5 [default = false]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_force_backward(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &force_backward_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.NetState state = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_state())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool debug_info = 7 [default = false]; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_debug_info(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &debug_info_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.BlobShape input_shape = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_input_shape())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.LayerParameter layer = 100; + case 100: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 802 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_layer())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.NetParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.NetParameter) + return false; +#undef DO_ +} + +void NetParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.NetParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetParameter.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // repeated .opencv_caffe.V1LayerParameter layers = 2; + for (unsigned int i = 0, + n = static_cast(this->layers_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->layers(static_cast(i)), output); + } + + // repeated string input = 3; + for (int i = 0, n = this->input_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->input(i).data(), static_cast(this->input(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetParameter.input"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->input(i), output); + } + + // repeated int32 input_dim = 4; + for (int i = 0, n = this->input_dim_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteInt32( + 4, this->input_dim(i), output); + } + + // optional bool force_backward = 5 [default = false]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->force_backward(), output); + } + + // optional .opencv_caffe.NetState state = 6; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *this->state_, output); + } + + // optional bool debug_info = 7 [default = false]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->debug_info(), output); + } + + // repeated .opencv_caffe.BlobShape input_shape = 8; + for (unsigned int i = 0, + n = static_cast(this->input_shape_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, this->input_shape(static_cast(i)), output); + } + + // repeated .opencv_caffe.LayerParameter layer = 100; + for (unsigned int i = 0, + n = static_cast(this->layer_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 100, this->layer(static_cast(i)), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.NetParameter) +} + +::google::protobuf::uint8* NetParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NetParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetParameter.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // repeated .opencv_caffe.V1LayerParameter layers = 2; + for (unsigned int i = 0, + n = static_cast(this->layers_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->layers(static_cast(i)), deterministic, target); + } + + // repeated string input = 3; + for (int i = 0, n = this->input_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->input(i).data(), static_cast(this->input(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetParameter.input"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->input(i), target); + } + + // repeated int32 input_dim = 4; + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArray(4, this->input_dim_, target); + + // optional bool force_backward = 5 [default = false]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->force_backward(), target); + } + + // optional .opencv_caffe.NetState state = 6; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *this->state_, deterministic, target); + } + + // optional bool debug_info = 7 [default = false]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->debug_info(), target); + } + + // repeated .opencv_caffe.BlobShape input_shape = 8; + for (unsigned int i = 0, + n = static_cast(this->input_shape_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, this->input_shape(static_cast(i)), deterministic, target); + } + + // repeated .opencv_caffe.LayerParameter layer = 100; + for (unsigned int i = 0, + n = static_cast(this->layer_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 100, this->layer(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NetParameter) + return target; +} + +size_t NetParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NetParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .opencv_caffe.V1LayerParameter layers = 2; + { + unsigned int count = static_cast(this->layers_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->layers(static_cast(i))); + } + } + + // repeated string input = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->input_size()); + for (int i = 0, n = this->input_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->input(i)); + } + + // repeated int32 input_dim = 4; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + Int32Size(this->input_dim_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->input_dim_size()); + total_size += data_size; + } + + // repeated .opencv_caffe.BlobShape input_shape = 8; + { + unsigned int count = static_cast(this->input_shape_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->input_shape(static_cast(i))); + } + } + + // repeated .opencv_caffe.LayerParameter layer = 100; + { + unsigned int count = static_cast(this->layer_size()); + total_size += 2UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->layer(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 15u) { + // optional string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional .opencv_caffe.NetState state = 6; + if (has_state()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->state_); + } + + // optional bool force_backward = 5 [default = false]; + if (has_force_backward()) { + total_size += 1 + 1; + } + + // optional bool debug_info = 7 [default = false]; + if (has_debug_info()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NetParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NetParameter) + GOOGLE_DCHECK_NE(&from, this); + const NetParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NetParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NetParameter) + MergeFrom(*source); + } +} + +void NetParameter::MergeFrom(const NetParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NetParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + layers_.MergeFrom(from.layers_); + input_.MergeFrom(from.input_); + input_dim_.MergeFrom(from.input_dim_); + input_shape_.MergeFrom(from.input_shape_); + layer_.MergeFrom(from.layer_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_name(); + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (cached_has_bits & 0x00000002u) { + mutable_state()->::opencv_caffe::NetState::MergeFrom(from.state()); + } + if (cached_has_bits & 0x00000004u) { + force_backward_ = from.force_backward_; + } + if (cached_has_bits & 0x00000008u) { + debug_info_ = from.debug_info_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NetParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NetParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NetParameter::CopyFrom(const NetParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NetParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NetParameter::IsInitialized() const { + if (!::google::protobuf::internal::AllAreInitialized(this->layer())) return false; + return true; +} + +void NetParameter::Swap(NetParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void NetParameter::InternalSwap(NetParameter* other) { + using std::swap; + layers_.InternalSwap(&other->layers_); + input_.InternalSwap(&other->input_); + input_dim_.InternalSwap(&other->input_dim_); + input_shape_.InternalSwap(&other->input_shape_); + layer_.InternalSwap(&other->layer_); + name_.Swap(&other->name_); + swap(state_, other->state_); + swap(force_backward_, other->force_backward_); + swap(debug_info_, other->debug_info_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NetParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SolverParameter::InitAsDefaultInstance() { + ::opencv_caffe::_SolverParameter_default_instance_._instance.get_mutable()->net_param_ = const_cast< ::opencv_caffe::NetParameter*>( + ::opencv_caffe::NetParameter::internal_default_instance()); + ::opencv_caffe::_SolverParameter_default_instance_._instance.get_mutable()->train_net_param_ = const_cast< ::opencv_caffe::NetParameter*>( + ::opencv_caffe::NetParameter::internal_default_instance()); + ::opencv_caffe::_SolverParameter_default_instance_._instance.get_mutable()->train_state_ = const_cast< ::opencv_caffe::NetState*>( + ::opencv_caffe::NetState::internal_default_instance()); +} +::google::protobuf::internal::ExplicitlyConstructed< ::std::string> SolverParameter::_default_regularization_type_; +::google::protobuf::internal::ExplicitlyConstructed< ::std::string> SolverParameter::_default_type_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SolverParameter::kNetFieldNumber; +const int SolverParameter::kNetParamFieldNumber; +const int SolverParameter::kTrainNetFieldNumber; +const int SolverParameter::kTestNetFieldNumber; +const int SolverParameter::kTrainNetParamFieldNumber; +const int SolverParameter::kTestNetParamFieldNumber; +const int SolverParameter::kTrainStateFieldNumber; +const int SolverParameter::kTestStateFieldNumber; +const int SolverParameter::kTestIterFieldNumber; +const int SolverParameter::kTestIntervalFieldNumber; +const int SolverParameter::kTestComputeLossFieldNumber; +const int SolverParameter::kTestInitializationFieldNumber; +const int SolverParameter::kBaseLrFieldNumber; +const int SolverParameter::kDisplayFieldNumber; +const int SolverParameter::kAverageLossFieldNumber; +const int SolverParameter::kMaxIterFieldNumber; +const int SolverParameter::kIterSizeFieldNumber; +const int SolverParameter::kLrPolicyFieldNumber; +const int SolverParameter::kGammaFieldNumber; +const int SolverParameter::kPowerFieldNumber; +const int SolverParameter::kMomentumFieldNumber; +const int SolverParameter::kWeightDecayFieldNumber; +const int SolverParameter::kRegularizationTypeFieldNumber; +const int SolverParameter::kStepsizeFieldNumber; +const int SolverParameter::kStepvalueFieldNumber; +const int SolverParameter::kClipGradientsFieldNumber; +const int SolverParameter::kSnapshotFieldNumber; +const int SolverParameter::kSnapshotPrefixFieldNumber; +const int SolverParameter::kSnapshotDiffFieldNumber; +const int SolverParameter::kSnapshotFormatFieldNumber; +const int SolverParameter::kSolverModeFieldNumber; +const int SolverParameter::kDeviceIdFieldNumber; +const int SolverParameter::kRandomSeedFieldNumber; +const int SolverParameter::kTypeFieldNumber; +const int SolverParameter::kDeltaFieldNumber; +const int SolverParameter::kMomentum2FieldNumber; +const int SolverParameter::kRmsDecayFieldNumber; +const int SolverParameter::kDebugInfoFieldNumber; +const int SolverParameter::kSnapshotAfterTrainFieldNumber; +const int SolverParameter::kSolverTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SolverParameter::SolverParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.SolverParameter) +} +SolverParameter::SolverParameter(const SolverParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + test_net_(from.test_net_), + test_iter_(from.test_iter_), + test_net_param_(from.test_net_param_), + test_state_(from.test_state_), + stepvalue_(from.stepvalue_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + train_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_train_net()) { + train_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.train_net_); + } + lr_policy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_lr_policy()) { + lr_policy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lr_policy_); + } + snapshot_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_snapshot_prefix()) { + snapshot_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_prefix_); + } + net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_net()) { + net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.net_); + } + regularization_type_.UnsafeSetDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get()); + if (from.has_regularization_type()) { + regularization_type_.AssignWithDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get(), from.regularization_type_); + } + type_.UnsafeSetDefault(&::opencv_caffe::SolverParameter::_default_type_.get()); + if (from.has_type()) { + type_.AssignWithDefault(&::opencv_caffe::SolverParameter::_default_type_.get(), from.type_); + } + if (from.has_train_net_param()) { + train_net_param_ = new ::opencv_caffe::NetParameter(*from.train_net_param_); + } else { + train_net_param_ = NULL; + } + if (from.has_net_param()) { + net_param_ = new ::opencv_caffe::NetParameter(*from.net_param_); + } else { + net_param_ = NULL; + } + if (from.has_train_state()) { + train_state_ = new ::opencv_caffe::NetState(*from.train_state_); + } else { + train_state_ = NULL; + } + ::memcpy(&test_interval_, &from.test_interval_, + static_cast(reinterpret_cast(&rms_decay_) - + reinterpret_cast(&test_interval_)) + sizeof(rms_decay_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.SolverParameter) +} + +void SolverParameter::SharedCtor() { + train_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + lr_policy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + snapshot_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regularization_type_.UnsafeSetDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get()); + type_.UnsafeSetDefault(&::opencv_caffe::SolverParameter::_default_type_.get()); + ::memset(&train_net_param_, 0, static_cast( + reinterpret_cast(&solver_type_) - + reinterpret_cast(&train_net_param_)) + sizeof(solver_type_)); + momentum2_ = 0.999f; + random_seed_ = GOOGLE_LONGLONG(-1); + solver_mode_ = 1; + test_initialization_ = true; + snapshot_after_train_ = true; + delta_ = 1e-08f; + average_loss_ = 1; + clip_gradients_ = -1; + iter_size_ = 1; + snapshot_format_ = 1; + rms_decay_ = 0.99f; + _cached_size_ = 0; +} + +SolverParameter::~SolverParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.SolverParameter) + SharedDtor(); +} + +void SolverParameter::SharedDtor() { + train_net_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + lr_policy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + snapshot_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + net_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regularization_type_.DestroyNoArena(&::opencv_caffe::SolverParameter::_default_regularization_type_.get()); + type_.DestroyNoArena(&::opencv_caffe::SolverParameter::_default_type_.get()); + if (this != internal_default_instance()) delete train_net_param_; + if (this != internal_default_instance()) delete net_param_; + if (this != internal_default_instance()) delete train_state_; +} + +void SolverParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SolverParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SolverParameter& SolverParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverParameter(); + return *internal_default_instance(); +} + +SolverParameter* SolverParameter::New(::google::protobuf::Arena* arena) const { + SolverParameter* n = new SolverParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SolverParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.SolverParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + test_net_.Clear(); + test_iter_.Clear(); + test_net_param_.Clear(); + test_state_.Clear(); + stepvalue_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!train_net_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*train_net_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(!lr_policy_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*lr_policy_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(!snapshot_prefix_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*snapshot_prefix_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(!net_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*net_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(!regularization_type_.IsDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get())); + (*regularization_type_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::SolverParameter::_default_regularization_type_.get()); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(!type_.IsDefault(&::opencv_caffe::SolverParameter::_default_type_.get())); + (*type_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::SolverParameter::_default_type_.get()); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(train_net_param_ != NULL); + train_net_param_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(net_param_ != NULL); + net_param_->Clear(); + } + } + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(train_state_ != NULL); + train_state_->Clear(); + } + if (cached_has_bits & 65024u) { + ::memset(&test_interval_, 0, static_cast( + reinterpret_cast(&momentum_) - + reinterpret_cast(&test_interval_)) + sizeof(momentum_)); + } + if (cached_has_bits & 16711680u) { + ::memset(&weight_decay_, 0, static_cast( + reinterpret_cast(&solver_type_) - + reinterpret_cast(&weight_decay_)) + sizeof(solver_type_)); + } + if (cached_has_bits & 4278190080u) { + momentum2_ = 0.999f; + random_seed_ = GOOGLE_LONGLONG(-1); + solver_mode_ = 1; + test_initialization_ = true; + snapshot_after_train_ = true; + delta_ = 1e-08f; + average_loss_ = 1; + clip_gradients_ = -1; + } + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 7u) { + iter_size_ = 1; + snapshot_format_ = 1; + rms_decay_ = 0.99f; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SolverParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.SolverParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string train_net = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_train_net())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->train_net().data(), static_cast(this->train_net().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SolverParameter.train_net"); + } else { + goto handle_unusual; + } + break; + } + + // repeated string test_net = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_test_net())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->test_net(this->test_net_size() - 1).data(), + static_cast(this->test_net(this->test_net_size() - 1).length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SolverParameter.test_net"); + } else { + goto handle_unusual; + } + break; + } + + // repeated int32 test_iter = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + 1, 24u, input, this->mutable_test_iter()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, this->mutable_test_iter()))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 test_interval = 4 [default = 0]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_test_interval(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &test_interval_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float base_lr = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { + set_has_base_lr(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &base_lr_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 display = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_display(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &display_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 max_iter = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_max_iter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_iter_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string lr_policy = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_lr_policy())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->lr_policy().data(), static_cast(this->lr_policy().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SolverParameter.lr_policy"); + } else { + goto handle_unusual; + } + break; + } + + // optional float gamma = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) { + set_has_gamma(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &gamma_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float power = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) { + set_has_power(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &power_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float momentum = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) { + set_has_momentum(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &momentum_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float weight_decay = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) { + set_has_weight_decay(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &weight_decay_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 stepsize = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { + set_has_stepsize(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &stepsize_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 snapshot = 14 [default = 0]; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { + set_has_snapshot(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &snapshot_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string snapshot_prefix = 15; + case 15: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_snapshot_prefix())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->snapshot_prefix().data(), static_cast(this->snapshot_prefix().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SolverParameter.snapshot_prefix"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool snapshot_diff = 16 [default = false]; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { + set_has_snapshot_diff(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &snapshot_diff_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::SolverParameter_SolverMode_IsValid(value)) { + set_solver_mode(static_cast< ::opencv_caffe::SolverParameter_SolverMode >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 17, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional int32 device_id = 18 [default = 0]; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { + set_has_device_id(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &device_id_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool test_compute_loss = 19 [default = false]; + case 19: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) { + set_has_test_compute_loss(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &test_compute_loss_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int64 random_seed = 20 [default = -1]; + case 20: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) { + set_has_random_seed(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &random_seed_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.NetParameter train_net_param = 21; + case 21: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_train_net_param())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.NetParameter test_net_param = 22; + case 22: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_test_net_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool debug_info = 23 [default = false]; + case 23: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) { + set_has_debug_info(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &debug_info_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string net = 24; + case 24: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_net())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->net().data(), static_cast(this->net().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SolverParameter.net"); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.NetParameter net_param = 25; + case 25: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_net_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.NetState train_state = 26; + case 26: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(210u /* 210 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_train_state())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.NetState test_state = 27; + case 27: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(218u /* 218 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_test_state())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool snapshot_after_train = 28 [default = true]; + case 28: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(224u /* 224 & 0xFF */)) { + set_has_snapshot_after_train(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &snapshot_after_train_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string regularization_type = 29 [default = "L2"]; + case 29: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(234u /* 234 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_regularization_type())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->regularization_type().data(), static_cast(this->regularization_type().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SolverParameter.regularization_type"); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; + case 30: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(240u /* 240 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::SolverParameter_SolverType_IsValid(value)) { + set_solver_type(static_cast< ::opencv_caffe::SolverParameter_SolverType >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 30, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional float delta = 31 [default = 1e-08]; + case 31: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(253u /* 253 & 0xFF */)) { + set_has_delta(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &delta_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool test_initialization = 32 [default = true]; + case 32: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(0u /* 256 & 0xFF */)) { + set_has_test_initialization(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &test_initialization_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 average_loss = 33 [default = 1]; + case 33: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 264 & 0xFF */)) { + set_has_average_loss(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &average_loss_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated int32 stepvalue = 34; + case 34: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 272 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + 2, 272u, input, this->mutable_stepvalue()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 274 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, this->mutable_stepvalue()))); + } else { + goto handle_unusual; + } + break; + } + + // optional float clip_gradients = 35 [default = -1]; + case 35: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 285 & 0xFF */)) { + set_has_clip_gradients(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &clip_gradients_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 iter_size = 36 [default = 1]; + case 36: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 288 & 0xFF */)) { + set_has_iter_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &iter_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; + case 37: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 296 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::SolverParameter_SnapshotFormat_IsValid(value)) { + set_snapshot_format(static_cast< ::opencv_caffe::SolverParameter_SnapshotFormat >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 37, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional float rms_decay = 38 [default = 0.99]; + case 38: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(53u /* 309 & 0xFF */)) { + set_has_rms_decay(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &rms_decay_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float momentum2 = 39 [default = 0.999]; + case 39: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(61u /* 317 & 0xFF */)) { + set_has_momentum2(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &momentum2_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string type = 40 [default = "SGD"]; + case 40: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 322 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_type())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SolverParameter.type"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.SolverParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.SolverParameter) + return false; +#undef DO_ +} + +void SolverParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.SolverParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string train_net = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->train_net().data(), static_cast(this->train_net().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.train_net"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->train_net(), output); + } + + // repeated string test_net = 2; + for (int i = 0, n = this->test_net_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->test_net(i).data(), static_cast(this->test_net(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.test_net"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->test_net(i), output); + } + + // repeated int32 test_iter = 3; + for (int i = 0, n = this->test_iter_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteInt32( + 3, this->test_iter(i), output); + } + + // optional int32 test_interval = 4 [default = 0]; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->test_interval(), output); + } + + // optional float base_lr = 5; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->base_lr(), output); + } + + // optional int32 display = 6; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->display(), output); + } + + // optional int32 max_iter = 7; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->max_iter(), output); + } + + // optional string lr_policy = 8; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->lr_policy().data(), static_cast(this->lr_policy().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.lr_policy"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 8, this->lr_policy(), output); + } + + // optional float gamma = 9; + if (cached_has_bits & 0x00002000u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->gamma(), output); + } + + // optional float power = 10; + if (cached_has_bits & 0x00004000u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->power(), output); + } + + // optional float momentum = 11; + if (cached_has_bits & 0x00008000u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->momentum(), output); + } + + // optional float weight_decay = 12; + if (cached_has_bits & 0x00010000u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->weight_decay(), output); + } + + // optional int32 stepsize = 13; + if (cached_has_bits & 0x00020000u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->stepsize(), output); + } + + // optional int32 snapshot = 14 [default = 0]; + if (cached_has_bits & 0x00040000u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->snapshot(), output); + } + + // optional string snapshot_prefix = 15; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->snapshot_prefix().data(), static_cast(this->snapshot_prefix().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.snapshot_prefix"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 15, this->snapshot_prefix(), output); + } + + // optional bool snapshot_diff = 16 [default = false]; + if (cached_has_bits & 0x00200000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->snapshot_diff(), output); + } + + // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; + if (cached_has_bits & 0x04000000u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 17, this->solver_mode(), output); + } + + // optional int32 device_id = 18 [default = 0]; + if (cached_has_bits & 0x00080000u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->device_id(), output); + } + + // optional bool test_compute_loss = 19 [default = false]; + if (cached_has_bits & 0x00100000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->test_compute_loss(), output); + } + + // optional int64 random_seed = 20 [default = -1]; + if (cached_has_bits & 0x02000000u) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(20, this->random_seed(), output); + } + + // optional .opencv_caffe.NetParameter train_net_param = 21; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 21, *this->train_net_param_, output); + } + + // repeated .opencv_caffe.NetParameter test_net_param = 22; + for (unsigned int i = 0, + n = static_cast(this->test_net_param_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 22, this->test_net_param(static_cast(i)), output); + } + + // optional bool debug_info = 23 [default = false]; + if (cached_has_bits & 0x00400000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->debug_info(), output); + } + + // optional string net = 24; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->net().data(), static_cast(this->net().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.net"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 24, this->net(), output); + } + + // optional .opencv_caffe.NetParameter net_param = 25; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 25, *this->net_param_, output); + } + + // optional .opencv_caffe.NetState train_state = 26; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 26, *this->train_state_, output); + } + + // repeated .opencv_caffe.NetState test_state = 27; + for (unsigned int i = 0, + n = static_cast(this->test_state_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 27, this->test_state(static_cast(i)), output); + } + + // optional bool snapshot_after_train = 28 [default = true]; + if (cached_has_bits & 0x10000000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(28, this->snapshot_after_train(), output); + } + + // optional string regularization_type = 29 [default = "L2"]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->regularization_type().data(), static_cast(this->regularization_type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.regularization_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 29, this->regularization_type(), output); + } + + // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; + if (cached_has_bits & 0x00800000u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 30, this->solver_type(), output); + } + + // optional float delta = 31 [default = 1e-08]; + if (cached_has_bits & 0x20000000u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(31, this->delta(), output); + } + + // optional bool test_initialization = 32 [default = true]; + if (cached_has_bits & 0x08000000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(32, this->test_initialization(), output); + } + + // optional int32 average_loss = 33 [default = 1]; + if (cached_has_bits & 0x40000000u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(33, this->average_loss(), output); + } + + // repeated int32 stepvalue = 34; + for (int i = 0, n = this->stepvalue_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteInt32( + 34, this->stepvalue(i), output); + } + + // optional float clip_gradients = 35 [default = -1]; + if (cached_has_bits & 0x80000000u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(35, this->clip_gradients(), output); + } + + cached_has_bits = _has_bits_[1]; + // optional int32 iter_size = 36 [default = 1]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(36, this->iter_size(), output); + } + + // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 37, this->snapshot_format(), output); + } + + // optional float rms_decay = 38 [default = 0.99]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(38, this->rms_decay(), output); + } + + cached_has_bits = _has_bits_[0]; + // optional float momentum2 = 39 [default = 0.999]; + if (cached_has_bits & 0x01000000u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(39, this->momentum2(), output); + } + + // optional string type = 40 [default = "SGD"]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 40, this->type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.SolverParameter) +} + +::google::protobuf::uint8* SolverParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SolverParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string train_net = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->train_net().data(), static_cast(this->train_net().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.train_net"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->train_net(), target); + } + + // repeated string test_net = 2; + for (int i = 0, n = this->test_net_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->test_net(i).data(), static_cast(this->test_net(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.test_net"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->test_net(i), target); + } + + // repeated int32 test_iter = 3; + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArray(3, this->test_iter_, target); + + // optional int32 test_interval = 4 [default = 0]; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->test_interval(), target); + } + + // optional float base_lr = 5; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->base_lr(), target); + } + + // optional int32 display = 6; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->display(), target); + } + + // optional int32 max_iter = 7; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->max_iter(), target); + } + + // optional string lr_policy = 8; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->lr_policy().data(), static_cast(this->lr_policy().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.lr_policy"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 8, this->lr_policy(), target); + } + + // optional float gamma = 9; + if (cached_has_bits & 0x00002000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->gamma(), target); + } + + // optional float power = 10; + if (cached_has_bits & 0x00004000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->power(), target); + } + + // optional float momentum = 11; + if (cached_has_bits & 0x00008000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->momentum(), target); + } + + // optional float weight_decay = 12; + if (cached_has_bits & 0x00010000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->weight_decay(), target); + } + + // optional int32 stepsize = 13; + if (cached_has_bits & 0x00020000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->stepsize(), target); + } + + // optional int32 snapshot = 14 [default = 0]; + if (cached_has_bits & 0x00040000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->snapshot(), target); + } + + // optional string snapshot_prefix = 15; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->snapshot_prefix().data(), static_cast(this->snapshot_prefix().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.snapshot_prefix"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 15, this->snapshot_prefix(), target); + } + + // optional bool snapshot_diff = 16 [default = false]; + if (cached_has_bits & 0x00200000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->snapshot_diff(), target); + } + + // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; + if (cached_has_bits & 0x04000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 17, this->solver_mode(), target); + } + + // optional int32 device_id = 18 [default = 0]; + if (cached_has_bits & 0x00080000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->device_id(), target); + } + + // optional bool test_compute_loss = 19 [default = false]; + if (cached_has_bits & 0x00100000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->test_compute_loss(), target); + } + + // optional int64 random_seed = 20 [default = -1]; + if (cached_has_bits & 0x02000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(20, this->random_seed(), target); + } + + // optional .opencv_caffe.NetParameter train_net_param = 21; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 21, *this->train_net_param_, deterministic, target); + } + + // repeated .opencv_caffe.NetParameter test_net_param = 22; + for (unsigned int i = 0, + n = static_cast(this->test_net_param_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 22, this->test_net_param(static_cast(i)), deterministic, target); + } + + // optional bool debug_info = 23 [default = false]; + if (cached_has_bits & 0x00400000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->debug_info(), target); + } + + // optional string net = 24; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->net().data(), static_cast(this->net().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.net"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 24, this->net(), target); + } + + // optional .opencv_caffe.NetParameter net_param = 25; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 25, *this->net_param_, deterministic, target); + } + + // optional .opencv_caffe.NetState train_state = 26; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 26, *this->train_state_, deterministic, target); + } + + // repeated .opencv_caffe.NetState test_state = 27; + for (unsigned int i = 0, + n = static_cast(this->test_state_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 27, this->test_state(static_cast(i)), deterministic, target); + } + + // optional bool snapshot_after_train = 28 [default = true]; + if (cached_has_bits & 0x10000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(28, this->snapshot_after_train(), target); + } + + // optional string regularization_type = 29 [default = "L2"]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->regularization_type().data(), static_cast(this->regularization_type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.regularization_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 29, this->regularization_type(), target); + } + + // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; + if (cached_has_bits & 0x00800000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 30, this->solver_type(), target); + } + + // optional float delta = 31 [default = 1e-08]; + if (cached_has_bits & 0x20000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(31, this->delta(), target); + } + + // optional bool test_initialization = 32 [default = true]; + if (cached_has_bits & 0x08000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(32, this->test_initialization(), target); + } + + // optional int32 average_loss = 33 [default = 1]; + if (cached_has_bits & 0x40000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(33, this->average_loss(), target); + } + + // repeated int32 stepvalue = 34; + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArray(34, this->stepvalue_, target); + + // optional float clip_gradients = 35 [default = -1]; + if (cached_has_bits & 0x80000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(35, this->clip_gradients(), target); + } + + cached_has_bits = _has_bits_[1]; + // optional int32 iter_size = 36 [default = 1]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(36, this->iter_size(), target); + } + + // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 37, this->snapshot_format(), target); + } + + // optional float rms_decay = 38 [default = 0.99]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(38, this->rms_decay(), target); + } + + cached_has_bits = _has_bits_[0]; + // optional float momentum2 = 39 [default = 0.999]; + if (cached_has_bits & 0x01000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(39, this->momentum2(), target); + } + + // optional string type = 40 [default = "SGD"]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverParameter.type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 40, this->type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SolverParameter) + return target; +} + +size_t SolverParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SolverParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated string test_net = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->test_net_size()); + for (int i = 0, n = this->test_net_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->test_net(i)); + } + + // repeated int32 test_iter = 3; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + Int32Size(this->test_iter_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->test_iter_size()); + total_size += data_size; + } + + // repeated .opencv_caffe.NetParameter test_net_param = 22; + { + unsigned int count = static_cast(this->test_net_param_size()); + total_size += 2UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->test_net_param(static_cast(i))); + } + } + + // repeated .opencv_caffe.NetState test_state = 27; + { + unsigned int count = static_cast(this->test_state_size()); + total_size += 2UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->test_state(static_cast(i))); + } + } + + // repeated int32 stepvalue = 34; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + Int32Size(this->stepvalue_); + total_size += 2 * + ::google::protobuf::internal::FromIntSize(this->stepvalue_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 255u) { + // optional string train_net = 1; + if (has_train_net()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->train_net()); + } + + // optional string lr_policy = 8; + if (has_lr_policy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->lr_policy()); + } + + // optional string snapshot_prefix = 15; + if (has_snapshot_prefix()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->snapshot_prefix()); + } + + // optional string net = 24; + if (has_net()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->net()); + } + + // optional string regularization_type = 29 [default = "L2"]; + if (has_regularization_type()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->regularization_type()); + } + + // optional string type = 40 [default = "SGD"]; + if (has_type()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->type()); + } + + // optional .opencv_caffe.NetParameter train_net_param = 21; + if (has_train_net_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->train_net_param_); + } + + // optional .opencv_caffe.NetParameter net_param = 25; + if (has_net_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->net_param_); + } + + } + if (_has_bits_[8 / 32] & 65280u) { + // optional .opencv_caffe.NetState train_state = 26; + if (has_train_state()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->train_state_); + } + + // optional int32 test_interval = 4 [default = 0]; + if (has_test_interval()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->test_interval()); + } + + // optional float base_lr = 5; + if (has_base_lr()) { + total_size += 1 + 4; + } + + // optional int32 display = 6; + if (has_display()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->display()); + } + + // optional int32 max_iter = 7; + if (has_max_iter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_iter()); + } + + // optional float gamma = 9; + if (has_gamma()) { + total_size += 1 + 4; + } + + // optional float power = 10; + if (has_power()) { + total_size += 1 + 4; + } + + // optional float momentum = 11; + if (has_momentum()) { + total_size += 1 + 4; + } + + } + if (_has_bits_[16 / 32] & 16711680u) { + // optional float weight_decay = 12; + if (has_weight_decay()) { + total_size += 1 + 4; + } + + // optional int32 stepsize = 13; + if (has_stepsize()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->stepsize()); + } + + // optional int32 snapshot = 14 [default = 0]; + if (has_snapshot()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->snapshot()); + } + + // optional int32 device_id = 18 [default = 0]; + if (has_device_id()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->device_id()); + } + + // optional bool test_compute_loss = 19 [default = false]; + if (has_test_compute_loss()) { + total_size += 2 + 1; + } + + // optional bool snapshot_diff = 16 [default = false]; + if (has_snapshot_diff()) { + total_size += 2 + 1; + } + + // optional bool debug_info = 23 [default = false]; + if (has_debug_info()) { + total_size += 2 + 1; + } + + // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; + if (has_solver_type()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->solver_type()); + } + + } + if (_has_bits_[24 / 32] & 4278190080u) { + // optional float momentum2 = 39 [default = 0.999]; + if (has_momentum2()) { + total_size += 2 + 4; + } + + // optional int64 random_seed = 20 [default = -1]; + if (has_random_seed()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->random_seed()); + } + + // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; + if (has_solver_mode()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->solver_mode()); + } + + // optional bool test_initialization = 32 [default = true]; + if (has_test_initialization()) { + total_size += 2 + 1; + } + + // optional bool snapshot_after_train = 28 [default = true]; + if (has_snapshot_after_train()) { + total_size += 2 + 1; + } + + // optional float delta = 31 [default = 1e-08]; + if (has_delta()) { + total_size += 2 + 4; + } + + // optional int32 average_loss = 33 [default = 1]; + if (has_average_loss()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->average_loss()); + } + + // optional float clip_gradients = 35 [default = -1]; + if (has_clip_gradients()) { + total_size += 2 + 4; + } + + } + if (_has_bits_[32 / 32] & 7u) { + // optional int32 iter_size = 36 [default = 1]; + if (has_iter_size()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->iter_size()); + } + + // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; + if (has_snapshot_format()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->snapshot_format()); + } + + // optional float rms_decay = 38 [default = 0.99]; + if (has_rms_decay()) { + total_size += 2 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SolverParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SolverParameter) + GOOGLE_DCHECK_NE(&from, this); + const SolverParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SolverParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SolverParameter) + MergeFrom(*source); + } +} + +void SolverParameter::MergeFrom(const SolverParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SolverParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + test_net_.MergeFrom(from.test_net_); + test_iter_.MergeFrom(from.test_iter_); + test_net_param_.MergeFrom(from.test_net_param_); + test_state_.MergeFrom(from.test_state_); + stepvalue_.MergeFrom(from.stepvalue_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_train_net(); + train_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.train_net_); + } + if (cached_has_bits & 0x00000002u) { + set_has_lr_policy(); + lr_policy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lr_policy_); + } + if (cached_has_bits & 0x00000004u) { + set_has_snapshot_prefix(); + snapshot_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_prefix_); + } + if (cached_has_bits & 0x00000008u) { + set_has_net(); + net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.net_); + } + if (cached_has_bits & 0x00000010u) { + set_has_regularization_type(); + regularization_type_.AssignWithDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get(), from.regularization_type_); + } + if (cached_has_bits & 0x00000020u) { + set_has_type(); + type_.AssignWithDefault(&::opencv_caffe::SolverParameter::_default_type_.get(), from.type_); + } + if (cached_has_bits & 0x00000040u) { + mutable_train_net_param()->::opencv_caffe::NetParameter::MergeFrom(from.train_net_param()); + } + if (cached_has_bits & 0x00000080u) { + mutable_net_param()->::opencv_caffe::NetParameter::MergeFrom(from.net_param()); + } + } + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + mutable_train_state()->::opencv_caffe::NetState::MergeFrom(from.train_state()); + } + if (cached_has_bits & 0x00000200u) { + test_interval_ = from.test_interval_; + } + if (cached_has_bits & 0x00000400u) { + base_lr_ = from.base_lr_; + } + if (cached_has_bits & 0x00000800u) { + display_ = from.display_; + } + if (cached_has_bits & 0x00001000u) { + max_iter_ = from.max_iter_; + } + if (cached_has_bits & 0x00002000u) { + gamma_ = from.gamma_; + } + if (cached_has_bits & 0x00004000u) { + power_ = from.power_; + } + if (cached_has_bits & 0x00008000u) { + momentum_ = from.momentum_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 16711680u) { + if (cached_has_bits & 0x00010000u) { + weight_decay_ = from.weight_decay_; + } + if (cached_has_bits & 0x00020000u) { + stepsize_ = from.stepsize_; + } + if (cached_has_bits & 0x00040000u) { + snapshot_ = from.snapshot_; + } + if (cached_has_bits & 0x00080000u) { + device_id_ = from.device_id_; + } + if (cached_has_bits & 0x00100000u) { + test_compute_loss_ = from.test_compute_loss_; + } + if (cached_has_bits & 0x00200000u) { + snapshot_diff_ = from.snapshot_diff_; + } + if (cached_has_bits & 0x00400000u) { + debug_info_ = from.debug_info_; + } + if (cached_has_bits & 0x00800000u) { + solver_type_ = from.solver_type_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 4278190080u) { + if (cached_has_bits & 0x01000000u) { + momentum2_ = from.momentum2_; + } + if (cached_has_bits & 0x02000000u) { + random_seed_ = from.random_seed_; + } + if (cached_has_bits & 0x04000000u) { + solver_mode_ = from.solver_mode_; + } + if (cached_has_bits & 0x08000000u) { + test_initialization_ = from.test_initialization_; + } + if (cached_has_bits & 0x10000000u) { + snapshot_after_train_ = from.snapshot_after_train_; + } + if (cached_has_bits & 0x20000000u) { + delta_ = from.delta_; + } + if (cached_has_bits & 0x40000000u) { + average_loss_ = from.average_loss_; + } + if (cached_has_bits & 0x80000000u) { + clip_gradients_ = from.clip_gradients_; + } + _has_bits_[0] |= cached_has_bits; + } + cached_has_bits = from._has_bits_[1]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + iter_size_ = from.iter_size_; + } + if (cached_has_bits & 0x00000002u) { + snapshot_format_ = from.snapshot_format_; + } + if (cached_has_bits & 0x00000004u) { + rms_decay_ = from.rms_decay_; + } + _has_bits_[1] |= cached_has_bits; + } +} + +void SolverParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SolverParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SolverParameter::CopyFrom(const SolverParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SolverParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SolverParameter::IsInitialized() const { + if (!::google::protobuf::internal::AllAreInitialized(this->test_net_param())) return false; + if (has_train_net_param()) { + if (!this->train_net_param_->IsInitialized()) return false; + } + if (has_net_param()) { + if (!this->net_param_->IsInitialized()) return false; + } + return true; +} + +void SolverParameter::Swap(SolverParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void SolverParameter::InternalSwap(SolverParameter* other) { + using std::swap; + test_net_.InternalSwap(&other->test_net_); + test_iter_.InternalSwap(&other->test_iter_); + test_net_param_.InternalSwap(&other->test_net_param_); + test_state_.InternalSwap(&other->test_state_); + stepvalue_.InternalSwap(&other->stepvalue_); + train_net_.Swap(&other->train_net_); + lr_policy_.Swap(&other->lr_policy_); + snapshot_prefix_.Swap(&other->snapshot_prefix_); + net_.Swap(&other->net_); + regularization_type_.Swap(&other->regularization_type_); + type_.Swap(&other->type_); + swap(train_net_param_, other->train_net_param_); + swap(net_param_, other->net_param_); + swap(train_state_, other->train_state_); + swap(test_interval_, other->test_interval_); + swap(base_lr_, other->base_lr_); + swap(display_, other->display_); + swap(max_iter_, other->max_iter_); + swap(gamma_, other->gamma_); + swap(power_, other->power_); + swap(momentum_, other->momentum_); + swap(weight_decay_, other->weight_decay_); + swap(stepsize_, other->stepsize_); + swap(snapshot_, other->snapshot_); + swap(device_id_, other->device_id_); + swap(test_compute_loss_, other->test_compute_loss_); + swap(snapshot_diff_, other->snapshot_diff_); + swap(debug_info_, other->debug_info_); + swap(solver_type_, other->solver_type_); + swap(momentum2_, other->momentum2_); + swap(random_seed_, other->random_seed_); + swap(solver_mode_, other->solver_mode_); + swap(test_initialization_, other->test_initialization_); + swap(snapshot_after_train_, other->snapshot_after_train_); + swap(delta_, other->delta_); + swap(average_loss_, other->average_loss_); + swap(clip_gradients_, other->clip_gradients_); + swap(iter_size_, other->iter_size_); + swap(snapshot_format_, other->snapshot_format_); + swap(rms_decay_, other->rms_decay_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(_has_bits_[1], other->_has_bits_[1]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SolverParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SolverState::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SolverState::kIterFieldNumber; +const int SolverState::kLearnedNetFieldNumber; +const int SolverState::kHistoryFieldNumber; +const int SolverState::kCurrentStepFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SolverState::SolverState() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverState(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.SolverState) +} +SolverState::SolverState(const SolverState& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + history_(from.history_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + learned_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_learned_net()) { + learned_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.learned_net_); + } + ::memcpy(&iter_, &from.iter_, + static_cast(reinterpret_cast(¤t_step_) - + reinterpret_cast(&iter_)) + sizeof(current_step_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.SolverState) +} + +void SolverState::SharedCtor() { + _cached_size_ = 0; + learned_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&iter_, 0, static_cast( + reinterpret_cast(¤t_step_) - + reinterpret_cast(&iter_)) + sizeof(current_step_)); +} + +SolverState::~SolverState() { + // @@protoc_insertion_point(destructor:opencv_caffe.SolverState) + SharedDtor(); +} + +void SolverState::SharedDtor() { + learned_net_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SolverState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SolverState::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SolverState& SolverState::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverState(); + return *internal_default_instance(); +} + +SolverState* SolverState::New(::google::protobuf::Arena* arena) const { + SolverState* n = new SolverState; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SolverState::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.SolverState) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + history_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!learned_net_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*learned_net_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 6u) { + ::memset(&iter_, 0, static_cast( + reinterpret_cast(¤t_step_) - + reinterpret_cast(&iter_)) + sizeof(current_step_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SolverState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.SolverState) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 iter = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_iter(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &iter_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string learned_net = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_learned_net())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->learned_net().data(), static_cast(this->learned_net().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SolverState.learned_net"); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.BlobProto history = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_history())); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 current_step = 4 [default = 0]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_current_step(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, ¤t_step_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.SolverState) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.SolverState) + return false; +#undef DO_ +} + +void SolverState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.SolverState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 iter = 1; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->iter(), output); + } + + // optional string learned_net = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->learned_net().data(), static_cast(this->learned_net().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverState.learned_net"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->learned_net(), output); + } + + // repeated .opencv_caffe.BlobProto history = 3; + for (unsigned int i = 0, + n = static_cast(this->history_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->history(static_cast(i)), output); + } + + // optional int32 current_step = 4 [default = 0]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->current_step(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.SolverState) +} + +::google::protobuf::uint8* SolverState::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SolverState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 iter = 1; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->iter(), target); + } + + // optional string learned_net = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->learned_net().data(), static_cast(this->learned_net().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SolverState.learned_net"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->learned_net(), target); + } + + // repeated .opencv_caffe.BlobProto history = 3; + for (unsigned int i = 0, + n = static_cast(this->history_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->history(static_cast(i)), deterministic, target); + } + + // optional int32 current_step = 4 [default = 0]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->current_step(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SolverState) + return target; +} + +size_t SolverState::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SolverState) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .opencv_caffe.BlobProto history = 3; + { + unsigned int count = static_cast(this->history_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->history(static_cast(i))); + } + } + + if (_has_bits_[0 / 32] & 7u) { + // optional string learned_net = 2; + if (has_learned_net()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->learned_net()); + } + + // optional int32 iter = 1; + if (has_iter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->iter()); + } + + // optional int32 current_step = 4 [default = 0]; + if (has_current_step()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->current_step()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SolverState::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SolverState) + GOOGLE_DCHECK_NE(&from, this); + const SolverState* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SolverState) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SolverState) + MergeFrom(*source); + } +} + +void SolverState::MergeFrom(const SolverState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SolverState) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + history_.MergeFrom(from.history_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_learned_net(); + learned_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.learned_net_); + } + if (cached_has_bits & 0x00000002u) { + iter_ = from.iter_; + } + if (cached_has_bits & 0x00000004u) { + current_step_ = from.current_step_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void SolverState::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SolverState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SolverState::CopyFrom(const SolverState& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SolverState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SolverState::IsInitialized() const { + return true; +} + +void SolverState::Swap(SolverState* other) { + if (other == this) return; + InternalSwap(other); +} +void SolverState::InternalSwap(SolverState* other) { + using std::swap; + history_.InternalSwap(&other->history_); + learned_net_.Swap(&other->learned_net_); + swap(iter_, other->iter_); + swap(current_step_, other->current_step_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SolverState::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NetState::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NetState::kPhaseFieldNumber; +const int NetState::kLevelFieldNumber; +const int NetState::kStageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NetState::NetState() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetState(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.NetState) +} +NetState::NetState(const NetState& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + stage_(from.stage_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&level_, &from.level_, + static_cast(reinterpret_cast(&phase_) - + reinterpret_cast(&level_)) + sizeof(phase_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.NetState) +} + +void NetState::SharedCtor() { + _cached_size_ = 0; + level_ = 0; + phase_ = 1; +} + +NetState::~NetState() { + // @@protoc_insertion_point(destructor:opencv_caffe.NetState) + SharedDtor(); +} + +void NetState::SharedDtor() { +} + +void NetState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NetState::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NetState& NetState::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetState(); + return *internal_default_instance(); +} + +NetState* NetState::New(::google::protobuf::Arena* arena) const { + NetState* n = new NetState; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NetState::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.NetState) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + stage_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + level_ = 0; + phase_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NetState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.NetState) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.Phase phase = 1 [default = TEST]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::Phase_IsValid(value)) { + set_phase(static_cast< ::opencv_caffe::Phase >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional int32 level = 2 [default = 0]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_level(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &level_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated string stage = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_stage())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->stage(this->stage_size() - 1).data(), + static_cast(this->stage(this->stage_size() - 1).length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.NetState.stage"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.NetState) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.NetState) + return false; +#undef DO_ +} + +void NetState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.NetState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.Phase phase = 1 [default = TEST]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->phase(), output); + } + + // optional int32 level = 2 [default = 0]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->level(), output); + } + + // repeated string stage = 3; + for (int i = 0, n = this->stage_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->stage(i).data(), static_cast(this->stage(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetState.stage"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->stage(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.NetState) +} + +::google::protobuf::uint8* NetState::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NetState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.Phase phase = 1 [default = TEST]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->phase(), target); + } + + // optional int32 level = 2 [default = 0]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->level(), target); + } + + // repeated string stage = 3; + for (int i = 0, n = this->stage_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->stage(i).data(), static_cast(this->stage(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetState.stage"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->stage(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NetState) + return target; +} + +size_t NetState::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NetState) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated string stage = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->stage_size()); + for (int i = 0, n = this->stage_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->stage(i)); + } + + if (_has_bits_[0 / 32] & 3u) { + // optional int32 level = 2 [default = 0]; + if (has_level()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->level()); + } + + // optional .opencv_caffe.Phase phase = 1 [default = TEST]; + if (has_phase()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NetState::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NetState) + GOOGLE_DCHECK_NE(&from, this); + const NetState* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NetState) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NetState) + MergeFrom(*source); + } +} + +void NetState::MergeFrom(const NetState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NetState) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + stage_.MergeFrom(from.stage_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + level_ = from.level_; + } + if (cached_has_bits & 0x00000002u) { + phase_ = from.phase_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NetState::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NetState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NetState::CopyFrom(const NetState& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NetState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NetState::IsInitialized() const { + return true; +} + +void NetState::Swap(NetState* other) { + if (other == this) return; + InternalSwap(other); +} +void NetState::InternalSwap(NetState* other) { + using std::swap; + stage_.InternalSwap(&other->stage_); + swap(level_, other->level_); + swap(phase_, other->phase_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NetState::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NetStateRule::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NetStateRule::kPhaseFieldNumber; +const int NetStateRule::kMinLevelFieldNumber; +const int NetStateRule::kMaxLevelFieldNumber; +const int NetStateRule::kStageFieldNumber; +const int NetStateRule::kNotStageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NetStateRule::NetStateRule() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateRule(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.NetStateRule) +} +NetStateRule::NetStateRule(const NetStateRule& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + stage_(from.stage_), + not_stage_(from.not_stage_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&phase_, &from.phase_, + static_cast(reinterpret_cast(&max_level_) - + reinterpret_cast(&phase_)) + sizeof(max_level_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.NetStateRule) +} + +void NetStateRule::SharedCtor() { + _cached_size_ = 0; + ::memset(&phase_, 0, static_cast( + reinterpret_cast(&max_level_) - + reinterpret_cast(&phase_)) + sizeof(max_level_)); +} + +NetStateRule::~NetStateRule() { + // @@protoc_insertion_point(destructor:opencv_caffe.NetStateRule) + SharedDtor(); +} + +void NetStateRule::SharedDtor() { +} + +void NetStateRule::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NetStateRule::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NetStateRule& NetStateRule::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateRule(); + return *internal_default_instance(); +} + +NetStateRule* NetStateRule::New(::google::protobuf::Arena* arena) const { + NetStateRule* n = new NetStateRule; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NetStateRule::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.NetStateRule) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + stage_.Clear(); + not_stage_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + ::memset(&phase_, 0, static_cast( + reinterpret_cast(&max_level_) - + reinterpret_cast(&phase_)) + sizeof(max_level_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NetStateRule::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.NetStateRule) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.Phase phase = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::Phase_IsValid(value)) { + set_phase(static_cast< ::opencv_caffe::Phase >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional int32 min_level = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_min_level(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &min_level_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 max_level = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_max_level(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_level_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated string stage = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_stage())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->stage(this->stage_size() - 1).data(), + static_cast(this->stage(this->stage_size() - 1).length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.NetStateRule.stage"); + } else { + goto handle_unusual; + } + break; + } + + // repeated string not_stage = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_not_stage())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->not_stage(this->not_stage_size() - 1).data(), + static_cast(this->not_stage(this->not_stage_size() - 1).length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.NetStateRule.not_stage"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.NetStateRule) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.NetStateRule) + return false; +#undef DO_ +} + +void NetStateRule::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.NetStateRule) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.Phase phase = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->phase(), output); + } + + // optional int32 min_level = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_level(), output); + } + + // optional int32 max_level = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->max_level(), output); + } + + // repeated string stage = 4; + for (int i = 0, n = this->stage_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->stage(i).data(), static_cast(this->stage(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetStateRule.stage"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->stage(i), output); + } + + // repeated string not_stage = 5; + for (int i = 0, n = this->not_stage_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->not_stage(i).data(), static_cast(this->not_stage(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetStateRule.not_stage"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->not_stage(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.NetStateRule) +} + +::google::protobuf::uint8* NetStateRule::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NetStateRule) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.Phase phase = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->phase(), target); + } + + // optional int32 min_level = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_level(), target); + } + + // optional int32 max_level = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->max_level(), target); + } + + // repeated string stage = 4; + for (int i = 0, n = this->stage_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->stage(i).data(), static_cast(this->stage(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetStateRule.stage"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(4, this->stage(i), target); + } + + // repeated string not_stage = 5; + for (int i = 0, n = this->not_stage_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->not_stage(i).data(), static_cast(this->not_stage(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.NetStateRule.not_stage"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(5, this->not_stage(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NetStateRule) + return target; +} + +size_t NetStateRule::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NetStateRule) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated string stage = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->stage_size()); + for (int i = 0, n = this->stage_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->stage(i)); + } + + // repeated string not_stage = 5; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->not_stage_size()); + for (int i = 0, n = this->not_stage_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->not_stage(i)); + } + + if (_has_bits_[0 / 32] & 7u) { + // optional .opencv_caffe.Phase phase = 1; + if (has_phase()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + // optional int32 min_level = 2; + if (has_min_level()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->min_level()); + } + + // optional int32 max_level = 3; + if (has_max_level()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_level()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NetStateRule::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NetStateRule) + GOOGLE_DCHECK_NE(&from, this); + const NetStateRule* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NetStateRule) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NetStateRule) + MergeFrom(*source); + } +} + +void NetStateRule::MergeFrom(const NetStateRule& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NetStateRule) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + stage_.MergeFrom(from.stage_); + not_stage_.MergeFrom(from.not_stage_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + phase_ = from.phase_; + } + if (cached_has_bits & 0x00000002u) { + min_level_ = from.min_level_; + } + if (cached_has_bits & 0x00000004u) { + max_level_ = from.max_level_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NetStateRule::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NetStateRule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NetStateRule::CopyFrom(const NetStateRule& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NetStateRule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NetStateRule::IsInitialized() const { + return true; +} + +void NetStateRule::Swap(NetStateRule* other) { + if (other == this) return; + InternalSwap(other); +} +void NetStateRule::InternalSwap(NetStateRule* other) { + using std::swap; + stage_.InternalSwap(&other->stage_); + not_stage_.InternalSwap(&other->not_stage_); + swap(phase_, other->phase_); + swap(min_level_, other->min_level_); + swap(max_level_, other->max_level_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NetStateRule::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ParamSpec::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParamSpec::kNameFieldNumber; +const int ParamSpec::kShareModeFieldNumber; +const int ParamSpec::kLrMultFieldNumber; +const int ParamSpec::kDecayMultFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParamSpec::ParamSpec() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParamSpec(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ParamSpec) +} +ParamSpec::ParamSpec(const ParamSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_name()) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + ::memcpy(&share_mode_, &from.share_mode_, + static_cast(reinterpret_cast(&decay_mult_) - + reinterpret_cast(&share_mode_)) + sizeof(decay_mult_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ParamSpec) +} + +void ParamSpec::SharedCtor() { + _cached_size_ = 0; + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + share_mode_ = 0; + lr_mult_ = 1; + decay_mult_ = 1; +} + +ParamSpec::~ParamSpec() { + // @@protoc_insertion_point(destructor:opencv_caffe.ParamSpec) + SharedDtor(); +} + +void ParamSpec::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ParamSpec::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ParamSpec::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ParamSpec& ParamSpec::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParamSpec(); + return *internal_default_instance(); +} + +ParamSpec* ParamSpec::New(::google::protobuf::Arena* arena) const { + ParamSpec* n = new ParamSpec; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ParamSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ParamSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*name_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 14u) { + share_mode_ = 0; + lr_mult_ = 1; + decay_mult_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ParamSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ParamSpec) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.ParamSpec.name"); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::ParamSpec_DimCheckMode_IsValid(value)) { + set_share_mode(static_cast< ::opencv_caffe::ParamSpec_DimCheckMode >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 2, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional float lr_mult = 3 [default = 1]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_lr_mult(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &lr_mult_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float decay_mult = 4 [default = 1]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { + set_has_decay_mult(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &decay_mult_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ParamSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ParamSpec) + return false; +#undef DO_ +} + +void ParamSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ParamSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.ParamSpec.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->share_mode(), output); + } + + // optional float lr_mult = 3 [default = 1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->lr_mult(), output); + } + + // optional float decay_mult = 4 [default = 1]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->decay_mult(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ParamSpec) +} + +::google::protobuf::uint8* ParamSpec::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ParamSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.ParamSpec.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->share_mode(), target); + } + + // optional float lr_mult = 3 [default = 1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->lr_mult(), target); + } + + // optional float decay_mult = 4 [default = 1]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->decay_mult(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ParamSpec) + return target; +} + +size_t ParamSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ParamSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2; + if (has_share_mode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->share_mode()); + } + + // optional float lr_mult = 3 [default = 1]; + if (has_lr_mult()) { + total_size += 1 + 4; + } + + // optional float decay_mult = 4 [default = 1]; + if (has_decay_mult()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ParamSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ParamSpec) + GOOGLE_DCHECK_NE(&from, this); + const ParamSpec* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ParamSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ParamSpec) + MergeFrom(*source); + } +} + +void ParamSpec::MergeFrom(const ParamSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ParamSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_name(); + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (cached_has_bits & 0x00000002u) { + share_mode_ = from.share_mode_; + } + if (cached_has_bits & 0x00000004u) { + lr_mult_ = from.lr_mult_; + } + if (cached_has_bits & 0x00000008u) { + decay_mult_ = from.decay_mult_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ParamSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ParamSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParamSpec::CopyFrom(const ParamSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ParamSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParamSpec::IsInitialized() const { + return true; +} + +void ParamSpec::Swap(ParamSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void ParamSpec::InternalSwap(ParamSpec* other) { + using std::swap; + name_.Swap(&other->name_); + swap(share_mode_, other->share_mode_); + swap(lr_mult_, other->lr_mult_); + swap(decay_mult_, other->decay_mult_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ParamSpec::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LayerParameter::InitAsDefaultInstance() { + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->transform_param_ = const_cast< ::opencv_caffe::TransformationParameter*>( + ::opencv_caffe::TransformationParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->loss_param_ = const_cast< ::opencv_caffe::LossParameter*>( + ::opencv_caffe::LossParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->accuracy_param_ = const_cast< ::opencv_caffe::AccuracyParameter*>( + ::opencv_caffe::AccuracyParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->argmax_param_ = const_cast< ::opencv_caffe::ArgMaxParameter*>( + ::opencv_caffe::ArgMaxParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->batch_norm_param_ = const_cast< ::opencv_caffe::BatchNormParameter*>( + ::opencv_caffe::BatchNormParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->bias_param_ = const_cast< ::opencv_caffe::BiasParameter*>( + ::opencv_caffe::BiasParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->concat_param_ = const_cast< ::opencv_caffe::ConcatParameter*>( + ::opencv_caffe::ConcatParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->contrastive_loss_param_ = const_cast< ::opencv_caffe::ContrastiveLossParameter*>( + ::opencv_caffe::ContrastiveLossParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->convolution_param_ = const_cast< ::opencv_caffe::ConvolutionParameter*>( + ::opencv_caffe::ConvolutionParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->crop_param_ = const_cast< ::opencv_caffe::CropParameter*>( + ::opencv_caffe::CropParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->data_param_ = const_cast< ::opencv_caffe::DataParameter*>( + ::opencv_caffe::DataParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->detection_output_param_ = const_cast< ::opencv_caffe::DetectionOutputParameter*>( + ::opencv_caffe::DetectionOutputParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->dropout_param_ = const_cast< ::opencv_caffe::DropoutParameter*>( + ::opencv_caffe::DropoutParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->dummy_data_param_ = const_cast< ::opencv_caffe::DummyDataParameter*>( + ::opencv_caffe::DummyDataParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->eltwise_param_ = const_cast< ::opencv_caffe::EltwiseParameter*>( + ::opencv_caffe::EltwiseParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->elu_param_ = const_cast< ::opencv_caffe::ELUParameter*>( + ::opencv_caffe::ELUParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->embed_param_ = const_cast< ::opencv_caffe::EmbedParameter*>( + ::opencv_caffe::EmbedParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->exp_param_ = const_cast< ::opencv_caffe::ExpParameter*>( + ::opencv_caffe::ExpParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->flatten_param_ = const_cast< ::opencv_caffe::FlattenParameter*>( + ::opencv_caffe::FlattenParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->hdf5_data_param_ = const_cast< ::opencv_caffe::HDF5DataParameter*>( + ::opencv_caffe::HDF5DataParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->hdf5_output_param_ = const_cast< ::opencv_caffe::HDF5OutputParameter*>( + ::opencv_caffe::HDF5OutputParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->hinge_loss_param_ = const_cast< ::opencv_caffe::HingeLossParameter*>( + ::opencv_caffe::HingeLossParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->image_data_param_ = const_cast< ::opencv_caffe::ImageDataParameter*>( + ::opencv_caffe::ImageDataParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->infogain_loss_param_ = const_cast< ::opencv_caffe::InfogainLossParameter*>( + ::opencv_caffe::InfogainLossParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->inner_product_param_ = const_cast< ::opencv_caffe::InnerProductParameter*>( + ::opencv_caffe::InnerProductParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->input_param_ = const_cast< ::opencv_caffe::InputParameter*>( + ::opencv_caffe::InputParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->log_param_ = const_cast< ::opencv_caffe::LogParameter*>( + ::opencv_caffe::LogParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->lrn_param_ = const_cast< ::opencv_caffe::LRNParameter*>( + ::opencv_caffe::LRNParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->memory_data_param_ = const_cast< ::opencv_caffe::MemoryDataParameter*>( + ::opencv_caffe::MemoryDataParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->mvn_param_ = const_cast< ::opencv_caffe::MVNParameter*>( + ::opencv_caffe::MVNParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->norm_param_ = const_cast< ::opencv_caffe::NormalizeBBoxParameter*>( + ::opencv_caffe::NormalizeBBoxParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->permute_param_ = const_cast< ::opencv_caffe::PermuteParameter*>( + ::opencv_caffe::PermuteParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->parameter_param_ = const_cast< ::opencv_caffe::ParameterParameter*>( + ::opencv_caffe::ParameterParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->pooling_param_ = const_cast< ::opencv_caffe::PoolingParameter*>( + ::opencv_caffe::PoolingParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->power_param_ = const_cast< ::opencv_caffe::PowerParameter*>( + ::opencv_caffe::PowerParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->prelu_param_ = const_cast< ::opencv_caffe::PReLUParameter*>( + ::opencv_caffe::PReLUParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->prior_box_param_ = const_cast< ::opencv_caffe::PriorBoxParameter*>( + ::opencv_caffe::PriorBoxParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->proposal_param_ = const_cast< ::opencv_caffe::ProposalParameter*>( + ::opencv_caffe::ProposalParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->psroi_pooling_param_ = const_cast< ::opencv_caffe::PSROIPoolingParameter*>( + ::opencv_caffe::PSROIPoolingParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->python_param_ = const_cast< ::opencv_caffe::PythonParameter*>( + ::opencv_caffe::PythonParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->recurrent_param_ = const_cast< ::opencv_caffe::RecurrentParameter*>( + ::opencv_caffe::RecurrentParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->reduction_param_ = const_cast< ::opencv_caffe::ReductionParameter*>( + ::opencv_caffe::ReductionParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->relu_param_ = const_cast< ::opencv_caffe::ReLUParameter*>( + ::opencv_caffe::ReLUParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->reshape_param_ = const_cast< ::opencv_caffe::ReshapeParameter*>( + ::opencv_caffe::ReshapeParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->roi_pooling_param_ = const_cast< ::opencv_caffe::ROIPoolingParameter*>( + ::opencv_caffe::ROIPoolingParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->scale_param_ = const_cast< ::opencv_caffe::ScaleParameter*>( + ::opencv_caffe::ScaleParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->sigmoid_param_ = const_cast< ::opencv_caffe::SigmoidParameter*>( + ::opencv_caffe::SigmoidParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->softmax_param_ = const_cast< ::opencv_caffe::SoftmaxParameter*>( + ::opencv_caffe::SoftmaxParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->spp_param_ = const_cast< ::opencv_caffe::SPPParameter*>( + ::opencv_caffe::SPPParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->slice_param_ = const_cast< ::opencv_caffe::SliceParameter*>( + ::opencv_caffe::SliceParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->tanh_param_ = const_cast< ::opencv_caffe::TanHParameter*>( + ::opencv_caffe::TanHParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->threshold_param_ = const_cast< ::opencv_caffe::ThresholdParameter*>( + ::opencv_caffe::ThresholdParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->tile_param_ = const_cast< ::opencv_caffe::TileParameter*>( + ::opencv_caffe::TileParameter::internal_default_instance()); + ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->window_data_param_ = const_cast< ::opencv_caffe::WindowDataParameter*>( + ::opencv_caffe::WindowDataParameter::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LayerParameter::kNameFieldNumber; +const int LayerParameter::kTypeFieldNumber; +const int LayerParameter::kBottomFieldNumber; +const int LayerParameter::kTopFieldNumber; +const int LayerParameter::kPhaseFieldNumber; +const int LayerParameter::kLossWeightFieldNumber; +const int LayerParameter::kParamFieldNumber; +const int LayerParameter::kBlobsFieldNumber; +const int LayerParameter::kPropagateDownFieldNumber; +const int LayerParameter::kIncludeFieldNumber; +const int LayerParameter::kExcludeFieldNumber; +const int LayerParameter::kTransformParamFieldNumber; +const int LayerParameter::kLossParamFieldNumber; +const int LayerParameter::kAccuracyParamFieldNumber; +const int LayerParameter::kArgmaxParamFieldNumber; +const int LayerParameter::kBatchNormParamFieldNumber; +const int LayerParameter::kBiasParamFieldNumber; +const int LayerParameter::kConcatParamFieldNumber; +const int LayerParameter::kContrastiveLossParamFieldNumber; +const int LayerParameter::kConvolutionParamFieldNumber; +const int LayerParameter::kCropParamFieldNumber; +const int LayerParameter::kDataParamFieldNumber; +const int LayerParameter::kDetectionOutputParamFieldNumber; +const int LayerParameter::kDropoutParamFieldNumber; +const int LayerParameter::kDummyDataParamFieldNumber; +const int LayerParameter::kEltwiseParamFieldNumber; +const int LayerParameter::kEluParamFieldNumber; +const int LayerParameter::kEmbedParamFieldNumber; +const int LayerParameter::kExpParamFieldNumber; +const int LayerParameter::kFlattenParamFieldNumber; +const int LayerParameter::kHdf5DataParamFieldNumber; +const int LayerParameter::kHdf5OutputParamFieldNumber; +const int LayerParameter::kHingeLossParamFieldNumber; +const int LayerParameter::kImageDataParamFieldNumber; +const int LayerParameter::kInfogainLossParamFieldNumber; +const int LayerParameter::kInnerProductParamFieldNumber; +const int LayerParameter::kInputParamFieldNumber; +const int LayerParameter::kLogParamFieldNumber; +const int LayerParameter::kLrnParamFieldNumber; +const int LayerParameter::kMemoryDataParamFieldNumber; +const int LayerParameter::kMvnParamFieldNumber; +const int LayerParameter::kNormParamFieldNumber; +const int LayerParameter::kPermuteParamFieldNumber; +const int LayerParameter::kParameterParamFieldNumber; +const int LayerParameter::kPoolingParamFieldNumber; +const int LayerParameter::kPowerParamFieldNumber; +const int LayerParameter::kPreluParamFieldNumber; +const int LayerParameter::kPriorBoxParamFieldNumber; +const int LayerParameter::kProposalParamFieldNumber; +const int LayerParameter::kPsroiPoolingParamFieldNumber; +const int LayerParameter::kPythonParamFieldNumber; +const int LayerParameter::kRecurrentParamFieldNumber; +const int LayerParameter::kReductionParamFieldNumber; +const int LayerParameter::kReluParamFieldNumber; +const int LayerParameter::kReshapeParamFieldNumber; +const int LayerParameter::kRoiPoolingParamFieldNumber; +const int LayerParameter::kScaleParamFieldNumber; +const int LayerParameter::kSigmoidParamFieldNumber; +const int LayerParameter::kSoftmaxParamFieldNumber; +const int LayerParameter::kSppParamFieldNumber; +const int LayerParameter::kSliceParamFieldNumber; +const int LayerParameter::kTanhParamFieldNumber; +const int LayerParameter::kThresholdParamFieldNumber; +const int LayerParameter::kTileParamFieldNumber; +const int LayerParameter::kWindowDataParamFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LayerParameter::LayerParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLayerParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.LayerParameter) +} +LayerParameter::LayerParameter(const LayerParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + bottom_(from.bottom_), + top_(from.top_), + loss_weight_(from.loss_weight_), + param_(from.param_), + blobs_(from.blobs_), + include_(from.include_), + exclude_(from.exclude_), + propagate_down_(from.propagate_down_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_name()) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_type()) { + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + if (from.has_transform_param()) { + transform_param_ = new ::opencv_caffe::TransformationParameter(*from.transform_param_); + } else { + transform_param_ = NULL; + } + if (from.has_loss_param()) { + loss_param_ = new ::opencv_caffe::LossParameter(*from.loss_param_); + } else { + loss_param_ = NULL; + } + if (from.has_accuracy_param()) { + accuracy_param_ = new ::opencv_caffe::AccuracyParameter(*from.accuracy_param_); + } else { + accuracy_param_ = NULL; + } + if (from.has_argmax_param()) { + argmax_param_ = new ::opencv_caffe::ArgMaxParameter(*from.argmax_param_); + } else { + argmax_param_ = NULL; + } + if (from.has_concat_param()) { + concat_param_ = new ::opencv_caffe::ConcatParameter(*from.concat_param_); + } else { + concat_param_ = NULL; + } + if (from.has_contrastive_loss_param()) { + contrastive_loss_param_ = new ::opencv_caffe::ContrastiveLossParameter(*from.contrastive_loss_param_); + } else { + contrastive_loss_param_ = NULL; + } + if (from.has_convolution_param()) { + convolution_param_ = new ::opencv_caffe::ConvolutionParameter(*from.convolution_param_); + } else { + convolution_param_ = NULL; + } + if (from.has_data_param()) { + data_param_ = new ::opencv_caffe::DataParameter(*from.data_param_); + } else { + data_param_ = NULL; + } + if (from.has_dropout_param()) { + dropout_param_ = new ::opencv_caffe::DropoutParameter(*from.dropout_param_); + } else { + dropout_param_ = NULL; + } + if (from.has_dummy_data_param()) { + dummy_data_param_ = new ::opencv_caffe::DummyDataParameter(*from.dummy_data_param_); + } else { + dummy_data_param_ = NULL; + } + if (from.has_eltwise_param()) { + eltwise_param_ = new ::opencv_caffe::EltwiseParameter(*from.eltwise_param_); + } else { + eltwise_param_ = NULL; + } + if (from.has_exp_param()) { + exp_param_ = new ::opencv_caffe::ExpParameter(*from.exp_param_); + } else { + exp_param_ = NULL; + } + if (from.has_hdf5_data_param()) { + hdf5_data_param_ = new ::opencv_caffe::HDF5DataParameter(*from.hdf5_data_param_); + } else { + hdf5_data_param_ = NULL; + } + if (from.has_hdf5_output_param()) { + hdf5_output_param_ = new ::opencv_caffe::HDF5OutputParameter(*from.hdf5_output_param_); + } else { + hdf5_output_param_ = NULL; + } + if (from.has_hinge_loss_param()) { + hinge_loss_param_ = new ::opencv_caffe::HingeLossParameter(*from.hinge_loss_param_); + } else { + hinge_loss_param_ = NULL; + } + if (from.has_image_data_param()) { + image_data_param_ = new ::opencv_caffe::ImageDataParameter(*from.image_data_param_); + } else { + image_data_param_ = NULL; + } + if (from.has_infogain_loss_param()) { + infogain_loss_param_ = new ::opencv_caffe::InfogainLossParameter(*from.infogain_loss_param_); + } else { + infogain_loss_param_ = NULL; + } + if (from.has_inner_product_param()) { + inner_product_param_ = new ::opencv_caffe::InnerProductParameter(*from.inner_product_param_); + } else { + inner_product_param_ = NULL; + } + if (from.has_lrn_param()) { + lrn_param_ = new ::opencv_caffe::LRNParameter(*from.lrn_param_); + } else { + lrn_param_ = NULL; + } + if (from.has_memory_data_param()) { + memory_data_param_ = new ::opencv_caffe::MemoryDataParameter(*from.memory_data_param_); + } else { + memory_data_param_ = NULL; + } + if (from.has_mvn_param()) { + mvn_param_ = new ::opencv_caffe::MVNParameter(*from.mvn_param_); + } else { + mvn_param_ = NULL; + } + if (from.has_pooling_param()) { + pooling_param_ = new ::opencv_caffe::PoolingParameter(*from.pooling_param_); + } else { + pooling_param_ = NULL; + } + if (from.has_power_param()) { + power_param_ = new ::opencv_caffe::PowerParameter(*from.power_param_); + } else { + power_param_ = NULL; + } + if (from.has_relu_param()) { + relu_param_ = new ::opencv_caffe::ReLUParameter(*from.relu_param_); + } else { + relu_param_ = NULL; + } + if (from.has_sigmoid_param()) { + sigmoid_param_ = new ::opencv_caffe::SigmoidParameter(*from.sigmoid_param_); + } else { + sigmoid_param_ = NULL; + } + if (from.has_softmax_param()) { + softmax_param_ = new ::opencv_caffe::SoftmaxParameter(*from.softmax_param_); + } else { + softmax_param_ = NULL; + } + if (from.has_slice_param()) { + slice_param_ = new ::opencv_caffe::SliceParameter(*from.slice_param_); + } else { + slice_param_ = NULL; + } + if (from.has_tanh_param()) { + tanh_param_ = new ::opencv_caffe::TanHParameter(*from.tanh_param_); + } else { + tanh_param_ = NULL; + } + if (from.has_threshold_param()) { + threshold_param_ = new ::opencv_caffe::ThresholdParameter(*from.threshold_param_); + } else { + threshold_param_ = NULL; + } + if (from.has_window_data_param()) { + window_data_param_ = new ::opencv_caffe::WindowDataParameter(*from.window_data_param_); + } else { + window_data_param_ = NULL; + } + if (from.has_python_param()) { + python_param_ = new ::opencv_caffe::PythonParameter(*from.python_param_); + } else { + python_param_ = NULL; + } + if (from.has_prelu_param()) { + prelu_param_ = new ::opencv_caffe::PReLUParameter(*from.prelu_param_); + } else { + prelu_param_ = NULL; + } + if (from.has_spp_param()) { + spp_param_ = new ::opencv_caffe::SPPParameter(*from.spp_param_); + } else { + spp_param_ = NULL; + } + if (from.has_reshape_param()) { + reshape_param_ = new ::opencv_caffe::ReshapeParameter(*from.reshape_param_); + } else { + reshape_param_ = NULL; + } + if (from.has_log_param()) { + log_param_ = new ::opencv_caffe::LogParameter(*from.log_param_); + } else { + log_param_ = NULL; + } + if (from.has_flatten_param()) { + flatten_param_ = new ::opencv_caffe::FlattenParameter(*from.flatten_param_); + } else { + flatten_param_ = NULL; + } + if (from.has_reduction_param()) { + reduction_param_ = new ::opencv_caffe::ReductionParameter(*from.reduction_param_); + } else { + reduction_param_ = NULL; + } + if (from.has_embed_param()) { + embed_param_ = new ::opencv_caffe::EmbedParameter(*from.embed_param_); + } else { + embed_param_ = NULL; + } + if (from.has_tile_param()) { + tile_param_ = new ::opencv_caffe::TileParameter(*from.tile_param_); + } else { + tile_param_ = NULL; + } + if (from.has_batch_norm_param()) { + batch_norm_param_ = new ::opencv_caffe::BatchNormParameter(*from.batch_norm_param_); + } else { + batch_norm_param_ = NULL; + } + if (from.has_elu_param()) { + elu_param_ = new ::opencv_caffe::ELUParameter(*from.elu_param_); + } else { + elu_param_ = NULL; + } + if (from.has_bias_param()) { + bias_param_ = new ::opencv_caffe::BiasParameter(*from.bias_param_); + } else { + bias_param_ = NULL; + } + if (from.has_scale_param()) { + scale_param_ = new ::opencv_caffe::ScaleParameter(*from.scale_param_); + } else { + scale_param_ = NULL; + } + if (from.has_input_param()) { + input_param_ = new ::opencv_caffe::InputParameter(*from.input_param_); + } else { + input_param_ = NULL; + } + if (from.has_crop_param()) { + crop_param_ = new ::opencv_caffe::CropParameter(*from.crop_param_); + } else { + crop_param_ = NULL; + } + if (from.has_parameter_param()) { + parameter_param_ = new ::opencv_caffe::ParameterParameter(*from.parameter_param_); + } else { + parameter_param_ = NULL; + } + if (from.has_recurrent_param()) { + recurrent_param_ = new ::opencv_caffe::RecurrentParameter(*from.recurrent_param_); + } else { + recurrent_param_ = NULL; + } + if (from.has_detection_output_param()) { + detection_output_param_ = new ::opencv_caffe::DetectionOutputParameter(*from.detection_output_param_); + } else { + detection_output_param_ = NULL; + } + if (from.has_permute_param()) { + permute_param_ = new ::opencv_caffe::PermuteParameter(*from.permute_param_); + } else { + permute_param_ = NULL; + } + if (from.has_norm_param()) { + norm_param_ = new ::opencv_caffe::NormalizeBBoxParameter(*from.norm_param_); + } else { + norm_param_ = NULL; + } + if (from.has_prior_box_param()) { + prior_box_param_ = new ::opencv_caffe::PriorBoxParameter(*from.prior_box_param_); + } else { + prior_box_param_ = NULL; + } + if (from.has_proposal_param()) { + proposal_param_ = new ::opencv_caffe::ProposalParameter(*from.proposal_param_); + } else { + proposal_param_ = NULL; + } + if (from.has_psroi_pooling_param()) { + psroi_pooling_param_ = new ::opencv_caffe::PSROIPoolingParameter(*from.psroi_pooling_param_); + } else { + psroi_pooling_param_ = NULL; + } + if (from.has_roi_pooling_param()) { + roi_pooling_param_ = new ::opencv_caffe::ROIPoolingParameter(*from.roi_pooling_param_); + } else { + roi_pooling_param_ = NULL; + } + phase_ = from.phase_; + // @@protoc_insertion_point(copy_constructor:opencv_caffe.LayerParameter) +} + +void LayerParameter::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&transform_param_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&transform_param_)) + sizeof(phase_)); + _cached_size_ = 0; +} + +LayerParameter::~LayerParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.LayerParameter) + SharedDtor(); +} + +void LayerParameter::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete transform_param_; + if (this != internal_default_instance()) delete loss_param_; + if (this != internal_default_instance()) delete accuracy_param_; + if (this != internal_default_instance()) delete argmax_param_; + if (this != internal_default_instance()) delete concat_param_; + if (this != internal_default_instance()) delete contrastive_loss_param_; + if (this != internal_default_instance()) delete convolution_param_; + if (this != internal_default_instance()) delete data_param_; + if (this != internal_default_instance()) delete dropout_param_; + if (this != internal_default_instance()) delete dummy_data_param_; + if (this != internal_default_instance()) delete eltwise_param_; + if (this != internal_default_instance()) delete exp_param_; + if (this != internal_default_instance()) delete hdf5_data_param_; + if (this != internal_default_instance()) delete hdf5_output_param_; + if (this != internal_default_instance()) delete hinge_loss_param_; + if (this != internal_default_instance()) delete image_data_param_; + if (this != internal_default_instance()) delete infogain_loss_param_; + if (this != internal_default_instance()) delete inner_product_param_; + if (this != internal_default_instance()) delete lrn_param_; + if (this != internal_default_instance()) delete memory_data_param_; + if (this != internal_default_instance()) delete mvn_param_; + if (this != internal_default_instance()) delete pooling_param_; + if (this != internal_default_instance()) delete power_param_; + if (this != internal_default_instance()) delete relu_param_; + if (this != internal_default_instance()) delete sigmoid_param_; + if (this != internal_default_instance()) delete softmax_param_; + if (this != internal_default_instance()) delete slice_param_; + if (this != internal_default_instance()) delete tanh_param_; + if (this != internal_default_instance()) delete threshold_param_; + if (this != internal_default_instance()) delete window_data_param_; + if (this != internal_default_instance()) delete python_param_; + if (this != internal_default_instance()) delete prelu_param_; + if (this != internal_default_instance()) delete spp_param_; + if (this != internal_default_instance()) delete reshape_param_; + if (this != internal_default_instance()) delete log_param_; + if (this != internal_default_instance()) delete flatten_param_; + if (this != internal_default_instance()) delete reduction_param_; + if (this != internal_default_instance()) delete embed_param_; + if (this != internal_default_instance()) delete tile_param_; + if (this != internal_default_instance()) delete batch_norm_param_; + if (this != internal_default_instance()) delete elu_param_; + if (this != internal_default_instance()) delete bias_param_; + if (this != internal_default_instance()) delete scale_param_; + if (this != internal_default_instance()) delete input_param_; + if (this != internal_default_instance()) delete crop_param_; + if (this != internal_default_instance()) delete parameter_param_; + if (this != internal_default_instance()) delete recurrent_param_; + if (this != internal_default_instance()) delete detection_output_param_; + if (this != internal_default_instance()) delete permute_param_; + if (this != internal_default_instance()) delete norm_param_; + if (this != internal_default_instance()) delete prior_box_param_; + if (this != internal_default_instance()) delete proposal_param_; + if (this != internal_default_instance()) delete psroi_pooling_param_; + if (this != internal_default_instance()) delete roi_pooling_param_; +} + +void LayerParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LayerParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LayerParameter& LayerParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLayerParameter(); + return *internal_default_instance(); +} + +LayerParameter* LayerParameter::New(::google::protobuf::Arena* arena) const { + LayerParameter* n = new LayerParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LayerParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.LayerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + bottom_.Clear(); + top_.Clear(); + loss_weight_.Clear(); + param_.Clear(); + blobs_.Clear(); + include_.Clear(); + exclude_.Clear(); + propagate_down_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*name_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(!type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*type_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(transform_param_ != NULL); + transform_param_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(loss_param_ != NULL); + loss_param_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(accuracy_param_ != NULL); + accuracy_param_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(argmax_param_ != NULL); + argmax_param_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(concat_param_ != NULL); + concat_param_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(contrastive_loss_param_ != NULL); + contrastive_loss_param_->Clear(); + } + } + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(convolution_param_ != NULL); + convolution_param_->Clear(); + } + if (cached_has_bits & 0x00000200u) { + GOOGLE_DCHECK(data_param_ != NULL); + data_param_->Clear(); + } + if (cached_has_bits & 0x00000400u) { + GOOGLE_DCHECK(dropout_param_ != NULL); + dropout_param_->Clear(); + } + if (cached_has_bits & 0x00000800u) { + GOOGLE_DCHECK(dummy_data_param_ != NULL); + dummy_data_param_->Clear(); + } + if (cached_has_bits & 0x00001000u) { + GOOGLE_DCHECK(eltwise_param_ != NULL); + eltwise_param_->Clear(); + } + if (cached_has_bits & 0x00002000u) { + GOOGLE_DCHECK(exp_param_ != NULL); + exp_param_->Clear(); + } + if (cached_has_bits & 0x00004000u) { + GOOGLE_DCHECK(hdf5_data_param_ != NULL); + hdf5_data_param_->Clear(); + } + if (cached_has_bits & 0x00008000u) { + GOOGLE_DCHECK(hdf5_output_param_ != NULL); + hdf5_output_param_->Clear(); + } + } + if (cached_has_bits & 16711680u) { + if (cached_has_bits & 0x00010000u) { + GOOGLE_DCHECK(hinge_loss_param_ != NULL); + hinge_loss_param_->Clear(); + } + if (cached_has_bits & 0x00020000u) { + GOOGLE_DCHECK(image_data_param_ != NULL); + image_data_param_->Clear(); + } + if (cached_has_bits & 0x00040000u) { + GOOGLE_DCHECK(infogain_loss_param_ != NULL); + infogain_loss_param_->Clear(); + } + if (cached_has_bits & 0x00080000u) { + GOOGLE_DCHECK(inner_product_param_ != NULL); + inner_product_param_->Clear(); + } + if (cached_has_bits & 0x00100000u) { + GOOGLE_DCHECK(lrn_param_ != NULL); + lrn_param_->Clear(); + } + if (cached_has_bits & 0x00200000u) { + GOOGLE_DCHECK(memory_data_param_ != NULL); + memory_data_param_->Clear(); + } + if (cached_has_bits & 0x00400000u) { + GOOGLE_DCHECK(mvn_param_ != NULL); + mvn_param_->Clear(); + } + if (cached_has_bits & 0x00800000u) { + GOOGLE_DCHECK(pooling_param_ != NULL); + pooling_param_->Clear(); + } + } + if (cached_has_bits & 4278190080u) { + if (cached_has_bits & 0x01000000u) { + GOOGLE_DCHECK(power_param_ != NULL); + power_param_->Clear(); + } + if (cached_has_bits & 0x02000000u) { + GOOGLE_DCHECK(relu_param_ != NULL); + relu_param_->Clear(); + } + if (cached_has_bits & 0x04000000u) { + GOOGLE_DCHECK(sigmoid_param_ != NULL); + sigmoid_param_->Clear(); + } + if (cached_has_bits & 0x08000000u) { + GOOGLE_DCHECK(softmax_param_ != NULL); + softmax_param_->Clear(); + } + if (cached_has_bits & 0x10000000u) { + GOOGLE_DCHECK(slice_param_ != NULL); + slice_param_->Clear(); + } + if (cached_has_bits & 0x20000000u) { + GOOGLE_DCHECK(tanh_param_ != NULL); + tanh_param_->Clear(); + } + if (cached_has_bits & 0x40000000u) { + GOOGLE_DCHECK(threshold_param_ != NULL); + threshold_param_->Clear(); + } + if (cached_has_bits & 0x80000000u) { + GOOGLE_DCHECK(window_data_param_ != NULL); + window_data_param_->Clear(); + } + } + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(python_param_ != NULL); + python_param_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(prelu_param_ != NULL); + prelu_param_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(spp_param_ != NULL); + spp_param_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(reshape_param_ != NULL); + reshape_param_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(log_param_ != NULL); + log_param_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(flatten_param_ != NULL); + flatten_param_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(reduction_param_ != NULL); + reduction_param_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(embed_param_ != NULL); + embed_param_->Clear(); + } + } + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(tile_param_ != NULL); + tile_param_->Clear(); + } + if (cached_has_bits & 0x00000200u) { + GOOGLE_DCHECK(batch_norm_param_ != NULL); + batch_norm_param_->Clear(); + } + if (cached_has_bits & 0x00000400u) { + GOOGLE_DCHECK(elu_param_ != NULL); + elu_param_->Clear(); + } + if (cached_has_bits & 0x00000800u) { + GOOGLE_DCHECK(bias_param_ != NULL); + bias_param_->Clear(); + } + if (cached_has_bits & 0x00001000u) { + GOOGLE_DCHECK(scale_param_ != NULL); + scale_param_->Clear(); + } + if (cached_has_bits & 0x00002000u) { + GOOGLE_DCHECK(input_param_ != NULL); + input_param_->Clear(); + } + if (cached_has_bits & 0x00004000u) { + GOOGLE_DCHECK(crop_param_ != NULL); + crop_param_->Clear(); + } + if (cached_has_bits & 0x00008000u) { + GOOGLE_DCHECK(parameter_param_ != NULL); + parameter_param_->Clear(); + } + } + if (cached_has_bits & 16711680u) { + if (cached_has_bits & 0x00010000u) { + GOOGLE_DCHECK(recurrent_param_ != NULL); + recurrent_param_->Clear(); + } + if (cached_has_bits & 0x00020000u) { + GOOGLE_DCHECK(detection_output_param_ != NULL); + detection_output_param_->Clear(); + } + if (cached_has_bits & 0x00040000u) { + GOOGLE_DCHECK(permute_param_ != NULL); + permute_param_->Clear(); + } + if (cached_has_bits & 0x00080000u) { + GOOGLE_DCHECK(norm_param_ != NULL); + norm_param_->Clear(); + } + if (cached_has_bits & 0x00100000u) { + GOOGLE_DCHECK(prior_box_param_ != NULL); + prior_box_param_->Clear(); + } + if (cached_has_bits & 0x00200000u) { + GOOGLE_DCHECK(proposal_param_ != NULL); + proposal_param_->Clear(); + } + if (cached_has_bits & 0x00400000u) { + GOOGLE_DCHECK(psroi_pooling_param_ != NULL); + psroi_pooling_param_->Clear(); + } + if (cached_has_bits & 0x00800000u) { + GOOGLE_DCHECK(roi_pooling_param_ != NULL); + roi_pooling_param_->Clear(); + } + } + phase_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LayerParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.LayerParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(66133690u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.LayerParameter.name"); + } else { + goto handle_unusual; + } + break; + } + + // optional string type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_type())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.LayerParameter.type"); + } else { + goto handle_unusual; + } + break; + } + + // repeated string bottom = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_bottom())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->bottom(this->bottom_size() - 1).data(), + static_cast(this->bottom(this->bottom_size() - 1).length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.LayerParameter.bottom"); + } else { + goto handle_unusual; + } + break; + } + + // repeated string top = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_top())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->top(this->top_size() - 1).data(), + static_cast(this->top(this->top_size() - 1).length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.LayerParameter.top"); + } else { + goto handle_unusual; + } + break; + } + + // repeated float loss_weight = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 45u, input, this->mutable_loss_weight()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_loss_weight()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.ParamSpec param = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_param())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.BlobProto blobs = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_blobs())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.NetStateRule include = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_include())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.NetStateRule exclude = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_exclude())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.Phase phase = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::Phase_IsValid(value)) { + set_phase(static_cast< ::opencv_caffe::Phase >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 10, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // repeated bool propagate_down = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + 1, 88u, input, this->mutable_propagate_down()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, this->mutable_propagate_down()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.TransformationParameter transform_param = 100; + case 100: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 802 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_transform_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.LossParameter loss_param = 101; + case 101: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 810 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_loss_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; + case 102: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 818 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_accuracy_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; + case 103: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 826 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_argmax_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ConcatParameter concat_param = 104; + case 104: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 834 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_concat_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; + case 105: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 842 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_contrastive_loss_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; + case 106: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 850 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_convolution_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.DataParameter data_param = 107; + case 107: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 858 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_data_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.DropoutParameter dropout_param = 108; + case 108: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 866 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dropout_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; + case 109: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 874 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dummy_data_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; + case 110: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 882 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_eltwise_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ExpParameter exp_param = 111; + case 111: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 890 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_exp_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; + case 112: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 898 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_hdf5_data_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; + case 113: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(138u /* 906 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_hdf5_output_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; + case 114: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(146u /* 914 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_hinge_loss_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ImageDataParameter image_data_param = 115; + case 115: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(154u /* 922 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_image_data_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; + case 116: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(162u /* 930 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_infogain_loss_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; + case 117: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(170u /* 938 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inner_product_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.LRNParameter lrn_param = 118; + case 118: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(178u /* 946 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_lrn_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; + case 119: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(186u /* 954 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_memory_data_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.MVNParameter mvn_param = 120; + case 120: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(194u /* 962 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_mvn_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.PoolingParameter pooling_param = 121; + case 121: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(202u /* 970 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pooling_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.PowerParameter power_param = 122; + case 122: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(210u /* 978 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_power_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ReLUParameter relu_param = 123; + case 123: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(218u /* 986 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_relu_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; + case 124: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(226u /* 994 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sigmoid_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; + case 125: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(234u /* 1002 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_softmax_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SliceParameter slice_param = 126; + case 126: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(242u /* 1010 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_slice_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.TanHParameter tanh_param = 127; + case 127: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(250u /* 1018 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tanh_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ThresholdParameter threshold_param = 128; + case 128: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(2u /* 1026 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_threshold_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.WindowDataParameter window_data_param = 129; + case 129: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 1034 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_window_data_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.PythonParameter python_param = 130; + case 130: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 1042 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_python_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.PReLUParameter prelu_param = 131; + case 131: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 1050 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_prelu_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SPPParameter spp_param = 132; + case 132: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 1058 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spp_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ReshapeParameter reshape_param = 133; + case 133: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 1066 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reshape_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.LogParameter log_param = 134; + case 134: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 1074 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_log_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FlattenParameter flatten_param = 135; + case 135: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 1082 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_flatten_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ReductionParameter reduction_param = 136; + case 136: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 1090 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reduction_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.EmbedParameter embed_param = 137; + case 137: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 1098 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_embed_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.TileParameter tile_param = 138; + case 138: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 1106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tile_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; + case 139: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 1114 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_batch_norm_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ELUParameter elu_param = 140; + case 140: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 1122 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_elu_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.BiasParameter bias_param = 141; + case 141: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 1130 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_bias_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ScaleParameter scale_param = 142; + case 142: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 1138 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scale_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.InputParameter input_param = 143; + case 143: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 1146 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_input_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.CropParameter crop_param = 144; + case 144: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 1154 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_crop_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ParameterParameter parameter_param = 145; + case 145: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(138u /* 1162 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parameter_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; + case 146: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(146u /* 1170 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_recurrent_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; + case 147: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(154u /* 1178 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_detection_output_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.PermuteParameter permute_param = 148; + case 148: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(162u /* 1186 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_permute_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; + case 149: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(170u /* 1194 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_norm_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; + case 150: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(178u /* 1202 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_prior_box_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ProposalParameter proposal_param = 201; + case 201: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 1610 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_proposal_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; + case 10002: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(146u /* 80018 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_psroi_pooling_param())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; + case 8266711: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(186u /* 66133690 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_roi_pooling_param())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.LayerParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.LayerParameter) + return false; +#undef DO_ +} + +void LayerParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.LayerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.LayerParameter.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // optional string type = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.LayerParameter.type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->type(), output); + } + + // repeated string bottom = 3; + for (int i = 0, n = this->bottom_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->bottom(i).data(), static_cast(this->bottom(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.LayerParameter.bottom"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->bottom(i), output); + } + + // repeated string top = 4; + for (int i = 0, n = this->top_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->top(i).data(), static_cast(this->top(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.LayerParameter.top"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->top(i), output); + } + + // repeated float loss_weight = 5; + for (int i = 0, n = this->loss_weight_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 5, this->loss_weight(i), output); + } + + // repeated .opencv_caffe.ParamSpec param = 6; + for (unsigned int i = 0, + n = static_cast(this->param_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->param(static_cast(i)), output); + } + + // repeated .opencv_caffe.BlobProto blobs = 7; + for (unsigned int i = 0, + n = static_cast(this->blobs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->blobs(static_cast(i)), output); + } + + // repeated .opencv_caffe.NetStateRule include = 8; + for (unsigned int i = 0, + n = static_cast(this->include_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, this->include(static_cast(i)), output); + } + + // repeated .opencv_caffe.NetStateRule exclude = 9; + for (unsigned int i = 0, + n = static_cast(this->exclude_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, this->exclude(static_cast(i)), output); + } + + cached_has_bits = _has_bits_[1]; + // optional .opencv_caffe.Phase phase = 10; + if (cached_has_bits & 0x01000000u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 10, this->phase(), output); + } + + // repeated bool propagate_down = 11; + for (int i = 0, n = this->propagate_down_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteBool( + 11, this->propagate_down(i), output); + } + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.TransformationParameter transform_param = 100; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 100, *this->transform_param_, output); + } + + // optional .opencv_caffe.LossParameter loss_param = 101; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 101, *this->loss_param_, output); + } + + // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 102, *this->accuracy_param_, output); + } + + // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 103, *this->argmax_param_, output); + } + + // optional .opencv_caffe.ConcatParameter concat_param = 104; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 104, *this->concat_param_, output); + } + + // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 105, *this->contrastive_loss_param_, output); + } + + // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 106, *this->convolution_param_, output); + } + + // optional .opencv_caffe.DataParameter data_param = 107; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 107, *this->data_param_, output); + } + + // optional .opencv_caffe.DropoutParameter dropout_param = 108; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 108, *this->dropout_param_, output); + } + + // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 109, *this->dummy_data_param_, output); + } + + // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 110, *this->eltwise_param_, output); + } + + // optional .opencv_caffe.ExpParameter exp_param = 111; + if (cached_has_bits & 0x00002000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 111, *this->exp_param_, output); + } + + // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; + if (cached_has_bits & 0x00004000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 112, *this->hdf5_data_param_, output); + } + + // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; + if (cached_has_bits & 0x00008000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 113, *this->hdf5_output_param_, output); + } + + // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; + if (cached_has_bits & 0x00010000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 114, *this->hinge_loss_param_, output); + } + + // optional .opencv_caffe.ImageDataParameter image_data_param = 115; + if (cached_has_bits & 0x00020000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 115, *this->image_data_param_, output); + } + + // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; + if (cached_has_bits & 0x00040000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 116, *this->infogain_loss_param_, output); + } + + // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; + if (cached_has_bits & 0x00080000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 117, *this->inner_product_param_, output); + } + + // optional .opencv_caffe.LRNParameter lrn_param = 118; + if (cached_has_bits & 0x00100000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 118, *this->lrn_param_, output); + } + + // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; + if (cached_has_bits & 0x00200000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 119, *this->memory_data_param_, output); + } + + // optional .opencv_caffe.MVNParameter mvn_param = 120; + if (cached_has_bits & 0x00400000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 120, *this->mvn_param_, output); + } + + // optional .opencv_caffe.PoolingParameter pooling_param = 121; + if (cached_has_bits & 0x00800000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 121, *this->pooling_param_, output); + } + + // optional .opencv_caffe.PowerParameter power_param = 122; + if (cached_has_bits & 0x01000000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 122, *this->power_param_, output); + } + + // optional .opencv_caffe.ReLUParameter relu_param = 123; + if (cached_has_bits & 0x02000000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 123, *this->relu_param_, output); + } + + // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; + if (cached_has_bits & 0x04000000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 124, *this->sigmoid_param_, output); + } + + // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; + if (cached_has_bits & 0x08000000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 125, *this->softmax_param_, output); + } + + // optional .opencv_caffe.SliceParameter slice_param = 126; + if (cached_has_bits & 0x10000000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 126, *this->slice_param_, output); + } + + // optional .opencv_caffe.TanHParameter tanh_param = 127; + if (cached_has_bits & 0x20000000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 127, *this->tanh_param_, output); + } + + // optional .opencv_caffe.ThresholdParameter threshold_param = 128; + if (cached_has_bits & 0x40000000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 128, *this->threshold_param_, output); + } + + // optional .opencv_caffe.WindowDataParameter window_data_param = 129; + if (cached_has_bits & 0x80000000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 129, *this->window_data_param_, output); + } + + cached_has_bits = _has_bits_[1]; + // optional .opencv_caffe.PythonParameter python_param = 130; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 130, *this->python_param_, output); + } + + // optional .opencv_caffe.PReLUParameter prelu_param = 131; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 131, *this->prelu_param_, output); + } + + // optional .opencv_caffe.SPPParameter spp_param = 132; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 132, *this->spp_param_, output); + } + + // optional .opencv_caffe.ReshapeParameter reshape_param = 133; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 133, *this->reshape_param_, output); + } + + // optional .opencv_caffe.LogParameter log_param = 134; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 134, *this->log_param_, output); + } + + // optional .opencv_caffe.FlattenParameter flatten_param = 135; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 135, *this->flatten_param_, output); + } + + // optional .opencv_caffe.ReductionParameter reduction_param = 136; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 136, *this->reduction_param_, output); + } + + // optional .opencv_caffe.EmbedParameter embed_param = 137; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 137, *this->embed_param_, output); + } + + // optional .opencv_caffe.TileParameter tile_param = 138; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 138, *this->tile_param_, output); + } + + // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 139, *this->batch_norm_param_, output); + } + + // optional .opencv_caffe.ELUParameter elu_param = 140; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 140, *this->elu_param_, output); + } + + // optional .opencv_caffe.BiasParameter bias_param = 141; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 141, *this->bias_param_, output); + } + + // optional .opencv_caffe.ScaleParameter scale_param = 142; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 142, *this->scale_param_, output); + } + + // optional .opencv_caffe.InputParameter input_param = 143; + if (cached_has_bits & 0x00002000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 143, *this->input_param_, output); + } + + // optional .opencv_caffe.CropParameter crop_param = 144; + if (cached_has_bits & 0x00004000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 144, *this->crop_param_, output); + } + + // optional .opencv_caffe.ParameterParameter parameter_param = 145; + if (cached_has_bits & 0x00008000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 145, *this->parameter_param_, output); + } + + // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; + if (cached_has_bits & 0x00010000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 146, *this->recurrent_param_, output); + } + + // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; + if (cached_has_bits & 0x00020000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 147, *this->detection_output_param_, output); + } + + // optional .opencv_caffe.PermuteParameter permute_param = 148; + if (cached_has_bits & 0x00040000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 148, *this->permute_param_, output); + } + + // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; + if (cached_has_bits & 0x00080000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 149, *this->norm_param_, output); + } + + // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; + if (cached_has_bits & 0x00100000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 150, *this->prior_box_param_, output); + } + + // optional .opencv_caffe.ProposalParameter proposal_param = 201; + if (cached_has_bits & 0x00200000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 201, *this->proposal_param_, output); + } + + // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; + if (cached_has_bits & 0x00400000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10002, *this->psroi_pooling_param_, output); + } + + // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; + if (cached_has_bits & 0x00800000u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8266711, *this->roi_pooling_param_, output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.LayerParameter) +} + +::google::protobuf::uint8* LayerParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LayerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.LayerParameter.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // optional string type = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.LayerParameter.type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->type(), target); + } + + // repeated string bottom = 3; + for (int i = 0, n = this->bottom_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->bottom(i).data(), static_cast(this->bottom(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.LayerParameter.bottom"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->bottom(i), target); + } + + // repeated string top = 4; + for (int i = 0, n = this->top_size(); i < n; i++) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->top(i).data(), static_cast(this->top(i).length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.LayerParameter.top"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(4, this->top(i), target); + } + + // repeated float loss_weight = 5; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(5, this->loss_weight_, target); + + // repeated .opencv_caffe.ParamSpec param = 6; + for (unsigned int i = 0, + n = static_cast(this->param_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->param(static_cast(i)), deterministic, target); + } + + // repeated .opencv_caffe.BlobProto blobs = 7; + for (unsigned int i = 0, + n = static_cast(this->blobs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->blobs(static_cast(i)), deterministic, target); + } + + // repeated .opencv_caffe.NetStateRule include = 8; + for (unsigned int i = 0, + n = static_cast(this->include_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, this->include(static_cast(i)), deterministic, target); + } + + // repeated .opencv_caffe.NetStateRule exclude = 9; + for (unsigned int i = 0, + n = static_cast(this->exclude_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, this->exclude(static_cast(i)), deterministic, target); + } + + cached_has_bits = _has_bits_[1]; + // optional .opencv_caffe.Phase phase = 10; + if (cached_has_bits & 0x01000000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 10, this->phase(), target); + } + + // repeated bool propagate_down = 11; + target = ::google::protobuf::internal::WireFormatLite:: + WriteBoolToArray(11, this->propagate_down_, target); + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.TransformationParameter transform_param = 100; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 100, *this->transform_param_, deterministic, target); + } + + // optional .opencv_caffe.LossParameter loss_param = 101; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 101, *this->loss_param_, deterministic, target); + } + + // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 102, *this->accuracy_param_, deterministic, target); + } + + // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 103, *this->argmax_param_, deterministic, target); + } + + // optional .opencv_caffe.ConcatParameter concat_param = 104; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 104, *this->concat_param_, deterministic, target); + } + + // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 105, *this->contrastive_loss_param_, deterministic, target); + } + + // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 106, *this->convolution_param_, deterministic, target); + } + + // optional .opencv_caffe.DataParameter data_param = 107; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 107, *this->data_param_, deterministic, target); + } + + // optional .opencv_caffe.DropoutParameter dropout_param = 108; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 108, *this->dropout_param_, deterministic, target); + } + + // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 109, *this->dummy_data_param_, deterministic, target); + } + + // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 110, *this->eltwise_param_, deterministic, target); + } + + // optional .opencv_caffe.ExpParameter exp_param = 111; + if (cached_has_bits & 0x00002000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 111, *this->exp_param_, deterministic, target); + } + + // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; + if (cached_has_bits & 0x00004000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 112, *this->hdf5_data_param_, deterministic, target); + } + + // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; + if (cached_has_bits & 0x00008000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 113, *this->hdf5_output_param_, deterministic, target); + } + + // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; + if (cached_has_bits & 0x00010000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 114, *this->hinge_loss_param_, deterministic, target); + } + + // optional .opencv_caffe.ImageDataParameter image_data_param = 115; + if (cached_has_bits & 0x00020000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 115, *this->image_data_param_, deterministic, target); + } + + // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; + if (cached_has_bits & 0x00040000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 116, *this->infogain_loss_param_, deterministic, target); + } + + // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; + if (cached_has_bits & 0x00080000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 117, *this->inner_product_param_, deterministic, target); + } + + // optional .opencv_caffe.LRNParameter lrn_param = 118; + if (cached_has_bits & 0x00100000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 118, *this->lrn_param_, deterministic, target); + } + + // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; + if (cached_has_bits & 0x00200000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 119, *this->memory_data_param_, deterministic, target); + } + + // optional .opencv_caffe.MVNParameter mvn_param = 120; + if (cached_has_bits & 0x00400000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 120, *this->mvn_param_, deterministic, target); + } + + // optional .opencv_caffe.PoolingParameter pooling_param = 121; + if (cached_has_bits & 0x00800000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 121, *this->pooling_param_, deterministic, target); + } + + // optional .opencv_caffe.PowerParameter power_param = 122; + if (cached_has_bits & 0x01000000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 122, *this->power_param_, deterministic, target); + } + + // optional .opencv_caffe.ReLUParameter relu_param = 123; + if (cached_has_bits & 0x02000000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 123, *this->relu_param_, deterministic, target); + } + + // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; + if (cached_has_bits & 0x04000000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 124, *this->sigmoid_param_, deterministic, target); + } + + // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; + if (cached_has_bits & 0x08000000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 125, *this->softmax_param_, deterministic, target); + } + + // optional .opencv_caffe.SliceParameter slice_param = 126; + if (cached_has_bits & 0x10000000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 126, *this->slice_param_, deterministic, target); + } + + // optional .opencv_caffe.TanHParameter tanh_param = 127; + if (cached_has_bits & 0x20000000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 127, *this->tanh_param_, deterministic, target); + } + + // optional .opencv_caffe.ThresholdParameter threshold_param = 128; + if (cached_has_bits & 0x40000000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 128, *this->threshold_param_, deterministic, target); + } + + // optional .opencv_caffe.WindowDataParameter window_data_param = 129; + if (cached_has_bits & 0x80000000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 129, *this->window_data_param_, deterministic, target); + } + + cached_has_bits = _has_bits_[1]; + // optional .opencv_caffe.PythonParameter python_param = 130; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 130, *this->python_param_, deterministic, target); + } + + // optional .opencv_caffe.PReLUParameter prelu_param = 131; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 131, *this->prelu_param_, deterministic, target); + } + + // optional .opencv_caffe.SPPParameter spp_param = 132; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 132, *this->spp_param_, deterministic, target); + } + + // optional .opencv_caffe.ReshapeParameter reshape_param = 133; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 133, *this->reshape_param_, deterministic, target); + } + + // optional .opencv_caffe.LogParameter log_param = 134; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 134, *this->log_param_, deterministic, target); + } + + // optional .opencv_caffe.FlattenParameter flatten_param = 135; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 135, *this->flatten_param_, deterministic, target); + } + + // optional .opencv_caffe.ReductionParameter reduction_param = 136; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 136, *this->reduction_param_, deterministic, target); + } + + // optional .opencv_caffe.EmbedParameter embed_param = 137; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 137, *this->embed_param_, deterministic, target); + } + + // optional .opencv_caffe.TileParameter tile_param = 138; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 138, *this->tile_param_, deterministic, target); + } + + // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 139, *this->batch_norm_param_, deterministic, target); + } + + // optional .opencv_caffe.ELUParameter elu_param = 140; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 140, *this->elu_param_, deterministic, target); + } + + // optional .opencv_caffe.BiasParameter bias_param = 141; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 141, *this->bias_param_, deterministic, target); + } + + // optional .opencv_caffe.ScaleParameter scale_param = 142; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 142, *this->scale_param_, deterministic, target); + } + + // optional .opencv_caffe.InputParameter input_param = 143; + if (cached_has_bits & 0x00002000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 143, *this->input_param_, deterministic, target); + } + + // optional .opencv_caffe.CropParameter crop_param = 144; + if (cached_has_bits & 0x00004000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 144, *this->crop_param_, deterministic, target); + } + + // optional .opencv_caffe.ParameterParameter parameter_param = 145; + if (cached_has_bits & 0x00008000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 145, *this->parameter_param_, deterministic, target); + } + + // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; + if (cached_has_bits & 0x00010000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 146, *this->recurrent_param_, deterministic, target); + } + + // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; + if (cached_has_bits & 0x00020000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 147, *this->detection_output_param_, deterministic, target); + } + + // optional .opencv_caffe.PermuteParameter permute_param = 148; + if (cached_has_bits & 0x00040000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 148, *this->permute_param_, deterministic, target); + } + + // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; + if (cached_has_bits & 0x00080000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 149, *this->norm_param_, deterministic, target); + } + + // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; + if (cached_has_bits & 0x00100000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 150, *this->prior_box_param_, deterministic, target); + } + + // optional .opencv_caffe.ProposalParameter proposal_param = 201; + if (cached_has_bits & 0x00200000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 201, *this->proposal_param_, deterministic, target); + } + + // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; + if (cached_has_bits & 0x00400000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10002, *this->psroi_pooling_param_, deterministic, target); + } + + // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; + if (cached_has_bits & 0x00800000u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8266711, *this->roi_pooling_param_, deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LayerParameter) + return target; +} + +size_t LayerParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LayerParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated string bottom = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->bottom_size()); + for (int i = 0, n = this->bottom_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->bottom(i)); + } + + // repeated string top = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->top_size()); + for (int i = 0, n = this->top_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->top(i)); + } + + // repeated float loss_weight = 5; + { + unsigned int count = static_cast(this->loss_weight_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->loss_weight_size()); + total_size += data_size; + } + + // repeated .opencv_caffe.ParamSpec param = 6; + { + unsigned int count = static_cast(this->param_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->param(static_cast(i))); + } + } + + // repeated .opencv_caffe.BlobProto blobs = 7; + { + unsigned int count = static_cast(this->blobs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->blobs(static_cast(i))); + } + } + + // repeated .opencv_caffe.NetStateRule include = 8; + { + unsigned int count = static_cast(this->include_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->include(static_cast(i))); + } + } + + // repeated .opencv_caffe.NetStateRule exclude = 9; + { + unsigned int count = static_cast(this->exclude_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->exclude(static_cast(i))); + } + } + + // repeated bool propagate_down = 11; + { + unsigned int count = static_cast(this->propagate_down_size()); + size_t data_size = 1UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->propagate_down_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 255u) { + // optional string name = 1; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional string type = 2; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->type()); + } + + // optional .opencv_caffe.TransformationParameter transform_param = 100; + if (has_transform_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->transform_param_); + } + + // optional .opencv_caffe.LossParameter loss_param = 101; + if (has_loss_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->loss_param_); + } + + // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; + if (has_accuracy_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->accuracy_param_); + } + + // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; + if (has_argmax_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->argmax_param_); + } + + // optional .opencv_caffe.ConcatParameter concat_param = 104; + if (has_concat_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->concat_param_); + } + + // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; + if (has_contrastive_loss_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->contrastive_loss_param_); + } + + } + if (_has_bits_[8 / 32] & 65280u) { + // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; + if (has_convolution_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->convolution_param_); + } + + // optional .opencv_caffe.DataParameter data_param = 107; + if (has_data_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->data_param_); + } + + // optional .opencv_caffe.DropoutParameter dropout_param = 108; + if (has_dropout_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->dropout_param_); + } + + // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; + if (has_dummy_data_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->dummy_data_param_); + } + + // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; + if (has_eltwise_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->eltwise_param_); + } + + // optional .opencv_caffe.ExpParameter exp_param = 111; + if (has_exp_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->exp_param_); + } + + // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; + if (has_hdf5_data_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->hdf5_data_param_); + } + + // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; + if (has_hdf5_output_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->hdf5_output_param_); + } + + } + if (_has_bits_[16 / 32] & 16711680u) { + // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; + if (has_hinge_loss_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->hinge_loss_param_); + } + + // optional .opencv_caffe.ImageDataParameter image_data_param = 115; + if (has_image_data_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->image_data_param_); + } + + // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; + if (has_infogain_loss_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->infogain_loss_param_); + } + + // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; + if (has_inner_product_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->inner_product_param_); + } + + // optional .opencv_caffe.LRNParameter lrn_param = 118; + if (has_lrn_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->lrn_param_); + } + + // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; + if (has_memory_data_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->memory_data_param_); + } + + // optional .opencv_caffe.MVNParameter mvn_param = 120; + if (has_mvn_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->mvn_param_); + } + + // optional .opencv_caffe.PoolingParameter pooling_param = 121; + if (has_pooling_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->pooling_param_); + } + + } + if (_has_bits_[24 / 32] & 4278190080u) { + // optional .opencv_caffe.PowerParameter power_param = 122; + if (has_power_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->power_param_); + } + + // optional .opencv_caffe.ReLUParameter relu_param = 123; + if (has_relu_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->relu_param_); + } + + // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; + if (has_sigmoid_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->sigmoid_param_); + } + + // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; + if (has_softmax_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->softmax_param_); + } + + // optional .opencv_caffe.SliceParameter slice_param = 126; + if (has_slice_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->slice_param_); + } + + // optional .opencv_caffe.TanHParameter tanh_param = 127; + if (has_tanh_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->tanh_param_); + } + + // optional .opencv_caffe.ThresholdParameter threshold_param = 128; + if (has_threshold_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->threshold_param_); + } + + // optional .opencv_caffe.WindowDataParameter window_data_param = 129; + if (has_window_data_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->window_data_param_); + } + + } + if (_has_bits_[32 / 32] & 255u) { + // optional .opencv_caffe.PythonParameter python_param = 130; + if (has_python_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->python_param_); + } + + // optional .opencv_caffe.PReLUParameter prelu_param = 131; + if (has_prelu_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->prelu_param_); + } + + // optional .opencv_caffe.SPPParameter spp_param = 132; + if (has_spp_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->spp_param_); + } + + // optional .opencv_caffe.ReshapeParameter reshape_param = 133; + if (has_reshape_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->reshape_param_); + } + + // optional .opencv_caffe.LogParameter log_param = 134; + if (has_log_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->log_param_); + } + + // optional .opencv_caffe.FlattenParameter flatten_param = 135; + if (has_flatten_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->flatten_param_); + } + + // optional .opencv_caffe.ReductionParameter reduction_param = 136; + if (has_reduction_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->reduction_param_); + } + + // optional .opencv_caffe.EmbedParameter embed_param = 137; + if (has_embed_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->embed_param_); + } + + } + if (_has_bits_[40 / 32] & 65280u) { + // optional .opencv_caffe.TileParameter tile_param = 138; + if (has_tile_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->tile_param_); + } + + // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; + if (has_batch_norm_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->batch_norm_param_); + } + + // optional .opencv_caffe.ELUParameter elu_param = 140; + if (has_elu_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->elu_param_); + } + + // optional .opencv_caffe.BiasParameter bias_param = 141; + if (has_bias_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->bias_param_); + } + + // optional .opencv_caffe.ScaleParameter scale_param = 142; + if (has_scale_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->scale_param_); + } + + // optional .opencv_caffe.InputParameter input_param = 143; + if (has_input_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->input_param_); + } + + // optional .opencv_caffe.CropParameter crop_param = 144; + if (has_crop_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->crop_param_); + } + + // optional .opencv_caffe.ParameterParameter parameter_param = 145; + if (has_parameter_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->parameter_param_); + } + + } + if (_has_bits_[48 / 32] & 16711680u) { + // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; + if (has_recurrent_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->recurrent_param_); + } + + // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; + if (has_detection_output_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->detection_output_param_); + } + + // optional .opencv_caffe.PermuteParameter permute_param = 148; + if (has_permute_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->permute_param_); + } + + // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; + if (has_norm_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->norm_param_); + } + + // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; + if (has_prior_box_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->prior_box_param_); + } + + // optional .opencv_caffe.ProposalParameter proposal_param = 201; + if (has_proposal_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->proposal_param_); + } + + // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; + if (has_psroi_pooling_param()) { + total_size += 3 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->psroi_pooling_param_); + } + + // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; + if (has_roi_pooling_param()) { + total_size += 4 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->roi_pooling_param_); + } + + } + // optional .opencv_caffe.Phase phase = 10; + if (has_phase()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LayerParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LayerParameter) + GOOGLE_DCHECK_NE(&from, this); + const LayerParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LayerParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LayerParameter) + MergeFrom(*source); + } +} + +void LayerParameter::MergeFrom(const LayerParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LayerParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + bottom_.MergeFrom(from.bottom_); + top_.MergeFrom(from.top_); + loss_weight_.MergeFrom(from.loss_weight_); + param_.MergeFrom(from.param_); + blobs_.MergeFrom(from.blobs_); + include_.MergeFrom(from.include_); + exclude_.MergeFrom(from.exclude_); + propagate_down_.MergeFrom(from.propagate_down_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_name(); + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (cached_has_bits & 0x00000002u) { + set_has_type(); + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + if (cached_has_bits & 0x00000004u) { + mutable_transform_param()->::opencv_caffe::TransformationParameter::MergeFrom(from.transform_param()); + } + if (cached_has_bits & 0x00000008u) { + mutable_loss_param()->::opencv_caffe::LossParameter::MergeFrom(from.loss_param()); + } + if (cached_has_bits & 0x00000010u) { + mutable_accuracy_param()->::opencv_caffe::AccuracyParameter::MergeFrom(from.accuracy_param()); + } + if (cached_has_bits & 0x00000020u) { + mutable_argmax_param()->::opencv_caffe::ArgMaxParameter::MergeFrom(from.argmax_param()); + } + if (cached_has_bits & 0x00000040u) { + mutable_concat_param()->::opencv_caffe::ConcatParameter::MergeFrom(from.concat_param()); + } + if (cached_has_bits & 0x00000080u) { + mutable_contrastive_loss_param()->::opencv_caffe::ContrastiveLossParameter::MergeFrom(from.contrastive_loss_param()); + } + } + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + mutable_convolution_param()->::opencv_caffe::ConvolutionParameter::MergeFrom(from.convolution_param()); + } + if (cached_has_bits & 0x00000200u) { + mutable_data_param()->::opencv_caffe::DataParameter::MergeFrom(from.data_param()); + } + if (cached_has_bits & 0x00000400u) { + mutable_dropout_param()->::opencv_caffe::DropoutParameter::MergeFrom(from.dropout_param()); + } + if (cached_has_bits & 0x00000800u) { + mutable_dummy_data_param()->::opencv_caffe::DummyDataParameter::MergeFrom(from.dummy_data_param()); + } + if (cached_has_bits & 0x00001000u) { + mutable_eltwise_param()->::opencv_caffe::EltwiseParameter::MergeFrom(from.eltwise_param()); + } + if (cached_has_bits & 0x00002000u) { + mutable_exp_param()->::opencv_caffe::ExpParameter::MergeFrom(from.exp_param()); + } + if (cached_has_bits & 0x00004000u) { + mutable_hdf5_data_param()->::opencv_caffe::HDF5DataParameter::MergeFrom(from.hdf5_data_param()); + } + if (cached_has_bits & 0x00008000u) { + mutable_hdf5_output_param()->::opencv_caffe::HDF5OutputParameter::MergeFrom(from.hdf5_output_param()); + } + } + if (cached_has_bits & 16711680u) { + if (cached_has_bits & 0x00010000u) { + mutable_hinge_loss_param()->::opencv_caffe::HingeLossParameter::MergeFrom(from.hinge_loss_param()); + } + if (cached_has_bits & 0x00020000u) { + mutable_image_data_param()->::opencv_caffe::ImageDataParameter::MergeFrom(from.image_data_param()); + } + if (cached_has_bits & 0x00040000u) { + mutable_infogain_loss_param()->::opencv_caffe::InfogainLossParameter::MergeFrom(from.infogain_loss_param()); + } + if (cached_has_bits & 0x00080000u) { + mutable_inner_product_param()->::opencv_caffe::InnerProductParameter::MergeFrom(from.inner_product_param()); + } + if (cached_has_bits & 0x00100000u) { + mutable_lrn_param()->::opencv_caffe::LRNParameter::MergeFrom(from.lrn_param()); + } + if (cached_has_bits & 0x00200000u) { + mutable_memory_data_param()->::opencv_caffe::MemoryDataParameter::MergeFrom(from.memory_data_param()); + } + if (cached_has_bits & 0x00400000u) { + mutable_mvn_param()->::opencv_caffe::MVNParameter::MergeFrom(from.mvn_param()); + } + if (cached_has_bits & 0x00800000u) { + mutable_pooling_param()->::opencv_caffe::PoolingParameter::MergeFrom(from.pooling_param()); + } + } + if (cached_has_bits & 4278190080u) { + if (cached_has_bits & 0x01000000u) { + mutable_power_param()->::opencv_caffe::PowerParameter::MergeFrom(from.power_param()); + } + if (cached_has_bits & 0x02000000u) { + mutable_relu_param()->::opencv_caffe::ReLUParameter::MergeFrom(from.relu_param()); + } + if (cached_has_bits & 0x04000000u) { + mutable_sigmoid_param()->::opencv_caffe::SigmoidParameter::MergeFrom(from.sigmoid_param()); + } + if (cached_has_bits & 0x08000000u) { + mutable_softmax_param()->::opencv_caffe::SoftmaxParameter::MergeFrom(from.softmax_param()); + } + if (cached_has_bits & 0x10000000u) { + mutable_slice_param()->::opencv_caffe::SliceParameter::MergeFrom(from.slice_param()); + } + if (cached_has_bits & 0x20000000u) { + mutable_tanh_param()->::opencv_caffe::TanHParameter::MergeFrom(from.tanh_param()); + } + if (cached_has_bits & 0x40000000u) { + mutable_threshold_param()->::opencv_caffe::ThresholdParameter::MergeFrom(from.threshold_param()); + } + if (cached_has_bits & 0x80000000u) { + mutable_window_data_param()->::opencv_caffe::WindowDataParameter::MergeFrom(from.window_data_param()); + } + } + cached_has_bits = from._has_bits_[1]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + mutable_python_param()->::opencv_caffe::PythonParameter::MergeFrom(from.python_param()); + } + if (cached_has_bits & 0x00000002u) { + mutable_prelu_param()->::opencv_caffe::PReLUParameter::MergeFrom(from.prelu_param()); + } + if (cached_has_bits & 0x00000004u) { + mutable_spp_param()->::opencv_caffe::SPPParameter::MergeFrom(from.spp_param()); + } + if (cached_has_bits & 0x00000008u) { + mutable_reshape_param()->::opencv_caffe::ReshapeParameter::MergeFrom(from.reshape_param()); + } + if (cached_has_bits & 0x00000010u) { + mutable_log_param()->::opencv_caffe::LogParameter::MergeFrom(from.log_param()); + } + if (cached_has_bits & 0x00000020u) { + mutable_flatten_param()->::opencv_caffe::FlattenParameter::MergeFrom(from.flatten_param()); + } + if (cached_has_bits & 0x00000040u) { + mutable_reduction_param()->::opencv_caffe::ReductionParameter::MergeFrom(from.reduction_param()); + } + if (cached_has_bits & 0x00000080u) { + mutable_embed_param()->::opencv_caffe::EmbedParameter::MergeFrom(from.embed_param()); + } + } + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + mutable_tile_param()->::opencv_caffe::TileParameter::MergeFrom(from.tile_param()); + } + if (cached_has_bits & 0x00000200u) { + mutable_batch_norm_param()->::opencv_caffe::BatchNormParameter::MergeFrom(from.batch_norm_param()); + } + if (cached_has_bits & 0x00000400u) { + mutable_elu_param()->::opencv_caffe::ELUParameter::MergeFrom(from.elu_param()); + } + if (cached_has_bits & 0x00000800u) { + mutable_bias_param()->::opencv_caffe::BiasParameter::MergeFrom(from.bias_param()); + } + if (cached_has_bits & 0x00001000u) { + mutable_scale_param()->::opencv_caffe::ScaleParameter::MergeFrom(from.scale_param()); + } + if (cached_has_bits & 0x00002000u) { + mutable_input_param()->::opencv_caffe::InputParameter::MergeFrom(from.input_param()); + } + if (cached_has_bits & 0x00004000u) { + mutable_crop_param()->::opencv_caffe::CropParameter::MergeFrom(from.crop_param()); + } + if (cached_has_bits & 0x00008000u) { + mutable_parameter_param()->::opencv_caffe::ParameterParameter::MergeFrom(from.parameter_param()); + } + } + if (cached_has_bits & 16711680u) { + if (cached_has_bits & 0x00010000u) { + mutable_recurrent_param()->::opencv_caffe::RecurrentParameter::MergeFrom(from.recurrent_param()); + } + if (cached_has_bits & 0x00020000u) { + mutable_detection_output_param()->::opencv_caffe::DetectionOutputParameter::MergeFrom(from.detection_output_param()); + } + if (cached_has_bits & 0x00040000u) { + mutable_permute_param()->::opencv_caffe::PermuteParameter::MergeFrom(from.permute_param()); + } + if (cached_has_bits & 0x00080000u) { + mutable_norm_param()->::opencv_caffe::NormalizeBBoxParameter::MergeFrom(from.norm_param()); + } + if (cached_has_bits & 0x00100000u) { + mutable_prior_box_param()->::opencv_caffe::PriorBoxParameter::MergeFrom(from.prior_box_param()); + } + if (cached_has_bits & 0x00200000u) { + mutable_proposal_param()->::opencv_caffe::ProposalParameter::MergeFrom(from.proposal_param()); + } + if (cached_has_bits & 0x00400000u) { + mutable_psroi_pooling_param()->::opencv_caffe::PSROIPoolingParameter::MergeFrom(from.psroi_pooling_param()); + } + if (cached_has_bits & 0x00800000u) { + mutable_roi_pooling_param()->::opencv_caffe::ROIPoolingParameter::MergeFrom(from.roi_pooling_param()); + } + } + if (cached_has_bits & 0x01000000u) { + set_phase(from.phase()); + } +} + +void LayerParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LayerParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LayerParameter::CopyFrom(const LayerParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LayerParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LayerParameter::IsInitialized() const { + if (has_psroi_pooling_param()) { + if (!this->psroi_pooling_param_->IsInitialized()) return false; + } + return true; +} + +void LayerParameter::Swap(LayerParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void LayerParameter::InternalSwap(LayerParameter* other) { + using std::swap; + bottom_.InternalSwap(&other->bottom_); + top_.InternalSwap(&other->top_); + loss_weight_.InternalSwap(&other->loss_weight_); + param_.InternalSwap(&other->param_); + blobs_.InternalSwap(&other->blobs_); + include_.InternalSwap(&other->include_); + exclude_.InternalSwap(&other->exclude_); + propagate_down_.InternalSwap(&other->propagate_down_); + name_.Swap(&other->name_); + type_.Swap(&other->type_); + swap(transform_param_, other->transform_param_); + swap(loss_param_, other->loss_param_); + swap(accuracy_param_, other->accuracy_param_); + swap(argmax_param_, other->argmax_param_); + swap(concat_param_, other->concat_param_); + swap(contrastive_loss_param_, other->contrastive_loss_param_); + swap(convolution_param_, other->convolution_param_); + swap(data_param_, other->data_param_); + swap(dropout_param_, other->dropout_param_); + swap(dummy_data_param_, other->dummy_data_param_); + swap(eltwise_param_, other->eltwise_param_); + swap(exp_param_, other->exp_param_); + swap(hdf5_data_param_, other->hdf5_data_param_); + swap(hdf5_output_param_, other->hdf5_output_param_); + swap(hinge_loss_param_, other->hinge_loss_param_); + swap(image_data_param_, other->image_data_param_); + swap(infogain_loss_param_, other->infogain_loss_param_); + swap(inner_product_param_, other->inner_product_param_); + swap(lrn_param_, other->lrn_param_); + swap(memory_data_param_, other->memory_data_param_); + swap(mvn_param_, other->mvn_param_); + swap(pooling_param_, other->pooling_param_); + swap(power_param_, other->power_param_); + swap(relu_param_, other->relu_param_); + swap(sigmoid_param_, other->sigmoid_param_); + swap(softmax_param_, other->softmax_param_); + swap(slice_param_, other->slice_param_); + swap(tanh_param_, other->tanh_param_); + swap(threshold_param_, other->threshold_param_); + swap(window_data_param_, other->window_data_param_); + swap(python_param_, other->python_param_); + swap(prelu_param_, other->prelu_param_); + swap(spp_param_, other->spp_param_); + swap(reshape_param_, other->reshape_param_); + swap(log_param_, other->log_param_); + swap(flatten_param_, other->flatten_param_); + swap(reduction_param_, other->reduction_param_); + swap(embed_param_, other->embed_param_); + swap(tile_param_, other->tile_param_); + swap(batch_norm_param_, other->batch_norm_param_); + swap(elu_param_, other->elu_param_); + swap(bias_param_, other->bias_param_); + swap(scale_param_, other->scale_param_); + swap(input_param_, other->input_param_); + swap(crop_param_, other->crop_param_); + swap(parameter_param_, other->parameter_param_); + swap(recurrent_param_, other->recurrent_param_); + swap(detection_output_param_, other->detection_output_param_); + swap(permute_param_, other->permute_param_); + swap(norm_param_, other->norm_param_); + swap(prior_box_param_, other->prior_box_param_); + swap(proposal_param_, other->proposal_param_); + swap(psroi_pooling_param_, other->psroi_pooling_param_); + swap(roi_pooling_param_, other->roi_pooling_param_); + swap(phase_, other->phase_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(_has_bits_[1], other->_has_bits_[1]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LayerParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TransformationParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TransformationParameter::kScaleFieldNumber; +const int TransformationParameter::kMirrorFieldNumber; +const int TransformationParameter::kCropSizeFieldNumber; +const int TransformationParameter::kMeanFileFieldNumber; +const int TransformationParameter::kMeanValueFieldNumber; +const int TransformationParameter::kForceColorFieldNumber; +const int TransformationParameter::kForceGrayFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TransformationParameter::TransformationParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTransformationParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.TransformationParameter) +} +TransformationParameter::TransformationParameter(const TransformationParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + mean_value_(from.mean_value_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mean_file()) { + mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); + } + ::memcpy(&crop_size_, &from.crop_size_, + static_cast(reinterpret_cast(&scale_) - + reinterpret_cast(&crop_size_)) + sizeof(scale_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.TransformationParameter) +} + +void TransformationParameter::SharedCtor() { + _cached_size_ = 0; + mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&crop_size_, 0, static_cast( + reinterpret_cast(&force_gray_) - + reinterpret_cast(&crop_size_)) + sizeof(force_gray_)); + scale_ = 1; +} + +TransformationParameter::~TransformationParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.TransformationParameter) + SharedDtor(); +} + +void TransformationParameter::SharedDtor() { + mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TransformationParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TransformationParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TransformationParameter& TransformationParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTransformationParameter(); + return *internal_default_instance(); +} + +TransformationParameter* TransformationParameter::New(::google::protobuf::Arena* arena) const { + TransformationParameter* n = new TransformationParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TransformationParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.TransformationParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + mean_value_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!mean_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*mean_file_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 62u) { + ::memset(&crop_size_, 0, static_cast( + reinterpret_cast(&force_gray_) - + reinterpret_cast(&crop_size_)) + sizeof(force_gray_)); + scale_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TransformationParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.TransformationParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float scale = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_scale(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &scale_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool mirror = 2 [default = false]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_mirror(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &mirror_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 crop_size = 3 [default = 0]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_crop_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &crop_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string mean_file = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mean_file())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.TransformationParameter.mean_file"); + } else { + goto handle_unusual; + } + break; + } + + // repeated float mean_value = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 45u, input, this->mutable_mean_value()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_mean_value()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool force_color = 6 [default = false]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_force_color(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &force_color_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool force_gray = 7 [default = false]; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_force_gray(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &force_gray_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.TransformationParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.TransformationParameter) + return false; +#undef DO_ +} + +void TransformationParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.TransformationParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float scale = 1 [default = 1]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->scale(), output); + } + + // optional bool mirror = 2 [default = false]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->mirror(), output); + } + + // optional uint32 crop_size = 3 [default = 0]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->crop_size(), output); + } + + // optional string mean_file = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.TransformationParameter.mean_file"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->mean_file(), output); + } + + // repeated float mean_value = 5; + for (int i = 0, n = this->mean_value_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 5, this->mean_value(i), output); + } + + // optional bool force_color = 6 [default = false]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->force_color(), output); + } + + // optional bool force_gray = 7 [default = false]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->force_gray(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.TransformationParameter) +} + +::google::protobuf::uint8* TransformationParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.TransformationParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float scale = 1 [default = 1]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->scale(), target); + } + + // optional bool mirror = 2 [default = false]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->mirror(), target); + } + + // optional uint32 crop_size = 3 [default = 0]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->crop_size(), target); + } + + // optional string mean_file = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.TransformationParameter.mean_file"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->mean_file(), target); + } + + // repeated float mean_value = 5; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(5, this->mean_value_, target); + + // optional bool force_color = 6 [default = false]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->force_color(), target); + } + + // optional bool force_gray = 7 [default = false]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->force_gray(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.TransformationParameter) + return target; +} + +size_t TransformationParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.TransformationParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated float mean_value = 5; + { + unsigned int count = static_cast(this->mean_value_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->mean_value_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 63u) { + // optional string mean_file = 4; + if (has_mean_file()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mean_file()); + } + + // optional uint32 crop_size = 3 [default = 0]; + if (has_crop_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->crop_size()); + } + + // optional bool mirror = 2 [default = false]; + if (has_mirror()) { + total_size += 1 + 1; + } + + // optional bool force_color = 6 [default = false]; + if (has_force_color()) { + total_size += 1 + 1; + } + + // optional bool force_gray = 7 [default = false]; + if (has_force_gray()) { + total_size += 1 + 1; + } + + // optional float scale = 1 [default = 1]; + if (has_scale()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TransformationParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.TransformationParameter) + GOOGLE_DCHECK_NE(&from, this); + const TransformationParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.TransformationParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.TransformationParameter) + MergeFrom(*source); + } +} + +void TransformationParameter::MergeFrom(const TransformationParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.TransformationParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + mean_value_.MergeFrom(from.mean_value_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_mean_file(); + mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); + } + if (cached_has_bits & 0x00000002u) { + crop_size_ = from.crop_size_; + } + if (cached_has_bits & 0x00000004u) { + mirror_ = from.mirror_; + } + if (cached_has_bits & 0x00000008u) { + force_color_ = from.force_color_; + } + if (cached_has_bits & 0x00000010u) { + force_gray_ = from.force_gray_; + } + if (cached_has_bits & 0x00000020u) { + scale_ = from.scale_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TransformationParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.TransformationParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TransformationParameter::CopyFrom(const TransformationParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.TransformationParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TransformationParameter::IsInitialized() const { + return true; +} + +void TransformationParameter::Swap(TransformationParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void TransformationParameter::InternalSwap(TransformationParameter* other) { + using std::swap; + mean_value_.InternalSwap(&other->mean_value_); + mean_file_.Swap(&other->mean_file_); + swap(crop_size_, other->crop_size_); + swap(mirror_, other->mirror_); + swap(force_color_, other->force_color_); + swap(force_gray_, other->force_gray_); + swap(scale_, other->scale_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TransformationParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LossParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LossParameter::kIgnoreLabelFieldNumber; +const int LossParameter::kNormalizationFieldNumber; +const int LossParameter::kNormalizeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LossParameter::LossParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLossParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.LossParameter) +} +LossParameter::LossParameter(const LossParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&ignore_label_, &from.ignore_label_, + static_cast(reinterpret_cast(&normalization_) - + reinterpret_cast(&ignore_label_)) + sizeof(normalization_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.LossParameter) +} + +void LossParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&ignore_label_, 0, static_cast( + reinterpret_cast(&normalize_) - + reinterpret_cast(&ignore_label_)) + sizeof(normalize_)); + normalization_ = 1; +} + +LossParameter::~LossParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.LossParameter) + SharedDtor(); +} + +void LossParameter::SharedDtor() { +} + +void LossParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LossParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LossParameter& LossParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLossParameter(); + return *internal_default_instance(); +} + +LossParameter* LossParameter::New(::google::protobuf::Arena* arena) const { + LossParameter* n = new LossParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LossParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.LossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + ::memset(&ignore_label_, 0, static_cast( + reinterpret_cast(&normalize_) - + reinterpret_cast(&ignore_label_)) + sizeof(normalize_)); + normalization_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LossParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.LossParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 ignore_label = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_ignore_label(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &ignore_label_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool normalize = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_normalize(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &normalize_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::LossParameter_NormalizationMode_IsValid(value)) { + set_normalization(static_cast< ::opencv_caffe::LossParameter_NormalizationMode >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 3, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.LossParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.LossParameter) + return false; +#undef DO_ +} + +void LossParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.LossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 ignore_label = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->ignore_label(), output); + } + + // optional bool normalize = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->normalize(), output); + } + + // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->normalization(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.LossParameter) +} + +::google::protobuf::uint8* LossParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 ignore_label = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->ignore_label(), target); + } + + // optional bool normalize = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->normalize(), target); + } + + // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->normalization(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LossParameter) + return target; +} + +size_t LossParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LossParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional int32 ignore_label = 1; + if (has_ignore_label()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->ignore_label()); + } + + // optional bool normalize = 2; + if (has_normalize()) { + total_size += 1 + 1; + } + + // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; + if (has_normalization()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->normalization()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LossParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LossParameter) + GOOGLE_DCHECK_NE(&from, this); + const LossParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LossParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LossParameter) + MergeFrom(*source); + } +} + +void LossParameter::MergeFrom(const LossParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LossParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + ignore_label_ = from.ignore_label_; + } + if (cached_has_bits & 0x00000002u) { + normalize_ = from.normalize_; + } + if (cached_has_bits & 0x00000004u) { + normalization_ = from.normalization_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void LossParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LossParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LossParameter::CopyFrom(const LossParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LossParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LossParameter::IsInitialized() const { + return true; +} + +void LossParameter::Swap(LossParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void LossParameter::InternalSwap(LossParameter* other) { + using std::swap; + swap(ignore_label_, other->ignore_label_); + swap(normalize_, other->normalize_); + swap(normalization_, other->normalization_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LossParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void AccuracyParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AccuracyParameter::kTopKFieldNumber; +const int AccuracyParameter::kAxisFieldNumber; +const int AccuracyParameter::kIgnoreLabelFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AccuracyParameter::AccuracyParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsAccuracyParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.AccuracyParameter) +} +AccuracyParameter::AccuracyParameter(const AccuracyParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&ignore_label_, &from.ignore_label_, + static_cast(reinterpret_cast(&axis_) - + reinterpret_cast(&ignore_label_)) + sizeof(axis_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.AccuracyParameter) +} + +void AccuracyParameter::SharedCtor() { + _cached_size_ = 0; + ignore_label_ = 0; + top_k_ = 1u; + axis_ = 1; +} + +AccuracyParameter::~AccuracyParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.AccuracyParameter) + SharedDtor(); +} + +void AccuracyParameter::SharedDtor() { +} + +void AccuracyParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AccuracyParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const AccuracyParameter& AccuracyParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsAccuracyParameter(); + return *internal_default_instance(); +} + +AccuracyParameter* AccuracyParameter::New(::google::protobuf::Arena* arena) const { + AccuracyParameter* n = new AccuracyParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void AccuracyParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.AccuracyParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + ignore_label_ = 0; + top_k_ = 1u; + axis_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool AccuracyParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.AccuracyParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 top_k = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_top_k(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &top_k_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 axis = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 ignore_label = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_ignore_label(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &ignore_label_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.AccuracyParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.AccuracyParameter) + return false; +#undef DO_ +} + +void AccuracyParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.AccuracyParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 top_k = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->top_k(), output); + } + + // optional int32 axis = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); + } + + // optional int32 ignore_label = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->ignore_label(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.AccuracyParameter) +} + +::google::protobuf::uint8* AccuracyParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.AccuracyParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 top_k = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->top_k(), target); + } + + // optional int32 axis = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); + } + + // optional int32 ignore_label = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->ignore_label(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.AccuracyParameter) + return target; +} + +size_t AccuracyParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.AccuracyParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional int32 ignore_label = 3; + if (has_ignore_label()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->ignore_label()); + } + + // optional uint32 top_k = 1 [default = 1]; + if (has_top_k()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->top_k()); + } + + // optional int32 axis = 2 [default = 1]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AccuracyParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.AccuracyParameter) + GOOGLE_DCHECK_NE(&from, this); + const AccuracyParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.AccuracyParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.AccuracyParameter) + MergeFrom(*source); + } +} + +void AccuracyParameter::MergeFrom(const AccuracyParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.AccuracyParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + ignore_label_ = from.ignore_label_; + } + if (cached_has_bits & 0x00000002u) { + top_k_ = from.top_k_; + } + if (cached_has_bits & 0x00000004u) { + axis_ = from.axis_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void AccuracyParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.AccuracyParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AccuracyParameter::CopyFrom(const AccuracyParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.AccuracyParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AccuracyParameter::IsInitialized() const { + return true; +} + +void AccuracyParameter::Swap(AccuracyParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void AccuracyParameter::InternalSwap(AccuracyParameter* other) { + using std::swap; + swap(ignore_label_, other->ignore_label_); + swap(top_k_, other->top_k_); + swap(axis_, other->axis_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata AccuracyParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ArgMaxParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ArgMaxParameter::kOutMaxValFieldNumber; +const int ArgMaxParameter::kTopKFieldNumber; +const int ArgMaxParameter::kAxisFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ArgMaxParameter::ArgMaxParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsArgMaxParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ArgMaxParameter) +} +ArgMaxParameter::ArgMaxParameter(const ArgMaxParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&out_max_val_, &from.out_max_val_, + static_cast(reinterpret_cast(&top_k_) - + reinterpret_cast(&out_max_val_)) + sizeof(top_k_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ArgMaxParameter) +} + +void ArgMaxParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&out_max_val_, 0, static_cast( + reinterpret_cast(&axis_) - + reinterpret_cast(&out_max_val_)) + sizeof(axis_)); + top_k_ = 1u; +} + +ArgMaxParameter::~ArgMaxParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ArgMaxParameter) + SharedDtor(); +} + +void ArgMaxParameter::SharedDtor() { +} + +void ArgMaxParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ArgMaxParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ArgMaxParameter& ArgMaxParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsArgMaxParameter(); + return *internal_default_instance(); +} + +ArgMaxParameter* ArgMaxParameter::New(::google::protobuf::Arena* arena) const { + ArgMaxParameter* n = new ArgMaxParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ArgMaxParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ArgMaxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + ::memset(&out_max_val_, 0, static_cast( + reinterpret_cast(&axis_) - + reinterpret_cast(&out_max_val_)) + sizeof(axis_)); + top_k_ = 1u; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ArgMaxParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ArgMaxParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool out_max_val = 1 [default = false]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_out_max_val(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &out_max_val_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 top_k = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_top_k(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &top_k_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 axis = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ArgMaxParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ArgMaxParameter) + return false; +#undef DO_ +} + +void ArgMaxParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ArgMaxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool out_max_val = 1 [default = false]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->out_max_val(), output); + } + + // optional uint32 top_k = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->top_k(), output); + } + + // optional int32 axis = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->axis(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ArgMaxParameter) +} + +::google::protobuf::uint8* ArgMaxParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ArgMaxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool out_max_val = 1 [default = false]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->out_max_val(), target); + } + + // optional uint32 top_k = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->top_k(), target); + } + + // optional int32 axis = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->axis(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ArgMaxParameter) + return target; +} + +size_t ArgMaxParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ArgMaxParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bool out_max_val = 1 [default = false]; + if (has_out_max_val()) { + total_size += 1 + 1; + } + + // optional int32 axis = 3; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + // optional uint32 top_k = 2 [default = 1]; + if (has_top_k()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->top_k()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ArgMaxParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ArgMaxParameter) + GOOGLE_DCHECK_NE(&from, this); + const ArgMaxParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ArgMaxParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ArgMaxParameter) + MergeFrom(*source); + } +} + +void ArgMaxParameter::MergeFrom(const ArgMaxParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ArgMaxParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + out_max_val_ = from.out_max_val_; + } + if (cached_has_bits & 0x00000002u) { + axis_ = from.axis_; + } + if (cached_has_bits & 0x00000004u) { + top_k_ = from.top_k_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ArgMaxParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ArgMaxParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ArgMaxParameter::CopyFrom(const ArgMaxParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ArgMaxParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ArgMaxParameter::IsInitialized() const { + return true; +} + +void ArgMaxParameter::Swap(ArgMaxParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ArgMaxParameter::InternalSwap(ArgMaxParameter* other) { + using std::swap; + swap(out_max_val_, other->out_max_val_); + swap(axis_, other->axis_); + swap(top_k_, other->top_k_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ArgMaxParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ConcatParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ConcatParameter::kAxisFieldNumber; +const int ConcatParameter::kConcatDimFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ConcatParameter::ConcatParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConcatParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ConcatParameter) +} +ConcatParameter::ConcatParameter(const ConcatParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&concat_dim_, &from.concat_dim_, + static_cast(reinterpret_cast(&axis_) - + reinterpret_cast(&concat_dim_)) + sizeof(axis_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ConcatParameter) +} + +void ConcatParameter::SharedCtor() { + _cached_size_ = 0; + concat_dim_ = 1u; + axis_ = 1; +} + +ConcatParameter::~ConcatParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ConcatParameter) + SharedDtor(); +} + +void ConcatParameter::SharedDtor() { +} + +void ConcatParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ConcatParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ConcatParameter& ConcatParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConcatParameter(); + return *internal_default_instance(); +} + +ConcatParameter* ConcatParameter::New(::google::protobuf::Arena* arena) const { + ConcatParameter* n = new ConcatParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ConcatParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ConcatParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + concat_dim_ = 1u; + axis_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ConcatParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ConcatParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 concat_dim = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_concat_dim(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &concat_dim_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 axis = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ConcatParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ConcatParameter) + return false; +#undef DO_ +} + +void ConcatParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ConcatParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 concat_dim = 1 [default = 1]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->concat_dim(), output); + } + + // optional int32 axis = 2 [default = 1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ConcatParameter) +} + +::google::protobuf::uint8* ConcatParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ConcatParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 concat_dim = 1 [default = 1]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->concat_dim(), target); + } + + // optional int32 axis = 2 [default = 1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ConcatParameter) + return target; +} + +size_t ConcatParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ConcatParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional uint32 concat_dim = 1 [default = 1]; + if (has_concat_dim()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->concat_dim()); + } + + // optional int32 axis = 2 [default = 1]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ConcatParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ConcatParameter) + GOOGLE_DCHECK_NE(&from, this); + const ConcatParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ConcatParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ConcatParameter) + MergeFrom(*source); + } +} + +void ConcatParameter::MergeFrom(const ConcatParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ConcatParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + concat_dim_ = from.concat_dim_; + } + if (cached_has_bits & 0x00000002u) { + axis_ = from.axis_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ConcatParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ConcatParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ConcatParameter::CopyFrom(const ConcatParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ConcatParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConcatParameter::IsInitialized() const { + return true; +} + +void ConcatParameter::Swap(ConcatParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ConcatParameter::InternalSwap(ConcatParameter* other) { + using std::swap; + swap(concat_dim_, other->concat_dim_); + swap(axis_, other->axis_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ConcatParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BatchNormParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BatchNormParameter::kUseGlobalStatsFieldNumber; +const int BatchNormParameter::kMovingAverageFractionFieldNumber; +const int BatchNormParameter::kEpsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BatchNormParameter::BatchNormParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBatchNormParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.BatchNormParameter) +} +BatchNormParameter::BatchNormParameter(const BatchNormParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&use_global_stats_, &from.use_global_stats_, + static_cast(reinterpret_cast(&eps_) - + reinterpret_cast(&use_global_stats_)) + sizeof(eps_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.BatchNormParameter) +} + +void BatchNormParameter::SharedCtor() { + _cached_size_ = 0; + use_global_stats_ = false; + moving_average_fraction_ = 0.999f; + eps_ = 1e-05f; +} + +BatchNormParameter::~BatchNormParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.BatchNormParameter) + SharedDtor(); +} + +void BatchNormParameter::SharedDtor() { +} + +void BatchNormParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BatchNormParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BatchNormParameter& BatchNormParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBatchNormParameter(); + return *internal_default_instance(); +} + +BatchNormParameter* BatchNormParameter::New(::google::protobuf::Arena* arena) const { + BatchNormParameter* n = new BatchNormParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BatchNormParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.BatchNormParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + use_global_stats_ = false; + moving_average_fraction_ = 0.999f; + eps_ = 1e-05f; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BatchNormParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.BatchNormParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool use_global_stats = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_use_global_stats(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &use_global_stats_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float moving_average_fraction = 2 [default = 0.999]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_moving_average_fraction(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &moving_average_fraction_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float eps = 3 [default = 1e-05]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_eps(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &eps_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.BatchNormParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.BatchNormParameter) + return false; +#undef DO_ +} + +void BatchNormParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.BatchNormParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool use_global_stats = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->use_global_stats(), output); + } + + // optional float moving_average_fraction = 2 [default = 0.999]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->moving_average_fraction(), output); + } + + // optional float eps = 3 [default = 1e-05]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->eps(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.BatchNormParameter) +} + +::google::protobuf::uint8* BatchNormParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BatchNormParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool use_global_stats = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->use_global_stats(), target); + } + + // optional float moving_average_fraction = 2 [default = 0.999]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->moving_average_fraction(), target); + } + + // optional float eps = 3 [default = 1e-05]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->eps(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BatchNormParameter) + return target; +} + +size_t BatchNormParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BatchNormParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bool use_global_stats = 1; + if (has_use_global_stats()) { + total_size += 1 + 1; + } + + // optional float moving_average_fraction = 2 [default = 0.999]; + if (has_moving_average_fraction()) { + total_size += 1 + 4; + } + + // optional float eps = 3 [default = 1e-05]; + if (has_eps()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BatchNormParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BatchNormParameter) + GOOGLE_DCHECK_NE(&from, this); + const BatchNormParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BatchNormParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BatchNormParameter) + MergeFrom(*source); + } +} + +void BatchNormParameter::MergeFrom(const BatchNormParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BatchNormParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + use_global_stats_ = from.use_global_stats_; + } + if (cached_has_bits & 0x00000002u) { + moving_average_fraction_ = from.moving_average_fraction_; + } + if (cached_has_bits & 0x00000004u) { + eps_ = from.eps_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BatchNormParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BatchNormParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BatchNormParameter::CopyFrom(const BatchNormParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BatchNormParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BatchNormParameter::IsInitialized() const { + return true; +} + +void BatchNormParameter::Swap(BatchNormParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void BatchNormParameter::InternalSwap(BatchNormParameter* other) { + using std::swap; + swap(use_global_stats_, other->use_global_stats_); + swap(moving_average_fraction_, other->moving_average_fraction_); + swap(eps_, other->eps_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BatchNormParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BiasParameter::InitAsDefaultInstance() { + ::opencv_caffe::_BiasParameter_default_instance_._instance.get_mutable()->filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BiasParameter::kAxisFieldNumber; +const int BiasParameter::kNumAxesFieldNumber; +const int BiasParameter::kFillerFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BiasParameter::BiasParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBiasParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.BiasParameter) +} +BiasParameter::BiasParameter(const BiasParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_filler()) { + filler_ = new ::opencv_caffe::FillerParameter(*from.filler_); + } else { + filler_ = NULL; + } + ::memcpy(&axis_, &from.axis_, + static_cast(reinterpret_cast(&num_axes_) - + reinterpret_cast(&axis_)) + sizeof(num_axes_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.BiasParameter) +} + +void BiasParameter::SharedCtor() { + _cached_size_ = 0; + filler_ = NULL; + axis_ = 1; + num_axes_ = 1; +} + +BiasParameter::~BiasParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.BiasParameter) + SharedDtor(); +} + +void BiasParameter::SharedDtor() { + if (this != internal_default_instance()) delete filler_; +} + +void BiasParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BiasParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BiasParameter& BiasParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBiasParameter(); + return *internal_default_instance(); +} + +BiasParameter* BiasParameter::New(::google::protobuf::Arena* arena) const { + BiasParameter* n = new BiasParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BiasParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.BiasParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(filler_ != NULL); + filler_->Clear(); + } + axis_ = 1; + num_axes_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool BiasParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.BiasParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 axis = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 num_axes = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_num_axes(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &num_axes_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter filler = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_filler())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.BiasParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.BiasParameter) + return false; +#undef DO_ +} + +void BiasParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.BiasParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); + } + + // optional int32 num_axes = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_axes(), output); + } + + // optional .opencv_caffe.FillerParameter filler = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->filler_, output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.BiasParameter) +} + +::google::protobuf::uint8* BiasParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BiasParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); + } + + // optional int32 num_axes = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_axes(), target); + } + + // optional .opencv_caffe.FillerParameter filler = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->filler_, deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BiasParameter) + return target; +} + +size_t BiasParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BiasParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional .opencv_caffe.FillerParameter filler = 3; + if (has_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->filler_); + } + + // optional int32 axis = 1 [default = 1]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + // optional int32 num_axes = 2 [default = 1]; + if (has_num_axes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->num_axes()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BiasParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BiasParameter) + GOOGLE_DCHECK_NE(&from, this); + const BiasParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BiasParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BiasParameter) + MergeFrom(*source); + } +} + +void BiasParameter::MergeFrom(const BiasParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BiasParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + mutable_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.filler()); + } + if (cached_has_bits & 0x00000002u) { + axis_ = from.axis_; + } + if (cached_has_bits & 0x00000004u) { + num_axes_ = from.num_axes_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void BiasParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BiasParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BiasParameter::CopyFrom(const BiasParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BiasParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BiasParameter::IsInitialized() const { + return true; +} + +void BiasParameter::Swap(BiasParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void BiasParameter::InternalSwap(BiasParameter* other) { + using std::swap; + swap(filler_, other->filler_); + swap(axis_, other->axis_); + swap(num_axes_, other->num_axes_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BiasParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ContrastiveLossParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ContrastiveLossParameter::kMarginFieldNumber; +const int ContrastiveLossParameter::kLegacyVersionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ContrastiveLossParameter::ContrastiveLossParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsContrastiveLossParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ContrastiveLossParameter) +} +ContrastiveLossParameter::ContrastiveLossParameter(const ContrastiveLossParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&legacy_version_, &from.legacy_version_, + static_cast(reinterpret_cast(&margin_) - + reinterpret_cast(&legacy_version_)) + sizeof(margin_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ContrastiveLossParameter) +} + +void ContrastiveLossParameter::SharedCtor() { + _cached_size_ = 0; + legacy_version_ = false; + margin_ = 1; +} + +ContrastiveLossParameter::~ContrastiveLossParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ContrastiveLossParameter) + SharedDtor(); +} + +void ContrastiveLossParameter::SharedDtor() { +} + +void ContrastiveLossParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ContrastiveLossParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ContrastiveLossParameter& ContrastiveLossParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsContrastiveLossParameter(); + return *internal_default_instance(); +} + +ContrastiveLossParameter* ContrastiveLossParameter::New(::google::protobuf::Arena* arena) const { + ContrastiveLossParameter* n = new ContrastiveLossParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ContrastiveLossParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ContrastiveLossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + legacy_version_ = false; + margin_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ContrastiveLossParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ContrastiveLossParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float margin = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_margin(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &margin_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool legacy_version = 2 [default = false]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_legacy_version(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &legacy_version_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ContrastiveLossParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ContrastiveLossParameter) + return false; +#undef DO_ +} + +void ContrastiveLossParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ContrastiveLossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float margin = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->margin(), output); + } + + // optional bool legacy_version = 2 [default = false]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->legacy_version(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ContrastiveLossParameter) +} + +::google::protobuf::uint8* ContrastiveLossParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ContrastiveLossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float margin = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->margin(), target); + } + + // optional bool legacy_version = 2 [default = false]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->legacy_version(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ContrastiveLossParameter) + return target; +} + +size_t ContrastiveLossParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ContrastiveLossParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional bool legacy_version = 2 [default = false]; + if (has_legacy_version()) { + total_size += 1 + 1; + } + + // optional float margin = 1 [default = 1]; + if (has_margin()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ContrastiveLossParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ContrastiveLossParameter) + GOOGLE_DCHECK_NE(&from, this); + const ContrastiveLossParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ContrastiveLossParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ContrastiveLossParameter) + MergeFrom(*source); + } +} + +void ContrastiveLossParameter::MergeFrom(const ContrastiveLossParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ContrastiveLossParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + legacy_version_ = from.legacy_version_; + } + if (cached_has_bits & 0x00000002u) { + margin_ = from.margin_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ContrastiveLossParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ContrastiveLossParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ContrastiveLossParameter::CopyFrom(const ContrastiveLossParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ContrastiveLossParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ContrastiveLossParameter::IsInitialized() const { + return true; +} + +void ContrastiveLossParameter::Swap(ContrastiveLossParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ContrastiveLossParameter::InternalSwap(ContrastiveLossParameter* other) { + using std::swap; + swap(legacy_version_, other->legacy_version_); + swap(margin_, other->margin_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ContrastiveLossParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ConvolutionParameter::InitAsDefaultInstance() { + ::opencv_caffe::_ConvolutionParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); + ::opencv_caffe::_ConvolutionParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ConvolutionParameter::kNumOutputFieldNumber; +const int ConvolutionParameter::kBiasTermFieldNumber; +const int ConvolutionParameter::kPadFieldNumber; +const int ConvolutionParameter::kKernelSizeFieldNumber; +const int ConvolutionParameter::kStrideFieldNumber; +const int ConvolutionParameter::kDilationFieldNumber; +const int ConvolutionParameter::kPadHFieldNumber; +const int ConvolutionParameter::kPadWFieldNumber; +const int ConvolutionParameter::kKernelHFieldNumber; +const int ConvolutionParameter::kKernelWFieldNumber; +const int ConvolutionParameter::kStrideHFieldNumber; +const int ConvolutionParameter::kStrideWFieldNumber; +const int ConvolutionParameter::kGroupFieldNumber; +const int ConvolutionParameter::kWeightFillerFieldNumber; +const int ConvolutionParameter::kBiasFillerFieldNumber; +const int ConvolutionParameter::kEngineFieldNumber; +const int ConvolutionParameter::kAxisFieldNumber; +const int ConvolutionParameter::kForceNdIm2ColFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ConvolutionParameter::ConvolutionParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConvolutionParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ConvolutionParameter) +} +ConvolutionParameter::ConvolutionParameter(const ConvolutionParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + pad_(from.pad_), + kernel_size_(from.kernel_size_), + stride_(from.stride_), + dilation_(from.dilation_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_weight_filler()) { + weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_); + } else { + weight_filler_ = NULL; + } + if (from.has_bias_filler()) { + bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_); + } else { + bias_filler_ = NULL; + } + ::memcpy(&num_output_, &from.num_output_, + static_cast(reinterpret_cast(&group_) - + reinterpret_cast(&num_output_)) + sizeof(group_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ConvolutionParameter) +} + +void ConvolutionParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&weight_filler_, 0, static_cast( + reinterpret_cast(&force_nd_im2col_) - + reinterpret_cast(&weight_filler_)) + sizeof(force_nd_im2col_)); + axis_ = 1; + bias_term_ = true; + group_ = 1u; +} + +ConvolutionParameter::~ConvolutionParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ConvolutionParameter) + SharedDtor(); +} + +void ConvolutionParameter::SharedDtor() { + if (this != internal_default_instance()) delete weight_filler_; + if (this != internal_default_instance()) delete bias_filler_; +} + +void ConvolutionParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ConvolutionParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ConvolutionParameter& ConvolutionParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConvolutionParameter(); + return *internal_default_instance(); +} + +ConvolutionParameter* ConvolutionParameter::New(::google::protobuf::Arena* arena) const { + ConvolutionParameter* n = new ConvolutionParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ConvolutionParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ConvolutionParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + pad_.Clear(); + kernel_size_.Clear(); + stride_.Clear(); + dilation_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(weight_filler_ != NULL); + weight_filler_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(bias_filler_ != NULL); + bias_filler_->Clear(); + } + } + if (cached_has_bits & 252u) { + ::memset(&num_output_, 0, static_cast( + reinterpret_cast(&stride_h_) - + reinterpret_cast(&num_output_)) + sizeof(stride_h_)); + } + if (cached_has_bits & 16128u) { + ::memset(&stride_w_, 0, static_cast( + reinterpret_cast(&force_nd_im2col_) - + reinterpret_cast(&stride_w_)) + sizeof(force_nd_im2col_)); + axis_ = 1; + bias_term_ = true; + group_ = 1u; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ConvolutionParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ConvolutionParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 num_output = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_num_output(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_output_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool bias_term = 2 [default = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_bias_term(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &bias_term_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 pad = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 24u, input, this->mutable_pad()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_pad()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 kernel_size = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 32u, input, this->mutable_kernel_size()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_kernel_size()))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 group = 5 [default = 1]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_group(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &group_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 stride = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 48u, input, this->mutable_stride()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_stride()))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter weight_filler = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_weight_filler())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter bias_filler = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_bias_filler())); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 pad_h = 9 [default = 0]; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_pad_h(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &pad_h_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 pad_w = 10 [default = 0]; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_pad_w(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &pad_w_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 kernel_h = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { + set_has_kernel_h(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &kernel_h_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 kernel_w = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + set_has_kernel_w(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &kernel_w_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 stride_h = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { + set_has_stride_h(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &stride_h_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 stride_w = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { + set_has_stride_w(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &stride_w_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; + case 15: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::ConvolutionParameter_Engine_IsValid(value)) { + set_engine(static_cast< ::opencv_caffe::ConvolutionParameter_Engine >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 15, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional int32 axis = 16 [default = 1]; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool force_nd_im2col = 17 [default = false]; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { + set_has_force_nd_im2col(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &force_nd_im2col_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 dilation = 18; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 2, 144u, input, this->mutable_dilation()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_dilation()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ConvolutionParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ConvolutionParameter) + return false; +#undef DO_ +} + +void ConvolutionParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ConvolutionParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_output = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output); + } + + // optional bool bias_term = 2 [default = true]; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bias_term(), output); + } + + // repeated uint32 pad = 3; + for (int i = 0, n = this->pad_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 3, this->pad(i), output); + } + + // repeated uint32 kernel_size = 4; + for (int i = 0, n = this->kernel_size_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 4, this->kernel_size(i), output); + } + + // optional uint32 group = 5 [default = 1]; + if (cached_has_bits & 0x00002000u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->group(), output); + } + + // repeated uint32 stride = 6; + for (int i = 0, n = this->stride_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 6, this->stride(i), output); + } + + // optional .opencv_caffe.FillerParameter weight_filler = 7; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *this->weight_filler_, output); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 8; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *this->bias_filler_, output); + } + + // optional uint32 pad_h = 9 [default = 0]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->pad_h(), output); + } + + // optional uint32 pad_w = 10 [default = 0]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->pad_w(), output); + } + + // optional uint32 kernel_h = 11; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->kernel_h(), output); + } + + // optional uint32 kernel_w = 12; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->kernel_w(), output); + } + + // optional uint32 stride_h = 13; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->stride_h(), output); + } + + // optional uint32 stride_w = 14; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->stride_w(), output); + } + + // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 15, this->engine(), output); + } + + // optional int32 axis = 16 [default = 1]; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->axis(), output); + } + + // optional bool force_nd_im2col = 17 [default = false]; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->force_nd_im2col(), output); + } + + // repeated uint32 dilation = 18; + for (int i = 0, n = this->dilation_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 18, this->dilation(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ConvolutionParameter) +} + +::google::protobuf::uint8* ConvolutionParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ConvolutionParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_output = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target); + } + + // optional bool bias_term = 2 [default = true]; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bias_term(), target); + } + + // repeated uint32 pad = 3; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(3, this->pad_, target); + + // repeated uint32 kernel_size = 4; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(4, this->kernel_size_, target); + + // optional uint32 group = 5 [default = 1]; + if (cached_has_bits & 0x00002000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->group(), target); + } + + // repeated uint32 stride = 6; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(6, this->stride_, target); + + // optional .opencv_caffe.FillerParameter weight_filler = 7; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *this->weight_filler_, deterministic, target); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 8; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, *this->bias_filler_, deterministic, target); + } + + // optional uint32 pad_h = 9 [default = 0]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->pad_h(), target); + } + + // optional uint32 pad_w = 10 [default = 0]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->pad_w(), target); + } + + // optional uint32 kernel_h = 11; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->kernel_h(), target); + } + + // optional uint32 kernel_w = 12; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->kernel_w(), target); + } + + // optional uint32 stride_h = 13; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->stride_h(), target); + } + + // optional uint32 stride_w = 14; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->stride_w(), target); + } + + // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 15, this->engine(), target); + } + + // optional int32 axis = 16 [default = 1]; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->axis(), target); + } + + // optional bool force_nd_im2col = 17 [default = false]; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->force_nd_im2col(), target); + } + + // repeated uint32 dilation = 18; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(18, this->dilation_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ConvolutionParameter) + return target; +} + +size_t ConvolutionParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ConvolutionParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 pad = 3; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->pad_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->pad_size()); + total_size += data_size; + } + + // repeated uint32 kernel_size = 4; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->kernel_size_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->kernel_size_size()); + total_size += data_size; + } + + // repeated uint32 stride = 6; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->stride_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->stride_size()); + total_size += data_size; + } + + // repeated uint32 dilation = 18; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->dilation_); + total_size += 2 * + ::google::protobuf::internal::FromIntSize(this->dilation_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 255u) { + // optional .opencv_caffe.FillerParameter weight_filler = 7; + if (has_weight_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->weight_filler_); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 8; + if (has_bias_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->bias_filler_); + } + + // optional uint32 num_output = 1; + if (has_num_output()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_output()); + } + + // optional uint32 pad_h = 9 [default = 0]; + if (has_pad_h()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pad_h()); + } + + // optional uint32 pad_w = 10 [default = 0]; + if (has_pad_w()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pad_w()); + } + + // optional uint32 kernel_h = 11; + if (has_kernel_h()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->kernel_h()); + } + + // optional uint32 kernel_w = 12; + if (has_kernel_w()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->kernel_w()); + } + + // optional uint32 stride_h = 13; + if (has_stride_h()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->stride_h()); + } + + } + if (_has_bits_[8 / 32] & 16128u) { + // optional uint32 stride_w = 14; + if (has_stride_w()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->stride_w()); + } + + // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; + if (has_engine()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); + } + + // optional bool force_nd_im2col = 17 [default = false]; + if (has_force_nd_im2col()) { + total_size += 2 + 1; + } + + // optional int32 axis = 16 [default = 1]; + if (has_axis()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + // optional bool bias_term = 2 [default = true]; + if (has_bias_term()) { + total_size += 1 + 1; + } + + // optional uint32 group = 5 [default = 1]; + if (has_group()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->group()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ConvolutionParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ConvolutionParameter) + GOOGLE_DCHECK_NE(&from, this); + const ConvolutionParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ConvolutionParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ConvolutionParameter) + MergeFrom(*source); + } +} + +void ConvolutionParameter::MergeFrom(const ConvolutionParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ConvolutionParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + pad_.MergeFrom(from.pad_); + kernel_size_.MergeFrom(from.kernel_size_); + stride_.MergeFrom(from.stride_); + dilation_.MergeFrom(from.dilation_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); + } + if (cached_has_bits & 0x00000002u) { + mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); + } + if (cached_has_bits & 0x00000004u) { + num_output_ = from.num_output_; + } + if (cached_has_bits & 0x00000008u) { + pad_h_ = from.pad_h_; + } + if (cached_has_bits & 0x00000010u) { + pad_w_ = from.pad_w_; + } + if (cached_has_bits & 0x00000020u) { + kernel_h_ = from.kernel_h_; + } + if (cached_has_bits & 0x00000040u) { + kernel_w_ = from.kernel_w_; + } + if (cached_has_bits & 0x00000080u) { + stride_h_ = from.stride_h_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 16128u) { + if (cached_has_bits & 0x00000100u) { + stride_w_ = from.stride_w_; + } + if (cached_has_bits & 0x00000200u) { + engine_ = from.engine_; + } + if (cached_has_bits & 0x00000400u) { + force_nd_im2col_ = from.force_nd_im2col_; + } + if (cached_has_bits & 0x00000800u) { + axis_ = from.axis_; + } + if (cached_has_bits & 0x00001000u) { + bias_term_ = from.bias_term_; + } + if (cached_has_bits & 0x00002000u) { + group_ = from.group_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ConvolutionParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ConvolutionParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ConvolutionParameter::CopyFrom(const ConvolutionParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ConvolutionParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConvolutionParameter::IsInitialized() const { + return true; +} + +void ConvolutionParameter::Swap(ConvolutionParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ConvolutionParameter::InternalSwap(ConvolutionParameter* other) { + using std::swap; + pad_.InternalSwap(&other->pad_); + kernel_size_.InternalSwap(&other->kernel_size_); + stride_.InternalSwap(&other->stride_); + dilation_.InternalSwap(&other->dilation_); + swap(weight_filler_, other->weight_filler_); + swap(bias_filler_, other->bias_filler_); + swap(num_output_, other->num_output_); + swap(pad_h_, other->pad_h_); + swap(pad_w_, other->pad_w_); + swap(kernel_h_, other->kernel_h_); + swap(kernel_w_, other->kernel_w_); + swap(stride_h_, other->stride_h_); + swap(stride_w_, other->stride_w_); + swap(engine_, other->engine_); + swap(force_nd_im2col_, other->force_nd_im2col_); + swap(axis_, other->axis_); + swap(bias_term_, other->bias_term_); + swap(group_, other->group_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ConvolutionParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CropParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CropParameter::kAxisFieldNumber; +const int CropParameter::kOffsetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CropParameter::CropParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsCropParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.CropParameter) +} +CropParameter::CropParameter(const CropParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + offset_(from.offset_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + axis_ = from.axis_; + // @@protoc_insertion_point(copy_constructor:opencv_caffe.CropParameter) +} + +void CropParameter::SharedCtor() { + _cached_size_ = 0; + axis_ = 2; +} + +CropParameter::~CropParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.CropParameter) + SharedDtor(); +} + +void CropParameter::SharedDtor() { +} + +void CropParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CropParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CropParameter& CropParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsCropParameter(); + return *internal_default_instance(); +} + +CropParameter* CropParameter::New(::google::protobuf::Arena* arena) const { + CropParameter* n = new CropParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void CropParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.CropParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + offset_.Clear(); + axis_ = 2; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool CropParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.CropParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 axis = 1 [default = 2]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 offset = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_offset()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_offset()))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.CropParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.CropParameter) + return false; +#undef DO_ +} + +void CropParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.CropParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 2]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); + } + + // repeated uint32 offset = 2; + for (int i = 0, n = this->offset_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->offset(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.CropParameter) +} + +::google::protobuf::uint8* CropParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.CropParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 2]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); + } + + // repeated uint32 offset = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->offset_, target); + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.CropParameter) + return target; +} + +size_t CropParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.CropParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 offset = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->offset_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->offset_size()); + total_size += data_size; + } + + // optional int32 axis = 1 [default = 2]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CropParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.CropParameter) + GOOGLE_DCHECK_NE(&from, this); + const CropParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.CropParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.CropParameter) + MergeFrom(*source); + } +} + +void CropParameter::MergeFrom(const CropParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.CropParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + offset_.MergeFrom(from.offset_); + if (from.has_axis()) { + set_axis(from.axis()); + } +} + +void CropParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.CropParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CropParameter::CopyFrom(const CropParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.CropParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CropParameter::IsInitialized() const { + return true; +} + +void CropParameter::Swap(CropParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void CropParameter::InternalSwap(CropParameter* other) { + using std::swap; + offset_.InternalSwap(&other->offset_); + swap(axis_, other->axis_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CropParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DataParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DataParameter::kSourceFieldNumber; +const int DataParameter::kBatchSizeFieldNumber; +const int DataParameter::kRandSkipFieldNumber; +const int DataParameter::kBackendFieldNumber; +const int DataParameter::kScaleFieldNumber; +const int DataParameter::kMeanFileFieldNumber; +const int DataParameter::kCropSizeFieldNumber; +const int DataParameter::kMirrorFieldNumber; +const int DataParameter::kForceEncodedColorFieldNumber; +const int DataParameter::kPrefetchFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DataParameter::DataParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDataParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.DataParameter) +} +DataParameter::DataParameter(const DataParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source()) { + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mean_file()) { + mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); + } + ::memcpy(&batch_size_, &from.batch_size_, + static_cast(reinterpret_cast(&prefetch_) - + reinterpret_cast(&batch_size_)) + sizeof(prefetch_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.DataParameter) +} + +void DataParameter::SharedCtor() { + _cached_size_ = 0; + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&batch_size_, 0, static_cast( + reinterpret_cast(&backend_) - + reinterpret_cast(&batch_size_)) + sizeof(backend_)); + scale_ = 1; + prefetch_ = 4u; +} + +DataParameter::~DataParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.DataParameter) + SharedDtor(); +} + +void DataParameter::SharedDtor() { + source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DataParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DataParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DataParameter& DataParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDataParameter(); + return *internal_default_instance(); +} + +DataParameter* DataParameter::New(::google::protobuf::Arena* arena) const { + DataParameter* n = new DataParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void DataParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.DataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*source_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(!mean_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*mean_file_.UnsafeRawStringPointer())->clear(); + } + } + if (cached_has_bits & 252u) { + ::memset(&batch_size_, 0, static_cast( + reinterpret_cast(&backend_) - + reinterpret_cast(&batch_size_)) + sizeof(backend_)); + } + if (cached_has_bits & 768u) { + scale_ = 1; + prefetch_ = 4u; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DataParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.DataParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.DataParameter.source"); + } else { + goto handle_unusual; + } + break; + } + + // optional float scale = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_scale(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &scale_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string mean_file = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mean_file())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.DataParameter.mean_file"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 batch_size = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_batch_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &batch_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 crop_size = 5 [default = 0]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_crop_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &crop_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool mirror = 6 [default = false]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_mirror(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &mirror_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 rand_skip = 7 [default = 0]; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_rand_skip(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &rand_skip_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::DataParameter_DB_IsValid(value)) { + set_backend(static_cast< ::opencv_caffe::DataParameter_DB >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 8, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional bool force_encoded_color = 9 [default = false]; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_force_encoded_color(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &force_encoded_color_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 prefetch = 10 [default = 4]; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_prefetch(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &prefetch_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.DataParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.DataParameter) + return false; +#undef DO_ +} + +void DataParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.DataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.DataParameter.source"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source(), output); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); + } + + // optional string mean_file = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.DataParameter.mean_file"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->mean_file(), output); + } + + // optional uint32 batch_size = 4; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->batch_size(), output); + } + + // optional uint32 crop_size = 5 [default = 0]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->crop_size(), output); + } + + // optional bool mirror = 6 [default = false]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->mirror(), output); + } + + // optional uint32 rand_skip = 7 [default = 0]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->rand_skip(), output); + } + + // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 8, this->backend(), output); + } + + // optional bool force_encoded_color = 9 [default = false]; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->force_encoded_color(), output); + } + + // optional uint32 prefetch = 10 [default = 4]; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->prefetch(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.DataParameter) +} + +::google::protobuf::uint8* DataParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.DataParameter.source"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source(), target); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); + } + + // optional string mean_file = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.DataParameter.mean_file"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->mean_file(), target); + } + + // optional uint32 batch_size = 4; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->batch_size(), target); + } + + // optional uint32 crop_size = 5 [default = 0]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->crop_size(), target); + } + + // optional bool mirror = 6 [default = false]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->mirror(), target); + } + + // optional uint32 rand_skip = 7 [default = 0]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->rand_skip(), target); + } + + // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 8, this->backend(), target); + } + + // optional bool force_encoded_color = 9 [default = false]; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->force_encoded_color(), target); + } + + // optional uint32 prefetch = 10 [default = 4]; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->prefetch(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DataParameter) + return target; +} + +size_t DataParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DataParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source()); + } + + // optional string mean_file = 3; + if (has_mean_file()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mean_file()); + } + + // optional uint32 batch_size = 4; + if (has_batch_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->batch_size()); + } + + // optional uint32 crop_size = 5 [default = 0]; + if (has_crop_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->crop_size()); + } + + // optional uint32 rand_skip = 7 [default = 0]; + if (has_rand_skip()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->rand_skip()); + } + + // optional bool mirror = 6 [default = false]; + if (has_mirror()) { + total_size += 1 + 1; + } + + // optional bool force_encoded_color = 9 [default = false]; + if (has_force_encoded_color()) { + total_size += 1 + 1; + } + + // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; + if (has_backend()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->backend()); + } + + } + if (_has_bits_[8 / 32] & 768u) { + // optional float scale = 2 [default = 1]; + if (has_scale()) { + total_size += 1 + 4; + } + + // optional uint32 prefetch = 10 [default = 4]; + if (has_prefetch()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->prefetch()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DataParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DataParameter) + GOOGLE_DCHECK_NE(&from, this); + const DataParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DataParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DataParameter) + MergeFrom(*source); + } +} + +void DataParameter::MergeFrom(const DataParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DataParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_source(); + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + if (cached_has_bits & 0x00000002u) { + set_has_mean_file(); + mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); + } + if (cached_has_bits & 0x00000004u) { + batch_size_ = from.batch_size_; + } + if (cached_has_bits & 0x00000008u) { + crop_size_ = from.crop_size_; + } + if (cached_has_bits & 0x00000010u) { + rand_skip_ = from.rand_skip_; + } + if (cached_has_bits & 0x00000020u) { + mirror_ = from.mirror_; + } + if (cached_has_bits & 0x00000040u) { + force_encoded_color_ = from.force_encoded_color_; + } + if (cached_has_bits & 0x00000080u) { + backend_ = from.backend_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 768u) { + if (cached_has_bits & 0x00000100u) { + scale_ = from.scale_; + } + if (cached_has_bits & 0x00000200u) { + prefetch_ = from.prefetch_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DataParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DataParameter::CopyFrom(const DataParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DataParameter::IsInitialized() const { + return true; +} + +void DataParameter::Swap(DataParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void DataParameter::InternalSwap(DataParameter* other) { + using std::swap; + source_.Swap(&other->source_); + mean_file_.Swap(&other->mean_file_); + swap(batch_size_, other->batch_size_); + swap(crop_size_, other->crop_size_); + swap(rand_skip_, other->rand_skip_); + swap(mirror_, other->mirror_); + swap(force_encoded_color_, other->force_encoded_color_); + swap(backend_, other->backend_); + swap(scale_, other->scale_); + swap(prefetch_, other->prefetch_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata DataParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NonMaximumSuppressionParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NonMaximumSuppressionParameter::kNmsThresholdFieldNumber; +const int NonMaximumSuppressionParameter::kTopKFieldNumber; +const int NonMaximumSuppressionParameter::kEtaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NonMaximumSuppressionParameter::NonMaximumSuppressionParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNonMaximumSuppressionParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.NonMaximumSuppressionParameter) +} +NonMaximumSuppressionParameter::NonMaximumSuppressionParameter(const NonMaximumSuppressionParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&top_k_, &from.top_k_, + static_cast(reinterpret_cast(&eta_) - + reinterpret_cast(&top_k_)) + sizeof(eta_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.NonMaximumSuppressionParameter) +} + +void NonMaximumSuppressionParameter::SharedCtor() { + _cached_size_ = 0; + top_k_ = 0; + nms_threshold_ = 0.3f; + eta_ = 1; +} + +NonMaximumSuppressionParameter::~NonMaximumSuppressionParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.NonMaximumSuppressionParameter) + SharedDtor(); +} + +void NonMaximumSuppressionParameter::SharedDtor() { +} + +void NonMaximumSuppressionParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NonMaximumSuppressionParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NonMaximumSuppressionParameter& NonMaximumSuppressionParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNonMaximumSuppressionParameter(); + return *internal_default_instance(); +} + +NonMaximumSuppressionParameter* NonMaximumSuppressionParameter::New(::google::protobuf::Arena* arena) const { + NonMaximumSuppressionParameter* n = new NonMaximumSuppressionParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NonMaximumSuppressionParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.NonMaximumSuppressionParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + top_k_ = 0; + nms_threshold_ = 0.3f; + eta_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool NonMaximumSuppressionParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.NonMaximumSuppressionParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float nms_threshold = 1 [default = 0.3]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_nms_threshold(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &nms_threshold_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 top_k = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_top_k(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &top_k_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float eta = 3 [default = 1]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_eta(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &eta_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.NonMaximumSuppressionParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.NonMaximumSuppressionParameter) + return false; +#undef DO_ +} + +void NonMaximumSuppressionParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.NonMaximumSuppressionParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float nms_threshold = 1 [default = 0.3]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->nms_threshold(), output); + } + + // optional int32 top_k = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->top_k(), output); + } + + // optional float eta = 3 [default = 1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->eta(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.NonMaximumSuppressionParameter) +} + +::google::protobuf::uint8* NonMaximumSuppressionParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NonMaximumSuppressionParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float nms_threshold = 1 [default = 0.3]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->nms_threshold(), target); + } + + // optional int32 top_k = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->top_k(), target); + } + + // optional float eta = 3 [default = 1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->eta(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NonMaximumSuppressionParameter) + return target; +} + +size_t NonMaximumSuppressionParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NonMaximumSuppressionParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional int32 top_k = 2; + if (has_top_k()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->top_k()); + } + + // optional float nms_threshold = 1 [default = 0.3]; + if (has_nms_threshold()) { + total_size += 1 + 4; + } + + // optional float eta = 3 [default = 1]; + if (has_eta()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NonMaximumSuppressionParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NonMaximumSuppressionParameter) + GOOGLE_DCHECK_NE(&from, this); + const NonMaximumSuppressionParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NonMaximumSuppressionParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NonMaximumSuppressionParameter) + MergeFrom(*source); + } +} + +void NonMaximumSuppressionParameter::MergeFrom(const NonMaximumSuppressionParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NonMaximumSuppressionParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + top_k_ = from.top_k_; + } + if (cached_has_bits & 0x00000002u) { + nms_threshold_ = from.nms_threshold_; + } + if (cached_has_bits & 0x00000004u) { + eta_ = from.eta_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NonMaximumSuppressionParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NonMaximumSuppressionParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NonMaximumSuppressionParameter::CopyFrom(const NonMaximumSuppressionParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NonMaximumSuppressionParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NonMaximumSuppressionParameter::IsInitialized() const { + return true; +} + +void NonMaximumSuppressionParameter::Swap(NonMaximumSuppressionParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void NonMaximumSuppressionParameter::InternalSwap(NonMaximumSuppressionParameter* other) { + using std::swap; + swap(top_k_, other->top_k_); + swap(nms_threshold_, other->nms_threshold_); + swap(eta_, other->eta_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NonMaximumSuppressionParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SaveOutputParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SaveOutputParameter::kOutputDirectoryFieldNumber; +const int SaveOutputParameter::kOutputNamePrefixFieldNumber; +const int SaveOutputParameter::kOutputFormatFieldNumber; +const int SaveOutputParameter::kLabelMapFileFieldNumber; +const int SaveOutputParameter::kNameSizeFileFieldNumber; +const int SaveOutputParameter::kNumTestImageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SaveOutputParameter::SaveOutputParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSaveOutputParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.SaveOutputParameter) +} +SaveOutputParameter::SaveOutputParameter(const SaveOutputParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + output_directory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_output_directory()) { + output_directory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_directory_); + } + output_name_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_output_name_prefix()) { + output_name_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_name_prefix_); + } + output_format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_output_format()) { + output_format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_format_); + } + label_map_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_label_map_file()) { + label_map_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_map_file_); + } + name_size_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_name_size_file()) { + name_size_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_size_file_); + } + num_test_image_ = from.num_test_image_; + // @@protoc_insertion_point(copy_constructor:opencv_caffe.SaveOutputParameter) +} + +void SaveOutputParameter::SharedCtor() { + _cached_size_ = 0; + output_directory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_name_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + label_map_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_size_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + num_test_image_ = 0u; +} + +SaveOutputParameter::~SaveOutputParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.SaveOutputParameter) + SharedDtor(); +} + +void SaveOutputParameter::SharedDtor() { + output_directory_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_name_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_format_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + label_map_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_size_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SaveOutputParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SaveOutputParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SaveOutputParameter& SaveOutputParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSaveOutputParameter(); + return *internal_default_instance(); +} + +SaveOutputParameter* SaveOutputParameter::New(::google::protobuf::Arena* arena) const { + SaveOutputParameter* n = new SaveOutputParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SaveOutputParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.SaveOutputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!output_directory_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*output_directory_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(!output_name_prefix_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*output_name_prefix_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(!output_format_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*output_format_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(!label_map_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*label_map_file_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(!name_size_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*name_size_file_.UnsafeRawStringPointer())->clear(); + } + } + num_test_image_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SaveOutputParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.SaveOutputParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string output_directory = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_directory())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->output_directory().data(), static_cast(this->output_directory().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SaveOutputParameter.output_directory"); + } else { + goto handle_unusual; + } + break; + } + + // optional string output_name_prefix = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_name_prefix())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->output_name_prefix().data(), static_cast(this->output_name_prefix().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SaveOutputParameter.output_name_prefix"); + } else { + goto handle_unusual; + } + break; + } + + // optional string output_format = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_format())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->output_format().data(), static_cast(this->output_format().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SaveOutputParameter.output_format"); + } else { + goto handle_unusual; + } + break; + } + + // optional string label_map_file = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_label_map_file())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label_map_file().data(), static_cast(this->label_map_file().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SaveOutputParameter.label_map_file"); + } else { + goto handle_unusual; + } + break; + } + + // optional string name_size_file = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name_size_file())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name_size_file().data(), static_cast(this->name_size_file().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.SaveOutputParameter.name_size_file"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 num_test_image = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_num_test_image(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_test_image_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.SaveOutputParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.SaveOutputParameter) + return false; +#undef DO_ +} + +void SaveOutputParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.SaveOutputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string output_directory = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->output_directory().data(), static_cast(this->output_directory().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.output_directory"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->output_directory(), output); + } + + // optional string output_name_prefix = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->output_name_prefix().data(), static_cast(this->output_name_prefix().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.output_name_prefix"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->output_name_prefix(), output); + } + + // optional string output_format = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->output_format().data(), static_cast(this->output_format().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.output_format"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->output_format(), output); + } + + // optional string label_map_file = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label_map_file().data(), static_cast(this->label_map_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.label_map_file"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->label_map_file(), output); + } + + // optional string name_size_file = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name_size_file().data(), static_cast(this->name_size_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.name_size_file"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->name_size_file(), output); + } + + // optional uint32 num_test_image = 6; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->num_test_image(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.SaveOutputParameter) +} + +::google::protobuf::uint8* SaveOutputParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SaveOutputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string output_directory = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->output_directory().data(), static_cast(this->output_directory().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.output_directory"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->output_directory(), target); + } + + // optional string output_name_prefix = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->output_name_prefix().data(), static_cast(this->output_name_prefix().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.output_name_prefix"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->output_name_prefix(), target); + } + + // optional string output_format = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->output_format().data(), static_cast(this->output_format().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.output_format"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->output_format(), target); + } + + // optional string label_map_file = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->label_map_file().data(), static_cast(this->label_map_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.label_map_file"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->label_map_file(), target); + } + + // optional string name_size_file = 5; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->name_size_file().data(), static_cast(this->name_size_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.SaveOutputParameter.name_size_file"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->name_size_file(), target); + } + + // optional uint32 num_test_image = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->num_test_image(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SaveOutputParameter) + return target; +} + +size_t SaveOutputParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SaveOutputParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional string output_directory = 1; + if (has_output_directory()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_directory()); + } + + // optional string output_name_prefix = 2; + if (has_output_name_prefix()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_name_prefix()); + } + + // optional string output_format = 3; + if (has_output_format()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_format()); + } + + // optional string label_map_file = 4; + if (has_label_map_file()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->label_map_file()); + } + + // optional string name_size_file = 5; + if (has_name_size_file()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name_size_file()); + } + + // optional uint32 num_test_image = 6; + if (has_num_test_image()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_test_image()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SaveOutputParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SaveOutputParameter) + GOOGLE_DCHECK_NE(&from, this); + const SaveOutputParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SaveOutputParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SaveOutputParameter) + MergeFrom(*source); + } +} + +void SaveOutputParameter::MergeFrom(const SaveOutputParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SaveOutputParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + set_has_output_directory(); + output_directory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_directory_); + } + if (cached_has_bits & 0x00000002u) { + set_has_output_name_prefix(); + output_name_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_name_prefix_); + } + if (cached_has_bits & 0x00000004u) { + set_has_output_format(); + output_format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_format_); + } + if (cached_has_bits & 0x00000008u) { + set_has_label_map_file(); + label_map_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_map_file_); + } + if (cached_has_bits & 0x00000010u) { + set_has_name_size_file(); + name_size_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_size_file_); + } + if (cached_has_bits & 0x00000020u) { + num_test_image_ = from.num_test_image_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void SaveOutputParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SaveOutputParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SaveOutputParameter::CopyFrom(const SaveOutputParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SaveOutputParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SaveOutputParameter::IsInitialized() const { + return true; +} + +void SaveOutputParameter::Swap(SaveOutputParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void SaveOutputParameter::InternalSwap(SaveOutputParameter* other) { + using std::swap; + output_directory_.Swap(&other->output_directory_); + output_name_prefix_.Swap(&other->output_name_prefix_); + output_format_.Swap(&other->output_format_); + label_map_file_.Swap(&other->label_map_file_); + name_size_file_.Swap(&other->name_size_file_); + swap(num_test_image_, other->num_test_image_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SaveOutputParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DropoutParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DropoutParameter::kDropoutRatioFieldNumber; +const int DropoutParameter::kScaleTrainFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DropoutParameter::DropoutParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDropoutParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.DropoutParameter) +} +DropoutParameter::DropoutParameter(const DropoutParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&dropout_ratio_, &from.dropout_ratio_, + static_cast(reinterpret_cast(&scale_train_) - + reinterpret_cast(&dropout_ratio_)) + sizeof(scale_train_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.DropoutParameter) +} + +void DropoutParameter::SharedCtor() { + _cached_size_ = 0; + dropout_ratio_ = 0.5f; + scale_train_ = true; +} + +DropoutParameter::~DropoutParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.DropoutParameter) + SharedDtor(); +} + +void DropoutParameter::SharedDtor() { +} + +void DropoutParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DropoutParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DropoutParameter& DropoutParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDropoutParameter(); + return *internal_default_instance(); +} + +DropoutParameter* DropoutParameter::New(::google::protobuf::Arena* arena) const { + DropoutParameter* n = new DropoutParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void DropoutParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.DropoutParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + dropout_ratio_ = 0.5f; + scale_train_ = true; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DropoutParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.DropoutParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float dropout_ratio = 1 [default = 0.5]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_dropout_ratio(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &dropout_ratio_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool scale_train = 2 [default = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_scale_train(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &scale_train_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.DropoutParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.DropoutParameter) + return false; +#undef DO_ +} + +void DropoutParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.DropoutParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float dropout_ratio = 1 [default = 0.5]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->dropout_ratio(), output); + } + + // optional bool scale_train = 2 [default = true]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->scale_train(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.DropoutParameter) +} + +::google::protobuf::uint8* DropoutParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DropoutParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float dropout_ratio = 1 [default = 0.5]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->dropout_ratio(), target); + } + + // optional bool scale_train = 2 [default = true]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->scale_train(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DropoutParameter) + return target; +} + +size_t DropoutParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DropoutParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional float dropout_ratio = 1 [default = 0.5]; + if (has_dropout_ratio()) { + total_size += 1 + 4; + } + + // optional bool scale_train = 2 [default = true]; + if (has_scale_train()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DropoutParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DropoutParameter) + GOOGLE_DCHECK_NE(&from, this); + const DropoutParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DropoutParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DropoutParameter) + MergeFrom(*source); + } +} + +void DropoutParameter::MergeFrom(const DropoutParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DropoutParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + dropout_ratio_ = from.dropout_ratio_; + } + if (cached_has_bits & 0x00000002u) { + scale_train_ = from.scale_train_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void DropoutParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DropoutParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DropoutParameter::CopyFrom(const DropoutParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DropoutParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DropoutParameter::IsInitialized() const { + return true; +} + +void DropoutParameter::Swap(DropoutParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void DropoutParameter::InternalSwap(DropoutParameter* other) { + using std::swap; + swap(dropout_ratio_, other->dropout_ratio_); + swap(scale_train_, other->scale_train_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata DropoutParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void DummyDataParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DummyDataParameter::kDataFillerFieldNumber; +const int DummyDataParameter::kShapeFieldNumber; +const int DummyDataParameter::kNumFieldNumber; +const int DummyDataParameter::kChannelsFieldNumber; +const int DummyDataParameter::kHeightFieldNumber; +const int DummyDataParameter::kWidthFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DummyDataParameter::DummyDataParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDummyDataParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.DummyDataParameter) +} +DummyDataParameter::DummyDataParameter(const DummyDataParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + data_filler_(from.data_filler_), + num_(from.num_), + channels_(from.channels_), + height_(from.height_), + width_(from.width_), + shape_(from.shape_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.DummyDataParameter) +} + +void DummyDataParameter::SharedCtor() { + _cached_size_ = 0; +} + +DummyDataParameter::~DummyDataParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.DummyDataParameter) + SharedDtor(); +} + +void DummyDataParameter::SharedDtor() { +} + +void DummyDataParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DummyDataParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DummyDataParameter& DummyDataParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDummyDataParameter(); + return *internal_default_instance(); +} + +DummyDataParameter* DummyDataParameter::New(::google::protobuf::Arena* arena) const { + DummyDataParameter* n = new DummyDataParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void DummyDataParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.DummyDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_filler_.Clear(); + num_.Clear(); + channels_.Clear(); + height_.Clear(); + width_.Clear(); + shape_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool DummyDataParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.DummyDataParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .opencv_caffe.FillerParameter data_filler = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_data_filler())); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 num = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_num()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_num()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 channels = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 24u, input, this->mutable_channels()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_channels()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 height = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 32u, input, this->mutable_height()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_height()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 width = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 40u, input, this->mutable_width()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_width()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .opencv_caffe.BlobShape shape = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_shape())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.DummyDataParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.DummyDataParameter) + return false; +#undef DO_ +} + +void DummyDataParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.DummyDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .opencv_caffe.FillerParameter data_filler = 1; + for (unsigned int i = 0, + n = static_cast(this->data_filler_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->data_filler(static_cast(i)), output); + } + + // repeated uint32 num = 2; + for (int i = 0, n = this->num_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->num(i), output); + } + + // repeated uint32 channels = 3; + for (int i = 0, n = this->channels_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 3, this->channels(i), output); + } + + // repeated uint32 height = 4; + for (int i = 0, n = this->height_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 4, this->height(i), output); + } + + // repeated uint32 width = 5; + for (int i = 0, n = this->width_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 5, this->width(i), output); + } + + // repeated .opencv_caffe.BlobShape shape = 6; + for (unsigned int i = 0, + n = static_cast(this->shape_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->shape(static_cast(i)), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.DummyDataParameter) +} + +::google::protobuf::uint8* DummyDataParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DummyDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .opencv_caffe.FillerParameter data_filler = 1; + for (unsigned int i = 0, + n = static_cast(this->data_filler_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->data_filler(static_cast(i)), deterministic, target); + } + + // repeated uint32 num = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->num_, target); + + // repeated uint32 channels = 3; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(3, this->channels_, target); + + // repeated uint32 height = 4; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(4, this->height_, target); + + // repeated uint32 width = 5; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(5, this->width_, target); + + // repeated .opencv_caffe.BlobShape shape = 6; + for (unsigned int i = 0, + n = static_cast(this->shape_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->shape(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DummyDataParameter) + return target; +} + +size_t DummyDataParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DummyDataParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .opencv_caffe.FillerParameter data_filler = 1; + { + unsigned int count = static_cast(this->data_filler_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->data_filler(static_cast(i))); + } + } + + // repeated uint32 num = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->num_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->num_size()); + total_size += data_size; + } + + // repeated uint32 channels = 3; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->channels_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->channels_size()); + total_size += data_size; + } + + // repeated uint32 height = 4; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->height_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->height_size()); + total_size += data_size; + } + + // repeated uint32 width = 5; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->width_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->width_size()); + total_size += data_size; + } + + // repeated .opencv_caffe.BlobShape shape = 6; + { + unsigned int count = static_cast(this->shape_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->shape(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DummyDataParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DummyDataParameter) + GOOGLE_DCHECK_NE(&from, this); + const DummyDataParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DummyDataParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DummyDataParameter) + MergeFrom(*source); + } +} + +void DummyDataParameter::MergeFrom(const DummyDataParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DummyDataParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_filler_.MergeFrom(from.data_filler_); + num_.MergeFrom(from.num_); + channels_.MergeFrom(from.channels_); + height_.MergeFrom(from.height_); + width_.MergeFrom(from.width_); + shape_.MergeFrom(from.shape_); +} + +void DummyDataParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DummyDataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DummyDataParameter::CopyFrom(const DummyDataParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DummyDataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DummyDataParameter::IsInitialized() const { + return true; +} + +void DummyDataParameter::Swap(DummyDataParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void DummyDataParameter::InternalSwap(DummyDataParameter* other) { + using std::swap; + data_filler_.InternalSwap(&other->data_filler_); + num_.InternalSwap(&other->num_); + channels_.InternalSwap(&other->channels_); + height_.InternalSwap(&other->height_); + width_.InternalSwap(&other->width_); + shape_.InternalSwap(&other->shape_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata DummyDataParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EltwiseParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EltwiseParameter::kOperationFieldNumber; +const int EltwiseParameter::kCoeffFieldNumber; +const int EltwiseParameter::kStableProdGradFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EltwiseParameter::EltwiseParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEltwiseParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.EltwiseParameter) +} +EltwiseParameter::EltwiseParameter(const EltwiseParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + coeff_(from.coeff_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&operation_, &from.operation_, + static_cast(reinterpret_cast(&stable_prod_grad_) - + reinterpret_cast(&operation_)) + sizeof(stable_prod_grad_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.EltwiseParameter) +} + +void EltwiseParameter::SharedCtor() { + _cached_size_ = 0; + operation_ = 1; + stable_prod_grad_ = true; +} + +EltwiseParameter::~EltwiseParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.EltwiseParameter) + SharedDtor(); +} + +void EltwiseParameter::SharedDtor() { +} + +void EltwiseParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EltwiseParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EltwiseParameter& EltwiseParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEltwiseParameter(); + return *internal_default_instance(); +} + +EltwiseParameter* EltwiseParameter::New(::google::protobuf::Arena* arena) const { + EltwiseParameter* n = new EltwiseParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void EltwiseParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.EltwiseParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + coeff_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + operation_ = 1; + stable_prod_grad_ = true; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EltwiseParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.EltwiseParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::EltwiseParameter_EltwiseOp_IsValid(value)) { + set_operation(static_cast< ::opencv_caffe::EltwiseParameter_EltwiseOp >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // repeated float coeff = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + 1, 21u, input, this->mutable_coeff()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, this->mutable_coeff()))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool stable_prod_grad = 3 [default = true]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_stable_prod_grad(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &stable_prod_grad_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.EltwiseParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.EltwiseParameter) + return false; +#undef DO_ +} + +void EltwiseParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.EltwiseParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->operation(), output); + } + + // repeated float coeff = 2; + for (int i = 0, n = this->coeff_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteFloat( + 2, this->coeff(i), output); + } + + // optional bool stable_prod_grad = 3 [default = true]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->stable_prod_grad(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.EltwiseParameter) +} + +::google::protobuf::uint8* EltwiseParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.EltwiseParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->operation(), target); + } + + // repeated float coeff = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(2, this->coeff_, target); + + // optional bool stable_prod_grad = 3 [default = true]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->stable_prod_grad(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.EltwiseParameter) + return target; +} + +size_t EltwiseParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.EltwiseParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated float coeff = 2; + { + unsigned int count = static_cast(this->coeff_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->coeff_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 3u) { + // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; + if (has_operation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation()); + } + + // optional bool stable_prod_grad = 3 [default = true]; + if (has_stable_prod_grad()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EltwiseParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.EltwiseParameter) + GOOGLE_DCHECK_NE(&from, this); + const EltwiseParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.EltwiseParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.EltwiseParameter) + MergeFrom(*source); + } +} + +void EltwiseParameter::MergeFrom(const EltwiseParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.EltwiseParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + coeff_.MergeFrom(from.coeff_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + operation_ = from.operation_; + } + if (cached_has_bits & 0x00000002u) { + stable_prod_grad_ = from.stable_prod_grad_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EltwiseParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.EltwiseParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EltwiseParameter::CopyFrom(const EltwiseParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.EltwiseParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EltwiseParameter::IsInitialized() const { + return true; +} + +void EltwiseParameter::Swap(EltwiseParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void EltwiseParameter::InternalSwap(EltwiseParameter* other) { + using std::swap; + coeff_.InternalSwap(&other->coeff_); + swap(operation_, other->operation_); + swap(stable_prod_grad_, other->stable_prod_grad_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata EltwiseParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ELUParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ELUParameter::kAlphaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ELUParameter::ELUParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsELUParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ELUParameter) +} +ELUParameter::ELUParameter(const ELUParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + alpha_ = from.alpha_; + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ELUParameter) +} + +void ELUParameter::SharedCtor() { + _cached_size_ = 0; + alpha_ = 1; +} + +ELUParameter::~ELUParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ELUParameter) + SharedDtor(); +} + +void ELUParameter::SharedDtor() { +} + +void ELUParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ELUParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ELUParameter& ELUParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsELUParameter(); + return *internal_default_instance(); +} + +ELUParameter* ELUParameter::New(::google::protobuf::Arena* arena) const { + ELUParameter* n = new ELUParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ELUParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ELUParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + alpha_ = 1; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ELUParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ELUParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float alpha = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_alpha(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &alpha_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ELUParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ELUParameter) + return false; +#undef DO_ +} + +void ELUParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ELUParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float alpha = 1 [default = 1]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->alpha(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ELUParameter) +} + +::google::protobuf::uint8* ELUParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ELUParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float alpha = 1 [default = 1]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->alpha(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ELUParameter) + return target; +} + +size_t ELUParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ELUParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional float alpha = 1 [default = 1]; + if (has_alpha()) { + total_size += 1 + 4; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ELUParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ELUParameter) + GOOGLE_DCHECK_NE(&from, this); + const ELUParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ELUParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ELUParameter) + MergeFrom(*source); + } +} + +void ELUParameter::MergeFrom(const ELUParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ELUParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_alpha()) { + set_alpha(from.alpha()); + } +} + +void ELUParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ELUParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ELUParameter::CopyFrom(const ELUParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ELUParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ELUParameter::IsInitialized() const { + return true; +} + +void ELUParameter::Swap(ELUParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ELUParameter::InternalSwap(ELUParameter* other) { + using std::swap; + swap(alpha_, other->alpha_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ELUParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EmbedParameter::InitAsDefaultInstance() { + ::opencv_caffe::_EmbedParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); + ::opencv_caffe::_EmbedParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EmbedParameter::kNumOutputFieldNumber; +const int EmbedParameter::kInputDimFieldNumber; +const int EmbedParameter::kBiasTermFieldNumber; +const int EmbedParameter::kWeightFillerFieldNumber; +const int EmbedParameter::kBiasFillerFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EmbedParameter::EmbedParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEmbedParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.EmbedParameter) +} +EmbedParameter::EmbedParameter(const EmbedParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_weight_filler()) { + weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_); + } else { + weight_filler_ = NULL; + } + if (from.has_bias_filler()) { + bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_); + } else { + bias_filler_ = NULL; + } + ::memcpy(&num_output_, &from.num_output_, + static_cast(reinterpret_cast(&bias_term_) - + reinterpret_cast(&num_output_)) + sizeof(bias_term_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.EmbedParameter) +} + +void EmbedParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&weight_filler_, 0, static_cast( + reinterpret_cast(&input_dim_) - + reinterpret_cast(&weight_filler_)) + sizeof(input_dim_)); + bias_term_ = true; +} + +EmbedParameter::~EmbedParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.EmbedParameter) + SharedDtor(); +} + +void EmbedParameter::SharedDtor() { + if (this != internal_default_instance()) delete weight_filler_; + if (this != internal_default_instance()) delete bias_filler_; +} + +void EmbedParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EmbedParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EmbedParameter& EmbedParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEmbedParameter(); + return *internal_default_instance(); +} + +EmbedParameter* EmbedParameter::New(::google::protobuf::Arena* arena) const { + EmbedParameter* n = new EmbedParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void EmbedParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.EmbedParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(weight_filler_ != NULL); + weight_filler_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(bias_filler_ != NULL); + bias_filler_->Clear(); + } + } + if (cached_has_bits & 28u) { + ::memset(&num_output_, 0, static_cast( + reinterpret_cast(&input_dim_) - + reinterpret_cast(&num_output_)) + sizeof(input_dim_)); + bias_term_ = true; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool EmbedParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.EmbedParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 num_output = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_num_output(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_output_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 input_dim = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_input_dim(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &input_dim_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool bias_term = 3 [default = true]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_bias_term(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &bias_term_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter weight_filler = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_weight_filler())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_bias_filler())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.EmbedParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.EmbedParameter) + return false; +#undef DO_ +} + +void EmbedParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.EmbedParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_output = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output); + } + + // optional uint32 input_dim = 2; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->input_dim(), output); + } + + // optional bool bias_term = 3 [default = true]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->bias_term(), output); + } + + // optional .opencv_caffe.FillerParameter weight_filler = 4; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->weight_filler_, output); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->bias_filler_, output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.EmbedParameter) +} + +::google::protobuf::uint8* EmbedParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.EmbedParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_output = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target); + } + + // optional uint32 input_dim = 2; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->input_dim(), target); + } + + // optional bool bias_term = 3 [default = true]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->bias_term(), target); + } + + // optional .opencv_caffe.FillerParameter weight_filler = 4; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->weight_filler_, deterministic, target); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->bias_filler_, deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.EmbedParameter) + return target; +} + +size_t EmbedParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.EmbedParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional .opencv_caffe.FillerParameter weight_filler = 4; + if (has_weight_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->weight_filler_); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + if (has_bias_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->bias_filler_); + } + + // optional uint32 num_output = 1; + if (has_num_output()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_output()); + } + + // optional uint32 input_dim = 2; + if (has_input_dim()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->input_dim()); + } + + // optional bool bias_term = 3 [default = true]; + if (has_bias_term()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EmbedParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.EmbedParameter) + GOOGLE_DCHECK_NE(&from, this); + const EmbedParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.EmbedParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.EmbedParameter) + MergeFrom(*source); + } +} + +void EmbedParameter::MergeFrom(const EmbedParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.EmbedParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); + } + if (cached_has_bits & 0x00000002u) { + mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); + } + if (cached_has_bits & 0x00000004u) { + num_output_ = from.num_output_; + } + if (cached_has_bits & 0x00000008u) { + input_dim_ = from.input_dim_; + } + if (cached_has_bits & 0x00000010u) { + bias_term_ = from.bias_term_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void EmbedParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.EmbedParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EmbedParameter::CopyFrom(const EmbedParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.EmbedParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EmbedParameter::IsInitialized() const { + return true; +} + +void EmbedParameter::Swap(EmbedParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void EmbedParameter::InternalSwap(EmbedParameter* other) { + using std::swap; + swap(weight_filler_, other->weight_filler_); + swap(bias_filler_, other->bias_filler_); + swap(num_output_, other->num_output_); + swap(input_dim_, other->input_dim_); + swap(bias_term_, other->bias_term_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata EmbedParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExpParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExpParameter::kBaseFieldNumber; +const int ExpParameter::kScaleFieldNumber; +const int ExpParameter::kShiftFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExpParameter::ExpParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsExpParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ExpParameter) +} +ExpParameter::ExpParameter(const ExpParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&shift_, &from.shift_, + static_cast(reinterpret_cast(&scale_) - + reinterpret_cast(&shift_)) + sizeof(scale_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ExpParameter) +} + +void ExpParameter::SharedCtor() { + _cached_size_ = 0; + shift_ = 0; + base_ = -1; + scale_ = 1; +} + +ExpParameter::~ExpParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ExpParameter) + SharedDtor(); +} + +void ExpParameter::SharedDtor() { +} + +void ExpParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExpParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExpParameter& ExpParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsExpParameter(); + return *internal_default_instance(); +} + +ExpParameter* ExpParameter::New(::google::protobuf::Arena* arena) const { + ExpParameter* n = new ExpParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExpParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ExpParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + shift_ = 0; + base_ = -1; + scale_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ExpParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ExpParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float base = 1 [default = -1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_base(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &base_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float scale = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_scale(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &scale_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float shift = 3 [default = 0]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_shift(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &shift_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ExpParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ExpParameter) + return false; +#undef DO_ +} + +void ExpParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ExpParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float base = 1 [default = -1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->base(), output); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); + } + + // optional float shift = 3 [default = 0]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->shift(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ExpParameter) +} + +::google::protobuf::uint8* ExpParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ExpParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float base = 1 [default = -1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->base(), target); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); + } + + // optional float shift = 3 [default = 0]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->shift(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ExpParameter) + return target; +} + +size_t ExpParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ExpParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional float shift = 3 [default = 0]; + if (has_shift()) { + total_size += 1 + 4; + } + + // optional float base = 1 [default = -1]; + if (has_base()) { + total_size += 1 + 4; + } + + // optional float scale = 2 [default = 1]; + if (has_scale()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExpParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ExpParameter) + GOOGLE_DCHECK_NE(&from, this); + const ExpParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ExpParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ExpParameter) + MergeFrom(*source); + } +} + +void ExpParameter::MergeFrom(const ExpParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ExpParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + shift_ = from.shift_; + } + if (cached_has_bits & 0x00000002u) { + base_ = from.base_; + } + if (cached_has_bits & 0x00000004u) { + scale_ = from.scale_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ExpParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ExpParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExpParameter::CopyFrom(const ExpParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ExpParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExpParameter::IsInitialized() const { + return true; +} + +void ExpParameter::Swap(ExpParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ExpParameter::InternalSwap(ExpParameter* other) { + using std::swap; + swap(shift_, other->shift_); + swap(base_, other->base_); + swap(scale_, other->scale_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExpParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void FlattenParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FlattenParameter::kAxisFieldNumber; +const int FlattenParameter::kEndAxisFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FlattenParameter::FlattenParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFlattenParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.FlattenParameter) +} +FlattenParameter::FlattenParameter(const FlattenParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&axis_, &from.axis_, + static_cast(reinterpret_cast(&end_axis_) - + reinterpret_cast(&axis_)) + sizeof(end_axis_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.FlattenParameter) +} + +void FlattenParameter::SharedCtor() { + _cached_size_ = 0; + axis_ = 1; + end_axis_ = -1; +} + +FlattenParameter::~FlattenParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.FlattenParameter) + SharedDtor(); +} + +void FlattenParameter::SharedDtor() { +} + +void FlattenParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FlattenParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const FlattenParameter& FlattenParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFlattenParameter(); + return *internal_default_instance(); +} + +FlattenParameter* FlattenParameter::New(::google::protobuf::Arena* arena) const { + FlattenParameter* n = new FlattenParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void FlattenParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.FlattenParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + axis_ = 1; + end_axis_ = -1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool FlattenParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.FlattenParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 axis = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 end_axis = 2 [default = -1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_end_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &end_axis_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.FlattenParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.FlattenParameter) + return false; +#undef DO_ +} + +void FlattenParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.FlattenParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 1]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); + } + + // optional int32 end_axis = 2 [default = -1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end_axis(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.FlattenParameter) +} + +::google::protobuf::uint8* FlattenParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.FlattenParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 1]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); + } + + // optional int32 end_axis = 2 [default = -1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end_axis(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.FlattenParameter) + return target; +} + +size_t FlattenParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.FlattenParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional int32 axis = 1 [default = 1]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + // optional int32 end_axis = 2 [default = -1]; + if (has_end_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->end_axis()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FlattenParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.FlattenParameter) + GOOGLE_DCHECK_NE(&from, this); + const FlattenParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.FlattenParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.FlattenParameter) + MergeFrom(*source); + } +} + +void FlattenParameter::MergeFrom(const FlattenParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.FlattenParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + axis_ = from.axis_; + } + if (cached_has_bits & 0x00000002u) { + end_axis_ = from.end_axis_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void FlattenParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.FlattenParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FlattenParameter::CopyFrom(const FlattenParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.FlattenParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FlattenParameter::IsInitialized() const { + return true; +} + +void FlattenParameter::Swap(FlattenParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void FlattenParameter::InternalSwap(FlattenParameter* other) { + using std::swap; + swap(axis_, other->axis_); + swap(end_axis_, other->end_axis_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata FlattenParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void HDF5DataParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HDF5DataParameter::kSourceFieldNumber; +const int HDF5DataParameter::kBatchSizeFieldNumber; +const int HDF5DataParameter::kShuffleFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HDF5DataParameter::HDF5DataParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5DataParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.HDF5DataParameter) +} +HDF5DataParameter::HDF5DataParameter(const HDF5DataParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source()) { + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + ::memcpy(&batch_size_, &from.batch_size_, + static_cast(reinterpret_cast(&shuffle_) - + reinterpret_cast(&batch_size_)) + sizeof(shuffle_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.HDF5DataParameter) +} + +void HDF5DataParameter::SharedCtor() { + _cached_size_ = 0; + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&batch_size_, 0, static_cast( + reinterpret_cast(&shuffle_) - + reinterpret_cast(&batch_size_)) + sizeof(shuffle_)); +} + +HDF5DataParameter::~HDF5DataParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.HDF5DataParameter) + SharedDtor(); +} + +void HDF5DataParameter::SharedDtor() { + source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HDF5DataParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HDF5DataParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const HDF5DataParameter& HDF5DataParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5DataParameter(); + return *internal_default_instance(); +} + +HDF5DataParameter* HDF5DataParameter::New(::google::protobuf::Arena* arena) const { + HDF5DataParameter* n = new HDF5DataParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void HDF5DataParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.HDF5DataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*source_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 6u) { + ::memset(&batch_size_, 0, static_cast( + reinterpret_cast(&shuffle_) - + reinterpret_cast(&batch_size_)) + sizeof(shuffle_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool HDF5DataParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.HDF5DataParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.HDF5DataParameter.source"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 batch_size = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_batch_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &batch_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool shuffle = 3 [default = false]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_shuffle(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &shuffle_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.HDF5DataParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.HDF5DataParameter) + return false; +#undef DO_ +} + +void HDF5DataParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.HDF5DataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.HDF5DataParameter.source"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source(), output); + } + + // optional uint32 batch_size = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->batch_size(), output); + } + + // optional bool shuffle = 3 [default = false]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->shuffle(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.HDF5DataParameter) +} + +::google::protobuf::uint8* HDF5DataParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.HDF5DataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.HDF5DataParameter.source"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source(), target); + } + + // optional uint32 batch_size = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->batch_size(), target); + } + + // optional bool shuffle = 3 [default = false]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->shuffle(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.HDF5DataParameter) + return target; +} + +size_t HDF5DataParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.HDF5DataParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional string source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source()); + } + + // optional uint32 batch_size = 2; + if (has_batch_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->batch_size()); + } + + // optional bool shuffle = 3 [default = false]; + if (has_shuffle()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HDF5DataParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.HDF5DataParameter) + GOOGLE_DCHECK_NE(&from, this); + const HDF5DataParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.HDF5DataParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.HDF5DataParameter) + MergeFrom(*source); + } +} + +void HDF5DataParameter::MergeFrom(const HDF5DataParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.HDF5DataParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + set_has_source(); + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + if (cached_has_bits & 0x00000002u) { + batch_size_ = from.batch_size_; + } + if (cached_has_bits & 0x00000004u) { + shuffle_ = from.shuffle_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void HDF5DataParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.HDF5DataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HDF5DataParameter::CopyFrom(const HDF5DataParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.HDF5DataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HDF5DataParameter::IsInitialized() const { + return true; +} + +void HDF5DataParameter::Swap(HDF5DataParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void HDF5DataParameter::InternalSwap(HDF5DataParameter* other) { + using std::swap; + source_.Swap(&other->source_); + swap(batch_size_, other->batch_size_); + swap(shuffle_, other->shuffle_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata HDF5DataParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void HDF5OutputParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HDF5OutputParameter::kFileNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HDF5OutputParameter::HDF5OutputParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.HDF5OutputParameter) +} +HDF5OutputParameter::HDF5OutputParameter(const HDF5OutputParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_file_name()) { + file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); + } + // @@protoc_insertion_point(copy_constructor:opencv_caffe.HDF5OutputParameter) +} + +void HDF5OutputParameter::SharedCtor() { + _cached_size_ = 0; + file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +HDF5OutputParameter::~HDF5OutputParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.HDF5OutputParameter) + SharedDtor(); +} + +void HDF5OutputParameter::SharedDtor() { + file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HDF5OutputParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HDF5OutputParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const HDF5OutputParameter& HDF5OutputParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter(); + return *internal_default_instance(); +} + +HDF5OutputParameter* HDF5OutputParameter::New(::google::protobuf::Arena* arena) const { + HDF5OutputParameter* n = new HDF5OutputParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void HDF5OutputParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.HDF5OutputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!file_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*file_name_.UnsafeRawStringPointer())->clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool HDF5OutputParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.HDF5OutputParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string file_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_file_name())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_name().data(), static_cast(this->file_name().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.HDF5OutputParameter.file_name"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.HDF5OutputParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.HDF5OutputParameter) + return false; +#undef DO_ +} + +void HDF5OutputParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.HDF5OutputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string file_name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_name().data(), static_cast(this->file_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.HDF5OutputParameter.file_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->file_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.HDF5OutputParameter) +} + +::google::protobuf::uint8* HDF5OutputParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.HDF5OutputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string file_name = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->file_name().data(), static_cast(this->file_name().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.HDF5OutputParameter.file_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->file_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.HDF5OutputParameter) + return target; +} + +size_t HDF5OutputParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.HDF5OutputParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string file_name = 1; + if (has_file_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->file_name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HDF5OutputParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.HDF5OutputParameter) + GOOGLE_DCHECK_NE(&from, this); + const HDF5OutputParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.HDF5OutputParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.HDF5OutputParameter) + MergeFrom(*source); + } +} + +void HDF5OutputParameter::MergeFrom(const HDF5OutputParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.HDF5OutputParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_file_name()) { + set_has_file_name(); + file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); + } +} + +void HDF5OutputParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.HDF5OutputParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HDF5OutputParameter::CopyFrom(const HDF5OutputParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.HDF5OutputParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HDF5OutputParameter::IsInitialized() const { + return true; +} + +void HDF5OutputParameter::Swap(HDF5OutputParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void HDF5OutputParameter::InternalSwap(HDF5OutputParameter* other) { + using std::swap; + file_name_.Swap(&other->file_name_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata HDF5OutputParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void HingeLossParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HingeLossParameter::kNormFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HingeLossParameter::HingeLossParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHingeLossParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.HingeLossParameter) +} +HingeLossParameter::HingeLossParameter(const HingeLossParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + norm_ = from.norm_; + // @@protoc_insertion_point(copy_constructor:opencv_caffe.HingeLossParameter) +} + +void HingeLossParameter::SharedCtor() { + _cached_size_ = 0; + norm_ = 1; +} + +HingeLossParameter::~HingeLossParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.HingeLossParameter) + SharedDtor(); +} + +void HingeLossParameter::SharedDtor() { +} + +void HingeLossParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HingeLossParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const HingeLossParameter& HingeLossParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHingeLossParameter(); + return *internal_default_instance(); +} + +HingeLossParameter* HingeLossParameter::New(::google::protobuf::Arena* arena) const { + HingeLossParameter* n = new HingeLossParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void HingeLossParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.HingeLossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + norm_ = 1; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool HingeLossParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.HingeLossParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::HingeLossParameter_Norm_IsValid(value)) { + set_norm(static_cast< ::opencv_caffe::HingeLossParameter_Norm >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.HingeLossParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.HingeLossParameter) + return false; +#undef DO_ +} + +void HingeLossParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.HingeLossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->norm(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.HingeLossParameter) +} + +::google::protobuf::uint8* HingeLossParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.HingeLossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->norm(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.HingeLossParameter) + return target; +} + +size_t HingeLossParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.HingeLossParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1]; + if (has_norm()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->norm()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HingeLossParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.HingeLossParameter) + GOOGLE_DCHECK_NE(&from, this); + const HingeLossParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.HingeLossParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.HingeLossParameter) + MergeFrom(*source); + } +} + +void HingeLossParameter::MergeFrom(const HingeLossParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.HingeLossParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_norm()) { + set_norm(from.norm()); + } +} + +void HingeLossParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.HingeLossParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HingeLossParameter::CopyFrom(const HingeLossParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.HingeLossParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HingeLossParameter::IsInitialized() const { + return true; +} + +void HingeLossParameter::Swap(HingeLossParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void HingeLossParameter::InternalSwap(HingeLossParameter* other) { + using std::swap; + swap(norm_, other->norm_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata HingeLossParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ImageDataParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ImageDataParameter::kSourceFieldNumber; +const int ImageDataParameter::kBatchSizeFieldNumber; +const int ImageDataParameter::kRandSkipFieldNumber; +const int ImageDataParameter::kShuffleFieldNumber; +const int ImageDataParameter::kNewHeightFieldNumber; +const int ImageDataParameter::kNewWidthFieldNumber; +const int ImageDataParameter::kIsColorFieldNumber; +const int ImageDataParameter::kScaleFieldNumber; +const int ImageDataParameter::kMeanFileFieldNumber; +const int ImageDataParameter::kCropSizeFieldNumber; +const int ImageDataParameter::kMirrorFieldNumber; +const int ImageDataParameter::kRootFolderFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ImageDataParameter::ImageDataParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsImageDataParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ImageDataParameter) +} +ImageDataParameter::ImageDataParameter(const ImageDataParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source()) { + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mean_file()) { + mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); + } + root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_root_folder()) { + root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_); + } + ::memcpy(&crop_size_, &from.crop_size_, + static_cast(reinterpret_cast(&batch_size_) - + reinterpret_cast(&crop_size_)) + sizeof(batch_size_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ImageDataParameter) +} + +void ImageDataParameter::SharedCtor() { + _cached_size_ = 0; + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&crop_size_, 0, static_cast( + reinterpret_cast(&new_width_) - + reinterpret_cast(&crop_size_)) + sizeof(new_width_)); + is_color_ = true; + scale_ = 1; + batch_size_ = 1u; +} + +ImageDataParameter::~ImageDataParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ImageDataParameter) + SharedDtor(); +} + +void ImageDataParameter::SharedDtor() { + source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + root_folder_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ImageDataParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ImageDataParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ImageDataParameter& ImageDataParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsImageDataParameter(); + return *internal_default_instance(); +} + +ImageDataParameter* ImageDataParameter::New(::google::protobuf::Arena* arena) const { + ImageDataParameter* n = new ImageDataParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ImageDataParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ImageDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*source_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(!mean_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*mean_file_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(!root_folder_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*root_folder_.UnsafeRawStringPointer())->clear(); + } + } + if (cached_has_bits & 248u) { + ::memset(&crop_size_, 0, static_cast( + reinterpret_cast(&new_height_) - + reinterpret_cast(&crop_size_)) + sizeof(new_height_)); + } + if (cached_has_bits & 3840u) { + new_width_ = 0u; + is_color_ = true; + scale_ = 1; + batch_size_ = 1u; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ImageDataParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ImageDataParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.ImageDataParameter.source"); + } else { + goto handle_unusual; + } + break; + } + + // optional float scale = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_scale(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &scale_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string mean_file = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mean_file())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.ImageDataParameter.mean_file"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 batch_size = 4 [default = 1]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_batch_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &batch_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 crop_size = 5 [default = 0]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_crop_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &crop_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool mirror = 6 [default = false]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_mirror(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &mirror_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 rand_skip = 7 [default = 0]; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_rand_skip(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &rand_skip_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool shuffle = 8 [default = false]; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_shuffle(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &shuffle_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 new_height = 9 [default = 0]; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_new_height(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &new_height_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 new_width = 10 [default = 0]; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_new_width(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &new_width_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool is_color = 11 [default = true]; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { + set_has_is_color(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_color_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string root_folder = 12 [default = ""]; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_root_folder())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->root_folder().data(), static_cast(this->root_folder().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.ImageDataParameter.root_folder"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ImageDataParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ImageDataParameter) + return false; +#undef DO_ +} + +void ImageDataParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ImageDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.ImageDataParameter.source"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source(), output); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); + } + + // optional string mean_file = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.ImageDataParameter.mean_file"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->mean_file(), output); + } + + // optional uint32 batch_size = 4 [default = 1]; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->batch_size(), output); + } + + // optional uint32 crop_size = 5 [default = 0]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->crop_size(), output); + } + + // optional bool mirror = 6 [default = false]; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->mirror(), output); + } + + // optional uint32 rand_skip = 7 [default = 0]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->rand_skip(), output); + } + + // optional bool shuffle = 8 [default = false]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->shuffle(), output); + } + + // optional uint32 new_height = 9 [default = 0]; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->new_height(), output); + } + + // optional uint32 new_width = 10 [default = 0]; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->new_width(), output); + } + + // optional bool is_color = 11 [default = true]; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->is_color(), output); + } + + // optional string root_folder = 12 [default = ""]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->root_folder().data(), static_cast(this->root_folder().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.ImageDataParameter.root_folder"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 12, this->root_folder(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ImageDataParameter) +} + +::google::protobuf::uint8* ImageDataParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ImageDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.ImageDataParameter.source"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source(), target); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); + } + + // optional string mean_file = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.ImageDataParameter.mean_file"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->mean_file(), target); + } + + // optional uint32 batch_size = 4 [default = 1]; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->batch_size(), target); + } + + // optional uint32 crop_size = 5 [default = 0]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->crop_size(), target); + } + + // optional bool mirror = 6 [default = false]; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->mirror(), target); + } + + // optional uint32 rand_skip = 7 [default = 0]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->rand_skip(), target); + } + + // optional bool shuffle = 8 [default = false]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->shuffle(), target); + } + + // optional uint32 new_height = 9 [default = 0]; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->new_height(), target); + } + + // optional uint32 new_width = 10 [default = 0]; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->new_width(), target); + } + + // optional bool is_color = 11 [default = true]; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->is_color(), target); + } + + // optional string root_folder = 12 [default = ""]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->root_folder().data(), static_cast(this->root_folder().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.ImageDataParameter.root_folder"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 12, this->root_folder(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ImageDataParameter) + return target; +} + +size_t ImageDataParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ImageDataParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source()); + } + + // optional string mean_file = 3; + if (has_mean_file()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mean_file()); + } + + // optional string root_folder = 12 [default = ""]; + if (has_root_folder()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->root_folder()); + } + + // optional uint32 crop_size = 5 [default = 0]; + if (has_crop_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->crop_size()); + } + + // optional uint32 rand_skip = 7 [default = 0]; + if (has_rand_skip()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->rand_skip()); + } + + // optional bool shuffle = 8 [default = false]; + if (has_shuffle()) { + total_size += 1 + 1; + } + + // optional bool mirror = 6 [default = false]; + if (has_mirror()) { + total_size += 1 + 1; + } + + // optional uint32 new_height = 9 [default = 0]; + if (has_new_height()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->new_height()); + } + + } + if (_has_bits_[8 / 32] & 3840u) { + // optional uint32 new_width = 10 [default = 0]; + if (has_new_width()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->new_width()); + } + + // optional bool is_color = 11 [default = true]; + if (has_is_color()) { + total_size += 1 + 1; + } + + // optional float scale = 2 [default = 1]; + if (has_scale()) { + total_size += 1 + 4; + } + + // optional uint32 batch_size = 4 [default = 1]; + if (has_batch_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->batch_size()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ImageDataParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ImageDataParameter) + GOOGLE_DCHECK_NE(&from, this); + const ImageDataParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ImageDataParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ImageDataParameter) + MergeFrom(*source); + } +} + +void ImageDataParameter::MergeFrom(const ImageDataParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ImageDataParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_source(); + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + if (cached_has_bits & 0x00000002u) { + set_has_mean_file(); + mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); + } + if (cached_has_bits & 0x00000004u) { + set_has_root_folder(); + root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_); + } + if (cached_has_bits & 0x00000008u) { + crop_size_ = from.crop_size_; + } + if (cached_has_bits & 0x00000010u) { + rand_skip_ = from.rand_skip_; + } + if (cached_has_bits & 0x00000020u) { + shuffle_ = from.shuffle_; + } + if (cached_has_bits & 0x00000040u) { + mirror_ = from.mirror_; + } + if (cached_has_bits & 0x00000080u) { + new_height_ = from.new_height_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 3840u) { + if (cached_has_bits & 0x00000100u) { + new_width_ = from.new_width_; + } + if (cached_has_bits & 0x00000200u) { + is_color_ = from.is_color_; + } + if (cached_has_bits & 0x00000400u) { + scale_ = from.scale_; + } + if (cached_has_bits & 0x00000800u) { + batch_size_ = from.batch_size_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ImageDataParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ImageDataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ImageDataParameter::CopyFrom(const ImageDataParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ImageDataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ImageDataParameter::IsInitialized() const { + return true; +} + +void ImageDataParameter::Swap(ImageDataParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ImageDataParameter::InternalSwap(ImageDataParameter* other) { + using std::swap; + source_.Swap(&other->source_); + mean_file_.Swap(&other->mean_file_); + root_folder_.Swap(&other->root_folder_); + swap(crop_size_, other->crop_size_); + swap(rand_skip_, other->rand_skip_); + swap(shuffle_, other->shuffle_); + swap(mirror_, other->mirror_); + swap(new_height_, other->new_height_); + swap(new_width_, other->new_width_); + swap(is_color_, other->is_color_); + swap(scale_, other->scale_); + swap(batch_size_, other->batch_size_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ImageDataParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void InfogainLossParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int InfogainLossParameter::kSourceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +InfogainLossParameter::InfogainLossParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInfogainLossParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.InfogainLossParameter) +} +InfogainLossParameter::InfogainLossParameter(const InfogainLossParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source()) { + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + // @@protoc_insertion_point(copy_constructor:opencv_caffe.InfogainLossParameter) +} + +void InfogainLossParameter::SharedCtor() { + _cached_size_ = 0; + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +InfogainLossParameter::~InfogainLossParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.InfogainLossParameter) + SharedDtor(); +} + +void InfogainLossParameter::SharedDtor() { + source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void InfogainLossParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* InfogainLossParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const InfogainLossParameter& InfogainLossParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInfogainLossParameter(); + return *internal_default_instance(); +} + +InfogainLossParameter* InfogainLossParameter::New(::google::protobuf::Arena* arena) const { + InfogainLossParameter* n = new InfogainLossParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void InfogainLossParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.InfogainLossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*source_.UnsafeRawStringPointer())->clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool InfogainLossParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.InfogainLossParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.InfogainLossParameter.source"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.InfogainLossParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.InfogainLossParameter) + return false; +#undef DO_ +} + +void InfogainLossParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.InfogainLossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.InfogainLossParameter.source"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.InfogainLossParameter) +} + +::google::protobuf::uint8* InfogainLossParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.InfogainLossParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.InfogainLossParameter.source"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.InfogainLossParameter) + return target; +} + +size_t InfogainLossParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.InfogainLossParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional string source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void InfogainLossParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.InfogainLossParameter) + GOOGLE_DCHECK_NE(&from, this); + const InfogainLossParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.InfogainLossParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.InfogainLossParameter) + MergeFrom(*source); + } +} + +void InfogainLossParameter::MergeFrom(const InfogainLossParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.InfogainLossParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_source()) { + set_has_source(); + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } +} + +void InfogainLossParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.InfogainLossParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InfogainLossParameter::CopyFrom(const InfogainLossParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.InfogainLossParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InfogainLossParameter::IsInitialized() const { + return true; +} + +void InfogainLossParameter::Swap(InfogainLossParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void InfogainLossParameter::InternalSwap(InfogainLossParameter* other) { + using std::swap; + source_.Swap(&other->source_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata InfogainLossParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void InnerProductParameter::InitAsDefaultInstance() { + ::opencv_caffe::_InnerProductParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); + ::opencv_caffe::_InnerProductParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int InnerProductParameter::kNumOutputFieldNumber; +const int InnerProductParameter::kBiasTermFieldNumber; +const int InnerProductParameter::kWeightFillerFieldNumber; +const int InnerProductParameter::kBiasFillerFieldNumber; +const int InnerProductParameter::kAxisFieldNumber; +const int InnerProductParameter::kTransposeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +InnerProductParameter::InnerProductParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInnerProductParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.InnerProductParameter) +} +InnerProductParameter::InnerProductParameter(const InnerProductParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_weight_filler()) { + weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_); + } else { + weight_filler_ = NULL; + } + if (from.has_bias_filler()) { + bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_); + } else { + bias_filler_ = NULL; + } + ::memcpy(&num_output_, &from.num_output_, + static_cast(reinterpret_cast(&axis_) - + reinterpret_cast(&num_output_)) + sizeof(axis_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.InnerProductParameter) +} + +void InnerProductParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&weight_filler_, 0, static_cast( + reinterpret_cast(&transpose_) - + reinterpret_cast(&weight_filler_)) + sizeof(transpose_)); + bias_term_ = true; + axis_ = 1; +} + +InnerProductParameter::~InnerProductParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.InnerProductParameter) + SharedDtor(); +} + +void InnerProductParameter::SharedDtor() { + if (this != internal_default_instance()) delete weight_filler_; + if (this != internal_default_instance()) delete bias_filler_; +} + +void InnerProductParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* InnerProductParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const InnerProductParameter& InnerProductParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInnerProductParameter(); + return *internal_default_instance(); +} + +InnerProductParameter* InnerProductParameter::New(::google::protobuf::Arena* arena) const { + InnerProductParameter* n = new InnerProductParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void InnerProductParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.InnerProductParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(weight_filler_ != NULL); + weight_filler_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(bias_filler_ != NULL); + bias_filler_->Clear(); + } + } + if (cached_has_bits & 60u) { + ::memset(&num_output_, 0, static_cast( + reinterpret_cast(&transpose_) - + reinterpret_cast(&num_output_)) + sizeof(transpose_)); + bias_term_ = true; + axis_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool InnerProductParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.InnerProductParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 num_output = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_num_output(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_output_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool bias_term = 2 [default = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_bias_term(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &bias_term_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter weight_filler = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_weight_filler())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter bias_filler = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_bias_filler())); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 axis = 5 [default = 1]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool transpose = 6 [default = false]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_transpose(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &transpose_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.InnerProductParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.InnerProductParameter) + return false; +#undef DO_ +} + +void InnerProductParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.InnerProductParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_output = 1; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output); + } + + // optional bool bias_term = 2 [default = true]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bias_term(), output); + } + + // optional .opencv_caffe.FillerParameter weight_filler = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->weight_filler_, output); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 4; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->bias_filler_, output); + } + + // optional int32 axis = 5 [default = 1]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->axis(), output); + } + + // optional bool transpose = 6 [default = false]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->transpose(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.InnerProductParameter) +} + +::google::protobuf::uint8* InnerProductParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.InnerProductParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_output = 1; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target); + } + + // optional bool bias_term = 2 [default = true]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bias_term(), target); + } + + // optional .opencv_caffe.FillerParameter weight_filler = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->weight_filler_, deterministic, target); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 4; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->bias_filler_, deterministic, target); + } + + // optional int32 axis = 5 [default = 1]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->axis(), target); + } + + // optional bool transpose = 6 [default = false]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->transpose(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.InnerProductParameter) + return target; +} + +size_t InnerProductParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.InnerProductParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional .opencv_caffe.FillerParameter weight_filler = 3; + if (has_weight_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->weight_filler_); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 4; + if (has_bias_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->bias_filler_); + } + + // optional uint32 num_output = 1; + if (has_num_output()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_output()); + } + + // optional bool transpose = 6 [default = false]; + if (has_transpose()) { + total_size += 1 + 1; + } + + // optional bool bias_term = 2 [default = true]; + if (has_bias_term()) { + total_size += 1 + 1; + } + + // optional int32 axis = 5 [default = 1]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void InnerProductParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.InnerProductParameter) + GOOGLE_DCHECK_NE(&from, this); + const InnerProductParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.InnerProductParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.InnerProductParameter) + MergeFrom(*source); + } +} + +void InnerProductParameter::MergeFrom(const InnerProductParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.InnerProductParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); + } + if (cached_has_bits & 0x00000002u) { + mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); + } + if (cached_has_bits & 0x00000004u) { + num_output_ = from.num_output_; + } + if (cached_has_bits & 0x00000008u) { + transpose_ = from.transpose_; + } + if (cached_has_bits & 0x00000010u) { + bias_term_ = from.bias_term_; + } + if (cached_has_bits & 0x00000020u) { + axis_ = from.axis_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void InnerProductParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.InnerProductParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InnerProductParameter::CopyFrom(const InnerProductParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.InnerProductParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InnerProductParameter::IsInitialized() const { + return true; +} + +void InnerProductParameter::Swap(InnerProductParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void InnerProductParameter::InternalSwap(InnerProductParameter* other) { + using std::swap; + swap(weight_filler_, other->weight_filler_); + swap(bias_filler_, other->bias_filler_); + swap(num_output_, other->num_output_); + swap(transpose_, other->transpose_); + swap(bias_term_, other->bias_term_); + swap(axis_, other->axis_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata InnerProductParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void InputParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int InputParameter::kShapeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +InputParameter::InputParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInputParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.InputParameter) +} +InputParameter::InputParameter(const InputParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + shape_(from.shape_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.InputParameter) +} + +void InputParameter::SharedCtor() { + _cached_size_ = 0; +} + +InputParameter::~InputParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.InputParameter) + SharedDtor(); +} + +void InputParameter::SharedDtor() { +} + +void InputParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* InputParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const InputParameter& InputParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInputParameter(); + return *internal_default_instance(); +} + +InputParameter* InputParameter::New(::google::protobuf::Arena* arena) const { + InputParameter* n = new InputParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void InputParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.InputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + shape_.Clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool InputParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.InputParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .opencv_caffe.BlobShape shape = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_shape())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.InputParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.InputParameter) + return false; +#undef DO_ +} + +void InputParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.InputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .opencv_caffe.BlobShape shape = 1; + for (unsigned int i = 0, + n = static_cast(this->shape_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->shape(static_cast(i)), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.InputParameter) +} + +::google::protobuf::uint8* InputParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.InputParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .opencv_caffe.BlobShape shape = 1; + for (unsigned int i = 0, + n = static_cast(this->shape_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->shape(static_cast(i)), deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.InputParameter) + return target; +} + +size_t InputParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.InputParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .opencv_caffe.BlobShape shape = 1; + { + unsigned int count = static_cast(this->shape_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->shape(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void InputParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.InputParameter) + GOOGLE_DCHECK_NE(&from, this); + const InputParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.InputParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.InputParameter) + MergeFrom(*source); + } +} + +void InputParameter::MergeFrom(const InputParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.InputParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + shape_.MergeFrom(from.shape_); +} + +void InputParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.InputParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InputParameter::CopyFrom(const InputParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.InputParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InputParameter::IsInitialized() const { + return true; +} + +void InputParameter::Swap(InputParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void InputParameter::InternalSwap(InputParameter* other) { + using std::swap; + shape_.InternalSwap(&other->shape_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata InputParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LogParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LogParameter::kBaseFieldNumber; +const int LogParameter::kScaleFieldNumber; +const int LogParameter::kShiftFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LogParameter::LogParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLogParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.LogParameter) +} +LogParameter::LogParameter(const LogParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&shift_, &from.shift_, + static_cast(reinterpret_cast(&scale_) - + reinterpret_cast(&shift_)) + sizeof(scale_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.LogParameter) +} + +void LogParameter::SharedCtor() { + _cached_size_ = 0; + shift_ = 0; + base_ = -1; + scale_ = 1; +} + +LogParameter::~LogParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.LogParameter) + SharedDtor(); +} + +void LogParameter::SharedDtor() { +} + +void LogParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LogParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LogParameter& LogParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLogParameter(); + return *internal_default_instance(); +} + +LogParameter* LogParameter::New(::google::protobuf::Arena* arena) const { + LogParameter* n = new LogParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LogParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.LogParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + shift_ = 0; + base_ = -1; + scale_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LogParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.LogParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float base = 1 [default = -1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_base(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &base_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float scale = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_scale(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &scale_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float shift = 3 [default = 0]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_shift(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &shift_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.LogParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.LogParameter) + return false; +#undef DO_ +} + +void LogParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.LogParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float base = 1 [default = -1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->base(), output); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); + } + + // optional float shift = 3 [default = 0]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->shift(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.LogParameter) +} + +::google::protobuf::uint8* LogParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LogParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float base = 1 [default = -1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->base(), target); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); + } + + // optional float shift = 3 [default = 0]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->shift(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LogParameter) + return target; +} + +size_t LogParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LogParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional float shift = 3 [default = 0]; + if (has_shift()) { + total_size += 1 + 4; + } + + // optional float base = 1 [default = -1]; + if (has_base()) { + total_size += 1 + 4; + } + + // optional float scale = 2 [default = 1]; + if (has_scale()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LogParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LogParameter) + GOOGLE_DCHECK_NE(&from, this); + const LogParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LogParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LogParameter) + MergeFrom(*source); + } +} + +void LogParameter::MergeFrom(const LogParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LogParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + shift_ = from.shift_; + } + if (cached_has_bits & 0x00000002u) { + base_ = from.base_; + } + if (cached_has_bits & 0x00000004u) { + scale_ = from.scale_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void LogParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LogParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LogParameter::CopyFrom(const LogParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LogParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LogParameter::IsInitialized() const { + return true; +} + +void LogParameter::Swap(LogParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void LogParameter::InternalSwap(LogParameter* other) { + using std::swap; + swap(shift_, other->shift_); + swap(base_, other->base_); + swap(scale_, other->scale_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LogParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LRNParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LRNParameter::kLocalSizeFieldNumber; +const int LRNParameter::kAlphaFieldNumber; +const int LRNParameter::kBetaFieldNumber; +const int LRNParameter::kNormRegionFieldNumber; +const int LRNParameter::kKFieldNumber; +const int LRNParameter::kEngineFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LRNParameter::LRNParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLRNParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.LRNParameter) +} +LRNParameter::LRNParameter(const LRNParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&norm_region_, &from.norm_region_, + static_cast(reinterpret_cast(&k_) - + reinterpret_cast(&norm_region_)) + sizeof(k_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.LRNParameter) +} + +void LRNParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&norm_region_, 0, static_cast( + reinterpret_cast(&engine_) - + reinterpret_cast(&norm_region_)) + sizeof(engine_)); + local_size_ = 5u; + alpha_ = 1; + beta_ = 0.75f; + k_ = 1; +} + +LRNParameter::~LRNParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.LRNParameter) + SharedDtor(); +} + +void LRNParameter::SharedDtor() { +} + +void LRNParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LRNParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LRNParameter& LRNParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLRNParameter(); + return *internal_default_instance(); +} + +LRNParameter* LRNParameter::New(::google::protobuf::Arena* arena) const { + LRNParameter* n = new LRNParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LRNParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.LRNParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 63u) { + ::memset(&norm_region_, 0, static_cast( + reinterpret_cast(&engine_) - + reinterpret_cast(&norm_region_)) + sizeof(engine_)); + local_size_ = 5u; + alpha_ = 1; + beta_ = 0.75f; + k_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool LRNParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.LRNParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 local_size = 1 [default = 5]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_local_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &local_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float alpha = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_alpha(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &alpha_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float beta = 3 [default = 0.75]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_beta(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &beta_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::LRNParameter_NormRegion_IsValid(value)) { + set_norm_region(static_cast< ::opencv_caffe::LRNParameter_NormRegion >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 4, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional float k = 5 [default = 1]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { + set_has_k(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &k_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::LRNParameter_Engine_IsValid(value)) { + set_engine(static_cast< ::opencv_caffe::LRNParameter_Engine >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 6, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.LRNParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.LRNParameter) + return false; +#undef DO_ +} + +void LRNParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.LRNParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 local_size = 1 [default = 5]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->local_size(), output); + } + + // optional float alpha = 2 [default = 1]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->alpha(), output); + } + + // optional float beta = 3 [default = 0.75]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->beta(), output); + } + + // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->norm_region(), output); + } + + // optional float k = 5 [default = 1]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->k(), output); + } + + // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 6, this->engine(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.LRNParameter) +} + +::google::protobuf::uint8* LRNParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LRNParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 local_size = 1 [default = 5]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->local_size(), target); + } + + // optional float alpha = 2 [default = 1]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->alpha(), target); + } + + // optional float beta = 3 [default = 0.75]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->beta(), target); + } + + // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->norm_region(), target); + } + + // optional float k = 5 [default = 1]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->k(), target); + } + + // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 6, this->engine(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LRNParameter) + return target; +} + +size_t LRNParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LRNParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 63u) { + // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; + if (has_norm_region()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->norm_region()); + } + + // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; + if (has_engine()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); + } + + // optional uint32 local_size = 1 [default = 5]; + if (has_local_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->local_size()); + } + + // optional float alpha = 2 [default = 1]; + if (has_alpha()) { + total_size += 1 + 4; + } + + // optional float beta = 3 [default = 0.75]; + if (has_beta()) { + total_size += 1 + 4; + } + + // optional float k = 5 [default = 1]; + if (has_k()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LRNParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LRNParameter) + GOOGLE_DCHECK_NE(&from, this); + const LRNParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LRNParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LRNParameter) + MergeFrom(*source); + } +} + +void LRNParameter::MergeFrom(const LRNParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LRNParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + norm_region_ = from.norm_region_; + } + if (cached_has_bits & 0x00000002u) { + engine_ = from.engine_; + } + if (cached_has_bits & 0x00000004u) { + local_size_ = from.local_size_; + } + if (cached_has_bits & 0x00000008u) { + alpha_ = from.alpha_; + } + if (cached_has_bits & 0x00000010u) { + beta_ = from.beta_; + } + if (cached_has_bits & 0x00000020u) { + k_ = from.k_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void LRNParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LRNParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LRNParameter::CopyFrom(const LRNParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LRNParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LRNParameter::IsInitialized() const { + return true; +} + +void LRNParameter::Swap(LRNParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void LRNParameter::InternalSwap(LRNParameter* other) { + using std::swap; + swap(norm_region_, other->norm_region_); + swap(engine_, other->engine_); + swap(local_size_, other->local_size_); + swap(alpha_, other->alpha_); + swap(beta_, other->beta_); + swap(k_, other->k_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LRNParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MemoryDataParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MemoryDataParameter::kBatchSizeFieldNumber; +const int MemoryDataParameter::kChannelsFieldNumber; +const int MemoryDataParameter::kHeightFieldNumber; +const int MemoryDataParameter::kWidthFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MemoryDataParameter::MemoryDataParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMemoryDataParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.MemoryDataParameter) +} +MemoryDataParameter::MemoryDataParameter(const MemoryDataParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&batch_size_, &from.batch_size_, + static_cast(reinterpret_cast(&width_) - + reinterpret_cast(&batch_size_)) + sizeof(width_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.MemoryDataParameter) +} + +void MemoryDataParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&batch_size_, 0, static_cast( + reinterpret_cast(&width_) - + reinterpret_cast(&batch_size_)) + sizeof(width_)); +} + +MemoryDataParameter::~MemoryDataParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.MemoryDataParameter) + SharedDtor(); +} + +void MemoryDataParameter::SharedDtor() { +} + +void MemoryDataParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MemoryDataParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MemoryDataParameter& MemoryDataParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMemoryDataParameter(); + return *internal_default_instance(); +} + +MemoryDataParameter* MemoryDataParameter::New(::google::protobuf::Arena* arena) const { + MemoryDataParameter* n = new MemoryDataParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void MemoryDataParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.MemoryDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + ::memset(&batch_size_, 0, static_cast( + reinterpret_cast(&width_) - + reinterpret_cast(&batch_size_)) + sizeof(width_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MemoryDataParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.MemoryDataParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 batch_size = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_batch_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &batch_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 channels = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_channels(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &channels_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 height = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_height(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &height_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 width = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_width(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &width_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.MemoryDataParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.MemoryDataParameter) + return false; +#undef DO_ +} + +void MemoryDataParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.MemoryDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 batch_size = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->batch_size(), output); + } + + // optional uint32 channels = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->channels(), output); + } + + // optional uint32 height = 3; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output); + } + + // optional uint32 width = 4; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->width(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.MemoryDataParameter) +} + +::google::protobuf::uint8* MemoryDataParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.MemoryDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 batch_size = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->batch_size(), target); + } + + // optional uint32 channels = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->channels(), target); + } + + // optional uint32 height = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->height(), target); + } + + // optional uint32 width = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->width(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.MemoryDataParameter) + return target; +} + +size_t MemoryDataParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.MemoryDataParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional uint32 batch_size = 1; + if (has_batch_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->batch_size()); + } + + // optional uint32 channels = 2; + if (has_channels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->channels()); + } + + // optional uint32 height = 3; + if (has_height()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->height()); + } + + // optional uint32 width = 4; + if (has_width()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->width()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MemoryDataParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.MemoryDataParameter) + GOOGLE_DCHECK_NE(&from, this); + const MemoryDataParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.MemoryDataParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.MemoryDataParameter) + MergeFrom(*source); + } +} + +void MemoryDataParameter::MergeFrom(const MemoryDataParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.MemoryDataParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + batch_size_ = from.batch_size_; + } + if (cached_has_bits & 0x00000002u) { + channels_ = from.channels_; + } + if (cached_has_bits & 0x00000004u) { + height_ = from.height_; + } + if (cached_has_bits & 0x00000008u) { + width_ = from.width_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MemoryDataParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.MemoryDataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MemoryDataParameter::CopyFrom(const MemoryDataParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.MemoryDataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MemoryDataParameter::IsInitialized() const { + return true; +} + +void MemoryDataParameter::Swap(MemoryDataParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void MemoryDataParameter::InternalSwap(MemoryDataParameter* other) { + using std::swap; + swap(batch_size_, other->batch_size_); + swap(channels_, other->channels_); + swap(height_, other->height_); + swap(width_, other->width_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata MemoryDataParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void MVNParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MVNParameter::kNormalizeVarianceFieldNumber; +const int MVNParameter::kAcrossChannelsFieldNumber; +const int MVNParameter::kEpsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MVNParameter::MVNParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMVNParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.MVNParameter) +} +MVNParameter::MVNParameter(const MVNParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&across_channels_, &from.across_channels_, + static_cast(reinterpret_cast(&eps_) - + reinterpret_cast(&across_channels_)) + sizeof(eps_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.MVNParameter) +} + +void MVNParameter::SharedCtor() { + _cached_size_ = 0; + across_channels_ = false; + normalize_variance_ = true; + eps_ = 1e-09f; +} + +MVNParameter::~MVNParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.MVNParameter) + SharedDtor(); +} + +void MVNParameter::SharedDtor() { +} + +void MVNParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MVNParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MVNParameter& MVNParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMVNParameter(); + return *internal_default_instance(); +} + +MVNParameter* MVNParameter::New(::google::protobuf::Arena* arena) const { + MVNParameter* n = new MVNParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void MVNParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.MVNParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + across_channels_ = false; + normalize_variance_ = true; + eps_ = 1e-09f; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool MVNParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.MVNParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional bool normalize_variance = 1 [default = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_normalize_variance(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &normalize_variance_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool across_channels = 2 [default = false]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_across_channels(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &across_channels_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float eps = 3 [default = 1e-09]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_eps(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &eps_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.MVNParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.MVNParameter) + return false; +#undef DO_ +} + +void MVNParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.MVNParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool normalize_variance = 1 [default = true]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->normalize_variance(), output); + } + + // optional bool across_channels = 2 [default = false]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->across_channels(), output); + } + + // optional float eps = 3 [default = 1e-09]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->eps(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.MVNParameter) +} + +::google::protobuf::uint8* MVNParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.MVNParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bool normalize_variance = 1 [default = true]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->normalize_variance(), target); + } + + // optional bool across_channels = 2 [default = false]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->across_channels(), target); + } + + // optional float eps = 3 [default = 1e-09]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->eps(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.MVNParameter) + return target; +} + +size_t MVNParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.MVNParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional bool across_channels = 2 [default = false]; + if (has_across_channels()) { + total_size += 1 + 1; + } + + // optional bool normalize_variance = 1 [default = true]; + if (has_normalize_variance()) { + total_size += 1 + 1; + } + + // optional float eps = 3 [default = 1e-09]; + if (has_eps()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MVNParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.MVNParameter) + GOOGLE_DCHECK_NE(&from, this); + const MVNParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.MVNParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.MVNParameter) + MergeFrom(*source); + } +} + +void MVNParameter::MergeFrom(const MVNParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.MVNParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + across_channels_ = from.across_channels_; + } + if (cached_has_bits & 0x00000002u) { + normalize_variance_ = from.normalize_variance_; + } + if (cached_has_bits & 0x00000004u) { + eps_ = from.eps_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MVNParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.MVNParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MVNParameter::CopyFrom(const MVNParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.MVNParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MVNParameter::IsInitialized() const { + return true; +} + +void MVNParameter::Swap(MVNParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void MVNParameter::InternalSwap(MVNParameter* other) { + using std::swap; + swap(across_channels_, other->across_channels_); + swap(normalize_variance_, other->normalize_variance_); + swap(eps_, other->eps_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata MVNParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ParameterParameter::InitAsDefaultInstance() { + ::opencv_caffe::_ParameterParameter_default_instance_._instance.get_mutable()->shape_ = const_cast< ::opencv_caffe::BlobShape*>( + ::opencv_caffe::BlobShape::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterParameter::kShapeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterParameter::ParameterParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParameterParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ParameterParameter) +} +ParameterParameter::ParameterParameter(const ParameterParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_shape()) { + shape_ = new ::opencv_caffe::BlobShape(*from.shape_); + } else { + shape_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ParameterParameter) +} + +void ParameterParameter::SharedCtor() { + _cached_size_ = 0; + shape_ = NULL; +} + +ParameterParameter::~ParameterParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ParameterParameter) + SharedDtor(); +} + +void ParameterParameter::SharedDtor() { + if (this != internal_default_instance()) delete shape_; +} + +void ParameterParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ParameterParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ParameterParameter& ParameterParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParameterParameter(); + return *internal_default_instance(); +} + +ParameterParameter* ParameterParameter::New(::google::protobuf::Arena* arena) const { + ParameterParameter* n = new ParameterParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ParameterParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ParameterParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(shape_ != NULL); + shape_->Clear(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ParameterParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ParameterParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.BlobShape shape = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_shape())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ParameterParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ParameterParameter) + return false; +#undef DO_ +} + +void ParameterParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ParameterParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.BlobShape shape = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->shape_, output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ParameterParameter) +} + +::google::protobuf::uint8* ParameterParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ParameterParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.BlobShape shape = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->shape_, deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ParameterParameter) + return target; +} + +size_t ParameterParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ParameterParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .opencv_caffe.BlobShape shape = 1; + if (has_shape()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->shape_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ParameterParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ParameterParameter) + GOOGLE_DCHECK_NE(&from, this); + const ParameterParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ParameterParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ParameterParameter) + MergeFrom(*source); + } +} + +void ParameterParameter::MergeFrom(const ParameterParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ParameterParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_shape()) { + mutable_shape()->::opencv_caffe::BlobShape::MergeFrom(from.shape()); + } +} + +void ParameterParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ParameterParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterParameter::CopyFrom(const ParameterParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ParameterParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterParameter::IsInitialized() const { + return true; +} + +void ParameterParameter::Swap(ParameterParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterParameter::InternalSwap(ParameterParameter* other) { + using std::swap; + swap(shape_, other->shape_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ParameterParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PoolingParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PoolingParameter::kPoolFieldNumber; +const int PoolingParameter::kPadFieldNumber; +const int PoolingParameter::kPadHFieldNumber; +const int PoolingParameter::kPadWFieldNumber; +const int PoolingParameter::kKernelSizeFieldNumber; +const int PoolingParameter::kKernelHFieldNumber; +const int PoolingParameter::kKernelWFieldNumber; +const int PoolingParameter::kStrideFieldNumber; +const int PoolingParameter::kStrideHFieldNumber; +const int PoolingParameter::kStrideWFieldNumber; +const int PoolingParameter::kEngineFieldNumber; +const int PoolingParameter::kGlobalPoolingFieldNumber; +const int PoolingParameter::kCeilModeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PoolingParameter::PoolingParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPoolingParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.PoolingParameter) +} +PoolingParameter::PoolingParameter(const PoolingParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&pool_, &from.pool_, + static_cast(reinterpret_cast(&ceil_mode_) - + reinterpret_cast(&pool_)) + sizeof(ceil_mode_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.PoolingParameter) +} + +void PoolingParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&pool_, 0, static_cast( + reinterpret_cast(&global_pooling_) - + reinterpret_cast(&pool_)) + sizeof(global_pooling_)); + stride_ = 1u; + ceil_mode_ = true; +} + +PoolingParameter::~PoolingParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.PoolingParameter) + SharedDtor(); +} + +void PoolingParameter::SharedDtor() { +} + +void PoolingParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PoolingParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PoolingParameter& PoolingParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPoolingParameter(); + return *internal_default_instance(); +} + +PoolingParameter* PoolingParameter::New(::google::protobuf::Arena* arena) const { + PoolingParameter* n = new PoolingParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void PoolingParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.PoolingParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + ::memset(&pool_, 0, static_cast( + reinterpret_cast(&pad_h_) - + reinterpret_cast(&pool_)) + sizeof(pad_h_)); + } + if (cached_has_bits & 7936u) { + ::memset(&pad_w_, 0, static_cast( + reinterpret_cast(&global_pooling_) - + reinterpret_cast(&pad_w_)) + sizeof(global_pooling_)); + stride_ = 1u; + ceil_mode_ = true; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PoolingParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.PoolingParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::PoolingParameter_PoolMethod_IsValid(value)) { + set_pool(static_cast< ::opencv_caffe::PoolingParameter_PoolMethod >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 kernel_size = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_kernel_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &kernel_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 stride = 3 [default = 1]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_stride(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &stride_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 pad = 4 [default = 0]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_pad(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &pad_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 kernel_h = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_kernel_h(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &kernel_h_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 kernel_w = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_kernel_w(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &kernel_w_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 stride_h = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + set_has_stride_h(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &stride_h_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 stride_w = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + set_has_stride_w(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &stride_w_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 pad_h = 9 [default = 0]; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { + set_has_pad_h(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &pad_h_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 pad_w = 10 [default = 0]; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_pad_w(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &pad_w_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::PoolingParameter_Engine_IsValid(value)) { + set_engine(static_cast< ::opencv_caffe::PoolingParameter_Engine >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 11, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional bool global_pooling = 12 [default = false]; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + set_has_global_pooling(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &global_pooling_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool ceil_mode = 13 [default = true]; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { + set_has_ceil_mode(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &ceil_mode_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.PoolingParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.PoolingParameter) + return false; +#undef DO_ +} + +void PoolingParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.PoolingParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->pool(), output); + } + + // optional uint32 kernel_size = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->kernel_size(), output); + } + + // optional uint32 stride = 3 [default = 1]; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->stride(), output); + } + + // optional uint32 pad = 4 [default = 0]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->pad(), output); + } + + // optional uint32 kernel_h = 5; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->kernel_h(), output); + } + + // optional uint32 kernel_w = 6; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->kernel_w(), output); + } + + // optional uint32 stride_h = 7; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->stride_h(), output); + } + + // optional uint32 stride_w = 8; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->stride_w(), output); + } + + // optional uint32 pad_h = 9 [default = 0]; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->pad_h(), output); + } + + // optional uint32 pad_w = 10 [default = 0]; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->pad_w(), output); + } + + // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 11, this->engine(), output); + } + + // optional bool global_pooling = 12 [default = false]; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->global_pooling(), output); + } + + // optional bool ceil_mode = 13 [default = true]; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->ceil_mode(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.PoolingParameter) +} + +::google::protobuf::uint8* PoolingParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PoolingParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->pool(), target); + } + + // optional uint32 kernel_size = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->kernel_size(), target); + } + + // optional uint32 stride = 3 [default = 1]; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->stride(), target); + } + + // optional uint32 pad = 4 [default = 0]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->pad(), target); + } + + // optional uint32 kernel_h = 5; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->kernel_h(), target); + } + + // optional uint32 kernel_w = 6; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->kernel_w(), target); + } + + // optional uint32 stride_h = 7; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->stride_h(), target); + } + + // optional uint32 stride_w = 8; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->stride_w(), target); + } + + // optional uint32 pad_h = 9 [default = 0]; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->pad_h(), target); + } + + // optional uint32 pad_w = 10 [default = 0]; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->pad_w(), target); + } + + // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 11, this->engine(), target); + } + + // optional bool global_pooling = 12 [default = false]; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->global_pooling(), target); + } + + // optional bool ceil_mode = 13 [default = true]; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->ceil_mode(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PoolingParameter) + return target; +} + +size_t PoolingParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PoolingParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX]; + if (has_pool()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool()); + } + + // optional uint32 kernel_size = 2; + if (has_kernel_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->kernel_size()); + } + + // optional uint32 pad = 4 [default = 0]; + if (has_pad()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pad()); + } + + // optional uint32 kernel_h = 5; + if (has_kernel_h()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->kernel_h()); + } + + // optional uint32 kernel_w = 6; + if (has_kernel_w()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->kernel_w()); + } + + // optional uint32 stride_h = 7; + if (has_stride_h()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->stride_h()); + } + + // optional uint32 stride_w = 8; + if (has_stride_w()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->stride_w()); + } + + // optional uint32 pad_h = 9 [default = 0]; + if (has_pad_h()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pad_h()); + } + + } + if (_has_bits_[8 / 32] & 7936u) { + // optional uint32 pad_w = 10 [default = 0]; + if (has_pad_w()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pad_w()); + } + + // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; + if (has_engine()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); + } + + // optional bool global_pooling = 12 [default = false]; + if (has_global_pooling()) { + total_size += 1 + 1; + } + + // optional uint32 stride = 3 [default = 1]; + if (has_stride()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->stride()); + } + + // optional bool ceil_mode = 13 [default = true]; + if (has_ceil_mode()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PoolingParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PoolingParameter) + GOOGLE_DCHECK_NE(&from, this); + const PoolingParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PoolingParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PoolingParameter) + MergeFrom(*source); + } +} + +void PoolingParameter::MergeFrom(const PoolingParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PoolingParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + pool_ = from.pool_; + } + if (cached_has_bits & 0x00000002u) { + kernel_size_ = from.kernel_size_; + } + if (cached_has_bits & 0x00000004u) { + pad_ = from.pad_; + } + if (cached_has_bits & 0x00000008u) { + kernel_h_ = from.kernel_h_; + } + if (cached_has_bits & 0x00000010u) { + kernel_w_ = from.kernel_w_; + } + if (cached_has_bits & 0x00000020u) { + stride_h_ = from.stride_h_; + } + if (cached_has_bits & 0x00000040u) { + stride_w_ = from.stride_w_; + } + if (cached_has_bits & 0x00000080u) { + pad_h_ = from.pad_h_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 7936u) { + if (cached_has_bits & 0x00000100u) { + pad_w_ = from.pad_w_; + } + if (cached_has_bits & 0x00000200u) { + engine_ = from.engine_; + } + if (cached_has_bits & 0x00000400u) { + global_pooling_ = from.global_pooling_; + } + if (cached_has_bits & 0x00000800u) { + stride_ = from.stride_; + } + if (cached_has_bits & 0x00001000u) { + ceil_mode_ = from.ceil_mode_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PoolingParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PoolingParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PoolingParameter::CopyFrom(const PoolingParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PoolingParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PoolingParameter::IsInitialized() const { + return true; +} + +void PoolingParameter::Swap(PoolingParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void PoolingParameter::InternalSwap(PoolingParameter* other) { + using std::swap; + swap(pool_, other->pool_); + swap(kernel_size_, other->kernel_size_); + swap(pad_, other->pad_); + swap(kernel_h_, other->kernel_h_); + swap(kernel_w_, other->kernel_w_); + swap(stride_h_, other->stride_h_); + swap(stride_w_, other->stride_w_); + swap(pad_h_, other->pad_h_); + swap(pad_w_, other->pad_w_); + swap(engine_, other->engine_); + swap(global_pooling_, other->global_pooling_); + swap(stride_, other->stride_); + swap(ceil_mode_, other->ceil_mode_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata PoolingParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PowerParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PowerParameter::kPowerFieldNumber; +const int PowerParameter::kScaleFieldNumber; +const int PowerParameter::kShiftFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PowerParameter::PowerParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPowerParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.PowerParameter) +} +PowerParameter::PowerParameter(const PowerParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&shift_, &from.shift_, + static_cast(reinterpret_cast(&scale_) - + reinterpret_cast(&shift_)) + sizeof(scale_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.PowerParameter) +} + +void PowerParameter::SharedCtor() { + _cached_size_ = 0; + shift_ = 0; + power_ = 1; + scale_ = 1; +} + +PowerParameter::~PowerParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.PowerParameter) + SharedDtor(); +} + +void PowerParameter::SharedDtor() { +} + +void PowerParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PowerParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PowerParameter& PowerParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPowerParameter(); + return *internal_default_instance(); +} + +PowerParameter* PowerParameter::New(::google::protobuf::Arena* arena) const { + PowerParameter* n = new PowerParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void PowerParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.PowerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + shift_ = 0; + power_ = 1; + scale_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PowerParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.PowerParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float power = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_power(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &power_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float scale = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_scale(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &scale_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float shift = 3 [default = 0]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_shift(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &shift_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.PowerParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.PowerParameter) + return false; +#undef DO_ +} + +void PowerParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.PowerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float power = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->power(), output); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); + } + + // optional float shift = 3 [default = 0]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->shift(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.PowerParameter) +} + +::google::protobuf::uint8* PowerParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PowerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float power = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->power(), target); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); + } + + // optional float shift = 3 [default = 0]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->shift(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PowerParameter) + return target; +} + +size_t PowerParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PowerParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional float shift = 3 [default = 0]; + if (has_shift()) { + total_size += 1 + 4; + } + + // optional float power = 1 [default = 1]; + if (has_power()) { + total_size += 1 + 4; + } + + // optional float scale = 2 [default = 1]; + if (has_scale()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PowerParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PowerParameter) + GOOGLE_DCHECK_NE(&from, this); + const PowerParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PowerParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PowerParameter) + MergeFrom(*source); + } +} + +void PowerParameter::MergeFrom(const PowerParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PowerParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + shift_ = from.shift_; + } + if (cached_has_bits & 0x00000002u) { + power_ = from.power_; + } + if (cached_has_bits & 0x00000004u) { + scale_ = from.scale_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PowerParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PowerParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PowerParameter::CopyFrom(const PowerParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PowerParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PowerParameter::IsInitialized() const { + return true; +} + +void PowerParameter::Swap(PowerParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void PowerParameter::InternalSwap(PowerParameter* other) { + using std::swap; + swap(shift_, other->shift_); + swap(power_, other->power_); + swap(scale_, other->scale_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata PowerParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PythonParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PythonParameter::kModuleFieldNumber; +const int PythonParameter::kLayerFieldNumber; +const int PythonParameter::kParamStrFieldNumber; +const int PythonParameter::kShareInParallelFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PythonParameter::PythonParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPythonParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.PythonParameter) +} +PythonParameter::PythonParameter(const PythonParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + module_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_module()) { + module_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.module_); + } + layer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_layer()) { + layer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.layer_); + } + param_str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_param_str()) { + param_str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.param_str_); + } + share_in_parallel_ = from.share_in_parallel_; + // @@protoc_insertion_point(copy_constructor:opencv_caffe.PythonParameter) +} + +void PythonParameter::SharedCtor() { + _cached_size_ = 0; + module_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + layer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + param_str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + share_in_parallel_ = false; +} + +PythonParameter::~PythonParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.PythonParameter) + SharedDtor(); +} + +void PythonParameter::SharedDtor() { + module_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + layer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + param_str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void PythonParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PythonParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PythonParameter& PythonParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPythonParameter(); + return *internal_default_instance(); +} + +PythonParameter* PythonParameter::New(::google::protobuf::Arena* arena) const { + PythonParameter* n = new PythonParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void PythonParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.PythonParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!module_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*module_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(!layer_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*layer_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(!param_str_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*param_str_.UnsafeRawStringPointer())->clear(); + } + } + share_in_parallel_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool PythonParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.PythonParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string module = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_module())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->module().data(), static_cast(this->module().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.PythonParameter.module"); + } else { + goto handle_unusual; + } + break; + } + + // optional string layer = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_layer())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->layer().data(), static_cast(this->layer().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.PythonParameter.layer"); + } else { + goto handle_unusual; + } + break; + } + + // optional string param_str = 3 [default = ""]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_param_str())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->param_str().data(), static_cast(this->param_str().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.PythonParameter.param_str"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool share_in_parallel = 4 [default = false]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_share_in_parallel(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &share_in_parallel_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.PythonParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.PythonParameter) + return false; +#undef DO_ +} + +void PythonParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.PythonParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string module = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->module().data(), static_cast(this->module().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.PythonParameter.module"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->module(), output); + } + + // optional string layer = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->layer().data(), static_cast(this->layer().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.PythonParameter.layer"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->layer(), output); + } + + // optional string param_str = 3 [default = ""]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->param_str().data(), static_cast(this->param_str().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.PythonParameter.param_str"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->param_str(), output); + } + + // optional bool share_in_parallel = 4 [default = false]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->share_in_parallel(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.PythonParameter) +} + +::google::protobuf::uint8* PythonParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PythonParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string module = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->module().data(), static_cast(this->module().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.PythonParameter.module"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->module(), target); + } + + // optional string layer = 2; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->layer().data(), static_cast(this->layer().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.PythonParameter.layer"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->layer(), target); + } + + // optional string param_str = 3 [default = ""]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->param_str().data(), static_cast(this->param_str().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.PythonParameter.param_str"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->param_str(), target); + } + + // optional bool share_in_parallel = 4 [default = false]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->share_in_parallel(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PythonParameter) + return target; +} + +size_t PythonParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PythonParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 15u) { + // optional string module = 1; + if (has_module()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->module()); + } + + // optional string layer = 2; + if (has_layer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->layer()); + } + + // optional string param_str = 3 [default = ""]; + if (has_param_str()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->param_str()); + } + + // optional bool share_in_parallel = 4 [default = false]; + if (has_share_in_parallel()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PythonParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PythonParameter) + GOOGLE_DCHECK_NE(&from, this); + const PythonParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PythonParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PythonParameter) + MergeFrom(*source); + } +} + +void PythonParameter::MergeFrom(const PythonParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PythonParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + set_has_module(); + module_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.module_); + } + if (cached_has_bits & 0x00000002u) { + set_has_layer(); + layer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.layer_); + } + if (cached_has_bits & 0x00000004u) { + set_has_param_str(); + param_str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.param_str_); + } + if (cached_has_bits & 0x00000008u) { + share_in_parallel_ = from.share_in_parallel_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PythonParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PythonParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PythonParameter::CopyFrom(const PythonParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PythonParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PythonParameter::IsInitialized() const { + return true; +} + +void PythonParameter::Swap(PythonParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void PythonParameter::InternalSwap(PythonParameter* other) { + using std::swap; + module_.Swap(&other->module_); + layer_.Swap(&other->layer_); + param_str_.Swap(&other->param_str_); + swap(share_in_parallel_, other->share_in_parallel_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata PythonParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void RecurrentParameter::InitAsDefaultInstance() { + ::opencv_caffe::_RecurrentParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); + ::opencv_caffe::_RecurrentParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RecurrentParameter::kNumOutputFieldNumber; +const int RecurrentParameter::kWeightFillerFieldNumber; +const int RecurrentParameter::kBiasFillerFieldNumber; +const int RecurrentParameter::kDebugInfoFieldNumber; +const int RecurrentParameter::kExposeHiddenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RecurrentParameter::RecurrentParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsRecurrentParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.RecurrentParameter) +} +RecurrentParameter::RecurrentParameter(const RecurrentParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_weight_filler()) { + weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_); + } else { + weight_filler_ = NULL; + } + if (from.has_bias_filler()) { + bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_); + } else { + bias_filler_ = NULL; + } + ::memcpy(&num_output_, &from.num_output_, + static_cast(reinterpret_cast(&expose_hidden_) - + reinterpret_cast(&num_output_)) + sizeof(expose_hidden_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.RecurrentParameter) +} + +void RecurrentParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&weight_filler_, 0, static_cast( + reinterpret_cast(&expose_hidden_) - + reinterpret_cast(&weight_filler_)) + sizeof(expose_hidden_)); +} + +RecurrentParameter::~RecurrentParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.RecurrentParameter) + SharedDtor(); +} + +void RecurrentParameter::SharedDtor() { + if (this != internal_default_instance()) delete weight_filler_; + if (this != internal_default_instance()) delete bias_filler_; +} + +void RecurrentParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RecurrentParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const RecurrentParameter& RecurrentParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsRecurrentParameter(); + return *internal_default_instance(); +} + +RecurrentParameter* RecurrentParameter::New(::google::protobuf::Arena* arena) const { + RecurrentParameter* n = new RecurrentParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void RecurrentParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.RecurrentParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(weight_filler_ != NULL); + weight_filler_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(bias_filler_ != NULL); + bias_filler_->Clear(); + } + } + if (cached_has_bits & 28u) { + ::memset(&num_output_, 0, static_cast( + reinterpret_cast(&expose_hidden_) - + reinterpret_cast(&num_output_)) + sizeof(expose_hidden_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool RecurrentParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.RecurrentParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 num_output = 1 [default = 0]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_num_output(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &num_output_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter weight_filler = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_weight_filler())); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter bias_filler = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_bias_filler())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool debug_info = 4 [default = false]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_debug_info(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &debug_info_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool expose_hidden = 5 [default = false]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_expose_hidden(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &expose_hidden_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.RecurrentParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.RecurrentParameter) + return false; +#undef DO_ +} + +void RecurrentParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.RecurrentParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_output = 1 [default = 0]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output); + } + + // optional .opencv_caffe.FillerParameter weight_filler = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->weight_filler_, output); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->bias_filler_, output); + } + + // optional bool debug_info = 4 [default = false]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->debug_info(), output); + } + + // optional bool expose_hidden = 5 [default = false]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->expose_hidden(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.RecurrentParameter) +} + +::google::protobuf::uint8* RecurrentParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.RecurrentParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 num_output = 1 [default = 0]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target); + } + + // optional .opencv_caffe.FillerParameter weight_filler = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->weight_filler_, deterministic, target); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 3; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->bias_filler_, deterministic, target); + } + + // optional bool debug_info = 4 [default = false]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->debug_info(), target); + } + + // optional bool expose_hidden = 5 [default = false]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->expose_hidden(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.RecurrentParameter) + return target; +} + +size_t RecurrentParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.RecurrentParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional .opencv_caffe.FillerParameter weight_filler = 2; + if (has_weight_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->weight_filler_); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 3; + if (has_bias_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->bias_filler_); + } + + // optional uint32 num_output = 1 [default = 0]; + if (has_num_output()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_output()); + } + + // optional bool debug_info = 4 [default = false]; + if (has_debug_info()) { + total_size += 1 + 1; + } + + // optional bool expose_hidden = 5 [default = false]; + if (has_expose_hidden()) { + total_size += 1 + 1; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RecurrentParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.RecurrentParameter) + GOOGLE_DCHECK_NE(&from, this); + const RecurrentParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.RecurrentParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.RecurrentParameter) + MergeFrom(*source); + } +} + +void RecurrentParameter::MergeFrom(const RecurrentParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.RecurrentParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); + } + if (cached_has_bits & 0x00000002u) { + mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); + } + if (cached_has_bits & 0x00000004u) { + num_output_ = from.num_output_; + } + if (cached_has_bits & 0x00000008u) { + debug_info_ = from.debug_info_; + } + if (cached_has_bits & 0x00000010u) { + expose_hidden_ = from.expose_hidden_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void RecurrentParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.RecurrentParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RecurrentParameter::CopyFrom(const RecurrentParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.RecurrentParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RecurrentParameter::IsInitialized() const { + return true; +} + +void RecurrentParameter::Swap(RecurrentParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void RecurrentParameter::InternalSwap(RecurrentParameter* other) { + using std::swap; + swap(weight_filler_, other->weight_filler_); + swap(bias_filler_, other->bias_filler_); + swap(num_output_, other->num_output_); + swap(debug_info_, other->debug_info_); + swap(expose_hidden_, other->expose_hidden_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata RecurrentParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ReductionParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ReductionParameter::kOperationFieldNumber; +const int ReductionParameter::kAxisFieldNumber; +const int ReductionParameter::kCoeffFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ReductionParameter::ReductionParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReductionParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ReductionParameter) +} +ReductionParameter::ReductionParameter(const ReductionParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&axis_, &from.axis_, + static_cast(reinterpret_cast(&coeff_) - + reinterpret_cast(&axis_)) + sizeof(coeff_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ReductionParameter) +} + +void ReductionParameter::SharedCtor() { + _cached_size_ = 0; + axis_ = 0; + operation_ = 1; + coeff_ = 1; +} + +ReductionParameter::~ReductionParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ReductionParameter) + SharedDtor(); +} + +void ReductionParameter::SharedDtor() { +} + +void ReductionParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReductionParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ReductionParameter& ReductionParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReductionParameter(); + return *internal_default_instance(); +} + +ReductionParameter* ReductionParameter::New(::google::protobuf::Arena* arena) const { + ReductionParameter* n = new ReductionParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ReductionParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ReductionParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + axis_ = 0; + operation_ = 1; + coeff_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ReductionParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ReductionParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::ReductionParameter_ReductionOp_IsValid(value)) { + set_operation(static_cast< ::opencv_caffe::ReductionParameter_ReductionOp >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional int32 axis = 2 [default = 0]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float coeff = 3 [default = 1]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { + set_has_coeff(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &coeff_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ReductionParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ReductionParameter) + return false; +#undef DO_ +} + +void ReductionParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ReductionParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->operation(), output); + } + + // optional int32 axis = 2 [default = 0]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); + } + + // optional float coeff = 3 [default = 1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->coeff(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ReductionParameter) +} + +::google::protobuf::uint8* ReductionParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ReductionParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->operation(), target); + } + + // optional int32 axis = 2 [default = 0]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); + } + + // optional float coeff = 3 [default = 1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->coeff(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ReductionParameter) + return target; +} + +size_t ReductionParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ReductionParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional int32 axis = 2 [default = 0]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; + if (has_operation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation()); + } + + // optional float coeff = 3 [default = 1]; + if (has_coeff()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReductionParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ReductionParameter) + GOOGLE_DCHECK_NE(&from, this); + const ReductionParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ReductionParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ReductionParameter) + MergeFrom(*source); + } +} + +void ReductionParameter::MergeFrom(const ReductionParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ReductionParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + axis_ = from.axis_; + } + if (cached_has_bits & 0x00000002u) { + operation_ = from.operation_; + } + if (cached_has_bits & 0x00000004u) { + coeff_ = from.coeff_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ReductionParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ReductionParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReductionParameter::CopyFrom(const ReductionParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ReductionParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReductionParameter::IsInitialized() const { + return true; +} + +void ReductionParameter::Swap(ReductionParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ReductionParameter::InternalSwap(ReductionParameter* other) { + using std::swap; + swap(axis_, other->axis_); + swap(operation_, other->operation_); + swap(coeff_, other->coeff_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ReductionParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ReLUParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ReLUParameter::kNegativeSlopeFieldNumber; +const int ReLUParameter::kEngineFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ReLUParameter::ReLUParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReLUParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ReLUParameter) +} +ReLUParameter::ReLUParameter(const ReLUParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&negative_slope_, &from.negative_slope_, + static_cast(reinterpret_cast(&engine_) - + reinterpret_cast(&negative_slope_)) + sizeof(engine_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ReLUParameter) +} + +void ReLUParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&negative_slope_, 0, static_cast( + reinterpret_cast(&engine_) - + reinterpret_cast(&negative_slope_)) + sizeof(engine_)); +} + +ReLUParameter::~ReLUParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ReLUParameter) + SharedDtor(); +} + +void ReLUParameter::SharedDtor() { +} + +void ReLUParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReLUParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ReLUParameter& ReLUParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReLUParameter(); + return *internal_default_instance(); +} + +ReLUParameter* ReLUParameter::New(::google::protobuf::Arena* arena) const { + ReLUParameter* n = new ReLUParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ReLUParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ReLUParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + ::memset(&negative_slope_, 0, static_cast( + reinterpret_cast(&engine_) - + reinterpret_cast(&negative_slope_)) + sizeof(engine_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ReLUParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ReLUParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float negative_slope = 1 [default = 0]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_negative_slope(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &negative_slope_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::ReLUParameter_Engine_IsValid(value)) { + set_engine(static_cast< ::opencv_caffe::ReLUParameter_Engine >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 2, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ReLUParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ReLUParameter) + return false; +#undef DO_ +} + +void ReLUParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ReLUParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float negative_slope = 1 [default = 0]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->negative_slope(), output); + } + + // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->engine(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ReLUParameter) +} + +::google::protobuf::uint8* ReLUParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ReLUParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float negative_slope = 1 [default = 0]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->negative_slope(), target); + } + + // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->engine(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ReLUParameter) + return target; +} + +size_t ReLUParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ReLUParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional float negative_slope = 1 [default = 0]; + if (has_negative_slope()) { + total_size += 1 + 4; + } + + // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT]; + if (has_engine()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReLUParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ReLUParameter) + GOOGLE_DCHECK_NE(&from, this); + const ReLUParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ReLUParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ReLUParameter) + MergeFrom(*source); + } +} + +void ReLUParameter::MergeFrom(const ReLUParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ReLUParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + negative_slope_ = from.negative_slope_; + } + if (cached_has_bits & 0x00000002u) { + engine_ = from.engine_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ReLUParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ReLUParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReLUParameter::CopyFrom(const ReLUParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ReLUParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReLUParameter::IsInitialized() const { + return true; +} + +void ReLUParameter::Swap(ReLUParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ReLUParameter::InternalSwap(ReLUParameter* other) { + using std::swap; + swap(negative_slope_, other->negative_slope_); + swap(engine_, other->engine_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ReLUParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ReshapeParameter::InitAsDefaultInstance() { + ::opencv_caffe::_ReshapeParameter_default_instance_._instance.get_mutable()->shape_ = const_cast< ::opencv_caffe::BlobShape*>( + ::opencv_caffe::BlobShape::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ReshapeParameter::kShapeFieldNumber; +const int ReshapeParameter::kAxisFieldNumber; +const int ReshapeParameter::kNumAxesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ReshapeParameter::ReshapeParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReshapeParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ReshapeParameter) +} +ReshapeParameter::ReshapeParameter(const ReshapeParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_shape()) { + shape_ = new ::opencv_caffe::BlobShape(*from.shape_); + } else { + shape_ = NULL; + } + ::memcpy(&axis_, &from.axis_, + static_cast(reinterpret_cast(&num_axes_) - + reinterpret_cast(&axis_)) + sizeof(num_axes_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ReshapeParameter) +} + +void ReshapeParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&shape_, 0, static_cast( + reinterpret_cast(&axis_) - + reinterpret_cast(&shape_)) + sizeof(axis_)); + num_axes_ = -1; +} + +ReshapeParameter::~ReshapeParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ReshapeParameter) + SharedDtor(); +} + +void ReshapeParameter::SharedDtor() { + if (this != internal_default_instance()) delete shape_; +} + +void ReshapeParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReshapeParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ReshapeParameter& ReshapeParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReshapeParameter(); + return *internal_default_instance(); +} + +ReshapeParameter* ReshapeParameter::New(::google::protobuf::Arena* arena) const { + ReshapeParameter* n = new ReshapeParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ReshapeParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ReshapeParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(shape_ != NULL); + shape_->Clear(); + } + if (cached_has_bits & 6u) { + axis_ = 0; + num_axes_ = -1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ReshapeParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ReshapeParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.BlobShape shape = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_shape())); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 axis = 2 [default = 0]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 num_axes = 3 [default = -1]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_num_axes(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &num_axes_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ReshapeParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ReshapeParameter) + return false; +#undef DO_ +} + +void ReshapeParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ReshapeParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.BlobShape shape = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->shape_, output); + } + + // optional int32 axis = 2 [default = 0]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); + } + + // optional int32 num_axes = 3 [default = -1]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->num_axes(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ReshapeParameter) +} + +::google::protobuf::uint8* ReshapeParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ReshapeParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.BlobShape shape = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->shape_, deterministic, target); + } + + // optional int32 axis = 2 [default = 0]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); + } + + // optional int32 num_axes = 3 [default = -1]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->num_axes(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ReshapeParameter) + return target; +} + +size_t ReshapeParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ReshapeParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional .opencv_caffe.BlobShape shape = 1; + if (has_shape()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->shape_); + } + + // optional int32 axis = 2 [default = 0]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + // optional int32 num_axes = 3 [default = -1]; + if (has_num_axes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->num_axes()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReshapeParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ReshapeParameter) + GOOGLE_DCHECK_NE(&from, this); + const ReshapeParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ReshapeParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ReshapeParameter) + MergeFrom(*source); + } +} + +void ReshapeParameter::MergeFrom(const ReshapeParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ReshapeParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + mutable_shape()->::opencv_caffe::BlobShape::MergeFrom(from.shape()); + } + if (cached_has_bits & 0x00000002u) { + axis_ = from.axis_; + } + if (cached_has_bits & 0x00000004u) { + num_axes_ = from.num_axes_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ReshapeParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ReshapeParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReshapeParameter::CopyFrom(const ReshapeParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ReshapeParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReshapeParameter::IsInitialized() const { + return true; +} + +void ReshapeParameter::Swap(ReshapeParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ReshapeParameter::InternalSwap(ReshapeParameter* other) { + using std::swap; + swap(shape_, other->shape_); + swap(axis_, other->axis_); + swap(num_axes_, other->num_axes_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ReshapeParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ScaleParameter::InitAsDefaultInstance() { + ::opencv_caffe::_ScaleParameter_default_instance_._instance.get_mutable()->filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); + ::opencv_caffe::_ScaleParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ScaleParameter::kAxisFieldNumber; +const int ScaleParameter::kNumAxesFieldNumber; +const int ScaleParameter::kFillerFieldNumber; +const int ScaleParameter::kBiasTermFieldNumber; +const int ScaleParameter::kBiasFillerFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ScaleParameter::ScaleParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsScaleParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ScaleParameter) +} +ScaleParameter::ScaleParameter(const ScaleParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_filler()) { + filler_ = new ::opencv_caffe::FillerParameter(*from.filler_); + } else { + filler_ = NULL; + } + if (from.has_bias_filler()) { + bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_); + } else { + bias_filler_ = NULL; + } + ::memcpy(&bias_term_, &from.bias_term_, + static_cast(reinterpret_cast(&num_axes_) - + reinterpret_cast(&bias_term_)) + sizeof(num_axes_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ScaleParameter) +} + +void ScaleParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&filler_, 0, static_cast( + reinterpret_cast(&bias_term_) - + reinterpret_cast(&filler_)) + sizeof(bias_term_)); + axis_ = 1; + num_axes_ = 1; +} + +ScaleParameter::~ScaleParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ScaleParameter) + SharedDtor(); +} + +void ScaleParameter::SharedDtor() { + if (this != internal_default_instance()) delete filler_; + if (this != internal_default_instance()) delete bias_filler_; +} + +void ScaleParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ScaleParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ScaleParameter& ScaleParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsScaleParameter(); + return *internal_default_instance(); +} + +ScaleParameter* ScaleParameter::New(::google::protobuf::Arena* arena) const { + ScaleParameter* n = new ScaleParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ScaleParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ScaleParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(filler_ != NULL); + filler_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(bias_filler_ != NULL); + bias_filler_->Clear(); + } + } + if (cached_has_bits & 28u) { + bias_term_ = false; + axis_ = 1; + num_axes_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ScaleParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ScaleParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 axis = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 num_axes = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_num_axes(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &num_axes_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter filler = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_filler())); + } else { + goto handle_unusual; + } + break; + } + + // optional bool bias_term = 4 [default = false]; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_bias_term(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &bias_term_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_bias_filler())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ScaleParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ScaleParameter) + return false; +#undef DO_ +} + +void ScaleParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ScaleParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 1]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); + } + + // optional int32 num_axes = 2 [default = 1]; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_axes(), output); + } + + // optional .opencv_caffe.FillerParameter filler = 3; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->filler_, output); + } + + // optional bool bias_term = 4 [default = false]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->bias_term(), output); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->bias_filler_, output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ScaleParameter) +} + +::google::protobuf::uint8* ScaleParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ScaleParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 1]; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); + } + + // optional int32 num_axes = 2 [default = 1]; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_axes(), target); + } + + // optional .opencv_caffe.FillerParameter filler = 3; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->filler_, deterministic, target); + } + + // optional bool bias_term = 4 [default = false]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->bias_term(), target); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->bias_filler_, deterministic, target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ScaleParameter) + return target; +} + +size_t ScaleParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ScaleParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 31u) { + // optional .opencv_caffe.FillerParameter filler = 3; + if (has_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->filler_); + } + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + if (has_bias_filler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->bias_filler_); + } + + // optional bool bias_term = 4 [default = false]; + if (has_bias_term()) { + total_size += 1 + 1; + } + + // optional int32 axis = 1 [default = 1]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + // optional int32 num_axes = 2 [default = 1]; + if (has_num_axes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->num_axes()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ScaleParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ScaleParameter) + GOOGLE_DCHECK_NE(&from, this); + const ScaleParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ScaleParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ScaleParameter) + MergeFrom(*source); + } +} + +void ScaleParameter::MergeFrom(const ScaleParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ScaleParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 31u) { + if (cached_has_bits & 0x00000001u) { + mutable_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.filler()); + } + if (cached_has_bits & 0x00000002u) { + mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); + } + if (cached_has_bits & 0x00000004u) { + bias_term_ = from.bias_term_; + } + if (cached_has_bits & 0x00000008u) { + axis_ = from.axis_; + } + if (cached_has_bits & 0x00000010u) { + num_axes_ = from.num_axes_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void ScaleParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ScaleParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ScaleParameter::CopyFrom(const ScaleParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ScaleParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ScaleParameter::IsInitialized() const { + return true; +} + +void ScaleParameter::Swap(ScaleParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ScaleParameter::InternalSwap(ScaleParameter* other) { + using std::swap; + swap(filler_, other->filler_); + swap(bias_filler_, other->bias_filler_); + swap(bias_term_, other->bias_term_); + swap(axis_, other->axis_); + swap(num_axes_, other->num_axes_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ScaleParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SigmoidParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SigmoidParameter::kEngineFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SigmoidParameter::SigmoidParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSigmoidParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.SigmoidParameter) +} +SigmoidParameter::SigmoidParameter(const SigmoidParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + engine_ = from.engine_; + // @@protoc_insertion_point(copy_constructor:opencv_caffe.SigmoidParameter) +} + +void SigmoidParameter::SharedCtor() { + _cached_size_ = 0; + engine_ = 0; +} + +SigmoidParameter::~SigmoidParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.SigmoidParameter) + SharedDtor(); +} + +void SigmoidParameter::SharedDtor() { +} + +void SigmoidParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SigmoidParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SigmoidParameter& SigmoidParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSigmoidParameter(); + return *internal_default_instance(); +} + +SigmoidParameter* SigmoidParameter::New(::google::protobuf::Arena* arena) const { + SigmoidParameter* n = new SigmoidParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SigmoidParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.SigmoidParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + engine_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SigmoidParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.SigmoidParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::SigmoidParameter_Engine_IsValid(value)) { + set_engine(static_cast< ::opencv_caffe::SigmoidParameter_Engine >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.SigmoidParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.SigmoidParameter) + return false; +#undef DO_ +} + +void SigmoidParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.SigmoidParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->engine(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.SigmoidParameter) +} + +::google::protobuf::uint8* SigmoidParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SigmoidParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->engine(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SigmoidParameter) + return target; +} + +size_t SigmoidParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SigmoidParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT]; + if (has_engine()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SigmoidParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SigmoidParameter) + GOOGLE_DCHECK_NE(&from, this); + const SigmoidParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SigmoidParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SigmoidParameter) + MergeFrom(*source); + } +} + +void SigmoidParameter::MergeFrom(const SigmoidParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SigmoidParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_engine()) { + set_engine(from.engine()); + } +} + +void SigmoidParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SigmoidParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SigmoidParameter::CopyFrom(const SigmoidParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SigmoidParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SigmoidParameter::IsInitialized() const { + return true; +} + +void SigmoidParameter::Swap(SigmoidParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void SigmoidParameter::InternalSwap(SigmoidParameter* other) { + using std::swap; + swap(engine_, other->engine_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SigmoidParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SliceParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SliceParameter::kAxisFieldNumber; +const int SliceParameter::kSlicePointFieldNumber; +const int SliceParameter::kSliceDimFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SliceParameter::SliceParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSliceParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.SliceParameter) +} +SliceParameter::SliceParameter(const SliceParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + slice_point_(from.slice_point_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&slice_dim_, &from.slice_dim_, + static_cast(reinterpret_cast(&axis_) - + reinterpret_cast(&slice_dim_)) + sizeof(axis_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.SliceParameter) +} + +void SliceParameter::SharedCtor() { + _cached_size_ = 0; + slice_dim_ = 1u; + axis_ = 1; +} + +SliceParameter::~SliceParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.SliceParameter) + SharedDtor(); +} + +void SliceParameter::SharedDtor() { +} + +void SliceParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SliceParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SliceParameter& SliceParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSliceParameter(); + return *internal_default_instance(); +} + +SliceParameter* SliceParameter::New(::google::protobuf::Arena* arena) const { + SliceParameter* n = new SliceParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SliceParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.SliceParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + slice_point_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + slice_dim_ = 1u; + axis_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SliceParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.SliceParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 slice_dim = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_slice_dim(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &slice_dim_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated uint32 slice_point = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 16u, input, this->mutable_slice_point()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_slice_point()))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 axis = 3 [default = 1]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.SliceParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.SliceParameter) + return false; +#undef DO_ +} + +void SliceParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.SliceParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 slice_dim = 1 [default = 1]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->slice_dim(), output); + } + + // repeated uint32 slice_point = 2; + for (int i = 0, n = this->slice_point_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32( + 2, this->slice_point(i), output); + } + + // optional int32 axis = 3 [default = 1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->axis(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.SliceParameter) +} + +::google::protobuf::uint8* SliceParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SliceParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 slice_dim = 1 [default = 1]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->slice_dim(), target); + } + + // repeated uint32 slice_point = 2; + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32ToArray(2, this->slice_point_, target); + + // optional int32 axis = 3 [default = 1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->axis(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SliceParameter) + return target; +} + +size_t SliceParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SliceParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated uint32 slice_point = 2; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->slice_point_); + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->slice_point_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 3u) { + // optional uint32 slice_dim = 1 [default = 1]; + if (has_slice_dim()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->slice_dim()); + } + + // optional int32 axis = 3 [default = 1]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SliceParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SliceParameter) + GOOGLE_DCHECK_NE(&from, this); + const SliceParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SliceParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SliceParameter) + MergeFrom(*source); + } +} + +void SliceParameter::MergeFrom(const SliceParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SliceParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + slice_point_.MergeFrom(from.slice_point_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + slice_dim_ = from.slice_dim_; + } + if (cached_has_bits & 0x00000002u) { + axis_ = from.axis_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void SliceParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SliceParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SliceParameter::CopyFrom(const SliceParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SliceParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SliceParameter::IsInitialized() const { + return true; +} + +void SliceParameter::Swap(SliceParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void SliceParameter::InternalSwap(SliceParameter* other) { + using std::swap; + slice_point_.InternalSwap(&other->slice_point_); + swap(slice_dim_, other->slice_dim_); + swap(axis_, other->axis_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SliceParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SoftmaxParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SoftmaxParameter::kEngineFieldNumber; +const int SoftmaxParameter::kAxisFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SoftmaxParameter::SoftmaxParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSoftmaxParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.SoftmaxParameter) +} +SoftmaxParameter::SoftmaxParameter(const SoftmaxParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&engine_, &from.engine_, + static_cast(reinterpret_cast(&axis_) - + reinterpret_cast(&engine_)) + sizeof(axis_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.SoftmaxParameter) +} + +void SoftmaxParameter::SharedCtor() { + _cached_size_ = 0; + engine_ = 0; + axis_ = 1; +} + +SoftmaxParameter::~SoftmaxParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.SoftmaxParameter) + SharedDtor(); +} + +void SoftmaxParameter::SharedDtor() { +} + +void SoftmaxParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SoftmaxParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SoftmaxParameter& SoftmaxParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSoftmaxParameter(); + return *internal_default_instance(); +} + +SoftmaxParameter* SoftmaxParameter::New(::google::protobuf::Arena* arena) const { + SoftmaxParameter* n = new SoftmaxParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SoftmaxParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.SoftmaxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + engine_ = 0; + axis_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SoftmaxParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.SoftmaxParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::SoftmaxParameter_Engine_IsValid(value)) { + set_engine(static_cast< ::opencv_caffe::SoftmaxParameter_Engine >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional int32 axis = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.SoftmaxParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.SoftmaxParameter) + return false; +#undef DO_ +} + +void SoftmaxParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.SoftmaxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->engine(), output); + } + + // optional int32 axis = 2 [default = 1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.SoftmaxParameter) +} + +::google::protobuf::uint8* SoftmaxParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SoftmaxParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->engine(), target); + } + + // optional int32 axis = 2 [default = 1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SoftmaxParameter) + return target; +} + +size_t SoftmaxParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SoftmaxParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT]; + if (has_engine()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); + } + + // optional int32 axis = 2 [default = 1]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SoftmaxParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SoftmaxParameter) + GOOGLE_DCHECK_NE(&from, this); + const SoftmaxParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SoftmaxParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SoftmaxParameter) + MergeFrom(*source); + } +} + +void SoftmaxParameter::MergeFrom(const SoftmaxParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SoftmaxParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + engine_ = from.engine_; + } + if (cached_has_bits & 0x00000002u) { + axis_ = from.axis_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void SoftmaxParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SoftmaxParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SoftmaxParameter::CopyFrom(const SoftmaxParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SoftmaxParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SoftmaxParameter::IsInitialized() const { + return true; +} + +void SoftmaxParameter::Swap(SoftmaxParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void SoftmaxParameter::InternalSwap(SoftmaxParameter* other) { + using std::swap; + swap(engine_, other->engine_); + swap(axis_, other->axis_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SoftmaxParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TanHParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TanHParameter::kEngineFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TanHParameter::TanHParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTanHParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.TanHParameter) +} +TanHParameter::TanHParameter(const TanHParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + engine_ = from.engine_; + // @@protoc_insertion_point(copy_constructor:opencv_caffe.TanHParameter) +} + +void TanHParameter::SharedCtor() { + _cached_size_ = 0; + engine_ = 0; +} + +TanHParameter::~TanHParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.TanHParameter) + SharedDtor(); +} + +void TanHParameter::SharedDtor() { +} + +void TanHParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TanHParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TanHParameter& TanHParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTanHParameter(); + return *internal_default_instance(); +} + +TanHParameter* TanHParameter::New(::google::protobuf::Arena* arena) const { + TanHParameter* n = new TanHParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TanHParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.TanHParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + engine_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TanHParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.TanHParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::TanHParameter_Engine_IsValid(value)) { + set_engine(static_cast< ::opencv_caffe::TanHParameter_Engine >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 1, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.TanHParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.TanHParameter) + return false; +#undef DO_ +} + +void TanHParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.TanHParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->engine(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.TanHParameter) +} + +::google::protobuf::uint8* TanHParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.TanHParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->engine(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.TanHParameter) + return target; +} + +size_t TanHParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.TanHParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT]; + if (has_engine()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TanHParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.TanHParameter) + GOOGLE_DCHECK_NE(&from, this); + const TanHParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.TanHParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.TanHParameter) + MergeFrom(*source); + } +} + +void TanHParameter::MergeFrom(const TanHParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.TanHParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_engine()) { + set_engine(from.engine()); + } +} + +void TanHParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.TanHParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TanHParameter::CopyFrom(const TanHParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.TanHParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TanHParameter::IsInitialized() const { + return true; +} + +void TanHParameter::Swap(TanHParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void TanHParameter::InternalSwap(TanHParameter* other) { + using std::swap; + swap(engine_, other->engine_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TanHParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TileParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TileParameter::kAxisFieldNumber; +const int TileParameter::kTilesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TileParameter::TileParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTileParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.TileParameter) +} +TileParameter::TileParameter(const TileParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&tiles_, &from.tiles_, + static_cast(reinterpret_cast(&axis_) - + reinterpret_cast(&tiles_)) + sizeof(axis_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.TileParameter) +} + +void TileParameter::SharedCtor() { + _cached_size_ = 0; + tiles_ = 0; + axis_ = 1; +} + +TileParameter::~TileParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.TileParameter) + SharedDtor(); +} + +void TileParameter::SharedDtor() { +} + +void TileParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TileParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TileParameter& TileParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTileParameter(); + return *internal_default_instance(); +} + +TileParameter* TileParameter::New(::google::protobuf::Arena* arena) const { + TileParameter* n = new TileParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TileParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.TileParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 3u) { + tiles_ = 0; + axis_ = 1; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool TileParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.TileParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional int32 axis = 1 [default = 1]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_axis(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &axis_))); + } else { + goto handle_unusual; + } + break; + } + + // optional int32 tiles = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + set_has_tiles(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &tiles_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.TileParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.TileParameter) + return false; +#undef DO_ +} + +void TileParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.TileParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output); + } + + // optional int32 tiles = 2; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->tiles(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.TileParameter) +} + +::google::protobuf::uint8* TileParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.TileParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 axis = 1 [default = 1]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target); + } + + // optional int32 tiles = 2; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->tiles(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.TileParameter) + return target; +} + +size_t TileParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.TileParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 3u) { + // optional int32 tiles = 2; + if (has_tiles()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->tiles()); + } + + // optional int32 axis = 1 [default = 1]; + if (has_axis()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->axis()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TileParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.TileParameter) + GOOGLE_DCHECK_NE(&from, this); + const TileParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.TileParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.TileParameter) + MergeFrom(*source); + } +} + +void TileParameter::MergeFrom(const TileParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.TileParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { + tiles_ = from.tiles_; + } + if (cached_has_bits & 0x00000002u) { + axis_ = from.axis_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void TileParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.TileParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TileParameter::CopyFrom(const TileParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.TileParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TileParameter::IsInitialized() const { + return true; +} + +void TileParameter::Swap(TileParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void TileParameter::InternalSwap(TileParameter* other) { + using std::swap; + swap(tiles_, other->tiles_); + swap(axis_, other->axis_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TileParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ThresholdParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ThresholdParameter::kThresholdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ThresholdParameter::ThresholdParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsThresholdParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.ThresholdParameter) +} +ThresholdParameter::ThresholdParameter(const ThresholdParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + threshold_ = from.threshold_; + // @@protoc_insertion_point(copy_constructor:opencv_caffe.ThresholdParameter) +} + +void ThresholdParameter::SharedCtor() { + _cached_size_ = 0; + threshold_ = 0; +} + +ThresholdParameter::~ThresholdParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.ThresholdParameter) + SharedDtor(); +} + +void ThresholdParameter::SharedDtor() { +} + +void ThresholdParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ThresholdParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ThresholdParameter& ThresholdParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsThresholdParameter(); + return *internal_default_instance(); +} + +ThresholdParameter* ThresholdParameter::New(::google::protobuf::Arena* arena) const { + ThresholdParameter* n = new ThresholdParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ThresholdParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.ThresholdParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + threshold_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool ThresholdParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.ThresholdParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional float threshold = 1 [default = 0]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { + set_has_threshold(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &threshold_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.ThresholdParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.ThresholdParameter) + return false; +#undef DO_ +} + +void ThresholdParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.ThresholdParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float threshold = 1 [default = 0]; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->threshold(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.ThresholdParameter) +} + +::google::protobuf::uint8* ThresholdParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ThresholdParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional float threshold = 1 [default = 0]; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->threshold(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ThresholdParameter) + return target; +} + +size_t ThresholdParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ThresholdParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // optional float threshold = 1 [default = 0]; + if (has_threshold()) { + total_size += 1 + 4; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ThresholdParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ThresholdParameter) + GOOGLE_DCHECK_NE(&from, this); + const ThresholdParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ThresholdParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ThresholdParameter) + MergeFrom(*source); + } +} + +void ThresholdParameter::MergeFrom(const ThresholdParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ThresholdParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_threshold()) { + set_threshold(from.threshold()); + } +} + +void ThresholdParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ThresholdParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ThresholdParameter::CopyFrom(const ThresholdParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ThresholdParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ThresholdParameter::IsInitialized() const { + return true; +} + +void ThresholdParameter::Swap(ThresholdParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void ThresholdParameter::InternalSwap(ThresholdParameter* other) { + using std::swap; + swap(threshold_, other->threshold_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ThresholdParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WindowDataParameter::InitAsDefaultInstance() { +} +::google::protobuf::internal::ExplicitlyConstructed< ::std::string> WindowDataParameter::_default_crop_mode_; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WindowDataParameter::kSourceFieldNumber; +const int WindowDataParameter::kScaleFieldNumber; +const int WindowDataParameter::kMeanFileFieldNumber; +const int WindowDataParameter::kBatchSizeFieldNumber; +const int WindowDataParameter::kCropSizeFieldNumber; +const int WindowDataParameter::kMirrorFieldNumber; +const int WindowDataParameter::kFgThresholdFieldNumber; +const int WindowDataParameter::kBgThresholdFieldNumber; +const int WindowDataParameter::kFgFractionFieldNumber; +const int WindowDataParameter::kContextPadFieldNumber; +const int WindowDataParameter::kCropModeFieldNumber; +const int WindowDataParameter::kCacheImagesFieldNumber; +const int WindowDataParameter::kRootFolderFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WindowDataParameter::WindowDataParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsWindowDataParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.WindowDataParameter) +} +WindowDataParameter::WindowDataParameter(const WindowDataParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source()) { + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_mean_file()) { + mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); + } + crop_mode_.UnsafeSetDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get()); + if (from.has_crop_mode()) { + crop_mode_.AssignWithDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get(), from.crop_mode_); + } + root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_root_folder()) { + root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_); + } + ::memcpy(&batch_size_, &from.batch_size_, + static_cast(reinterpret_cast(&fg_fraction_) - + reinterpret_cast(&batch_size_)) + sizeof(fg_fraction_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.WindowDataParameter) +} + +void WindowDataParameter::SharedCtor() { + _cached_size_ = 0; + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + crop_mode_.UnsafeSetDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get()); + root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&batch_size_, 0, static_cast( + reinterpret_cast(&context_pad_) - + reinterpret_cast(&batch_size_)) + sizeof(context_pad_)); + scale_ = 1; + fg_threshold_ = 0.5f; + bg_threshold_ = 0.5f; + fg_fraction_ = 0.25f; +} + +WindowDataParameter::~WindowDataParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.WindowDataParameter) + SharedDtor(); +} + +void WindowDataParameter::SharedDtor() { + source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + crop_mode_.DestroyNoArena(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get()); + root_folder_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void WindowDataParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WindowDataParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WindowDataParameter& WindowDataParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsWindowDataParameter(); + return *internal_default_instance(); +} + +WindowDataParameter* WindowDataParameter::New(::google::protobuf::Arena* arena) const { + WindowDataParameter* n = new WindowDataParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WindowDataParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.WindowDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 15u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*source_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(!mean_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*mean_file_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(!crop_mode_.IsDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get())); + (*crop_mode_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get()); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(!root_folder_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*root_folder_.UnsafeRawStringPointer())->clear(); + } + } + if (cached_has_bits & 240u) { + ::memset(&batch_size_, 0, static_cast( + reinterpret_cast(&cache_images_) - + reinterpret_cast(&batch_size_)) + sizeof(cache_images_)); + } + if (cached_has_bits & 7936u) { + context_pad_ = 0u; + scale_ = 1; + fg_threshold_ = 0.5f; + bg_threshold_ = 0.5f; + fg_fraction_ = 0.25f; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool WindowDataParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.WindowDataParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional string source = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_source())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.WindowDataParameter.source"); + } else { + goto handle_unusual; + } + break; + } + + // optional float scale = 2 [default = 1]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { + set_has_scale(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &scale_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string mean_file = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mean_file())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.WindowDataParameter.mean_file"); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 batch_size = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + set_has_batch_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &batch_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 crop_size = 5 [default = 0]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + set_has_crop_size(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &crop_size_))); + } else { + goto handle_unusual; + } + break; + } + + // optional bool mirror = 6 [default = false]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + set_has_mirror(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &mirror_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float fg_threshold = 7 [default = 0.5]; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) { + set_has_fg_threshold(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &fg_threshold_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float bg_threshold = 8 [default = 0.5]; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) { + set_has_bg_threshold(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &bg_threshold_))); + } else { + goto handle_unusual; + } + break; + } + + // optional float fg_fraction = 9 [default = 0.25]; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) { + set_has_fg_fraction(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &fg_fraction_))); + } else { + goto handle_unusual; + } + break; + } + + // optional uint32 context_pad = 10 [default = 0]; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { + set_has_context_pad(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &context_pad_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string crop_mode = 11 [default = "warp"]; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_crop_mode())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->crop_mode().data(), static_cast(this->crop_mode().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.WindowDataParameter.crop_mode"); + } else { + goto handle_unusual; + } + break; + } + + // optional bool cache_images = 12 [default = false]; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + set_has_cache_images(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &cache_images_))); + } else { + goto handle_unusual; + } + break; + } + + // optional string root_folder = 13 [default = ""]; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_root_folder())); + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->root_folder().data(), static_cast(this->root_folder().length()), + ::google::protobuf::internal::WireFormat::PARSE, + "opencv_caffe.WindowDataParameter.root_folder"); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.WindowDataParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.WindowDataParameter) + return false; +#undef DO_ +} + +void WindowDataParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.WindowDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.WindowDataParameter.source"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->source(), output); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000200u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); + } + + // optional string mean_file = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.WindowDataParameter.mean_file"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->mean_file(), output); + } + + // optional uint32 batch_size = 4; + if (cached_has_bits & 0x00000010u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->batch_size(), output); + } + + // optional uint32 crop_size = 5 [default = 0]; + if (cached_has_bits & 0x00000020u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->crop_size(), output); + } + + // optional bool mirror = 6 [default = false]; + if (cached_has_bits & 0x00000040u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->mirror(), output); + } + + // optional float fg_threshold = 7 [default = 0.5]; + if (cached_has_bits & 0x00000400u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->fg_threshold(), output); + } + + // optional float bg_threshold = 8 [default = 0.5]; + if (cached_has_bits & 0x00000800u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->bg_threshold(), output); + } + + // optional float fg_fraction = 9 [default = 0.25]; + if (cached_has_bits & 0x00001000u) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->fg_fraction(), output); + } + + // optional uint32 context_pad = 10 [default = 0]; + if (cached_has_bits & 0x00000100u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->context_pad(), output); + } + + // optional string crop_mode = 11 [default = "warp"]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->crop_mode().data(), static_cast(this->crop_mode().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.WindowDataParameter.crop_mode"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 11, this->crop_mode(), output); + } + + // optional bool cache_images = 12 [default = false]; + if (cached_has_bits & 0x00000080u) { + ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->cache_images(), output); + } + + // optional string root_folder = 13 [default = ""]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->root_folder().data(), static_cast(this->root_folder().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.WindowDataParameter.root_folder"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 13, this->root_folder(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.WindowDataParameter) +} + +::google::protobuf::uint8* WindowDataParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.WindowDataParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string source = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->source().data(), static_cast(this->source().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.WindowDataParameter.source"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->source(), target); + } + + // optional float scale = 2 [default = 1]; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target); + } + + // optional string mean_file = 3; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->mean_file().data(), static_cast(this->mean_file().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.WindowDataParameter.mean_file"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->mean_file(), target); + } + + // optional uint32 batch_size = 4; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->batch_size(), target); + } + + // optional uint32 crop_size = 5 [default = 0]; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->crop_size(), target); + } + + // optional bool mirror = 6 [default = false]; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->mirror(), target); + } + + // optional float fg_threshold = 7 [default = 0.5]; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->fg_threshold(), target); + } + + // optional float bg_threshold = 8 [default = 0.5]; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->bg_threshold(), target); + } + + // optional float fg_fraction = 9 [default = 0.25]; + if (cached_has_bits & 0x00001000u) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->fg_fraction(), target); + } + + // optional uint32 context_pad = 10 [default = 0]; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->context_pad(), target); + } + + // optional string crop_mode = 11 [default = "warp"]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->crop_mode().data(), static_cast(this->crop_mode().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.WindowDataParameter.crop_mode"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 11, this->crop_mode(), target); + } + + // optional bool cache_images = 12 [default = false]; + if (cached_has_bits & 0x00000080u) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->cache_images(), target); + } + + // optional string root_folder = 13 [default = ""]; + if (cached_has_bits & 0x00000008u) { + ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( + this->root_folder().data(), static_cast(this->root_folder().length()), + ::google::protobuf::internal::WireFormat::SERIALIZE, + "opencv_caffe.WindowDataParameter.root_folder"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 13, this->root_folder(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.WindowDataParameter) + return target; +} + +size_t WindowDataParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.WindowDataParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 255u) { + // optional string source = 1; + if (has_source()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source()); + } + + // optional string mean_file = 3; + if (has_mean_file()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mean_file()); + } + + // optional string crop_mode = 11 [default = "warp"]; + if (has_crop_mode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->crop_mode()); + } + + // optional string root_folder = 13 [default = ""]; + if (has_root_folder()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->root_folder()); + } + + // optional uint32 batch_size = 4; + if (has_batch_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->batch_size()); + } + + // optional uint32 crop_size = 5 [default = 0]; + if (has_crop_size()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->crop_size()); + } + + // optional bool mirror = 6 [default = false]; + if (has_mirror()) { + total_size += 1 + 1; + } + + // optional bool cache_images = 12 [default = false]; + if (has_cache_images()) { + total_size += 1 + 1; + } + + } + if (_has_bits_[8 / 32] & 7936u) { + // optional uint32 context_pad = 10 [default = 0]; + if (has_context_pad()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->context_pad()); + } + + // optional float scale = 2 [default = 1]; + if (has_scale()) { + total_size += 1 + 4; + } + + // optional float fg_threshold = 7 [default = 0.5]; + if (has_fg_threshold()) { + total_size += 1 + 4; + } + + // optional float bg_threshold = 8 [default = 0.5]; + if (has_bg_threshold()) { + total_size += 1 + 4; + } + + // optional float fg_fraction = 9 [default = 0.25]; + if (has_fg_fraction()) { + total_size += 1 + 4; + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WindowDataParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.WindowDataParameter) + GOOGLE_DCHECK_NE(&from, this); + const WindowDataParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.WindowDataParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.WindowDataParameter) + MergeFrom(*source); + } +} + +void WindowDataParameter::MergeFrom(const WindowDataParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.WindowDataParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + set_has_source(); + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + if (cached_has_bits & 0x00000002u) { + set_has_mean_file(); + mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_); + } + if (cached_has_bits & 0x00000004u) { + set_has_crop_mode(); + crop_mode_.AssignWithDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get(), from.crop_mode_); + } + if (cached_has_bits & 0x00000008u) { + set_has_root_folder(); + root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_); + } + if (cached_has_bits & 0x00000010u) { + batch_size_ = from.batch_size_; + } + if (cached_has_bits & 0x00000020u) { + crop_size_ = from.crop_size_; + } + if (cached_has_bits & 0x00000040u) { + mirror_ = from.mirror_; + } + if (cached_has_bits & 0x00000080u) { + cache_images_ = from.cache_images_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 7936u) { + if (cached_has_bits & 0x00000100u) { + context_pad_ = from.context_pad_; + } + if (cached_has_bits & 0x00000200u) { + scale_ = from.scale_; + } + if (cached_has_bits & 0x00000400u) { + fg_threshold_ = from.fg_threshold_; + } + if (cached_has_bits & 0x00000800u) { + bg_threshold_ = from.bg_threshold_; + } + if (cached_has_bits & 0x00001000u) { + fg_fraction_ = from.fg_fraction_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void WindowDataParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.WindowDataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WindowDataParameter::CopyFrom(const WindowDataParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.WindowDataParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WindowDataParameter::IsInitialized() const { + return true; +} + +void WindowDataParameter::Swap(WindowDataParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void WindowDataParameter::InternalSwap(WindowDataParameter* other) { + using std::swap; + source_.Swap(&other->source_); + mean_file_.Swap(&other->mean_file_); + crop_mode_.Swap(&other->crop_mode_); + root_folder_.Swap(&other->root_folder_); + swap(batch_size_, other->batch_size_); + swap(crop_size_, other->crop_size_); + swap(mirror_, other->mirror_); + swap(cache_images_, other->cache_images_); + swap(context_pad_, other->context_pad_); + swap(scale_, other->scale_); + swap(fg_threshold_, other->fg_threshold_); + swap(bg_threshold_, other->bg_threshold_); + swap(fg_fraction_, other->fg_fraction_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WindowDataParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SPPParameter::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SPPParameter::kPyramidHeightFieldNumber; +const int SPPParameter::kPoolFieldNumber; +const int SPPParameter::kEngineFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SPPParameter::SPPParameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSPPParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:opencv_caffe.SPPParameter) +} +SPPParameter::SPPParameter(const SPPParameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&pyramid_height_, &from.pyramid_height_, + static_cast(reinterpret_cast(&engine_) - + reinterpret_cast(&pyramid_height_)) + sizeof(engine_)); + // @@protoc_insertion_point(copy_constructor:opencv_caffe.SPPParameter) +} + +void SPPParameter::SharedCtor() { + _cached_size_ = 0; + ::memset(&pyramid_height_, 0, static_cast( + reinterpret_cast(&engine_) - + reinterpret_cast(&pyramid_height_)) + sizeof(engine_)); +} + +SPPParameter::~SPPParameter() { + // @@protoc_insertion_point(destructor:opencv_caffe.SPPParameter) + SharedDtor(); +} + +void SPPParameter::SharedDtor() { +} + +void SPPParameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SPPParameter::descriptor() { + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SPPParameter& SPPParameter::default_instance() { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSPPParameter(); + return *internal_default_instance(); +} + +SPPParameter* SPPParameter::New(::google::protobuf::Arena* arena) const { + SPPParameter* n = new SPPParameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SPPParameter::Clear() { +// @@protoc_insertion_point(message_clear_start:opencv_caffe.SPPParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + ::memset(&pyramid_height_, 0, static_cast( + reinterpret_cast(&engine_) - + reinterpret_cast(&pyramid_height_)) + sizeof(engine_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +bool SPPParameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:opencv_caffe.SPPParameter) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 pyramid_height = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + set_has_pyramid_height(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &pyramid_height_))); + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::SPPParameter_PoolMethod_IsValid(value)) { + set_pool(static_cast< ::opencv_caffe::SPPParameter_PoolMethod >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 2, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::opencv_caffe::SPPParameter_Engine_IsValid(value)) { + set_engine(static_cast< ::opencv_caffe::SPPParameter_Engine >(value)); + } else { + mutable_unknown_fields()->AddVarint( + 6, static_cast< ::google::protobuf::uint64>(value)); + } + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:opencv_caffe.SPPParameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:opencv_caffe.SPPParameter) + return false; +#undef DO_ +} + +void SPPParameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:opencv_caffe.SPPParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 pyramid_height = 1; + if (cached_has_bits & 0x00000001u) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->pyramid_height(), output); + } + + // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; + if (cached_has_bits & 0x00000002u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->pool(), output); + } + + // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; + if (cached_has_bits & 0x00000004u) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 6, this->engine(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:opencv_caffe.SPPParameter) +} + +::google::protobuf::uint8* SPPParameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SPPParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint32 pyramid_height = 1; + if (cached_has_bits & 0x00000001u) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->pyramid_height(), target); + } + + // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->pool(), target); + } + + // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 6, this->engine(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SPPParameter) + return target; +} + +size_t SPPParameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SPPParameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + if (_has_bits_[0 / 32] & 7u) { + // optional uint32 pyramid_height = 1; + if (has_pyramid_height()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pyramid_height()); + } + + // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX]; + if (has_pool()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool()); + } + + // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT]; + if (has_engine()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine()); + } + + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SPPParameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SPPParameter) + GOOGLE_DCHECK_NE(&from, this); + const SPPParameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SPPParameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SPPParameter) + MergeFrom(*source); + } +} + +void SPPParameter::MergeFrom(const SPPParameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SPPParameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + pyramid_height_ = from.pyramid_height_; + } + if (cached_has_bits & 0x00000002u) { + pool_ = from.pool_; + } + if (cached_has_bits & 0x00000004u) { + engine_ = from.engine_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void SPPParameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SPPParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SPPParameter::CopyFrom(const SPPParameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SPPParameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SPPParameter::IsInitialized() const { + return true; +} + +void SPPParameter::Swap(SPPParameter* other) { + if (other == this) return; + InternalSwap(other); +} +void SPPParameter::InternalSwap(SPPParameter* other) { + using std::swap; + swap(pyramid_height_, other->pyramid_height_); + swap(pool_, other->pool_); + swap(engine_, other->engine_); + swap(_has_bits_[0], other->_has_bits_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SPPParameter::GetMetadata() const { + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void V1LayerParameter::InitAsDefaultInstance() { + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->accuracy_param_ = const_cast< ::opencv_caffe::AccuracyParameter*>( + ::opencv_caffe::AccuracyParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->argmax_param_ = const_cast< ::opencv_caffe::ArgMaxParameter*>( + ::opencv_caffe::ArgMaxParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->concat_param_ = const_cast< ::opencv_caffe::ConcatParameter*>( + ::opencv_caffe::ConcatParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->contrastive_loss_param_ = const_cast< ::opencv_caffe::ContrastiveLossParameter*>( + ::opencv_caffe::ContrastiveLossParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->convolution_param_ = const_cast< ::opencv_caffe::ConvolutionParameter*>( + ::opencv_caffe::ConvolutionParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->data_param_ = const_cast< ::opencv_caffe::DataParameter*>( + ::opencv_caffe::DataParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->dropout_param_ = const_cast< ::opencv_caffe::DropoutParameter*>( + ::opencv_caffe::DropoutParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->dummy_data_param_ = const_cast< ::opencv_caffe::DummyDataParameter*>( + ::opencv_caffe::DummyDataParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->eltwise_param_ = const_cast< ::opencv_caffe::EltwiseParameter*>( + ::opencv_caffe::EltwiseParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->exp_param_ = const_cast< ::opencv_caffe::ExpParameter*>( + ::opencv_caffe::ExpParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->hdf5_data_param_ = const_cast< ::opencv_caffe::HDF5DataParameter*>( + ::opencv_caffe::HDF5DataParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->hdf5_output_param_ = const_cast< ::opencv_caffe::HDF5OutputParameter*>( + ::opencv_caffe::HDF5OutputParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->hinge_loss_param_ = const_cast< ::opencv_caffe::HingeLossParameter*>( + ::opencv_caffe::HingeLossParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->image_data_param_ = const_cast< ::opencv_caffe::ImageDataParameter*>( + ::opencv_caffe::ImageDataParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->infogain_loss_param_ = const_cast< ::opencv_caffe::InfogainLossParameter*>( + ::opencv_caffe::InfogainLossParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->inner_product_param_ = const_cast< ::opencv_caffe::InnerProductParameter*>( + ::opencv_caffe::InnerProductParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->lrn_param_ = const_cast< ::opencv_caffe::LRNParameter*>( + ::opencv_caffe::LRNParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->memory_data_param_ = const_cast< ::opencv_caffe::MemoryDataParameter*>( + ::opencv_caffe::MemoryDataParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->mvn_param_ = const_cast< ::opencv_caffe::MVNParameter*>( + ::opencv_caffe::MVNParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->pooling_param_ = const_cast< ::opencv_caffe::PoolingParameter*>( + ::opencv_caffe::PoolingParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->power_param_ = const_cast< ::opencv_caffe::PowerParameter*>( + ::opencv_caffe::PowerParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->relu_param_ = const_cast< ::opencv_caffe::ReLUParameter*>( + ::opencv_caffe::ReLUParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->sigmoid_param_ = const_cast< ::opencv_caffe::SigmoidParameter*>( + ::opencv_caffe::SigmoidParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->softmax_param_ = const_cast< ::opencv_caffe::SoftmaxParameter*>( + ::opencv_caffe::SoftmaxParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->slice_param_ = const_cast< ::opencv_caffe::SliceParameter*>( + ::opencv_caffe::SliceParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->tanh_param_ = const_cast< ::opencv_caffe::TanHParameter*>( + ::opencv_caffe::TanHParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->threshold_param_ = const_cast< ::opencv_caffe::ThresholdParameter*>( + ::opencv_caffe::ThresholdParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->window_data_param_ = const_cast< ::opencv_caffe::WindowDataParameter*>( + ::opencv_caffe::WindowDataParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->transform_param_ = const_cast< ::opencv_caffe::TransformationParameter*>( + ::opencv_caffe::TransformationParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->loss_param_ = const_cast< ::opencv_caffe::LossParameter*>( + ::opencv_caffe::LossParameter::internal_default_instance()); + ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->layer_ = const_cast< ::opencv_caffe::V0LayerParameter*>( + ::opencv_caffe::V0LayerParameter::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int V1LayerParameter::kBottomFieldNumber; const int V1LayerParameter::kTopFieldNumber; @@ -46657,118 +35041,196 @@ const int V1LayerParameter::kLayerFieldNumber; V1LayerParameter::V1LayerParameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV1LayerParameter(); + } SharedCtor(); // @@protoc_insertion_point(constructor:opencv_caffe.V1LayerParameter) } - -void V1LayerParameter::InitAsDefaultInstance() { - accuracy_param_ = const_cast< ::opencv_caffe::AccuracyParameter*>( - ::opencv_caffe::AccuracyParameter::internal_default_instance()); - argmax_param_ = const_cast< ::opencv_caffe::ArgMaxParameter*>( - ::opencv_caffe::ArgMaxParameter::internal_default_instance()); - concat_param_ = const_cast< ::opencv_caffe::ConcatParameter*>( - ::opencv_caffe::ConcatParameter::internal_default_instance()); - contrastive_loss_param_ = const_cast< ::opencv_caffe::ContrastiveLossParameter*>( - ::opencv_caffe::ContrastiveLossParameter::internal_default_instance()); - convolution_param_ = const_cast< ::opencv_caffe::ConvolutionParameter*>( - ::opencv_caffe::ConvolutionParameter::internal_default_instance()); - data_param_ = const_cast< ::opencv_caffe::DataParameter*>( - ::opencv_caffe::DataParameter::internal_default_instance()); - dropout_param_ = const_cast< ::opencv_caffe::DropoutParameter*>( - ::opencv_caffe::DropoutParameter::internal_default_instance()); - dummy_data_param_ = const_cast< ::opencv_caffe::DummyDataParameter*>( - ::opencv_caffe::DummyDataParameter::internal_default_instance()); - eltwise_param_ = const_cast< ::opencv_caffe::EltwiseParameter*>( - ::opencv_caffe::EltwiseParameter::internal_default_instance()); - exp_param_ = const_cast< ::opencv_caffe::ExpParameter*>( - ::opencv_caffe::ExpParameter::internal_default_instance()); - hdf5_data_param_ = const_cast< ::opencv_caffe::HDF5DataParameter*>( - ::opencv_caffe::HDF5DataParameter::internal_default_instance()); - hdf5_output_param_ = const_cast< ::opencv_caffe::HDF5OutputParameter*>( - ::opencv_caffe::HDF5OutputParameter::internal_default_instance()); - hinge_loss_param_ = const_cast< ::opencv_caffe::HingeLossParameter*>( - ::opencv_caffe::HingeLossParameter::internal_default_instance()); - image_data_param_ = const_cast< ::opencv_caffe::ImageDataParameter*>( - ::opencv_caffe::ImageDataParameter::internal_default_instance()); - infogain_loss_param_ = const_cast< ::opencv_caffe::InfogainLossParameter*>( - ::opencv_caffe::InfogainLossParameter::internal_default_instance()); - inner_product_param_ = const_cast< ::opencv_caffe::InnerProductParameter*>( - ::opencv_caffe::InnerProductParameter::internal_default_instance()); - lrn_param_ = const_cast< ::opencv_caffe::LRNParameter*>( - ::opencv_caffe::LRNParameter::internal_default_instance()); - memory_data_param_ = const_cast< ::opencv_caffe::MemoryDataParameter*>( - ::opencv_caffe::MemoryDataParameter::internal_default_instance()); - mvn_param_ = const_cast< ::opencv_caffe::MVNParameter*>( - ::opencv_caffe::MVNParameter::internal_default_instance()); - pooling_param_ = const_cast< ::opencv_caffe::PoolingParameter*>( - ::opencv_caffe::PoolingParameter::internal_default_instance()); - power_param_ = const_cast< ::opencv_caffe::PowerParameter*>( - ::opencv_caffe::PowerParameter::internal_default_instance()); - relu_param_ = const_cast< ::opencv_caffe::ReLUParameter*>( - ::opencv_caffe::ReLUParameter::internal_default_instance()); - sigmoid_param_ = const_cast< ::opencv_caffe::SigmoidParameter*>( - ::opencv_caffe::SigmoidParameter::internal_default_instance()); - softmax_param_ = const_cast< ::opencv_caffe::SoftmaxParameter*>( - ::opencv_caffe::SoftmaxParameter::internal_default_instance()); - slice_param_ = const_cast< ::opencv_caffe::SliceParameter*>( - ::opencv_caffe::SliceParameter::internal_default_instance()); - tanh_param_ = const_cast< ::opencv_caffe::TanHParameter*>( - ::opencv_caffe::TanHParameter::internal_default_instance()); - threshold_param_ = const_cast< ::opencv_caffe::ThresholdParameter*>( - ::opencv_caffe::ThresholdParameter::internal_default_instance()); - window_data_param_ = const_cast< ::opencv_caffe::WindowDataParameter*>( - ::opencv_caffe::WindowDataParameter::internal_default_instance()); - transform_param_ = const_cast< ::opencv_caffe::TransformationParameter*>( - ::opencv_caffe::TransformationParameter::internal_default_instance()); - loss_param_ = const_cast< ::opencv_caffe::LossParameter*>( - ::opencv_caffe::LossParameter::internal_default_instance()); - layer_ = const_cast< ::opencv_caffe::V0LayerParameter*>( - ::opencv_caffe::V0LayerParameter::internal_default_instance()); -} - V1LayerParameter::V1LayerParameter(const V1LayerParameter& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + bottom_(from.bottom_), + top_(from.top_), + blobs_(from.blobs_), + blobs_lr_(from.blobs_lr_), + weight_decay_(from.weight_decay_), + include_(from.include_), + exclude_(from.exclude_), + loss_weight_(from.loss_weight_), + param_(from.param_), + blob_share_mode_(from.blob_share_mode_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_name()) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_layer()) { + layer_ = new ::opencv_caffe::V0LayerParameter(*from.layer_); + } else { + layer_ = NULL; + } + if (from.has_concat_param()) { + concat_param_ = new ::opencv_caffe::ConcatParameter(*from.concat_param_); + } else { + concat_param_ = NULL; + } + if (from.has_convolution_param()) { + convolution_param_ = new ::opencv_caffe::ConvolutionParameter(*from.convolution_param_); + } else { + convolution_param_ = NULL; + } + if (from.has_data_param()) { + data_param_ = new ::opencv_caffe::DataParameter(*from.data_param_); + } else { + data_param_ = NULL; + } + if (from.has_dropout_param()) { + dropout_param_ = new ::opencv_caffe::DropoutParameter(*from.dropout_param_); + } else { + dropout_param_ = NULL; + } + if (from.has_hdf5_data_param()) { + hdf5_data_param_ = new ::opencv_caffe::HDF5DataParameter(*from.hdf5_data_param_); + } else { + hdf5_data_param_ = NULL; + } + if (from.has_hdf5_output_param()) { + hdf5_output_param_ = new ::opencv_caffe::HDF5OutputParameter(*from.hdf5_output_param_); + } else { + hdf5_output_param_ = NULL; + } + if (from.has_image_data_param()) { + image_data_param_ = new ::opencv_caffe::ImageDataParameter(*from.image_data_param_); + } else { + image_data_param_ = NULL; + } + if (from.has_infogain_loss_param()) { + infogain_loss_param_ = new ::opencv_caffe::InfogainLossParameter(*from.infogain_loss_param_); + } else { + infogain_loss_param_ = NULL; + } + if (from.has_inner_product_param()) { + inner_product_param_ = new ::opencv_caffe::InnerProductParameter(*from.inner_product_param_); + } else { + inner_product_param_ = NULL; + } + if (from.has_lrn_param()) { + lrn_param_ = new ::opencv_caffe::LRNParameter(*from.lrn_param_); + } else { + lrn_param_ = NULL; + } + if (from.has_pooling_param()) { + pooling_param_ = new ::opencv_caffe::PoolingParameter(*from.pooling_param_); + } else { + pooling_param_ = NULL; + } + if (from.has_window_data_param()) { + window_data_param_ = new ::opencv_caffe::WindowDataParameter(*from.window_data_param_); + } else { + window_data_param_ = NULL; + } + if (from.has_power_param()) { + power_param_ = new ::opencv_caffe::PowerParameter(*from.power_param_); + } else { + power_param_ = NULL; + } + if (from.has_memory_data_param()) { + memory_data_param_ = new ::opencv_caffe::MemoryDataParameter(*from.memory_data_param_); + } else { + memory_data_param_ = NULL; + } + if (from.has_argmax_param()) { + argmax_param_ = new ::opencv_caffe::ArgMaxParameter(*from.argmax_param_); + } else { + argmax_param_ = NULL; + } + if (from.has_eltwise_param()) { + eltwise_param_ = new ::opencv_caffe::EltwiseParameter(*from.eltwise_param_); + } else { + eltwise_param_ = NULL; + } + if (from.has_threshold_param()) { + threshold_param_ = new ::opencv_caffe::ThresholdParameter(*from.threshold_param_); + } else { + threshold_param_ = NULL; + } + if (from.has_dummy_data_param()) { + dummy_data_param_ = new ::opencv_caffe::DummyDataParameter(*from.dummy_data_param_); + } else { + dummy_data_param_ = NULL; + } + if (from.has_accuracy_param()) { + accuracy_param_ = new ::opencv_caffe::AccuracyParameter(*from.accuracy_param_); + } else { + accuracy_param_ = NULL; + } + if (from.has_hinge_loss_param()) { + hinge_loss_param_ = new ::opencv_caffe::HingeLossParameter(*from.hinge_loss_param_); + } else { + hinge_loss_param_ = NULL; + } + if (from.has_relu_param()) { + relu_param_ = new ::opencv_caffe::ReLUParameter(*from.relu_param_); + } else { + relu_param_ = NULL; + } + if (from.has_slice_param()) { + slice_param_ = new ::opencv_caffe::SliceParameter(*from.slice_param_); + } else { + slice_param_ = NULL; + } + if (from.has_mvn_param()) { + mvn_param_ = new ::opencv_caffe::MVNParameter(*from.mvn_param_); + } else { + mvn_param_ = NULL; + } + if (from.has_transform_param()) { + transform_param_ = new ::opencv_caffe::TransformationParameter(*from.transform_param_); + } else { + transform_param_ = NULL; + } + if (from.has_tanh_param()) { + tanh_param_ = new ::opencv_caffe::TanHParameter(*from.tanh_param_); + } else { + tanh_param_ = NULL; + } + if (from.has_sigmoid_param()) { + sigmoid_param_ = new ::opencv_caffe::SigmoidParameter(*from.sigmoid_param_); + } else { + sigmoid_param_ = NULL; + } + if (from.has_softmax_param()) { + softmax_param_ = new ::opencv_caffe::SoftmaxParameter(*from.softmax_param_); + } else { + softmax_param_ = NULL; + } + if (from.has_contrastive_loss_param()) { + contrastive_loss_param_ = new ::opencv_caffe::ContrastiveLossParameter(*from.contrastive_loss_param_); + } else { + contrastive_loss_param_ = NULL; + } + if (from.has_exp_param()) { + exp_param_ = new ::opencv_caffe::ExpParameter(*from.exp_param_); + } else { + exp_param_ = NULL; + } + if (from.has_loss_param()) { + loss_param_ = new ::opencv_caffe::LossParameter(*from.loss_param_); + } else { + loss_param_ = NULL; + } + type_ = from.type_; // @@protoc_insertion_point(copy_constructor:opencv_caffe.V1LayerParameter) } void V1LayerParameter::SharedCtor() { name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - accuracy_param_ = NULL; - argmax_param_ = NULL; - concat_param_ = NULL; - contrastive_loss_param_ = NULL; - convolution_param_ = NULL; - data_param_ = NULL; - dropout_param_ = NULL; - dummy_data_param_ = NULL; - eltwise_param_ = NULL; - exp_param_ = NULL; - hdf5_data_param_ = NULL; - hdf5_output_param_ = NULL; - hinge_loss_param_ = NULL; - image_data_param_ = NULL; - infogain_loss_param_ = NULL; - inner_product_param_ = NULL; - lrn_param_ = NULL; - memory_data_param_ = NULL; - mvn_param_ = NULL; - pooling_param_ = NULL; - power_param_ = NULL; - relu_param_ = NULL; - sigmoid_param_ = NULL; - softmax_param_ = NULL; - slice_param_ = NULL; - tanh_param_ = NULL; - threshold_param_ = NULL; - window_data_param_ = NULL; - transform_param_ = NULL; - loss_param_ = NULL; - layer_ = NULL; - type_ = 0; + ::memset(&layer_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&layer_)) + sizeof(type_)); _cached_size_ = 0; } @@ -46779,39 +35241,37 @@ V1LayerParameter::~V1LayerParameter() { void V1LayerParameter::SharedDtor() { name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != &V1LayerParameter_default_instance_.get()) { - delete accuracy_param_; - delete argmax_param_; - delete concat_param_; - delete contrastive_loss_param_; - delete convolution_param_; - delete data_param_; - delete dropout_param_; - delete dummy_data_param_; - delete eltwise_param_; - delete exp_param_; - delete hdf5_data_param_; - delete hdf5_output_param_; - delete hinge_loss_param_; - delete image_data_param_; - delete infogain_loss_param_; - delete inner_product_param_; - delete lrn_param_; - delete memory_data_param_; - delete mvn_param_; - delete pooling_param_; - delete power_param_; - delete relu_param_; - delete sigmoid_param_; - delete softmax_param_; - delete slice_param_; - delete tanh_param_; - delete threshold_param_; - delete window_data_param_; - delete transform_param_; - delete loss_param_; - delete layer_; - } + if (this != internal_default_instance()) delete layer_; + if (this != internal_default_instance()) delete concat_param_; + if (this != internal_default_instance()) delete convolution_param_; + if (this != internal_default_instance()) delete data_param_; + if (this != internal_default_instance()) delete dropout_param_; + if (this != internal_default_instance()) delete hdf5_data_param_; + if (this != internal_default_instance()) delete hdf5_output_param_; + if (this != internal_default_instance()) delete image_data_param_; + if (this != internal_default_instance()) delete infogain_loss_param_; + if (this != internal_default_instance()) delete inner_product_param_; + if (this != internal_default_instance()) delete lrn_param_; + if (this != internal_default_instance()) delete pooling_param_; + if (this != internal_default_instance()) delete window_data_param_; + if (this != internal_default_instance()) delete power_param_; + if (this != internal_default_instance()) delete memory_data_param_; + if (this != internal_default_instance()) delete argmax_param_; + if (this != internal_default_instance()) delete eltwise_param_; + if (this != internal_default_instance()) delete threshold_param_; + if (this != internal_default_instance()) delete dummy_data_param_; + if (this != internal_default_instance()) delete accuracy_param_; + if (this != internal_default_instance()) delete hinge_loss_param_; + if (this != internal_default_instance()) delete relu_param_; + if (this != internal_default_instance()) delete slice_param_; + if (this != internal_default_instance()) delete mvn_param_; + if (this != internal_default_instance()) delete transform_param_; + if (this != internal_default_instance()) delete tanh_param_; + if (this != internal_default_instance()) delete sigmoid_param_; + if (this != internal_default_instance()) delete softmax_param_; + if (this != internal_default_instance()) delete contrastive_loss_param_; + if (this != internal_default_instance()) delete exp_param_; + if (this != internal_default_instance()) delete loss_param_; } void V1LayerParameter::SetCachedSize(int size) const { @@ -46820,17 +35280,15 @@ void V1LayerParameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* V1LayerParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return V1LayerParameter_descriptor_; + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const V1LayerParameter& V1LayerParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV1LayerParameter(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed V1LayerParameter_default_instance_; - V1LayerParameter* V1LayerParameter::New(::google::protobuf::Arena* arena) const { V1LayerParameter* n = new V1LayerParameter; if (arena != NULL) { @@ -46841,129 +35299,160 @@ V1LayerParameter* V1LayerParameter::New(::google::protobuf::Arena* arena) const void V1LayerParameter::Clear() { // @@protoc_insertion_point(message_clear_start:opencv_caffe.V1LayerParameter) - if (_has_bits_[0 / 32] & 36u) { - if (has_name()) { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - type_ = 0; - } - if (_has_bits_[8 / 32] & 61440u) { - if (has_accuracy_param()) { - if (accuracy_param_ != NULL) accuracy_param_->::opencv_caffe::AccuracyParameter::Clear(); - } - if (has_argmax_param()) { - if (argmax_param_ != NULL) argmax_param_->::opencv_caffe::ArgMaxParameter::Clear(); - } - if (has_concat_param()) { - if (concat_param_ != NULL) concat_param_->::opencv_caffe::ConcatParameter::Clear(); - } - if (has_contrastive_loss_param()) { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::opencv_caffe::ContrastiveLossParameter::Clear(); - } - } - if (_has_bits_[16 / 32] & 16711680u) { - if (has_convolution_param()) { - if (convolution_param_ != NULL) convolution_param_->::opencv_caffe::ConvolutionParameter::Clear(); - } - if (has_data_param()) { - if (data_param_ != NULL) data_param_->::opencv_caffe::DataParameter::Clear(); - } - if (has_dropout_param()) { - if (dropout_param_ != NULL) dropout_param_->::opencv_caffe::DropoutParameter::Clear(); - } - if (has_dummy_data_param()) { - if (dummy_data_param_ != NULL) dummy_data_param_->::opencv_caffe::DummyDataParameter::Clear(); - } - if (has_eltwise_param()) { - if (eltwise_param_ != NULL) eltwise_param_->::opencv_caffe::EltwiseParameter::Clear(); - } - if (has_exp_param()) { - if (exp_param_ != NULL) exp_param_->::opencv_caffe::ExpParameter::Clear(); - } - if (has_hdf5_data_param()) { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::opencv_caffe::HDF5DataParameter::Clear(); - } - if (has_hdf5_output_param()) { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::opencv_caffe::HDF5OutputParameter::Clear(); - } - } - if (_has_bits_[24 / 32] & 4278190080u) { - if (has_hinge_loss_param()) { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::opencv_caffe::HingeLossParameter::Clear(); - } - if (has_image_data_param()) { - if (image_data_param_ != NULL) image_data_param_->::opencv_caffe::ImageDataParameter::Clear(); - } - if (has_infogain_loss_param()) { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::opencv_caffe::InfogainLossParameter::Clear(); - } - if (has_inner_product_param()) { - if (inner_product_param_ != NULL) inner_product_param_->::opencv_caffe::InnerProductParameter::Clear(); - } - if (has_lrn_param()) { - if (lrn_param_ != NULL) lrn_param_->::opencv_caffe::LRNParameter::Clear(); - } - if (has_memory_data_param()) { - if (memory_data_param_ != NULL) memory_data_param_->::opencv_caffe::MemoryDataParameter::Clear(); - } - if (has_mvn_param()) { - if (mvn_param_ != NULL) mvn_param_->::opencv_caffe::MVNParameter::Clear(); - } - if (has_pooling_param()) { - if (pooling_param_ != NULL) pooling_param_->::opencv_caffe::PoolingParameter::Clear(); - } - } - if (_has_bits_[32 / 32] & 255u) { - if (has_power_param()) { - if (power_param_ != NULL) power_param_->::opencv_caffe::PowerParameter::Clear(); - } - if (has_relu_param()) { - if (relu_param_ != NULL) relu_param_->::opencv_caffe::ReLUParameter::Clear(); - } - if (has_sigmoid_param()) { - if (sigmoid_param_ != NULL) sigmoid_param_->::opencv_caffe::SigmoidParameter::Clear(); - } - if (has_softmax_param()) { - if (softmax_param_ != NULL) softmax_param_->::opencv_caffe::SoftmaxParameter::Clear(); - } - if (has_slice_param()) { - if (slice_param_ != NULL) slice_param_->::opencv_caffe::SliceParameter::Clear(); - } - if (has_tanh_param()) { - if (tanh_param_ != NULL) tanh_param_->::opencv_caffe::TanHParameter::Clear(); - } - if (has_threshold_param()) { - if (threshold_param_ != NULL) threshold_param_->::opencv_caffe::ThresholdParameter::Clear(); - } - if (has_window_data_param()) { - if (window_data_param_ != NULL) window_data_param_->::opencv_caffe::WindowDataParameter::Clear(); - } - } - if (_has_bits_[40 / 32] & 1792u) { - if (has_transform_param()) { - if (transform_param_ != NULL) transform_param_->::opencv_caffe::TransformationParameter::Clear(); - } - if (has_loss_param()) { - if (loss_param_ != NULL) loss_param_->::opencv_caffe::LossParameter::Clear(); - } - if (has_layer()) { - if (layer_ != NULL) layer_->::opencv_caffe::V0LayerParameter::Clear(); - } - } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + bottom_.Clear(); top_.Clear(); - include_.Clear(); - exclude_.Clear(); blobs_.Clear(); - param_.Clear(); - blob_share_mode_.Clear(); blobs_lr_.Clear(); weight_decay_.Clear(); + include_.Clear(); + exclude_.Clear(); loss_weight_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); + param_.Clear(); + blob_share_mode_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*name_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(layer_ != NULL); + layer_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(concat_param_ != NULL); + concat_param_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(convolution_param_ != NULL); + convolution_param_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(data_param_ != NULL); + data_param_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(dropout_param_ != NULL); + dropout_param_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(hdf5_data_param_ != NULL); + hdf5_data_param_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(hdf5_output_param_ != NULL); + hdf5_output_param_->Clear(); + } } + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(image_data_param_ != NULL); + image_data_param_->Clear(); + } + if (cached_has_bits & 0x00000200u) { + GOOGLE_DCHECK(infogain_loss_param_ != NULL); + infogain_loss_param_->Clear(); + } + if (cached_has_bits & 0x00000400u) { + GOOGLE_DCHECK(inner_product_param_ != NULL); + inner_product_param_->Clear(); + } + if (cached_has_bits & 0x00000800u) { + GOOGLE_DCHECK(lrn_param_ != NULL); + lrn_param_->Clear(); + } + if (cached_has_bits & 0x00001000u) { + GOOGLE_DCHECK(pooling_param_ != NULL); + pooling_param_->Clear(); + } + if (cached_has_bits & 0x00002000u) { + GOOGLE_DCHECK(window_data_param_ != NULL); + window_data_param_->Clear(); + } + if (cached_has_bits & 0x00004000u) { + GOOGLE_DCHECK(power_param_ != NULL); + power_param_->Clear(); + } + if (cached_has_bits & 0x00008000u) { + GOOGLE_DCHECK(memory_data_param_ != NULL); + memory_data_param_->Clear(); + } + } + if (cached_has_bits & 16711680u) { + if (cached_has_bits & 0x00010000u) { + GOOGLE_DCHECK(argmax_param_ != NULL); + argmax_param_->Clear(); + } + if (cached_has_bits & 0x00020000u) { + GOOGLE_DCHECK(eltwise_param_ != NULL); + eltwise_param_->Clear(); + } + if (cached_has_bits & 0x00040000u) { + GOOGLE_DCHECK(threshold_param_ != NULL); + threshold_param_->Clear(); + } + if (cached_has_bits & 0x00080000u) { + GOOGLE_DCHECK(dummy_data_param_ != NULL); + dummy_data_param_->Clear(); + } + if (cached_has_bits & 0x00100000u) { + GOOGLE_DCHECK(accuracy_param_ != NULL); + accuracy_param_->Clear(); + } + if (cached_has_bits & 0x00200000u) { + GOOGLE_DCHECK(hinge_loss_param_ != NULL); + hinge_loss_param_->Clear(); + } + if (cached_has_bits & 0x00400000u) { + GOOGLE_DCHECK(relu_param_ != NULL); + relu_param_->Clear(); + } + if (cached_has_bits & 0x00800000u) { + GOOGLE_DCHECK(slice_param_ != NULL); + slice_param_->Clear(); + } + } + if (cached_has_bits & 4278190080u) { + if (cached_has_bits & 0x01000000u) { + GOOGLE_DCHECK(mvn_param_ != NULL); + mvn_param_->Clear(); + } + if (cached_has_bits & 0x02000000u) { + GOOGLE_DCHECK(transform_param_ != NULL); + transform_param_->Clear(); + } + if (cached_has_bits & 0x04000000u) { + GOOGLE_DCHECK(tanh_param_ != NULL); + tanh_param_->Clear(); + } + if (cached_has_bits & 0x08000000u) { + GOOGLE_DCHECK(sigmoid_param_ != NULL); + sigmoid_param_->Clear(); + } + if (cached_has_bits & 0x10000000u) { + GOOGLE_DCHECK(softmax_param_ != NULL); + softmax_param_->Clear(); + } + if (cached_has_bits & 0x20000000u) { + GOOGLE_DCHECK(contrastive_loss_param_ != NULL); + contrastive_loss_param_->Clear(); + } + if (cached_has_bits & 0x40000000u) { + GOOGLE_DCHECK(exp_param_ != NULL); + exp_param_->Clear(); + } + if (cached_has_bits & 0x80000000u) { + GOOGLE_DCHECK(loss_param_ != NULL); + loss_param_->Clear(); + } + } + type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); } bool V1LayerParameter::MergePartialFromCodedStream( @@ -46972,81 +35461,76 @@ bool V1LayerParameter::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:opencv_caffe.V1LayerParameter) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .opencv_caffe.V0LayerParameter layer = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_layer())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_bottom; break; } // repeated string bottom = 2; case 2: { - if (tag == 18) { - parse_bottom: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_bottom())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->bottom(this->bottom_size() - 1).data(), - this->bottom(this->bottom_size() - 1).length(), + static_cast(this->bottom(this->bottom_size() - 1).length()), ::google::protobuf::internal::WireFormat::PARSE, "opencv_caffe.V1LayerParameter.bottom"); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_bottom; - if (input->ExpectTag(26)) goto parse_top; break; } // repeated string top = 3; case 3: { - if (tag == 26) { - parse_top: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_top())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->top(this->top_size() - 1).data(), - this->top(this->top_size() - 1).length(), + static_cast(this->top(this->top_size() - 1).length()), ::google::protobuf::internal::WireFormat::PARSE, "opencv_caffe.V1LayerParameter.top"); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_top; - if (input->ExpectTag(34)) goto parse_name; break; } // optional string name = 4; case 4: { - if (tag == 34) { - parse_name: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormat::PARSE, "opencv_caffe.V1LayerParameter.name"); } else { goto handle_unusual; } - if (input->ExpectTag(40)) goto parse_type; break; } // optional .opencv_caffe.V1LayerParameter.LayerType type = 5; case 5: { - if (tag == 40) { - parse_type: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( @@ -47054,535 +35538,486 @@ bool V1LayerParameter::MergePartialFromCodedStream( if (::opencv_caffe::V1LayerParameter_LayerType_IsValid(value)) { set_type(static_cast< ::opencv_caffe::V1LayerParameter_LayerType >(value)); } else { - mutable_unknown_fields()->AddVarint(5, value); + mutable_unknown_fields()->AddVarint( + 5, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_blobs; break; } // repeated .opencv_caffe.BlobProto blobs = 6; case 6: { - if (tag == 50) { - parse_blobs: - DO_(input->IncrementRecursionDepth()); - parse_loop_blobs: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_blobs())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_blobs())); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_loop_blobs; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(61)) goto parse_blobs_lr; break; } // repeated float blobs_lr = 7; case 7: { - if (tag == 61) { - parse_blobs_lr: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 61, input, this->mutable_blobs_lr()))); - } else if (tag == 58) { + 1, 61u, input, this->mutable_blobs_lr()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_blobs_lr()))); } else { goto handle_unusual; } - if (input->ExpectTag(61)) goto parse_blobs_lr; - if (input->ExpectTag(69)) goto parse_weight_decay; break; } // repeated float weight_decay = 8; case 8: { - if (tag == 69) { - parse_weight_decay: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 69, input, this->mutable_weight_decay()))); - } else if (tag == 66) { + 1, 69u, input, this->mutable_weight_decay()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_weight_decay()))); } else { goto handle_unusual; } - if (input->ExpectTag(69)) goto parse_weight_decay; - if (input->ExpectTag(74)) goto parse_concat_param; break; } // optional .opencv_caffe.ConcatParameter concat_param = 9; case 9: { - if (tag == 74) { - parse_concat_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_concat_param())); } else { goto handle_unusual; } - if (input->ExpectTag(82)) goto parse_convolution_param; break; } // optional .opencv_caffe.ConvolutionParameter convolution_param = 10; case 10: { - if (tag == 82) { - parse_convolution_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_convolution_param())); } else { goto handle_unusual; } - if (input->ExpectTag(90)) goto parse_data_param; break; } // optional .opencv_caffe.DataParameter data_param = 11; case 11: { - if (tag == 90) { - parse_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_data_param())); } else { goto handle_unusual; } - if (input->ExpectTag(98)) goto parse_dropout_param; break; } // optional .opencv_caffe.DropoutParameter dropout_param = 12; case 12: { - if (tag == 98) { - parse_dropout_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_dropout_param())); } else { goto handle_unusual; } - if (input->ExpectTag(106)) goto parse_hdf5_data_param; break; } // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13; case 13: { - if (tag == 106) { - parse_hdf5_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_hdf5_data_param())); } else { goto handle_unusual; } - if (input->ExpectTag(114)) goto parse_hdf5_output_param; break; } // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14; case 14: { - if (tag == 114) { - parse_hdf5_output_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_hdf5_output_param())); } else { goto handle_unusual; } - if (input->ExpectTag(122)) goto parse_image_data_param; break; } // optional .opencv_caffe.ImageDataParameter image_data_param = 15; case 15: { - if (tag == 122) { - parse_image_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_image_data_param())); } else { goto handle_unusual; } - if (input->ExpectTag(130)) goto parse_infogain_loss_param; break; } // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16; case 16: { - if (tag == 130) { - parse_infogain_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_infogain_loss_param())); } else { goto handle_unusual; } - if (input->ExpectTag(138)) goto parse_inner_product_param; break; } // optional .opencv_caffe.InnerProductParameter inner_product_param = 17; case 17: { - if (tag == 138) { - parse_inner_product_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_inner_product_param())); } else { goto handle_unusual; } - if (input->ExpectTag(146)) goto parse_lrn_param; break; } // optional .opencv_caffe.LRNParameter lrn_param = 18; case 18: { - if (tag == 146) { - parse_lrn_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_lrn_param())); } else { goto handle_unusual; } - if (input->ExpectTag(154)) goto parse_pooling_param; break; } // optional .opencv_caffe.PoolingParameter pooling_param = 19; case 19: { - if (tag == 154) { - parse_pooling_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_pooling_param())); } else { goto handle_unusual; } - if (input->ExpectTag(162)) goto parse_window_data_param; break; } // optional .opencv_caffe.WindowDataParameter window_data_param = 20; case 20: { - if (tag == 162) { - parse_window_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_window_data_param())); } else { goto handle_unusual; } - if (input->ExpectTag(170)) goto parse_power_param; break; } // optional .opencv_caffe.PowerParameter power_param = 21; case 21: { - if (tag == 170) { - parse_power_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_power_param())); } else { goto handle_unusual; } - if (input->ExpectTag(178)) goto parse_memory_data_param; break; } // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22; case 22: { - if (tag == 178) { - parse_memory_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_memory_data_param())); } else { goto handle_unusual; } - if (input->ExpectTag(186)) goto parse_argmax_param; break; } // optional .opencv_caffe.ArgMaxParameter argmax_param = 23; case 23: { - if (tag == 186) { - parse_argmax_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(186u /* 186 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_argmax_param())); } else { goto handle_unusual; } - if (input->ExpectTag(194)) goto parse_eltwise_param; break; } // optional .opencv_caffe.EltwiseParameter eltwise_param = 24; case 24: { - if (tag == 194) { - parse_eltwise_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_eltwise_param())); } else { goto handle_unusual; } - if (input->ExpectTag(202)) goto parse_threshold_param; break; } // optional .opencv_caffe.ThresholdParameter threshold_param = 25; case 25: { - if (tag == 202) { - parse_threshold_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_threshold_param())); } else { goto handle_unusual; } - if (input->ExpectTag(210)) goto parse_dummy_data_param; break; } // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26; case 26: { - if (tag == 210) { - parse_dummy_data_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(210u /* 210 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_dummy_data_param())); } else { goto handle_unusual; } - if (input->ExpectTag(218)) goto parse_accuracy_param; break; } // optional .opencv_caffe.AccuracyParameter accuracy_param = 27; case 27: { - if (tag == 218) { - parse_accuracy_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(218u /* 218 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_accuracy_param())); } else { goto handle_unusual; } - if (input->ExpectTag(234)) goto parse_hinge_loss_param; break; } // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29; case 29: { - if (tag == 234) { - parse_hinge_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(234u /* 234 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_hinge_loss_param())); } else { goto handle_unusual; } - if (input->ExpectTag(242)) goto parse_relu_param; break; } // optional .opencv_caffe.ReLUParameter relu_param = 30; case 30: { - if (tag == 242) { - parse_relu_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(242u /* 242 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_relu_param())); } else { goto handle_unusual; } - if (input->ExpectTag(250)) goto parse_slice_param; break; } // optional .opencv_caffe.SliceParameter slice_param = 31; case 31: { - if (tag == 250) { - parse_slice_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(250u /* 250 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_slice_param())); } else { goto handle_unusual; } - if (input->ExpectTag(258)) goto parse_include; break; } // repeated .opencv_caffe.NetStateRule include = 32; case 32: { - if (tag == 258) { - parse_include: - DO_(input->IncrementRecursionDepth()); - parse_loop_include: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_include())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(2u /* 258 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_include())); } else { goto handle_unusual; } - if (input->ExpectTag(258)) goto parse_loop_include; - if (input->ExpectTag(266)) goto parse_loop_exclude; - input->UnsafeDecrementRecursionDepth(); break; } // repeated .opencv_caffe.NetStateRule exclude = 33; case 33: { - if (tag == 266) { - DO_(input->IncrementRecursionDepth()); - parse_loop_exclude: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_exclude())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 266 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_exclude())); } else { goto handle_unusual; } - if (input->ExpectTag(266)) goto parse_loop_exclude; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(274)) goto parse_mvn_param; break; } // optional .opencv_caffe.MVNParameter mvn_param = 34; case 34: { - if (tag == 274) { - parse_mvn_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 274 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_mvn_param())); } else { goto handle_unusual; } - if (input->ExpectTag(285)) goto parse_loss_weight; break; } // repeated float loss_weight = 35; case 35: { - if (tag == 285) { - parse_loss_weight: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 285 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 2, 285, input, this->mutable_loss_weight()))); - } else if (tag == 282) { + 2, 285u, input, this->mutable_loss_weight()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 282 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_loss_weight()))); } else { goto handle_unusual; } - if (input->ExpectTag(285)) goto parse_loss_weight; - if (input->ExpectTag(290)) goto parse_transform_param; break; } // optional .opencv_caffe.TransformationParameter transform_param = 36; case 36: { - if (tag == 290) { - parse_transform_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 290 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_transform_param())); } else { goto handle_unusual; } - if (input->ExpectTag(298)) goto parse_tanh_param; break; } // optional .opencv_caffe.TanHParameter tanh_param = 37; case 37: { - if (tag == 298) { - parse_tanh_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 298 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_tanh_param())); } else { goto handle_unusual; } - if (input->ExpectTag(306)) goto parse_sigmoid_param; break; } // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38; case 38: { - if (tag == 306) { - parse_sigmoid_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 306 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_sigmoid_param())); } else { goto handle_unusual; } - if (input->ExpectTag(314)) goto parse_softmax_param; break; } // optional .opencv_caffe.SoftmaxParameter softmax_param = 39; case 39: { - if (tag == 314) { - parse_softmax_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 314 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_softmax_param())); } else { goto handle_unusual; } - if (input->ExpectTag(322)) goto parse_contrastive_loss_param; break; } // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40; case 40: { - if (tag == 322) { - parse_contrastive_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 322 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_contrastive_loss_param())); } else { goto handle_unusual; } - if (input->ExpectTag(330)) goto parse_exp_param; break; } // optional .opencv_caffe.ExpParameter exp_param = 41; case 41: { - if (tag == 330) { - parse_exp_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 330 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_exp_param())); } else { goto handle_unusual; } - if (input->ExpectTag(338)) goto parse_loss_param; break; } // optional .opencv_caffe.LossParameter loss_param = 42; case 42: { - if (tag == 338) { - parse_loss_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 338 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_loss_param())); } else { goto handle_unusual; } - if (input->ExpectTag(8010)) goto parse_param; break; } // repeated string param = 1001; case 1001: { - if (tag == 8010) { - parse_param: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 8010 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_param())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->param(this->param_size() - 1).data(), - this->param(this->param_size() - 1).length(), + static_cast(this->param(this->param_size() - 1).length()), ::google::protobuf::internal::WireFormat::PARSE, "opencv_caffe.V1LayerParameter.param"); } else { goto handle_unusual; } - if (input->ExpectTag(8010)) goto parse_param; - if (input->ExpectTag(8016)) goto parse_blob_share_mode; break; } // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; case 1002: { - if (tag == 8016) { - parse_blob_share_mode: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 8016 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( @@ -47590,9 +36025,12 @@ bool V1LayerParameter::MergePartialFromCodedStream( if (::opencv_caffe::V1LayerParameter_DimCheckMode_IsValid(value)) { add_blob_share_mode(static_cast< ::opencv_caffe::V1LayerParameter_DimCheckMode >(value)); } else { - mutable_unknown_fields()->AddVarint(1002, value); + mutable_unknown_fields()->AddVarint( + 1002, static_cast< ::google::protobuf::uint64>(value)); } - } else if (tag == 8018) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 8018 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns( input, 1002, @@ -47602,20 +36040,16 @@ bool V1LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(8016)) goto parse_blob_share_mode; - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -47632,16 +36066,20 @@ failure: void V1LayerParameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:opencv_caffe.V1LayerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional .opencv_caffe.V0LayerParameter layer = 1; - if (has_layer()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->layer_, output); } // repeated string bottom = 2; - for (int i = 0; i < this->bottom_size(); i++) { + for (int i = 0, n = this->bottom_size(); i < n; i++) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->bottom(i).data(), this->bottom(i).length(), + this->bottom(i).data(), static_cast(this->bottom(i).length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V1LayerParameter.bottom"); ::google::protobuf::internal::WireFormatLite::WriteString( @@ -47649,9 +36087,9 @@ void V1LayerParameter::SerializeWithCachedSizes( } // repeated string top = 3; - for (int i = 0; i < this->top_size(); i++) { + for (int i = 0, n = this->top_size(); i < n; i++) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->top(i).data(), this->top(i).length(), + this->top(i).data(), static_cast(this->top(i).length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V1LayerParameter.top"); ::google::protobuf::internal::WireFormatLite::WriteString( @@ -47659,241 +36097,246 @@ void V1LayerParameter::SerializeWithCachedSizes( } // optional string name = 4; - if (has_name()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V1LayerParameter.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->name(), output); } + cached_has_bits = _has_bits_[1]; // optional .opencv_caffe.V1LayerParameter.LayerType type = 5; - if (has_type()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 5, this->type(), output); } // repeated .opencv_caffe.BlobProto blobs = 6; - for (unsigned int i = 0, n = this->blobs_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->blobs_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->blobs(i), output); + 6, this->blobs(static_cast(i)), output); } // repeated float blobs_lr = 7; - for (int i = 0; i < this->blobs_lr_size(); i++) { + for (int i = 0, n = this->blobs_lr_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteFloat( 7, this->blobs_lr(i), output); } // repeated float weight_decay = 8; - for (int i = 0; i < this->weight_decay_size(); i++) { + for (int i = 0, n = this->weight_decay_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteFloat( 8, this->weight_decay(i), output); } + cached_has_bits = _has_bits_[0]; // optional .opencv_caffe.ConcatParameter concat_param = 9; - if (has_concat_param()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 9, *this->concat_param_, output); } // optional .opencv_caffe.ConvolutionParameter convolution_param = 10; - if (has_convolution_param()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 10, *this->convolution_param_, output); } // optional .opencv_caffe.DataParameter data_param = 11; - if (has_data_param()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11, *this->data_param_, output); } // optional .opencv_caffe.DropoutParameter dropout_param = 12; - if (has_dropout_param()) { + if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 12, *this->dropout_param_, output); } // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13; - if (has_hdf5_data_param()) { + if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 13, *this->hdf5_data_param_, output); } // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14; - if (has_hdf5_output_param()) { + if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 14, *this->hdf5_output_param_, output); } // optional .opencv_caffe.ImageDataParameter image_data_param = 15; - if (has_image_data_param()) { + if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 15, *this->image_data_param_, output); } // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16; - if (has_infogain_loss_param()) { + if (cached_has_bits & 0x00000200u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 16, *this->infogain_loss_param_, output); } // optional .opencv_caffe.InnerProductParameter inner_product_param = 17; - if (has_inner_product_param()) { + if (cached_has_bits & 0x00000400u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 17, *this->inner_product_param_, output); } // optional .opencv_caffe.LRNParameter lrn_param = 18; - if (has_lrn_param()) { + if (cached_has_bits & 0x00000800u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 18, *this->lrn_param_, output); } // optional .opencv_caffe.PoolingParameter pooling_param = 19; - if (has_pooling_param()) { + if (cached_has_bits & 0x00001000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 19, *this->pooling_param_, output); } // optional .opencv_caffe.WindowDataParameter window_data_param = 20; - if (has_window_data_param()) { + if (cached_has_bits & 0x00002000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 20, *this->window_data_param_, output); } // optional .opencv_caffe.PowerParameter power_param = 21; - if (has_power_param()) { + if (cached_has_bits & 0x00004000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 21, *this->power_param_, output); } // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22; - if (has_memory_data_param()) { + if (cached_has_bits & 0x00008000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 22, *this->memory_data_param_, output); } // optional .opencv_caffe.ArgMaxParameter argmax_param = 23; - if (has_argmax_param()) { + if (cached_has_bits & 0x00010000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 23, *this->argmax_param_, output); } // optional .opencv_caffe.EltwiseParameter eltwise_param = 24; - if (has_eltwise_param()) { + if (cached_has_bits & 0x00020000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 24, *this->eltwise_param_, output); } // optional .opencv_caffe.ThresholdParameter threshold_param = 25; - if (has_threshold_param()) { + if (cached_has_bits & 0x00040000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 25, *this->threshold_param_, output); } // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26; - if (has_dummy_data_param()) { + if (cached_has_bits & 0x00080000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 26, *this->dummy_data_param_, output); } // optional .opencv_caffe.AccuracyParameter accuracy_param = 27; - if (has_accuracy_param()) { + if (cached_has_bits & 0x00100000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 27, *this->accuracy_param_, output); } // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29; - if (has_hinge_loss_param()) { + if (cached_has_bits & 0x00200000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 29, *this->hinge_loss_param_, output); } // optional .opencv_caffe.ReLUParameter relu_param = 30; - if (has_relu_param()) { + if (cached_has_bits & 0x00400000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 30, *this->relu_param_, output); } // optional .opencv_caffe.SliceParameter slice_param = 31; - if (has_slice_param()) { + if (cached_has_bits & 0x00800000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 31, *this->slice_param_, output); } // repeated .opencv_caffe.NetStateRule include = 32; - for (unsigned int i = 0, n = this->include_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->include_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 32, this->include(i), output); + 32, this->include(static_cast(i)), output); } // repeated .opencv_caffe.NetStateRule exclude = 33; - for (unsigned int i = 0, n = this->exclude_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->exclude_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 33, this->exclude(i), output); + 33, this->exclude(static_cast(i)), output); } // optional .opencv_caffe.MVNParameter mvn_param = 34; - if (has_mvn_param()) { + if (cached_has_bits & 0x01000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 34, *this->mvn_param_, output); } // repeated float loss_weight = 35; - for (int i = 0; i < this->loss_weight_size(); i++) { + for (int i = 0, n = this->loss_weight_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteFloat( 35, this->loss_weight(i), output); } // optional .opencv_caffe.TransformationParameter transform_param = 36; - if (has_transform_param()) { + if (cached_has_bits & 0x02000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 36, *this->transform_param_, output); } // optional .opencv_caffe.TanHParameter tanh_param = 37; - if (has_tanh_param()) { + if (cached_has_bits & 0x04000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 37, *this->tanh_param_, output); } // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38; - if (has_sigmoid_param()) { + if (cached_has_bits & 0x08000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 38, *this->sigmoid_param_, output); } // optional .opencv_caffe.SoftmaxParameter softmax_param = 39; - if (has_softmax_param()) { + if (cached_has_bits & 0x10000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 39, *this->softmax_param_, output); } // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40; - if (has_contrastive_loss_param()) { + if (cached_has_bits & 0x20000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 40, *this->contrastive_loss_param_, output); } // optional .opencv_caffe.ExpParameter exp_param = 41; - if (has_exp_param()) { + if (cached_has_bits & 0x40000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 41, *this->exp_param_, output); } // optional .opencv_caffe.LossParameter loss_param = 42; - if (has_loss_param()) { + if (cached_has_bits & 0x80000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 42, *this->loss_param_, output); } // repeated string param = 1001; - for (int i = 0; i < this->param_size(); i++) { + for (int i = 0, n = this->param_size(); i < n; i++) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->param(i).data(), this->param(i).length(), + this->param(i).data(), static_cast(this->param(i).length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V1LayerParameter.param"); ::google::protobuf::internal::WireFormatLite::WriteString( @@ -47901,14 +36344,14 @@ void V1LayerParameter::SerializeWithCachedSizes( } // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; - for (int i = 0; i < this->blob_share_mode_size(); i++) { + for (int i = 0, n = this->blob_share_mode_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1002, this->blob_share_mode(i), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); + _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:opencv_caffe.V1LayerParameter) } @@ -47917,17 +36360,21 @@ void V1LayerParameter::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.V1LayerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional .opencv_caffe.V0LayerParameter layer = 1; - if (has_layer()) { + if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->layer_, false, target); + InternalWriteMessageToArray( + 1, *this->layer_, deterministic, target); } // repeated string bottom = 2; - for (int i = 0; i < this->bottom_size(); i++) { + for (int i = 0, n = this->bottom_size(); i < n; i++) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->bottom(i).data(), this->bottom(i).length(), + this->bottom(i).data(), static_cast(this->bottom(i).length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V1LayerParameter.bottom"); target = ::google::protobuf::internal::WireFormatLite:: @@ -47935,9 +36382,9 @@ void V1LayerParameter::SerializeWithCachedSizes( } // repeated string top = 3; - for (int i = 0; i < this->top_size(); i++) { + for (int i = 0, n = this->top_size(); i < n; i++) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->top(i).data(), this->top(i).length(), + this->top(i).data(), static_cast(this->top(i).length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V1LayerParameter.top"); target = ::google::protobuf::internal::WireFormatLite:: @@ -47945,9 +36392,9 @@ void V1LayerParameter::SerializeWithCachedSizes( } // optional string name = 4; - if (has_name()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V1LayerParameter.name"); target = @@ -47955,265 +36402,264 @@ void V1LayerParameter::SerializeWithCachedSizes( 4, this->name(), target); } + cached_has_bits = _has_bits_[1]; // optional .opencv_caffe.V1LayerParameter.LayerType type = 5; - if (has_type()) { + if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 5, this->type(), target); } // repeated .opencv_caffe.BlobProto blobs = 6; - for (unsigned int i = 0, n = this->blobs_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->blobs_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, this->blobs(i), false, target); + InternalWriteMessageToArray( + 6, this->blobs(static_cast(i)), deterministic, target); } // repeated float blobs_lr = 7; - for (int i = 0; i < this->blobs_lr_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(7, this->blobs_lr(i), target); - } + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(7, this->blobs_lr_, target); // repeated float weight_decay = 8; - for (int i = 0; i < this->weight_decay_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(8, this->weight_decay(i), target); - } + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(8, this->weight_decay_, target); + cached_has_bits = _has_bits_[0]; // optional .opencv_caffe.ConcatParameter concat_param = 9; - if (has_concat_param()) { + if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 9, *this->concat_param_, false, target); + InternalWriteMessageToArray( + 9, *this->concat_param_, deterministic, target); } // optional .opencv_caffe.ConvolutionParameter convolution_param = 10; - if (has_convolution_param()) { + if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 10, *this->convolution_param_, false, target); + InternalWriteMessageToArray( + 10, *this->convolution_param_, deterministic, target); } // optional .opencv_caffe.DataParameter data_param = 11; - if (has_data_param()) { + if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 11, *this->data_param_, false, target); + InternalWriteMessageToArray( + 11, *this->data_param_, deterministic, target); } // optional .opencv_caffe.DropoutParameter dropout_param = 12; - if (has_dropout_param()) { + if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 12, *this->dropout_param_, false, target); + InternalWriteMessageToArray( + 12, *this->dropout_param_, deterministic, target); } // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13; - if (has_hdf5_data_param()) { + if (cached_has_bits & 0x00000040u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 13, *this->hdf5_data_param_, false, target); + InternalWriteMessageToArray( + 13, *this->hdf5_data_param_, deterministic, target); } // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14; - if (has_hdf5_output_param()) { + if (cached_has_bits & 0x00000080u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 14, *this->hdf5_output_param_, false, target); + InternalWriteMessageToArray( + 14, *this->hdf5_output_param_, deterministic, target); } // optional .opencv_caffe.ImageDataParameter image_data_param = 15; - if (has_image_data_param()) { + if (cached_has_bits & 0x00000100u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 15, *this->image_data_param_, false, target); + InternalWriteMessageToArray( + 15, *this->image_data_param_, deterministic, target); } // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16; - if (has_infogain_loss_param()) { + if (cached_has_bits & 0x00000200u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 16, *this->infogain_loss_param_, false, target); + InternalWriteMessageToArray( + 16, *this->infogain_loss_param_, deterministic, target); } // optional .opencv_caffe.InnerProductParameter inner_product_param = 17; - if (has_inner_product_param()) { + if (cached_has_bits & 0x00000400u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 17, *this->inner_product_param_, false, target); + InternalWriteMessageToArray( + 17, *this->inner_product_param_, deterministic, target); } // optional .opencv_caffe.LRNParameter lrn_param = 18; - if (has_lrn_param()) { + if (cached_has_bits & 0x00000800u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 18, *this->lrn_param_, false, target); + InternalWriteMessageToArray( + 18, *this->lrn_param_, deterministic, target); } // optional .opencv_caffe.PoolingParameter pooling_param = 19; - if (has_pooling_param()) { + if (cached_has_bits & 0x00001000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 19, *this->pooling_param_, false, target); + InternalWriteMessageToArray( + 19, *this->pooling_param_, deterministic, target); } // optional .opencv_caffe.WindowDataParameter window_data_param = 20; - if (has_window_data_param()) { + if (cached_has_bits & 0x00002000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 20, *this->window_data_param_, false, target); + InternalWriteMessageToArray( + 20, *this->window_data_param_, deterministic, target); } // optional .opencv_caffe.PowerParameter power_param = 21; - if (has_power_param()) { + if (cached_has_bits & 0x00004000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 21, *this->power_param_, false, target); + InternalWriteMessageToArray( + 21, *this->power_param_, deterministic, target); } // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22; - if (has_memory_data_param()) { + if (cached_has_bits & 0x00008000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 22, *this->memory_data_param_, false, target); + InternalWriteMessageToArray( + 22, *this->memory_data_param_, deterministic, target); } // optional .opencv_caffe.ArgMaxParameter argmax_param = 23; - if (has_argmax_param()) { + if (cached_has_bits & 0x00010000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 23, *this->argmax_param_, false, target); + InternalWriteMessageToArray( + 23, *this->argmax_param_, deterministic, target); } // optional .opencv_caffe.EltwiseParameter eltwise_param = 24; - if (has_eltwise_param()) { + if (cached_has_bits & 0x00020000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 24, *this->eltwise_param_, false, target); + InternalWriteMessageToArray( + 24, *this->eltwise_param_, deterministic, target); } // optional .opencv_caffe.ThresholdParameter threshold_param = 25; - if (has_threshold_param()) { + if (cached_has_bits & 0x00040000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 25, *this->threshold_param_, false, target); + InternalWriteMessageToArray( + 25, *this->threshold_param_, deterministic, target); } // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26; - if (has_dummy_data_param()) { + if (cached_has_bits & 0x00080000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 26, *this->dummy_data_param_, false, target); + InternalWriteMessageToArray( + 26, *this->dummy_data_param_, deterministic, target); } // optional .opencv_caffe.AccuracyParameter accuracy_param = 27; - if (has_accuracy_param()) { + if (cached_has_bits & 0x00100000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 27, *this->accuracy_param_, false, target); + InternalWriteMessageToArray( + 27, *this->accuracy_param_, deterministic, target); } // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29; - if (has_hinge_loss_param()) { + if (cached_has_bits & 0x00200000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 29, *this->hinge_loss_param_, false, target); + InternalWriteMessageToArray( + 29, *this->hinge_loss_param_, deterministic, target); } // optional .opencv_caffe.ReLUParameter relu_param = 30; - if (has_relu_param()) { + if (cached_has_bits & 0x00400000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 30, *this->relu_param_, false, target); + InternalWriteMessageToArray( + 30, *this->relu_param_, deterministic, target); } // optional .opencv_caffe.SliceParameter slice_param = 31; - if (has_slice_param()) { + if (cached_has_bits & 0x00800000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 31, *this->slice_param_, false, target); + InternalWriteMessageToArray( + 31, *this->slice_param_, deterministic, target); } // repeated .opencv_caffe.NetStateRule include = 32; - for (unsigned int i = 0, n = this->include_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->include_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 32, this->include(i), false, target); + InternalWriteMessageToArray( + 32, this->include(static_cast(i)), deterministic, target); } // repeated .opencv_caffe.NetStateRule exclude = 33; - for (unsigned int i = 0, n = this->exclude_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->exclude_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 33, this->exclude(i), false, target); + InternalWriteMessageToArray( + 33, this->exclude(static_cast(i)), deterministic, target); } // optional .opencv_caffe.MVNParameter mvn_param = 34; - if (has_mvn_param()) { + if (cached_has_bits & 0x01000000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 34, *this->mvn_param_, false, target); + InternalWriteMessageToArray( + 34, *this->mvn_param_, deterministic, target); } // repeated float loss_weight = 35; - for (int i = 0; i < this->loss_weight_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(35, this->loss_weight(i), target); - } + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(35, this->loss_weight_, target); // optional .opencv_caffe.TransformationParameter transform_param = 36; - if (has_transform_param()) { + if (cached_has_bits & 0x02000000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 36, *this->transform_param_, false, target); + InternalWriteMessageToArray( + 36, *this->transform_param_, deterministic, target); } // optional .opencv_caffe.TanHParameter tanh_param = 37; - if (has_tanh_param()) { + if (cached_has_bits & 0x04000000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 37, *this->tanh_param_, false, target); + InternalWriteMessageToArray( + 37, *this->tanh_param_, deterministic, target); } // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38; - if (has_sigmoid_param()) { + if (cached_has_bits & 0x08000000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 38, *this->sigmoid_param_, false, target); + InternalWriteMessageToArray( + 38, *this->sigmoid_param_, deterministic, target); } // optional .opencv_caffe.SoftmaxParameter softmax_param = 39; - if (has_softmax_param()) { + if (cached_has_bits & 0x10000000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 39, *this->softmax_param_, false, target); + InternalWriteMessageToArray( + 39, *this->softmax_param_, deterministic, target); } // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40; - if (has_contrastive_loss_param()) { + if (cached_has_bits & 0x20000000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 40, *this->contrastive_loss_param_, false, target); + InternalWriteMessageToArray( + 40, *this->contrastive_loss_param_, deterministic, target); } // optional .opencv_caffe.ExpParameter exp_param = 41; - if (has_exp_param()) { + if (cached_has_bits & 0x40000000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 41, *this->exp_param_, false, target); + InternalWriteMessageToArray( + 41, *this->exp_param_, deterministic, target); } // optional .opencv_caffe.LossParameter loss_param = 42; - if (has_loss_param()) { + if (cached_has_bits & 0x80000000u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 42, *this->loss_param_, false, target); + InternalWriteMessageToArray( + 42, *this->loss_param_, deterministic, target); } // repeated string param = 1001; - for (int i = 0; i < this->param_size(); i++) { + for (int i = 0, n = this->param_size(); i < n; i++) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->param(i).data(), this->param(i).length(), + this->param(i).data(), static_cast(this->param(i).length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V1LayerParameter.param"); target = ::google::protobuf::internal::WireFormatLite:: @@ -48221,14 +36667,12 @@ void V1LayerParameter::SerializeWithCachedSizes( } // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; - for (int i = 0; i < this->blob_share_mode_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1002, this->blob_share_mode(i), target); - } + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1002, this->blob_share_mode_, target); if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.V1LayerParameter) return target; @@ -48238,252 +36682,15 @@ size_t V1LayerParameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.V1LayerParameter) size_t total_size = 0; - if (_has_bits_[2 / 32] & 36u) { - // optional string name = 4; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // optional .opencv_caffe.V1LayerParameter.LayerType type = 5; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - } - if (_has_bits_[12 / 32] & 61440u) { - // optional .opencv_caffe.AccuracyParameter accuracy_param = 27; - if (has_accuracy_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->accuracy_param_); - } - - // optional .opencv_caffe.ArgMaxParameter argmax_param = 23; - if (has_argmax_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->argmax_param_); - } - - // optional .opencv_caffe.ConcatParameter concat_param = 9; - if (has_concat_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->concat_param_); - } - - // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40; - if (has_contrastive_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->contrastive_loss_param_); - } - - } - if (_has_bits_[16 / 32] & 16711680u) { - // optional .opencv_caffe.ConvolutionParameter convolution_param = 10; - if (has_convolution_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->convolution_param_); - } - - // optional .opencv_caffe.DataParameter data_param = 11; - if (has_data_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->data_param_); - } - - // optional .opencv_caffe.DropoutParameter dropout_param = 12; - if (has_dropout_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->dropout_param_); - } - - // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26; - if (has_dummy_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->dummy_data_param_); - } - - // optional .opencv_caffe.EltwiseParameter eltwise_param = 24; - if (has_eltwise_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->eltwise_param_); - } - - // optional .opencv_caffe.ExpParameter exp_param = 41; - if (has_exp_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->exp_param_); - } - - // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13; - if (has_hdf5_data_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->hdf5_data_param_); - } - - // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14; - if (has_hdf5_output_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->hdf5_output_param_); - } - - } - if (_has_bits_[24 / 32] & 4278190080u) { - // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29; - if (has_hinge_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->hinge_loss_param_); - } - - // optional .opencv_caffe.ImageDataParameter image_data_param = 15; - if (has_image_data_param()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->image_data_param_); - } - - // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16; - if (has_infogain_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->infogain_loss_param_); - } - - // optional .opencv_caffe.InnerProductParameter inner_product_param = 17; - if (has_inner_product_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->inner_product_param_); - } - - // optional .opencv_caffe.LRNParameter lrn_param = 18; - if (has_lrn_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->lrn_param_); - } - - // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22; - if (has_memory_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->memory_data_param_); - } - - // optional .opencv_caffe.MVNParameter mvn_param = 34; - if (has_mvn_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->mvn_param_); - } - - // optional .opencv_caffe.PoolingParameter pooling_param = 19; - if (has_pooling_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->pooling_param_); - } - - } - if (_has_bits_[32 / 32] & 255u) { - // optional .opencv_caffe.PowerParameter power_param = 21; - if (has_power_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->power_param_); - } - - // optional .opencv_caffe.ReLUParameter relu_param = 30; - if (has_relu_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->relu_param_); - } - - // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38; - if (has_sigmoid_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->sigmoid_param_); - } - - // optional .opencv_caffe.SoftmaxParameter softmax_param = 39; - if (has_softmax_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->softmax_param_); - } - - // optional .opencv_caffe.SliceParameter slice_param = 31; - if (has_slice_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->slice_param_); - } - - // optional .opencv_caffe.TanHParameter tanh_param = 37; - if (has_tanh_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->tanh_param_); - } - - // optional .opencv_caffe.ThresholdParameter threshold_param = 25; - if (has_threshold_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->threshold_param_); - } - - // optional .opencv_caffe.WindowDataParameter window_data_param = 20; - if (has_window_data_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->window_data_param_); - } - - } - if (_has_bits_[40 / 32] & 1792u) { - // optional .opencv_caffe.TransformationParameter transform_param = 36; - if (has_transform_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->transform_param_); - } - - // optional .opencv_caffe.LossParameter loss_param = 42; - if (has_loss_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->loss_param_); - } - - // optional .opencv_caffe.V0LayerParameter layer = 1; - if (has_layer()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->layer_); - } - + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); } // repeated string bottom = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->bottom_size()); - for (int i = 0; i < this->bottom_size(); i++) { + for (int i = 0, n = this->bottom_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->bottom(i)); } @@ -48491,67 +36698,26 @@ size_t V1LayerParameter::ByteSizeLong() const { // repeated string top = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->top_size()); - for (int i = 0; i < this->top_size(); i++) { + for (int i = 0, n = this->top_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->top(i)); } - // repeated .opencv_caffe.NetStateRule include = 32; - { - unsigned int count = this->include_size(); - total_size += 2UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->include(i)); - } - } - - // repeated .opencv_caffe.NetStateRule exclude = 33; - { - unsigned int count = this->exclude_size(); - total_size += 2UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->exclude(i)); - } - } - // repeated .opencv_caffe.BlobProto blobs = 6; { - unsigned int count = this->blobs_size(); + unsigned int count = static_cast(this->blobs_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->blobs(i)); + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->blobs(static_cast(i))); } } - // repeated string param = 1001; - total_size += 2 * - ::google::protobuf::internal::FromIntSize(this->param_size()); - for (int i = 0; i < this->param_size(); i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->param(i)); - } - - // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; - { - size_t data_size = 0; - unsigned int count = this->blob_share_mode_size();for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( - this->blob_share_mode(i)); - } - total_size += (2UL * count) + data_size; - } - // repeated float blobs_lr = 7; { - size_t data_size = 0; - unsigned int count = this->blobs_lr_size(); - data_size = 4UL * count; + unsigned int count = static_cast(this->blobs_lr_size()); + size_t data_size = 4UL * count; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->blobs_lr_size()); total_size += data_size; @@ -48559,29 +36725,300 @@ size_t V1LayerParameter::ByteSizeLong() const { // repeated float weight_decay = 8; { - size_t data_size = 0; - unsigned int count = this->weight_decay_size(); - data_size = 4UL * count; + unsigned int count = static_cast(this->weight_decay_size()); + size_t data_size = 4UL * count; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->weight_decay_size()); total_size += data_size; } + // repeated .opencv_caffe.NetStateRule include = 32; + { + unsigned int count = static_cast(this->include_size()); + total_size += 2UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->include(static_cast(i))); + } + } + + // repeated .opencv_caffe.NetStateRule exclude = 33; + { + unsigned int count = static_cast(this->exclude_size()); + total_size += 2UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->exclude(static_cast(i))); + } + } + // repeated float loss_weight = 35; { - size_t data_size = 0; - unsigned int count = this->loss_weight_size(); - data_size = 4UL * count; + unsigned int count = static_cast(this->loss_weight_size()); + size_t data_size = 4UL * count; total_size += 2 * ::google::protobuf::internal::FromIntSize(this->loss_weight_size()); total_size += data_size; } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); + // repeated string param = 1001; + total_size += 2 * + ::google::protobuf::internal::FromIntSize(this->param_size()); + for (int i = 0, n = this->param_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->param(i)); } + + // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; + { + size_t data_size = 0; + unsigned int count = static_cast(this->blob_share_mode_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->blob_share_mode(static_cast(i))); + } + total_size += (2UL * count) + data_size; + } + + if (_has_bits_[0 / 32] & 255u) { + // optional string name = 4; + if (has_name()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // optional .opencv_caffe.V0LayerParameter layer = 1; + if (has_layer()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->layer_); + } + + // optional .opencv_caffe.ConcatParameter concat_param = 9; + if (has_concat_param()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->concat_param_); + } + + // optional .opencv_caffe.ConvolutionParameter convolution_param = 10; + if (has_convolution_param()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->convolution_param_); + } + + // optional .opencv_caffe.DataParameter data_param = 11; + if (has_data_param()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->data_param_); + } + + // optional .opencv_caffe.DropoutParameter dropout_param = 12; + if (has_dropout_param()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->dropout_param_); + } + + // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13; + if (has_hdf5_data_param()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->hdf5_data_param_); + } + + // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14; + if (has_hdf5_output_param()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->hdf5_output_param_); + } + + } + if (_has_bits_[8 / 32] & 65280u) { + // optional .opencv_caffe.ImageDataParameter image_data_param = 15; + if (has_image_data_param()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->image_data_param_); + } + + // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16; + if (has_infogain_loss_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->infogain_loss_param_); + } + + // optional .opencv_caffe.InnerProductParameter inner_product_param = 17; + if (has_inner_product_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->inner_product_param_); + } + + // optional .opencv_caffe.LRNParameter lrn_param = 18; + if (has_lrn_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->lrn_param_); + } + + // optional .opencv_caffe.PoolingParameter pooling_param = 19; + if (has_pooling_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->pooling_param_); + } + + // optional .opencv_caffe.WindowDataParameter window_data_param = 20; + if (has_window_data_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->window_data_param_); + } + + // optional .opencv_caffe.PowerParameter power_param = 21; + if (has_power_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->power_param_); + } + + // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22; + if (has_memory_data_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->memory_data_param_); + } + + } + if (_has_bits_[16 / 32] & 16711680u) { + // optional .opencv_caffe.ArgMaxParameter argmax_param = 23; + if (has_argmax_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->argmax_param_); + } + + // optional .opencv_caffe.EltwiseParameter eltwise_param = 24; + if (has_eltwise_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->eltwise_param_); + } + + // optional .opencv_caffe.ThresholdParameter threshold_param = 25; + if (has_threshold_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->threshold_param_); + } + + // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26; + if (has_dummy_data_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->dummy_data_param_); + } + + // optional .opencv_caffe.AccuracyParameter accuracy_param = 27; + if (has_accuracy_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->accuracy_param_); + } + + // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29; + if (has_hinge_loss_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->hinge_loss_param_); + } + + // optional .opencv_caffe.ReLUParameter relu_param = 30; + if (has_relu_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->relu_param_); + } + + // optional .opencv_caffe.SliceParameter slice_param = 31; + if (has_slice_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->slice_param_); + } + + } + if (_has_bits_[24 / 32] & 4278190080u) { + // optional .opencv_caffe.MVNParameter mvn_param = 34; + if (has_mvn_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->mvn_param_); + } + + // optional .opencv_caffe.TransformationParameter transform_param = 36; + if (has_transform_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->transform_param_); + } + + // optional .opencv_caffe.TanHParameter tanh_param = 37; + if (has_tanh_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->tanh_param_); + } + + // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38; + if (has_sigmoid_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->sigmoid_param_); + } + + // optional .opencv_caffe.SoftmaxParameter softmax_param = 39; + if (has_softmax_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->softmax_param_); + } + + // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40; + if (has_contrastive_loss_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->contrastive_loss_param_); + } + + // optional .opencv_caffe.ExpParameter exp_param = 41; + if (has_exp_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->exp_param_); + } + + // optional .opencv_caffe.LossParameter loss_param = 42; + if (has_loss_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->loss_param_); + } + + } + // optional .opencv_caffe.V1LayerParameter.LayerType type = 5; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -48591,7 +37028,7 @@ size_t V1LayerParameter::ByteSizeLong() const { void V1LayerParameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.V1LayerParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const V1LayerParameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -48600,146 +37037,135 @@ void V1LayerParameter::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.V1LayerParameter) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void V1LayerParameter::MergeFrom(const V1LayerParameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.V1LayerParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void V1LayerParameter::UnsafeMergeFrom(const V1LayerParameter& from) { - GOOGLE_DCHECK(&from != this); - bottom_.UnsafeMergeFrom(from.bottom_); - top_.UnsafeMergeFrom(from.top_); + bottom_.MergeFrom(from.bottom_); + top_.MergeFrom(from.top_); + blobs_.MergeFrom(from.blobs_); + blobs_lr_.MergeFrom(from.blobs_lr_); + weight_decay_.MergeFrom(from.weight_decay_); include_.MergeFrom(from.include_); exclude_.MergeFrom(from.exclude_); - blobs_.MergeFrom(from.blobs_); - param_.UnsafeMergeFrom(from.param_); - blob_share_mode_.UnsafeMergeFrom(from.blob_share_mode_); - blobs_lr_.UnsafeMergeFrom(from.blobs_lr_); - weight_decay_.UnsafeMergeFrom(from.weight_decay_); - loss_weight_.UnsafeMergeFrom(from.loss_weight_); - if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { - if (from.has_name()) { + loss_weight_.MergeFrom(from.loss_weight_); + param_.MergeFrom(from.param_); + blob_share_mode_.MergeFrom(from.blob_share_mode_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { set_has_name(); name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } - if (from.has_type()) { - set_type(from.type()); + if (cached_has_bits & 0x00000002u) { + mutable_layer()->::opencv_caffe::V0LayerParameter::MergeFrom(from.layer()); } - } - if (from._has_bits_[12 / 32] & (0xffu << (12 % 32))) { - if (from.has_accuracy_param()) { - mutable_accuracy_param()->::opencv_caffe::AccuracyParameter::MergeFrom(from.accuracy_param()); - } - if (from.has_argmax_param()) { - mutable_argmax_param()->::opencv_caffe::ArgMaxParameter::MergeFrom(from.argmax_param()); - } - if (from.has_concat_param()) { + if (cached_has_bits & 0x00000004u) { mutable_concat_param()->::opencv_caffe::ConcatParameter::MergeFrom(from.concat_param()); } - if (from.has_contrastive_loss_param()) { - mutable_contrastive_loss_param()->::opencv_caffe::ContrastiveLossParameter::MergeFrom(from.contrastive_loss_param()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_convolution_param()) { + if (cached_has_bits & 0x00000008u) { mutable_convolution_param()->::opencv_caffe::ConvolutionParameter::MergeFrom(from.convolution_param()); } - if (from.has_data_param()) { + if (cached_has_bits & 0x00000010u) { mutable_data_param()->::opencv_caffe::DataParameter::MergeFrom(from.data_param()); } - if (from.has_dropout_param()) { + if (cached_has_bits & 0x00000020u) { mutable_dropout_param()->::opencv_caffe::DropoutParameter::MergeFrom(from.dropout_param()); } - if (from.has_dummy_data_param()) { - mutable_dummy_data_param()->::opencv_caffe::DummyDataParameter::MergeFrom(from.dummy_data_param()); - } - if (from.has_eltwise_param()) { - mutable_eltwise_param()->::opencv_caffe::EltwiseParameter::MergeFrom(from.eltwise_param()); - } - if (from.has_exp_param()) { - mutable_exp_param()->::opencv_caffe::ExpParameter::MergeFrom(from.exp_param()); - } - if (from.has_hdf5_data_param()) { + if (cached_has_bits & 0x00000040u) { mutable_hdf5_data_param()->::opencv_caffe::HDF5DataParameter::MergeFrom(from.hdf5_data_param()); } - if (from.has_hdf5_output_param()) { + if (cached_has_bits & 0x00000080u) { mutable_hdf5_output_param()->::opencv_caffe::HDF5OutputParameter::MergeFrom(from.hdf5_output_param()); } } - if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) { - if (from.has_hinge_loss_param()) { - mutable_hinge_loss_param()->::opencv_caffe::HingeLossParameter::MergeFrom(from.hinge_loss_param()); - } - if (from.has_image_data_param()) { + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { mutable_image_data_param()->::opencv_caffe::ImageDataParameter::MergeFrom(from.image_data_param()); } - if (from.has_infogain_loss_param()) { + if (cached_has_bits & 0x00000200u) { mutable_infogain_loss_param()->::opencv_caffe::InfogainLossParameter::MergeFrom(from.infogain_loss_param()); } - if (from.has_inner_product_param()) { + if (cached_has_bits & 0x00000400u) { mutable_inner_product_param()->::opencv_caffe::InnerProductParameter::MergeFrom(from.inner_product_param()); } - if (from.has_lrn_param()) { + if (cached_has_bits & 0x00000800u) { mutable_lrn_param()->::opencv_caffe::LRNParameter::MergeFrom(from.lrn_param()); } - if (from.has_memory_data_param()) { - mutable_memory_data_param()->::opencv_caffe::MemoryDataParameter::MergeFrom(from.memory_data_param()); - } - if (from.has_mvn_param()) { - mutable_mvn_param()->::opencv_caffe::MVNParameter::MergeFrom(from.mvn_param()); - } - if (from.has_pooling_param()) { + if (cached_has_bits & 0x00001000u) { mutable_pooling_param()->::opencv_caffe::PoolingParameter::MergeFrom(from.pooling_param()); } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_power_param()) { - mutable_power_param()->::opencv_caffe::PowerParameter::MergeFrom(from.power_param()); - } - if (from.has_relu_param()) { - mutable_relu_param()->::opencv_caffe::ReLUParameter::MergeFrom(from.relu_param()); - } - if (from.has_sigmoid_param()) { - mutable_sigmoid_param()->::opencv_caffe::SigmoidParameter::MergeFrom(from.sigmoid_param()); - } - if (from.has_softmax_param()) { - mutable_softmax_param()->::opencv_caffe::SoftmaxParameter::MergeFrom(from.softmax_param()); - } - if (from.has_slice_param()) { - mutable_slice_param()->::opencv_caffe::SliceParameter::MergeFrom(from.slice_param()); - } - if (from.has_tanh_param()) { - mutable_tanh_param()->::opencv_caffe::TanHParameter::MergeFrom(from.tanh_param()); - } - if (from.has_threshold_param()) { - mutable_threshold_param()->::opencv_caffe::ThresholdParameter::MergeFrom(from.threshold_param()); - } - if (from.has_window_data_param()) { + if (cached_has_bits & 0x00002000u) { mutable_window_data_param()->::opencv_caffe::WindowDataParameter::MergeFrom(from.window_data_param()); } + if (cached_has_bits & 0x00004000u) { + mutable_power_param()->::opencv_caffe::PowerParameter::MergeFrom(from.power_param()); + } + if (cached_has_bits & 0x00008000u) { + mutable_memory_data_param()->::opencv_caffe::MemoryDataParameter::MergeFrom(from.memory_data_param()); + } } - if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (from.has_transform_param()) { + if (cached_has_bits & 16711680u) { + if (cached_has_bits & 0x00010000u) { + mutable_argmax_param()->::opencv_caffe::ArgMaxParameter::MergeFrom(from.argmax_param()); + } + if (cached_has_bits & 0x00020000u) { + mutable_eltwise_param()->::opencv_caffe::EltwiseParameter::MergeFrom(from.eltwise_param()); + } + if (cached_has_bits & 0x00040000u) { + mutable_threshold_param()->::opencv_caffe::ThresholdParameter::MergeFrom(from.threshold_param()); + } + if (cached_has_bits & 0x00080000u) { + mutable_dummy_data_param()->::opencv_caffe::DummyDataParameter::MergeFrom(from.dummy_data_param()); + } + if (cached_has_bits & 0x00100000u) { + mutable_accuracy_param()->::opencv_caffe::AccuracyParameter::MergeFrom(from.accuracy_param()); + } + if (cached_has_bits & 0x00200000u) { + mutable_hinge_loss_param()->::opencv_caffe::HingeLossParameter::MergeFrom(from.hinge_loss_param()); + } + if (cached_has_bits & 0x00400000u) { + mutable_relu_param()->::opencv_caffe::ReLUParameter::MergeFrom(from.relu_param()); + } + if (cached_has_bits & 0x00800000u) { + mutable_slice_param()->::opencv_caffe::SliceParameter::MergeFrom(from.slice_param()); + } + } + if (cached_has_bits & 4278190080u) { + if (cached_has_bits & 0x01000000u) { + mutable_mvn_param()->::opencv_caffe::MVNParameter::MergeFrom(from.mvn_param()); + } + if (cached_has_bits & 0x02000000u) { mutable_transform_param()->::opencv_caffe::TransformationParameter::MergeFrom(from.transform_param()); } - if (from.has_loss_param()) { + if (cached_has_bits & 0x04000000u) { + mutable_tanh_param()->::opencv_caffe::TanHParameter::MergeFrom(from.tanh_param()); + } + if (cached_has_bits & 0x08000000u) { + mutable_sigmoid_param()->::opencv_caffe::SigmoidParameter::MergeFrom(from.sigmoid_param()); + } + if (cached_has_bits & 0x10000000u) { + mutable_softmax_param()->::opencv_caffe::SoftmaxParameter::MergeFrom(from.softmax_param()); + } + if (cached_has_bits & 0x20000000u) { + mutable_contrastive_loss_param()->::opencv_caffe::ContrastiveLossParameter::MergeFrom(from.contrastive_loss_param()); + } + if (cached_has_bits & 0x40000000u) { + mutable_exp_param()->::opencv_caffe::ExpParameter::MergeFrom(from.exp_param()); + } + if (cached_has_bits & 0x80000000u) { mutable_loss_param()->::opencv_caffe::LossParameter::MergeFrom(from.loss_param()); } - if (from.has_layer()) { - mutable_layer()->::opencv_caffe::V0LayerParameter::MergeFrom(from.layer()); - } } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); + if (from.has_type()) { + set_type(from.type()); } } @@ -48754,11 +37180,10 @@ void V1LayerParameter::CopyFrom(const V1LayerParameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.V1LayerParameter) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool V1LayerParameter::IsInitialized() const { - return true; } @@ -48767,1948 +37192,73 @@ void V1LayerParameter::Swap(V1LayerParameter* other) { InternalSwap(other); } void V1LayerParameter::InternalSwap(V1LayerParameter* other) { - bottom_.UnsafeArenaSwap(&other->bottom_); - top_.UnsafeArenaSwap(&other->top_); + using std::swap; + bottom_.InternalSwap(&other->bottom_); + top_.InternalSwap(&other->top_); + blobs_.InternalSwap(&other->blobs_); + blobs_lr_.InternalSwap(&other->blobs_lr_); + weight_decay_.InternalSwap(&other->weight_decay_); + include_.InternalSwap(&other->include_); + exclude_.InternalSwap(&other->exclude_); + loss_weight_.InternalSwap(&other->loss_weight_); + param_.InternalSwap(&other->param_); + blob_share_mode_.InternalSwap(&other->blob_share_mode_); name_.Swap(&other->name_); - include_.UnsafeArenaSwap(&other->include_); - exclude_.UnsafeArenaSwap(&other->exclude_); - std::swap(type_, other->type_); - blobs_.UnsafeArenaSwap(&other->blobs_); - param_.UnsafeArenaSwap(&other->param_); - blob_share_mode_.UnsafeArenaSwap(&other->blob_share_mode_); - blobs_lr_.UnsafeArenaSwap(&other->blobs_lr_); - weight_decay_.UnsafeArenaSwap(&other->weight_decay_); - loss_weight_.UnsafeArenaSwap(&other->loss_weight_); - std::swap(accuracy_param_, other->accuracy_param_); - std::swap(argmax_param_, other->argmax_param_); - std::swap(concat_param_, other->concat_param_); - std::swap(contrastive_loss_param_, other->contrastive_loss_param_); - std::swap(convolution_param_, other->convolution_param_); - std::swap(data_param_, other->data_param_); - std::swap(dropout_param_, other->dropout_param_); - std::swap(dummy_data_param_, other->dummy_data_param_); - std::swap(eltwise_param_, other->eltwise_param_); - std::swap(exp_param_, other->exp_param_); - std::swap(hdf5_data_param_, other->hdf5_data_param_); - std::swap(hdf5_output_param_, other->hdf5_output_param_); - std::swap(hinge_loss_param_, other->hinge_loss_param_); - std::swap(image_data_param_, other->image_data_param_); - std::swap(infogain_loss_param_, other->infogain_loss_param_); - std::swap(inner_product_param_, other->inner_product_param_); - std::swap(lrn_param_, other->lrn_param_); - std::swap(memory_data_param_, other->memory_data_param_); - std::swap(mvn_param_, other->mvn_param_); - std::swap(pooling_param_, other->pooling_param_); - std::swap(power_param_, other->power_param_); - std::swap(relu_param_, other->relu_param_); - std::swap(sigmoid_param_, other->sigmoid_param_); - std::swap(softmax_param_, other->softmax_param_); - std::swap(slice_param_, other->slice_param_); - std::swap(tanh_param_, other->tanh_param_); - std::swap(threshold_param_, other->threshold_param_); - std::swap(window_data_param_, other->window_data_param_); - std::swap(transform_param_, other->transform_param_); - std::swap(loss_param_, other->loss_param_); - std::swap(layer_, other->layer_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_has_bits_[1], other->_has_bits_[1]); + swap(layer_, other->layer_); + swap(concat_param_, other->concat_param_); + swap(convolution_param_, other->convolution_param_); + swap(data_param_, other->data_param_); + swap(dropout_param_, other->dropout_param_); + swap(hdf5_data_param_, other->hdf5_data_param_); + swap(hdf5_output_param_, other->hdf5_output_param_); + swap(image_data_param_, other->image_data_param_); + swap(infogain_loss_param_, other->infogain_loss_param_); + swap(inner_product_param_, other->inner_product_param_); + swap(lrn_param_, other->lrn_param_); + swap(pooling_param_, other->pooling_param_); + swap(window_data_param_, other->window_data_param_); + swap(power_param_, other->power_param_); + swap(memory_data_param_, other->memory_data_param_); + swap(argmax_param_, other->argmax_param_); + swap(eltwise_param_, other->eltwise_param_); + swap(threshold_param_, other->threshold_param_); + swap(dummy_data_param_, other->dummy_data_param_); + swap(accuracy_param_, other->accuracy_param_); + swap(hinge_loss_param_, other->hinge_loss_param_); + swap(relu_param_, other->relu_param_); + swap(slice_param_, other->slice_param_); + swap(mvn_param_, other->mvn_param_); + swap(transform_param_, other->transform_param_); + swap(tanh_param_, other->tanh_param_); + swap(sigmoid_param_, other->sigmoid_param_); + swap(softmax_param_, other->softmax_param_); + swap(contrastive_loss_param_, other->contrastive_loss_param_); + swap(exp_param_, other->exp_param_); + swap(loss_param_, other->loss_param_); + swap(type_, other->type_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(_has_bits_[1], other->_has_bits_[1]); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata V1LayerParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = V1LayerParameter_descriptor_; - metadata.reflection = V1LayerParameter_reflection_; - return metadata; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// V1LayerParameter - -// repeated string bottom = 2; -int V1LayerParameter::bottom_size() const { - return bottom_.size(); -} -void V1LayerParameter::clear_bottom() { - bottom_.Clear(); -} -const ::std::string& V1LayerParameter::bottom(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.bottom) - return bottom_.Get(index); -} -::std::string* V1LayerParameter::mutable_bottom(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.bottom) - return bottom_.Mutable(index); -} -void V1LayerParameter::set_bottom(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.bottom) - bottom_.Mutable(index)->assign(value); -} -void V1LayerParameter::set_bottom(int index, const char* value) { - bottom_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.V1LayerParameter.bottom) -} -void V1LayerParameter::set_bottom(int index, const char* value, size_t size) { - bottom_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V1LayerParameter.bottom) -} -::std::string* V1LayerParameter::add_bottom() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.V1LayerParameter.bottom) - return bottom_.Add(); -} -void V1LayerParameter::add_bottom(const ::std::string& value) { - bottom_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.bottom) -} -void V1LayerParameter::add_bottom(const char* value) { - bottom_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.V1LayerParameter.bottom) -} -void V1LayerParameter::add_bottom(const char* value, size_t size) { - bottom_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.V1LayerParameter.bottom) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -V1LayerParameter::bottom() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.bottom) - return bottom_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -V1LayerParameter::mutable_bottom() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.bottom) - return &bottom_; -} - -// repeated string top = 3; -int V1LayerParameter::top_size() const { - return top_.size(); -} -void V1LayerParameter::clear_top() { - top_.Clear(); -} -const ::std::string& V1LayerParameter::top(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.top) - return top_.Get(index); -} -::std::string* V1LayerParameter::mutable_top(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.top) - return top_.Mutable(index); -} -void V1LayerParameter::set_top(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.top) - top_.Mutable(index)->assign(value); -} -void V1LayerParameter::set_top(int index, const char* value) { - top_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.V1LayerParameter.top) -} -void V1LayerParameter::set_top(int index, const char* value, size_t size) { - top_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V1LayerParameter.top) -} -::std::string* V1LayerParameter::add_top() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.V1LayerParameter.top) - return top_.Add(); -} -void V1LayerParameter::add_top(const ::std::string& value) { - top_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.top) -} -void V1LayerParameter::add_top(const char* value) { - top_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.V1LayerParameter.top) -} -void V1LayerParameter::add_top(const char* value, size_t size) { - top_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.V1LayerParameter.top) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -V1LayerParameter::top() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.top) - return top_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -V1LayerParameter::mutable_top() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.top) - return &top_; -} - -// optional string name = 4; -bool V1LayerParameter::has_name() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void V1LayerParameter::set_has_name() { - _has_bits_[0] |= 0x00000004u; -} -void V1LayerParameter::clear_has_name() { - _has_bits_[0] &= ~0x00000004u; -} -void V1LayerParameter::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_name(); -} -const ::std::string& V1LayerParameter::name() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V1LayerParameter::set_name(const ::std::string& value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.name) -} -void V1LayerParameter::set_name(const char* value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.V1LayerParameter.name) -} -void V1LayerParameter::set_name(const char* value, size_t size) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V1LayerParameter.name) -} -::std::string* V1LayerParameter::mutable_name() { - set_has_name(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* V1LayerParameter::release_name() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.name) - clear_has_name(); - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V1LayerParameter::set_allocated_name(::std::string* name) { - if (name != NULL) { - set_has_name(); - } else { - clear_has_name(); - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.name) -} - -// repeated .opencv_caffe.NetStateRule include = 32; -int V1LayerParameter::include_size() const { - return include_.size(); -} -void V1LayerParameter::clear_include() { - include_.Clear(); -} -const ::opencv_caffe::NetStateRule& V1LayerParameter::include(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.include) - return include_.Get(index); -} -::opencv_caffe::NetStateRule* V1LayerParameter::mutable_include(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.include) - return include_.Mutable(index); -} -::opencv_caffe::NetStateRule* V1LayerParameter::add_include() { - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.include) - return include_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >* -V1LayerParameter::mutable_include() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.include) - return &include_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >& -V1LayerParameter::include() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.include) - return include_; -} - -// repeated .opencv_caffe.NetStateRule exclude = 33; -int V1LayerParameter::exclude_size() const { - return exclude_.size(); -} -void V1LayerParameter::clear_exclude() { - exclude_.Clear(); -} -const ::opencv_caffe::NetStateRule& V1LayerParameter::exclude(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.exclude) - return exclude_.Get(index); -} -::opencv_caffe::NetStateRule* V1LayerParameter::mutable_exclude(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.exclude) - return exclude_.Mutable(index); -} -::opencv_caffe::NetStateRule* V1LayerParameter::add_exclude() { - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.exclude) - return exclude_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >* -V1LayerParameter::mutable_exclude() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.exclude) - return &exclude_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >& -V1LayerParameter::exclude() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.exclude) - return exclude_; -} - -// optional .opencv_caffe.V1LayerParameter.LayerType type = 5; -bool V1LayerParameter::has_type() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void V1LayerParameter::set_has_type() { - _has_bits_[0] |= 0x00000020u; -} -void V1LayerParameter::clear_has_type() { - _has_bits_[0] &= ~0x00000020u; -} -void V1LayerParameter::clear_type() { - type_ = 0; - clear_has_type(); -} -::opencv_caffe::V1LayerParameter_LayerType V1LayerParameter::type() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.type) - return static_cast< ::opencv_caffe::V1LayerParameter_LayerType >(type_); -} -void V1LayerParameter::set_type(::opencv_caffe::V1LayerParameter_LayerType value) { - assert(::opencv_caffe::V1LayerParameter_LayerType_IsValid(value)); - set_has_type(); - type_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.type) -} - -// repeated .opencv_caffe.BlobProto blobs = 6; -int V1LayerParameter::blobs_size() const { - return blobs_.size(); -} -void V1LayerParameter::clear_blobs() { - blobs_.Clear(); -} -const ::opencv_caffe::BlobProto& V1LayerParameter::blobs(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.blobs) - return blobs_.Get(index); -} -::opencv_caffe::BlobProto* V1LayerParameter::mutable_blobs(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.blobs) - return blobs_.Mutable(index); -} -::opencv_caffe::BlobProto* V1LayerParameter::add_blobs() { - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.blobs) - return blobs_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >* -V1LayerParameter::mutable_blobs() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.blobs) - return &blobs_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >& -V1LayerParameter::blobs() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.blobs) - return blobs_; -} - -// repeated string param = 1001; -int V1LayerParameter::param_size() const { - return param_.size(); -} -void V1LayerParameter::clear_param() { - param_.Clear(); -} -const ::std::string& V1LayerParameter::param(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.param) - return param_.Get(index); -} -::std::string* V1LayerParameter::mutable_param(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.param) - return param_.Mutable(index); -} -void V1LayerParameter::set_param(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.param) - param_.Mutable(index)->assign(value); -} -void V1LayerParameter::set_param(int index, const char* value) { - param_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:opencv_caffe.V1LayerParameter.param) -} -void V1LayerParameter::set_param(int index, const char* value, size_t size) { - param_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V1LayerParameter.param) -} -::std::string* V1LayerParameter::add_param() { - // @@protoc_insertion_point(field_add_mutable:opencv_caffe.V1LayerParameter.param) - return param_.Add(); -} -void V1LayerParameter::add_param(const ::std::string& value) { - param_.Add()->assign(value); - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.param) -} -void V1LayerParameter::add_param(const char* value) { - param_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:opencv_caffe.V1LayerParameter.param) -} -void V1LayerParameter::add_param(const char* value, size_t size) { - param_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:opencv_caffe.V1LayerParameter.param) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -V1LayerParameter::param() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.param) - return param_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -V1LayerParameter::mutable_param() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.param) - return ¶m_; -} - -// repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; -int V1LayerParameter::blob_share_mode_size() const { - return blob_share_mode_.size(); -} -void V1LayerParameter::clear_blob_share_mode() { - blob_share_mode_.Clear(); -} -::opencv_caffe::V1LayerParameter_DimCheckMode V1LayerParameter::blob_share_mode(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.blob_share_mode) - return static_cast< ::opencv_caffe::V1LayerParameter_DimCheckMode >(blob_share_mode_.Get(index)); -} -void V1LayerParameter::set_blob_share_mode(int index, ::opencv_caffe::V1LayerParameter_DimCheckMode value) { - assert(::opencv_caffe::V1LayerParameter_DimCheckMode_IsValid(value)); - blob_share_mode_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.blob_share_mode) -} -void V1LayerParameter::add_blob_share_mode(::opencv_caffe::V1LayerParameter_DimCheckMode value) { - assert(::opencv_caffe::V1LayerParameter_DimCheckMode_IsValid(value)); - blob_share_mode_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.blob_share_mode) -} -const ::google::protobuf::RepeatedField& -V1LayerParameter::blob_share_mode() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.blob_share_mode) - return blob_share_mode_; -} -::google::protobuf::RepeatedField* -V1LayerParameter::mutable_blob_share_mode() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.blob_share_mode) - return &blob_share_mode_; -} - -// repeated float blobs_lr = 7; -int V1LayerParameter::blobs_lr_size() const { - return blobs_lr_.size(); -} -void V1LayerParameter::clear_blobs_lr() { - blobs_lr_.Clear(); -} -float V1LayerParameter::blobs_lr(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.blobs_lr) - return blobs_lr_.Get(index); -} -void V1LayerParameter::set_blobs_lr(int index, float value) { - blobs_lr_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.blobs_lr) -} -void V1LayerParameter::add_blobs_lr(float value) { - blobs_lr_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.blobs_lr) -} -const ::google::protobuf::RepeatedField< float >& -V1LayerParameter::blobs_lr() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.blobs_lr) - return blobs_lr_; -} -::google::protobuf::RepeatedField< float >* -V1LayerParameter::mutable_blobs_lr() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.blobs_lr) - return &blobs_lr_; -} - -// repeated float weight_decay = 8; -int V1LayerParameter::weight_decay_size() const { - return weight_decay_.size(); -} -void V1LayerParameter::clear_weight_decay() { - weight_decay_.Clear(); -} -float V1LayerParameter::weight_decay(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.weight_decay) - return weight_decay_.Get(index); -} -void V1LayerParameter::set_weight_decay(int index, float value) { - weight_decay_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.weight_decay) -} -void V1LayerParameter::add_weight_decay(float value) { - weight_decay_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.weight_decay) -} -const ::google::protobuf::RepeatedField< float >& -V1LayerParameter::weight_decay() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.weight_decay) - return weight_decay_; -} -::google::protobuf::RepeatedField< float >* -V1LayerParameter::mutable_weight_decay() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.weight_decay) - return &weight_decay_; -} - -// repeated float loss_weight = 35; -int V1LayerParameter::loss_weight_size() const { - return loss_weight_.size(); -} -void V1LayerParameter::clear_loss_weight() { - loss_weight_.Clear(); -} -float V1LayerParameter::loss_weight(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.loss_weight) - return loss_weight_.Get(index); -} -void V1LayerParameter::set_loss_weight(int index, float value) { - loss_weight_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.loss_weight) -} -void V1LayerParameter::add_loss_weight(float value) { - loss_weight_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.loss_weight) -} -const ::google::protobuf::RepeatedField< float >& -V1LayerParameter::loss_weight() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V1LayerParameter.loss_weight) - return loss_weight_; -} -::google::protobuf::RepeatedField< float >* -V1LayerParameter::mutable_loss_weight() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V1LayerParameter.loss_weight) - return &loss_weight_; -} - -// optional .opencv_caffe.AccuracyParameter accuracy_param = 27; -bool V1LayerParameter::has_accuracy_param() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -void V1LayerParameter::set_has_accuracy_param() { - _has_bits_[0] |= 0x00001000u; -} -void V1LayerParameter::clear_has_accuracy_param() { - _has_bits_[0] &= ~0x00001000u; -} -void V1LayerParameter::clear_accuracy_param() { - if (accuracy_param_ != NULL) accuracy_param_->::opencv_caffe::AccuracyParameter::Clear(); - clear_has_accuracy_param(); -} -const ::opencv_caffe::AccuracyParameter& V1LayerParameter::accuracy_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.accuracy_param) - return accuracy_param_ != NULL ? *accuracy_param_ - : *::opencv_caffe::AccuracyParameter::internal_default_instance(); -} -::opencv_caffe::AccuracyParameter* V1LayerParameter::mutable_accuracy_param() { - set_has_accuracy_param(); - if (accuracy_param_ == NULL) { - accuracy_param_ = new ::opencv_caffe::AccuracyParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.accuracy_param) - return accuracy_param_; -} -::opencv_caffe::AccuracyParameter* V1LayerParameter::release_accuracy_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.accuracy_param) - clear_has_accuracy_param(); - ::opencv_caffe::AccuracyParameter* temp = accuracy_param_; - accuracy_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_accuracy_param(::opencv_caffe::AccuracyParameter* accuracy_param) { - delete accuracy_param_; - accuracy_param_ = accuracy_param; - if (accuracy_param) { - set_has_accuracy_param(); - } else { - clear_has_accuracy_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.accuracy_param) -} - -// optional .opencv_caffe.ArgMaxParameter argmax_param = 23; -bool V1LayerParameter::has_argmax_param() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -void V1LayerParameter::set_has_argmax_param() { - _has_bits_[0] |= 0x00002000u; -} -void V1LayerParameter::clear_has_argmax_param() { - _has_bits_[0] &= ~0x00002000u; -} -void V1LayerParameter::clear_argmax_param() { - if (argmax_param_ != NULL) argmax_param_->::opencv_caffe::ArgMaxParameter::Clear(); - clear_has_argmax_param(); -} -const ::opencv_caffe::ArgMaxParameter& V1LayerParameter::argmax_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.argmax_param) - return argmax_param_ != NULL ? *argmax_param_ - : *::opencv_caffe::ArgMaxParameter::internal_default_instance(); -} -::opencv_caffe::ArgMaxParameter* V1LayerParameter::mutable_argmax_param() { - set_has_argmax_param(); - if (argmax_param_ == NULL) { - argmax_param_ = new ::opencv_caffe::ArgMaxParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.argmax_param) - return argmax_param_; -} -::opencv_caffe::ArgMaxParameter* V1LayerParameter::release_argmax_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.argmax_param) - clear_has_argmax_param(); - ::opencv_caffe::ArgMaxParameter* temp = argmax_param_; - argmax_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_argmax_param(::opencv_caffe::ArgMaxParameter* argmax_param) { - delete argmax_param_; - argmax_param_ = argmax_param; - if (argmax_param) { - set_has_argmax_param(); - } else { - clear_has_argmax_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.argmax_param) -} - -// optional .opencv_caffe.ConcatParameter concat_param = 9; -bool V1LayerParameter::has_concat_param() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -void V1LayerParameter::set_has_concat_param() { - _has_bits_[0] |= 0x00004000u; -} -void V1LayerParameter::clear_has_concat_param() { - _has_bits_[0] &= ~0x00004000u; -} -void V1LayerParameter::clear_concat_param() { - if (concat_param_ != NULL) concat_param_->::opencv_caffe::ConcatParameter::Clear(); - clear_has_concat_param(); -} -const ::opencv_caffe::ConcatParameter& V1LayerParameter::concat_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.concat_param) - return concat_param_ != NULL ? *concat_param_ - : *::opencv_caffe::ConcatParameter::internal_default_instance(); -} -::opencv_caffe::ConcatParameter* V1LayerParameter::mutable_concat_param() { - set_has_concat_param(); - if (concat_param_ == NULL) { - concat_param_ = new ::opencv_caffe::ConcatParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.concat_param) - return concat_param_; -} -::opencv_caffe::ConcatParameter* V1LayerParameter::release_concat_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.concat_param) - clear_has_concat_param(); - ::opencv_caffe::ConcatParameter* temp = concat_param_; - concat_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_concat_param(::opencv_caffe::ConcatParameter* concat_param) { - delete concat_param_; - concat_param_ = concat_param; - if (concat_param) { - set_has_concat_param(); - } else { - clear_has_concat_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.concat_param) -} - -// optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40; -bool V1LayerParameter::has_contrastive_loss_param() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -void V1LayerParameter::set_has_contrastive_loss_param() { - _has_bits_[0] |= 0x00008000u; -} -void V1LayerParameter::clear_has_contrastive_loss_param() { - _has_bits_[0] &= ~0x00008000u; -} -void V1LayerParameter::clear_contrastive_loss_param() { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::opencv_caffe::ContrastiveLossParameter::Clear(); - clear_has_contrastive_loss_param(); -} -const ::opencv_caffe::ContrastiveLossParameter& V1LayerParameter::contrastive_loss_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.contrastive_loss_param) - return contrastive_loss_param_ != NULL ? *contrastive_loss_param_ - : *::opencv_caffe::ContrastiveLossParameter::internal_default_instance(); -} -::opencv_caffe::ContrastiveLossParameter* V1LayerParameter::mutable_contrastive_loss_param() { - set_has_contrastive_loss_param(); - if (contrastive_loss_param_ == NULL) { - contrastive_loss_param_ = new ::opencv_caffe::ContrastiveLossParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.contrastive_loss_param) - return contrastive_loss_param_; -} -::opencv_caffe::ContrastiveLossParameter* V1LayerParameter::release_contrastive_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.contrastive_loss_param) - clear_has_contrastive_loss_param(); - ::opencv_caffe::ContrastiveLossParameter* temp = contrastive_loss_param_; - contrastive_loss_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_contrastive_loss_param(::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param) { - delete contrastive_loss_param_; - contrastive_loss_param_ = contrastive_loss_param; - if (contrastive_loss_param) { - set_has_contrastive_loss_param(); - } else { - clear_has_contrastive_loss_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.contrastive_loss_param) -} - -// optional .opencv_caffe.ConvolutionParameter convolution_param = 10; -bool V1LayerParameter::has_convolution_param() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -void V1LayerParameter::set_has_convolution_param() { - _has_bits_[0] |= 0x00010000u; -} -void V1LayerParameter::clear_has_convolution_param() { - _has_bits_[0] &= ~0x00010000u; -} -void V1LayerParameter::clear_convolution_param() { - if (convolution_param_ != NULL) convolution_param_->::opencv_caffe::ConvolutionParameter::Clear(); - clear_has_convolution_param(); -} -const ::opencv_caffe::ConvolutionParameter& V1LayerParameter::convolution_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.convolution_param) - return convolution_param_ != NULL ? *convolution_param_ - : *::opencv_caffe::ConvolutionParameter::internal_default_instance(); -} -::opencv_caffe::ConvolutionParameter* V1LayerParameter::mutable_convolution_param() { - set_has_convolution_param(); - if (convolution_param_ == NULL) { - convolution_param_ = new ::opencv_caffe::ConvolutionParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.convolution_param) - return convolution_param_; -} -::opencv_caffe::ConvolutionParameter* V1LayerParameter::release_convolution_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.convolution_param) - clear_has_convolution_param(); - ::opencv_caffe::ConvolutionParameter* temp = convolution_param_; - convolution_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_convolution_param(::opencv_caffe::ConvolutionParameter* convolution_param) { - delete convolution_param_; - convolution_param_ = convolution_param; - if (convolution_param) { - set_has_convolution_param(); - } else { - clear_has_convolution_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.convolution_param) -} - -// optional .opencv_caffe.DataParameter data_param = 11; -bool V1LayerParameter::has_data_param() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -void V1LayerParameter::set_has_data_param() { - _has_bits_[0] |= 0x00020000u; -} -void V1LayerParameter::clear_has_data_param() { - _has_bits_[0] &= ~0x00020000u; -} -void V1LayerParameter::clear_data_param() { - if (data_param_ != NULL) data_param_->::opencv_caffe::DataParameter::Clear(); - clear_has_data_param(); -} -const ::opencv_caffe::DataParameter& V1LayerParameter::data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.data_param) - return data_param_ != NULL ? *data_param_ - : *::opencv_caffe::DataParameter::internal_default_instance(); -} -::opencv_caffe::DataParameter* V1LayerParameter::mutable_data_param() { - set_has_data_param(); - if (data_param_ == NULL) { - data_param_ = new ::opencv_caffe::DataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.data_param) - return data_param_; -} -::opencv_caffe::DataParameter* V1LayerParameter::release_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.data_param) - clear_has_data_param(); - ::opencv_caffe::DataParameter* temp = data_param_; - data_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_data_param(::opencv_caffe::DataParameter* data_param) { - delete data_param_; - data_param_ = data_param; - if (data_param) { - set_has_data_param(); - } else { - clear_has_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.data_param) -} - -// optional .opencv_caffe.DropoutParameter dropout_param = 12; -bool V1LayerParameter::has_dropout_param() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -void V1LayerParameter::set_has_dropout_param() { - _has_bits_[0] |= 0x00040000u; -} -void V1LayerParameter::clear_has_dropout_param() { - _has_bits_[0] &= ~0x00040000u; -} -void V1LayerParameter::clear_dropout_param() { - if (dropout_param_ != NULL) dropout_param_->::opencv_caffe::DropoutParameter::Clear(); - clear_has_dropout_param(); -} -const ::opencv_caffe::DropoutParameter& V1LayerParameter::dropout_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.dropout_param) - return dropout_param_ != NULL ? *dropout_param_ - : *::opencv_caffe::DropoutParameter::internal_default_instance(); -} -::opencv_caffe::DropoutParameter* V1LayerParameter::mutable_dropout_param() { - set_has_dropout_param(); - if (dropout_param_ == NULL) { - dropout_param_ = new ::opencv_caffe::DropoutParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.dropout_param) - return dropout_param_; -} -::opencv_caffe::DropoutParameter* V1LayerParameter::release_dropout_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.dropout_param) - clear_has_dropout_param(); - ::opencv_caffe::DropoutParameter* temp = dropout_param_; - dropout_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_dropout_param(::opencv_caffe::DropoutParameter* dropout_param) { - delete dropout_param_; - dropout_param_ = dropout_param; - if (dropout_param) { - set_has_dropout_param(); - } else { - clear_has_dropout_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.dropout_param) -} - -// optional .opencv_caffe.DummyDataParameter dummy_data_param = 26; -bool V1LayerParameter::has_dummy_data_param() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -void V1LayerParameter::set_has_dummy_data_param() { - _has_bits_[0] |= 0x00080000u; -} -void V1LayerParameter::clear_has_dummy_data_param() { - _has_bits_[0] &= ~0x00080000u; -} -void V1LayerParameter::clear_dummy_data_param() { - if (dummy_data_param_ != NULL) dummy_data_param_->::opencv_caffe::DummyDataParameter::Clear(); - clear_has_dummy_data_param(); -} -const ::opencv_caffe::DummyDataParameter& V1LayerParameter::dummy_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.dummy_data_param) - return dummy_data_param_ != NULL ? *dummy_data_param_ - : *::opencv_caffe::DummyDataParameter::internal_default_instance(); -} -::opencv_caffe::DummyDataParameter* V1LayerParameter::mutable_dummy_data_param() { - set_has_dummy_data_param(); - if (dummy_data_param_ == NULL) { - dummy_data_param_ = new ::opencv_caffe::DummyDataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.dummy_data_param) - return dummy_data_param_; -} -::opencv_caffe::DummyDataParameter* V1LayerParameter::release_dummy_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.dummy_data_param) - clear_has_dummy_data_param(); - ::opencv_caffe::DummyDataParameter* temp = dummy_data_param_; - dummy_data_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_dummy_data_param(::opencv_caffe::DummyDataParameter* dummy_data_param) { - delete dummy_data_param_; - dummy_data_param_ = dummy_data_param; - if (dummy_data_param) { - set_has_dummy_data_param(); - } else { - clear_has_dummy_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.dummy_data_param) -} - -// optional .opencv_caffe.EltwiseParameter eltwise_param = 24; -bool V1LayerParameter::has_eltwise_param() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -void V1LayerParameter::set_has_eltwise_param() { - _has_bits_[0] |= 0x00100000u; -} -void V1LayerParameter::clear_has_eltwise_param() { - _has_bits_[0] &= ~0x00100000u; -} -void V1LayerParameter::clear_eltwise_param() { - if (eltwise_param_ != NULL) eltwise_param_->::opencv_caffe::EltwiseParameter::Clear(); - clear_has_eltwise_param(); -} -const ::opencv_caffe::EltwiseParameter& V1LayerParameter::eltwise_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.eltwise_param) - return eltwise_param_ != NULL ? *eltwise_param_ - : *::opencv_caffe::EltwiseParameter::internal_default_instance(); -} -::opencv_caffe::EltwiseParameter* V1LayerParameter::mutable_eltwise_param() { - set_has_eltwise_param(); - if (eltwise_param_ == NULL) { - eltwise_param_ = new ::opencv_caffe::EltwiseParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.eltwise_param) - return eltwise_param_; -} -::opencv_caffe::EltwiseParameter* V1LayerParameter::release_eltwise_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.eltwise_param) - clear_has_eltwise_param(); - ::opencv_caffe::EltwiseParameter* temp = eltwise_param_; - eltwise_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_eltwise_param(::opencv_caffe::EltwiseParameter* eltwise_param) { - delete eltwise_param_; - eltwise_param_ = eltwise_param; - if (eltwise_param) { - set_has_eltwise_param(); - } else { - clear_has_eltwise_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.eltwise_param) -} - -// optional .opencv_caffe.ExpParameter exp_param = 41; -bool V1LayerParameter::has_exp_param() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -void V1LayerParameter::set_has_exp_param() { - _has_bits_[0] |= 0x00200000u; -} -void V1LayerParameter::clear_has_exp_param() { - _has_bits_[0] &= ~0x00200000u; -} -void V1LayerParameter::clear_exp_param() { - if (exp_param_ != NULL) exp_param_->::opencv_caffe::ExpParameter::Clear(); - clear_has_exp_param(); -} -const ::opencv_caffe::ExpParameter& V1LayerParameter::exp_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.exp_param) - return exp_param_ != NULL ? *exp_param_ - : *::opencv_caffe::ExpParameter::internal_default_instance(); -} -::opencv_caffe::ExpParameter* V1LayerParameter::mutable_exp_param() { - set_has_exp_param(); - if (exp_param_ == NULL) { - exp_param_ = new ::opencv_caffe::ExpParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.exp_param) - return exp_param_; -} -::opencv_caffe::ExpParameter* V1LayerParameter::release_exp_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.exp_param) - clear_has_exp_param(); - ::opencv_caffe::ExpParameter* temp = exp_param_; - exp_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_exp_param(::opencv_caffe::ExpParameter* exp_param) { - delete exp_param_; - exp_param_ = exp_param; - if (exp_param) { - set_has_exp_param(); - } else { - clear_has_exp_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.exp_param) -} - -// optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13; -bool V1LayerParameter::has_hdf5_data_param() const { - return (_has_bits_[0] & 0x00400000u) != 0; -} -void V1LayerParameter::set_has_hdf5_data_param() { - _has_bits_[0] |= 0x00400000u; -} -void V1LayerParameter::clear_has_hdf5_data_param() { - _has_bits_[0] &= ~0x00400000u; -} -void V1LayerParameter::clear_hdf5_data_param() { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::opencv_caffe::HDF5DataParameter::Clear(); - clear_has_hdf5_data_param(); -} -const ::opencv_caffe::HDF5DataParameter& V1LayerParameter::hdf5_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.hdf5_data_param) - return hdf5_data_param_ != NULL ? *hdf5_data_param_ - : *::opencv_caffe::HDF5DataParameter::internal_default_instance(); -} -::opencv_caffe::HDF5DataParameter* V1LayerParameter::mutable_hdf5_data_param() { - set_has_hdf5_data_param(); - if (hdf5_data_param_ == NULL) { - hdf5_data_param_ = new ::opencv_caffe::HDF5DataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.hdf5_data_param) - return hdf5_data_param_; -} -::opencv_caffe::HDF5DataParameter* V1LayerParameter::release_hdf5_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.hdf5_data_param) - clear_has_hdf5_data_param(); - ::opencv_caffe::HDF5DataParameter* temp = hdf5_data_param_; - hdf5_data_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_hdf5_data_param(::opencv_caffe::HDF5DataParameter* hdf5_data_param) { - delete hdf5_data_param_; - hdf5_data_param_ = hdf5_data_param; - if (hdf5_data_param) { - set_has_hdf5_data_param(); - } else { - clear_has_hdf5_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.hdf5_data_param) -} - -// optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14; -bool V1LayerParameter::has_hdf5_output_param() const { - return (_has_bits_[0] & 0x00800000u) != 0; -} -void V1LayerParameter::set_has_hdf5_output_param() { - _has_bits_[0] |= 0x00800000u; -} -void V1LayerParameter::clear_has_hdf5_output_param() { - _has_bits_[0] &= ~0x00800000u; -} -void V1LayerParameter::clear_hdf5_output_param() { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::opencv_caffe::HDF5OutputParameter::Clear(); - clear_has_hdf5_output_param(); -} -const ::opencv_caffe::HDF5OutputParameter& V1LayerParameter::hdf5_output_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.hdf5_output_param) - return hdf5_output_param_ != NULL ? *hdf5_output_param_ - : *::opencv_caffe::HDF5OutputParameter::internal_default_instance(); -} -::opencv_caffe::HDF5OutputParameter* V1LayerParameter::mutable_hdf5_output_param() { - set_has_hdf5_output_param(); - if (hdf5_output_param_ == NULL) { - hdf5_output_param_ = new ::opencv_caffe::HDF5OutputParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.hdf5_output_param) - return hdf5_output_param_; -} -::opencv_caffe::HDF5OutputParameter* V1LayerParameter::release_hdf5_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.hdf5_output_param) - clear_has_hdf5_output_param(); - ::opencv_caffe::HDF5OutputParameter* temp = hdf5_output_param_; - hdf5_output_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param) { - delete hdf5_output_param_; - hdf5_output_param_ = hdf5_output_param; - if (hdf5_output_param) { - set_has_hdf5_output_param(); - } else { - clear_has_hdf5_output_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.hdf5_output_param) -} - -// optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29; -bool V1LayerParameter::has_hinge_loss_param() const { - return (_has_bits_[0] & 0x01000000u) != 0; -} -void V1LayerParameter::set_has_hinge_loss_param() { - _has_bits_[0] |= 0x01000000u; -} -void V1LayerParameter::clear_has_hinge_loss_param() { - _has_bits_[0] &= ~0x01000000u; -} -void V1LayerParameter::clear_hinge_loss_param() { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::opencv_caffe::HingeLossParameter::Clear(); - clear_has_hinge_loss_param(); -} -const ::opencv_caffe::HingeLossParameter& V1LayerParameter::hinge_loss_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.hinge_loss_param) - return hinge_loss_param_ != NULL ? *hinge_loss_param_ - : *::opencv_caffe::HingeLossParameter::internal_default_instance(); -} -::opencv_caffe::HingeLossParameter* V1LayerParameter::mutable_hinge_loss_param() { - set_has_hinge_loss_param(); - if (hinge_loss_param_ == NULL) { - hinge_loss_param_ = new ::opencv_caffe::HingeLossParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.hinge_loss_param) - return hinge_loss_param_; -} -::opencv_caffe::HingeLossParameter* V1LayerParameter::release_hinge_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.hinge_loss_param) - clear_has_hinge_loss_param(); - ::opencv_caffe::HingeLossParameter* temp = hinge_loss_param_; - hinge_loss_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_hinge_loss_param(::opencv_caffe::HingeLossParameter* hinge_loss_param) { - delete hinge_loss_param_; - hinge_loss_param_ = hinge_loss_param; - if (hinge_loss_param) { - set_has_hinge_loss_param(); - } else { - clear_has_hinge_loss_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.hinge_loss_param) -} - -// optional .opencv_caffe.ImageDataParameter image_data_param = 15; -bool V1LayerParameter::has_image_data_param() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -void V1LayerParameter::set_has_image_data_param() { - _has_bits_[0] |= 0x02000000u; -} -void V1LayerParameter::clear_has_image_data_param() { - _has_bits_[0] &= ~0x02000000u; -} -void V1LayerParameter::clear_image_data_param() { - if (image_data_param_ != NULL) image_data_param_->::opencv_caffe::ImageDataParameter::Clear(); - clear_has_image_data_param(); -} -const ::opencv_caffe::ImageDataParameter& V1LayerParameter::image_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.image_data_param) - return image_data_param_ != NULL ? *image_data_param_ - : *::opencv_caffe::ImageDataParameter::internal_default_instance(); -} -::opencv_caffe::ImageDataParameter* V1LayerParameter::mutable_image_data_param() { - set_has_image_data_param(); - if (image_data_param_ == NULL) { - image_data_param_ = new ::opencv_caffe::ImageDataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.image_data_param) - return image_data_param_; -} -::opencv_caffe::ImageDataParameter* V1LayerParameter::release_image_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.image_data_param) - clear_has_image_data_param(); - ::opencv_caffe::ImageDataParameter* temp = image_data_param_; - image_data_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_image_data_param(::opencv_caffe::ImageDataParameter* image_data_param) { - delete image_data_param_; - image_data_param_ = image_data_param; - if (image_data_param) { - set_has_image_data_param(); - } else { - clear_has_image_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.image_data_param) -} - -// optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16; -bool V1LayerParameter::has_infogain_loss_param() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -void V1LayerParameter::set_has_infogain_loss_param() { - _has_bits_[0] |= 0x04000000u; -} -void V1LayerParameter::clear_has_infogain_loss_param() { - _has_bits_[0] &= ~0x04000000u; -} -void V1LayerParameter::clear_infogain_loss_param() { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::opencv_caffe::InfogainLossParameter::Clear(); - clear_has_infogain_loss_param(); -} -const ::opencv_caffe::InfogainLossParameter& V1LayerParameter::infogain_loss_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.infogain_loss_param) - return infogain_loss_param_ != NULL ? *infogain_loss_param_ - : *::opencv_caffe::InfogainLossParameter::internal_default_instance(); -} -::opencv_caffe::InfogainLossParameter* V1LayerParameter::mutable_infogain_loss_param() { - set_has_infogain_loss_param(); - if (infogain_loss_param_ == NULL) { - infogain_loss_param_ = new ::opencv_caffe::InfogainLossParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.infogain_loss_param) - return infogain_loss_param_; -} -::opencv_caffe::InfogainLossParameter* V1LayerParameter::release_infogain_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.infogain_loss_param) - clear_has_infogain_loss_param(); - ::opencv_caffe::InfogainLossParameter* temp = infogain_loss_param_; - infogain_loss_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_infogain_loss_param(::opencv_caffe::InfogainLossParameter* infogain_loss_param) { - delete infogain_loss_param_; - infogain_loss_param_ = infogain_loss_param; - if (infogain_loss_param) { - set_has_infogain_loss_param(); - } else { - clear_has_infogain_loss_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.infogain_loss_param) -} - -// optional .opencv_caffe.InnerProductParameter inner_product_param = 17; -bool V1LayerParameter::has_inner_product_param() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -void V1LayerParameter::set_has_inner_product_param() { - _has_bits_[0] |= 0x08000000u; -} -void V1LayerParameter::clear_has_inner_product_param() { - _has_bits_[0] &= ~0x08000000u; -} -void V1LayerParameter::clear_inner_product_param() { - if (inner_product_param_ != NULL) inner_product_param_->::opencv_caffe::InnerProductParameter::Clear(); - clear_has_inner_product_param(); -} -const ::opencv_caffe::InnerProductParameter& V1LayerParameter::inner_product_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.inner_product_param) - return inner_product_param_ != NULL ? *inner_product_param_ - : *::opencv_caffe::InnerProductParameter::internal_default_instance(); -} -::opencv_caffe::InnerProductParameter* V1LayerParameter::mutable_inner_product_param() { - set_has_inner_product_param(); - if (inner_product_param_ == NULL) { - inner_product_param_ = new ::opencv_caffe::InnerProductParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.inner_product_param) - return inner_product_param_; -} -::opencv_caffe::InnerProductParameter* V1LayerParameter::release_inner_product_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.inner_product_param) - clear_has_inner_product_param(); - ::opencv_caffe::InnerProductParameter* temp = inner_product_param_; - inner_product_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_inner_product_param(::opencv_caffe::InnerProductParameter* inner_product_param) { - delete inner_product_param_; - inner_product_param_ = inner_product_param; - if (inner_product_param) { - set_has_inner_product_param(); - } else { - clear_has_inner_product_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.inner_product_param) -} - -// optional .opencv_caffe.LRNParameter lrn_param = 18; -bool V1LayerParameter::has_lrn_param() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -void V1LayerParameter::set_has_lrn_param() { - _has_bits_[0] |= 0x10000000u; -} -void V1LayerParameter::clear_has_lrn_param() { - _has_bits_[0] &= ~0x10000000u; -} -void V1LayerParameter::clear_lrn_param() { - if (lrn_param_ != NULL) lrn_param_->::opencv_caffe::LRNParameter::Clear(); - clear_has_lrn_param(); -} -const ::opencv_caffe::LRNParameter& V1LayerParameter::lrn_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.lrn_param) - return lrn_param_ != NULL ? *lrn_param_ - : *::opencv_caffe::LRNParameter::internal_default_instance(); -} -::opencv_caffe::LRNParameter* V1LayerParameter::mutable_lrn_param() { - set_has_lrn_param(); - if (lrn_param_ == NULL) { - lrn_param_ = new ::opencv_caffe::LRNParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.lrn_param) - return lrn_param_; -} -::opencv_caffe::LRNParameter* V1LayerParameter::release_lrn_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.lrn_param) - clear_has_lrn_param(); - ::opencv_caffe::LRNParameter* temp = lrn_param_; - lrn_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_lrn_param(::opencv_caffe::LRNParameter* lrn_param) { - delete lrn_param_; - lrn_param_ = lrn_param; - if (lrn_param) { - set_has_lrn_param(); - } else { - clear_has_lrn_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.lrn_param) -} - -// optional .opencv_caffe.MemoryDataParameter memory_data_param = 22; -bool V1LayerParameter::has_memory_data_param() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -void V1LayerParameter::set_has_memory_data_param() { - _has_bits_[0] |= 0x20000000u; -} -void V1LayerParameter::clear_has_memory_data_param() { - _has_bits_[0] &= ~0x20000000u; -} -void V1LayerParameter::clear_memory_data_param() { - if (memory_data_param_ != NULL) memory_data_param_->::opencv_caffe::MemoryDataParameter::Clear(); - clear_has_memory_data_param(); -} -const ::opencv_caffe::MemoryDataParameter& V1LayerParameter::memory_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.memory_data_param) - return memory_data_param_ != NULL ? *memory_data_param_ - : *::opencv_caffe::MemoryDataParameter::internal_default_instance(); -} -::opencv_caffe::MemoryDataParameter* V1LayerParameter::mutable_memory_data_param() { - set_has_memory_data_param(); - if (memory_data_param_ == NULL) { - memory_data_param_ = new ::opencv_caffe::MemoryDataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.memory_data_param) - return memory_data_param_; -} -::opencv_caffe::MemoryDataParameter* V1LayerParameter::release_memory_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.memory_data_param) - clear_has_memory_data_param(); - ::opencv_caffe::MemoryDataParameter* temp = memory_data_param_; - memory_data_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_memory_data_param(::opencv_caffe::MemoryDataParameter* memory_data_param) { - delete memory_data_param_; - memory_data_param_ = memory_data_param; - if (memory_data_param) { - set_has_memory_data_param(); - } else { - clear_has_memory_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.memory_data_param) -} - -// optional .opencv_caffe.MVNParameter mvn_param = 34; -bool V1LayerParameter::has_mvn_param() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -void V1LayerParameter::set_has_mvn_param() { - _has_bits_[0] |= 0x40000000u; -} -void V1LayerParameter::clear_has_mvn_param() { - _has_bits_[0] &= ~0x40000000u; -} -void V1LayerParameter::clear_mvn_param() { - if (mvn_param_ != NULL) mvn_param_->::opencv_caffe::MVNParameter::Clear(); - clear_has_mvn_param(); -} -const ::opencv_caffe::MVNParameter& V1LayerParameter::mvn_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.mvn_param) - return mvn_param_ != NULL ? *mvn_param_ - : *::opencv_caffe::MVNParameter::internal_default_instance(); -} -::opencv_caffe::MVNParameter* V1LayerParameter::mutable_mvn_param() { - set_has_mvn_param(); - if (mvn_param_ == NULL) { - mvn_param_ = new ::opencv_caffe::MVNParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.mvn_param) - return mvn_param_; -} -::opencv_caffe::MVNParameter* V1LayerParameter::release_mvn_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.mvn_param) - clear_has_mvn_param(); - ::opencv_caffe::MVNParameter* temp = mvn_param_; - mvn_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_mvn_param(::opencv_caffe::MVNParameter* mvn_param) { - delete mvn_param_; - mvn_param_ = mvn_param; - if (mvn_param) { - set_has_mvn_param(); - } else { - clear_has_mvn_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.mvn_param) -} - -// optional .opencv_caffe.PoolingParameter pooling_param = 19; -bool V1LayerParameter::has_pooling_param() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -void V1LayerParameter::set_has_pooling_param() { - _has_bits_[0] |= 0x80000000u; -} -void V1LayerParameter::clear_has_pooling_param() { - _has_bits_[0] &= ~0x80000000u; -} -void V1LayerParameter::clear_pooling_param() { - if (pooling_param_ != NULL) pooling_param_->::opencv_caffe::PoolingParameter::Clear(); - clear_has_pooling_param(); -} -const ::opencv_caffe::PoolingParameter& V1LayerParameter::pooling_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.pooling_param) - return pooling_param_ != NULL ? *pooling_param_ - : *::opencv_caffe::PoolingParameter::internal_default_instance(); -} -::opencv_caffe::PoolingParameter* V1LayerParameter::mutable_pooling_param() { - set_has_pooling_param(); - if (pooling_param_ == NULL) { - pooling_param_ = new ::opencv_caffe::PoolingParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.pooling_param) - return pooling_param_; -} -::opencv_caffe::PoolingParameter* V1LayerParameter::release_pooling_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.pooling_param) - clear_has_pooling_param(); - ::opencv_caffe::PoolingParameter* temp = pooling_param_; - pooling_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_pooling_param(::opencv_caffe::PoolingParameter* pooling_param) { - delete pooling_param_; - pooling_param_ = pooling_param; - if (pooling_param) { - set_has_pooling_param(); - } else { - clear_has_pooling_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.pooling_param) -} - -// optional .opencv_caffe.PowerParameter power_param = 21; -bool V1LayerParameter::has_power_param() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -void V1LayerParameter::set_has_power_param() { - _has_bits_[1] |= 0x00000001u; -} -void V1LayerParameter::clear_has_power_param() { - _has_bits_[1] &= ~0x00000001u; -} -void V1LayerParameter::clear_power_param() { - if (power_param_ != NULL) power_param_->::opencv_caffe::PowerParameter::Clear(); - clear_has_power_param(); -} -const ::opencv_caffe::PowerParameter& V1LayerParameter::power_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.power_param) - return power_param_ != NULL ? *power_param_ - : *::opencv_caffe::PowerParameter::internal_default_instance(); -} -::opencv_caffe::PowerParameter* V1LayerParameter::mutable_power_param() { - set_has_power_param(); - if (power_param_ == NULL) { - power_param_ = new ::opencv_caffe::PowerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.power_param) - return power_param_; -} -::opencv_caffe::PowerParameter* V1LayerParameter::release_power_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.power_param) - clear_has_power_param(); - ::opencv_caffe::PowerParameter* temp = power_param_; - power_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_power_param(::opencv_caffe::PowerParameter* power_param) { - delete power_param_; - power_param_ = power_param; - if (power_param) { - set_has_power_param(); - } else { - clear_has_power_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.power_param) -} - -// optional .opencv_caffe.ReLUParameter relu_param = 30; -bool V1LayerParameter::has_relu_param() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -void V1LayerParameter::set_has_relu_param() { - _has_bits_[1] |= 0x00000002u; -} -void V1LayerParameter::clear_has_relu_param() { - _has_bits_[1] &= ~0x00000002u; -} -void V1LayerParameter::clear_relu_param() { - if (relu_param_ != NULL) relu_param_->::opencv_caffe::ReLUParameter::Clear(); - clear_has_relu_param(); -} -const ::opencv_caffe::ReLUParameter& V1LayerParameter::relu_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.relu_param) - return relu_param_ != NULL ? *relu_param_ - : *::opencv_caffe::ReLUParameter::internal_default_instance(); -} -::opencv_caffe::ReLUParameter* V1LayerParameter::mutable_relu_param() { - set_has_relu_param(); - if (relu_param_ == NULL) { - relu_param_ = new ::opencv_caffe::ReLUParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.relu_param) - return relu_param_; -} -::opencv_caffe::ReLUParameter* V1LayerParameter::release_relu_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.relu_param) - clear_has_relu_param(); - ::opencv_caffe::ReLUParameter* temp = relu_param_; - relu_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_relu_param(::opencv_caffe::ReLUParameter* relu_param) { - delete relu_param_; - relu_param_ = relu_param; - if (relu_param) { - set_has_relu_param(); - } else { - clear_has_relu_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.relu_param) -} - -// optional .opencv_caffe.SigmoidParameter sigmoid_param = 38; -bool V1LayerParameter::has_sigmoid_param() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -void V1LayerParameter::set_has_sigmoid_param() { - _has_bits_[1] |= 0x00000004u; -} -void V1LayerParameter::clear_has_sigmoid_param() { - _has_bits_[1] &= ~0x00000004u; -} -void V1LayerParameter::clear_sigmoid_param() { - if (sigmoid_param_ != NULL) sigmoid_param_->::opencv_caffe::SigmoidParameter::Clear(); - clear_has_sigmoid_param(); -} -const ::opencv_caffe::SigmoidParameter& V1LayerParameter::sigmoid_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.sigmoid_param) - return sigmoid_param_ != NULL ? *sigmoid_param_ - : *::opencv_caffe::SigmoidParameter::internal_default_instance(); -} -::opencv_caffe::SigmoidParameter* V1LayerParameter::mutable_sigmoid_param() { - set_has_sigmoid_param(); - if (sigmoid_param_ == NULL) { - sigmoid_param_ = new ::opencv_caffe::SigmoidParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.sigmoid_param) - return sigmoid_param_; -} -::opencv_caffe::SigmoidParameter* V1LayerParameter::release_sigmoid_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.sigmoid_param) - clear_has_sigmoid_param(); - ::opencv_caffe::SigmoidParameter* temp = sigmoid_param_; - sigmoid_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_sigmoid_param(::opencv_caffe::SigmoidParameter* sigmoid_param) { - delete sigmoid_param_; - sigmoid_param_ = sigmoid_param; - if (sigmoid_param) { - set_has_sigmoid_param(); - } else { - clear_has_sigmoid_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.sigmoid_param) -} - -// optional .opencv_caffe.SoftmaxParameter softmax_param = 39; -bool V1LayerParameter::has_softmax_param() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -void V1LayerParameter::set_has_softmax_param() { - _has_bits_[1] |= 0x00000008u; -} -void V1LayerParameter::clear_has_softmax_param() { - _has_bits_[1] &= ~0x00000008u; -} -void V1LayerParameter::clear_softmax_param() { - if (softmax_param_ != NULL) softmax_param_->::opencv_caffe::SoftmaxParameter::Clear(); - clear_has_softmax_param(); -} -const ::opencv_caffe::SoftmaxParameter& V1LayerParameter::softmax_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.softmax_param) - return softmax_param_ != NULL ? *softmax_param_ - : *::opencv_caffe::SoftmaxParameter::internal_default_instance(); -} -::opencv_caffe::SoftmaxParameter* V1LayerParameter::mutable_softmax_param() { - set_has_softmax_param(); - if (softmax_param_ == NULL) { - softmax_param_ = new ::opencv_caffe::SoftmaxParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.softmax_param) - return softmax_param_; -} -::opencv_caffe::SoftmaxParameter* V1LayerParameter::release_softmax_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.softmax_param) - clear_has_softmax_param(); - ::opencv_caffe::SoftmaxParameter* temp = softmax_param_; - softmax_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_softmax_param(::opencv_caffe::SoftmaxParameter* softmax_param) { - delete softmax_param_; - softmax_param_ = softmax_param; - if (softmax_param) { - set_has_softmax_param(); - } else { - clear_has_softmax_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.softmax_param) -} - -// optional .opencv_caffe.SliceParameter slice_param = 31; -bool V1LayerParameter::has_slice_param() const { - return (_has_bits_[1] & 0x00000010u) != 0; -} -void V1LayerParameter::set_has_slice_param() { - _has_bits_[1] |= 0x00000010u; -} -void V1LayerParameter::clear_has_slice_param() { - _has_bits_[1] &= ~0x00000010u; -} -void V1LayerParameter::clear_slice_param() { - if (slice_param_ != NULL) slice_param_->::opencv_caffe::SliceParameter::Clear(); - clear_has_slice_param(); -} -const ::opencv_caffe::SliceParameter& V1LayerParameter::slice_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.slice_param) - return slice_param_ != NULL ? *slice_param_ - : *::opencv_caffe::SliceParameter::internal_default_instance(); -} -::opencv_caffe::SliceParameter* V1LayerParameter::mutable_slice_param() { - set_has_slice_param(); - if (slice_param_ == NULL) { - slice_param_ = new ::opencv_caffe::SliceParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.slice_param) - return slice_param_; -} -::opencv_caffe::SliceParameter* V1LayerParameter::release_slice_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.slice_param) - clear_has_slice_param(); - ::opencv_caffe::SliceParameter* temp = slice_param_; - slice_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_slice_param(::opencv_caffe::SliceParameter* slice_param) { - delete slice_param_; - slice_param_ = slice_param; - if (slice_param) { - set_has_slice_param(); - } else { - clear_has_slice_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.slice_param) -} - -// optional .opencv_caffe.TanHParameter tanh_param = 37; -bool V1LayerParameter::has_tanh_param() const { - return (_has_bits_[1] & 0x00000020u) != 0; -} -void V1LayerParameter::set_has_tanh_param() { - _has_bits_[1] |= 0x00000020u; -} -void V1LayerParameter::clear_has_tanh_param() { - _has_bits_[1] &= ~0x00000020u; -} -void V1LayerParameter::clear_tanh_param() { - if (tanh_param_ != NULL) tanh_param_->::opencv_caffe::TanHParameter::Clear(); - clear_has_tanh_param(); -} -const ::opencv_caffe::TanHParameter& V1LayerParameter::tanh_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.tanh_param) - return tanh_param_ != NULL ? *tanh_param_ - : *::opencv_caffe::TanHParameter::internal_default_instance(); -} -::opencv_caffe::TanHParameter* V1LayerParameter::mutable_tanh_param() { - set_has_tanh_param(); - if (tanh_param_ == NULL) { - tanh_param_ = new ::opencv_caffe::TanHParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.tanh_param) - return tanh_param_; -} -::opencv_caffe::TanHParameter* V1LayerParameter::release_tanh_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.tanh_param) - clear_has_tanh_param(); - ::opencv_caffe::TanHParameter* temp = tanh_param_; - tanh_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_tanh_param(::opencv_caffe::TanHParameter* tanh_param) { - delete tanh_param_; - tanh_param_ = tanh_param; - if (tanh_param) { - set_has_tanh_param(); - } else { - clear_has_tanh_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.tanh_param) -} - -// optional .opencv_caffe.ThresholdParameter threshold_param = 25; -bool V1LayerParameter::has_threshold_param() const { - return (_has_bits_[1] & 0x00000040u) != 0; -} -void V1LayerParameter::set_has_threshold_param() { - _has_bits_[1] |= 0x00000040u; -} -void V1LayerParameter::clear_has_threshold_param() { - _has_bits_[1] &= ~0x00000040u; -} -void V1LayerParameter::clear_threshold_param() { - if (threshold_param_ != NULL) threshold_param_->::opencv_caffe::ThresholdParameter::Clear(); - clear_has_threshold_param(); -} -const ::opencv_caffe::ThresholdParameter& V1LayerParameter::threshold_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.threshold_param) - return threshold_param_ != NULL ? *threshold_param_ - : *::opencv_caffe::ThresholdParameter::internal_default_instance(); -} -::opencv_caffe::ThresholdParameter* V1LayerParameter::mutable_threshold_param() { - set_has_threshold_param(); - if (threshold_param_ == NULL) { - threshold_param_ = new ::opencv_caffe::ThresholdParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.threshold_param) - return threshold_param_; -} -::opencv_caffe::ThresholdParameter* V1LayerParameter::release_threshold_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.threshold_param) - clear_has_threshold_param(); - ::opencv_caffe::ThresholdParameter* temp = threshold_param_; - threshold_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_threshold_param(::opencv_caffe::ThresholdParameter* threshold_param) { - delete threshold_param_; - threshold_param_ = threshold_param; - if (threshold_param) { - set_has_threshold_param(); - } else { - clear_has_threshold_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.threshold_param) -} - -// optional .opencv_caffe.WindowDataParameter window_data_param = 20; -bool V1LayerParameter::has_window_data_param() const { - return (_has_bits_[1] & 0x00000080u) != 0; -} -void V1LayerParameter::set_has_window_data_param() { - _has_bits_[1] |= 0x00000080u; -} -void V1LayerParameter::clear_has_window_data_param() { - _has_bits_[1] &= ~0x00000080u; -} -void V1LayerParameter::clear_window_data_param() { - if (window_data_param_ != NULL) window_data_param_->::opencv_caffe::WindowDataParameter::Clear(); - clear_has_window_data_param(); -} -const ::opencv_caffe::WindowDataParameter& V1LayerParameter::window_data_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.window_data_param) - return window_data_param_ != NULL ? *window_data_param_ - : *::opencv_caffe::WindowDataParameter::internal_default_instance(); -} -::opencv_caffe::WindowDataParameter* V1LayerParameter::mutable_window_data_param() { - set_has_window_data_param(); - if (window_data_param_ == NULL) { - window_data_param_ = new ::opencv_caffe::WindowDataParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.window_data_param) - return window_data_param_; -} -::opencv_caffe::WindowDataParameter* V1LayerParameter::release_window_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.window_data_param) - clear_has_window_data_param(); - ::opencv_caffe::WindowDataParameter* temp = window_data_param_; - window_data_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_window_data_param(::opencv_caffe::WindowDataParameter* window_data_param) { - delete window_data_param_; - window_data_param_ = window_data_param; - if (window_data_param) { - set_has_window_data_param(); - } else { - clear_has_window_data_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.window_data_param) -} - -// optional .opencv_caffe.TransformationParameter transform_param = 36; -bool V1LayerParameter::has_transform_param() const { - return (_has_bits_[1] & 0x00000100u) != 0; -} -void V1LayerParameter::set_has_transform_param() { - _has_bits_[1] |= 0x00000100u; -} -void V1LayerParameter::clear_has_transform_param() { - _has_bits_[1] &= ~0x00000100u; -} -void V1LayerParameter::clear_transform_param() { - if (transform_param_ != NULL) transform_param_->::opencv_caffe::TransformationParameter::Clear(); - clear_has_transform_param(); -} -const ::opencv_caffe::TransformationParameter& V1LayerParameter::transform_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.transform_param) - return transform_param_ != NULL ? *transform_param_ - : *::opencv_caffe::TransformationParameter::internal_default_instance(); -} -::opencv_caffe::TransformationParameter* V1LayerParameter::mutable_transform_param() { - set_has_transform_param(); - if (transform_param_ == NULL) { - transform_param_ = new ::opencv_caffe::TransformationParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.transform_param) - return transform_param_; -} -::opencv_caffe::TransformationParameter* V1LayerParameter::release_transform_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.transform_param) - clear_has_transform_param(); - ::opencv_caffe::TransformationParameter* temp = transform_param_; - transform_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_transform_param(::opencv_caffe::TransformationParameter* transform_param) { - delete transform_param_; - transform_param_ = transform_param; - if (transform_param) { - set_has_transform_param(); - } else { - clear_has_transform_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.transform_param) -} - -// optional .opencv_caffe.LossParameter loss_param = 42; -bool V1LayerParameter::has_loss_param() const { - return (_has_bits_[1] & 0x00000200u) != 0; -} -void V1LayerParameter::set_has_loss_param() { - _has_bits_[1] |= 0x00000200u; -} -void V1LayerParameter::clear_has_loss_param() { - _has_bits_[1] &= ~0x00000200u; -} -void V1LayerParameter::clear_loss_param() { - if (loss_param_ != NULL) loss_param_->::opencv_caffe::LossParameter::Clear(); - clear_has_loss_param(); -} -const ::opencv_caffe::LossParameter& V1LayerParameter::loss_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.loss_param) - return loss_param_ != NULL ? *loss_param_ - : *::opencv_caffe::LossParameter::internal_default_instance(); -} -::opencv_caffe::LossParameter* V1LayerParameter::mutable_loss_param() { - set_has_loss_param(); - if (loss_param_ == NULL) { - loss_param_ = new ::opencv_caffe::LossParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.loss_param) - return loss_param_; -} -::opencv_caffe::LossParameter* V1LayerParameter::release_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.loss_param) - clear_has_loss_param(); - ::opencv_caffe::LossParameter* temp = loss_param_; - loss_param_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_loss_param(::opencv_caffe::LossParameter* loss_param) { - delete loss_param_; - loss_param_ = loss_param; - if (loss_param) { - set_has_loss_param(); - } else { - clear_has_loss_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.loss_param) -} - -// optional .opencv_caffe.V0LayerParameter layer = 1; -bool V1LayerParameter::has_layer() const { - return (_has_bits_[1] & 0x00000400u) != 0; -} -void V1LayerParameter::set_has_layer() { - _has_bits_[1] |= 0x00000400u; -} -void V1LayerParameter::clear_has_layer() { - _has_bits_[1] &= ~0x00000400u; -} -void V1LayerParameter::clear_layer() { - if (layer_ != NULL) layer_->::opencv_caffe::V0LayerParameter::Clear(); - clear_has_layer(); -} -const ::opencv_caffe::V0LayerParameter& V1LayerParameter::layer() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.layer) - return layer_ != NULL ? *layer_ - : *::opencv_caffe::V0LayerParameter::internal_default_instance(); -} -::opencv_caffe::V0LayerParameter* V1LayerParameter::mutable_layer() { - set_has_layer(); - if (layer_ == NULL) { - layer_ = new ::opencv_caffe::V0LayerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.layer) - return layer_; -} -::opencv_caffe::V0LayerParameter* V1LayerParameter::release_layer() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.layer) - clear_has_layer(); - ::opencv_caffe::V0LayerParameter* temp = layer_; - layer_ = NULL; - return temp; -} -void V1LayerParameter::set_allocated_layer(::opencv_caffe::V0LayerParameter* layer) { - delete layer_; - layer_ = layer; - if (layer) { - set_has_layer(); - } else { - clear_has_layer(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.layer) -} - -inline const V1LayerParameter* V1LayerParameter::internal_default_instance() { - return &V1LayerParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -const ::google::protobuf::EnumDescriptor* V0LayerParameter_PoolMethod_descriptor() { - protobuf_AssignDescriptorsOnce(); - return V0LayerParameter_PoolMethod_descriptor_; +void V0LayerParameter::InitAsDefaultInstance() { + ::opencv_caffe::_V0LayerParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); + ::opencv_caffe::_V0LayerParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); + ::opencv_caffe::_V0LayerParameter_default_instance_._instance.get_mutable()->hdf5_output_param_ = const_cast< ::opencv_caffe::HDF5OutputParameter*>( + ::opencv_caffe::HDF5OutputParameter::internal_default_instance()); } -bool V0LayerParameter_PoolMethod_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const V0LayerParameter_PoolMethod V0LayerParameter::MAX; -const V0LayerParameter_PoolMethod V0LayerParameter::AVE; -const V0LayerParameter_PoolMethod V0LayerParameter::STOCHASTIC; -const V0LayerParameter_PoolMethod V0LayerParameter::PoolMethod_MIN; -const V0LayerParameter_PoolMethod V0LayerParameter::PoolMethod_MAX; -const int V0LayerParameter::PoolMethod_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -::std::string* V0LayerParameter::_default_det_crop_mode_ = NULL; +::google::protobuf::internal::ExplicitlyConstructed< ::std::string> V0LayerParameter::_default_det_crop_mode_; #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int V0LayerParameter::kNameFieldNumber; const int V0LayerParameter::kTypeFieldNumber; @@ -50752,25 +37302,59 @@ const int V0LayerParameter::kHdf5OutputParamFieldNumber; V0LayerParameter::V0LayerParameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV0LayerParameter(); + } SharedCtor(); // @@protoc_insertion_point(constructor:opencv_caffe.V0LayerParameter) } - -void V0LayerParameter::InitAsDefaultInstance() { - weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); - bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); - hdf5_output_param_ = const_cast< ::opencv_caffe::HDF5OutputParameter*>( - ::opencv_caffe::HDF5OutputParameter::internal_default_instance()); -} - V0LayerParameter::V0LayerParameter(const V0LayerParameter& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + blobs_(from.blobs_), + blobs_lr_(from.blobs_lr_), + weight_decay_(from.weight_decay_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_name()) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_type()) { + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_source()) { + source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); + } + meanfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.has_meanfile()) { + meanfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.meanfile_); + } + det_crop_mode_.UnsafeSetDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get()); + if (from.has_det_crop_mode()) { + det_crop_mode_.AssignWithDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get(), from.det_crop_mode_); + } + if (from.has_weight_filler()) { + weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_); + } else { + weight_filler_ = NULL; + } + if (from.has_bias_filler()) { + bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_); + } else { + bias_filler_ = NULL; + } + if (from.has_hdf5_output_param()) { + hdf5_output_param_ = new ::opencv_caffe::HDF5OutputParameter(*from.hdf5_output_param_); + } else { + hdf5_output_param_ = NULL; + } + ::memcpy(&num_output_, &from.num_output_, + static_cast(reinterpret_cast(&det_fg_fraction_) - + reinterpret_cast(&num_output_)) + sizeof(det_fg_fraction_)); // @@protoc_insertion_point(copy_constructor:opencv_caffe.V0LayerParameter) } @@ -50779,12 +37363,10 @@ void V0LayerParameter::SharedCtor() { type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); meanfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - det_crop_mode_.UnsafeSetDefault(_default_det_crop_mode_); - weight_filler_ = NULL; - bias_filler_ = NULL; - hdf5_output_param_ = NULL; - ::memset(&num_output_, 0, reinterpret_cast(&new_width_) - - reinterpret_cast(&num_output_) + sizeof(new_width_)); + det_crop_mode_.UnsafeSetDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get()); + ::memset(&weight_filler_, 0, static_cast( + reinterpret_cast(&new_height_) - + reinterpret_cast(&weight_filler_)) + sizeof(new_height_)); concat_dim_ = 1u; biasterm_ = true; group_ = 1u; @@ -50793,8 +37375,8 @@ void V0LayerParameter::SharedCtor() { local_size_ = 5u; alpha_ = 1; beta_ = 0.75f; - k_ = 1; scale_ = 1; + k_ = 1; det_fg_threshold_ = 0.5f; det_bg_threshold_ = 0.5f; det_fg_fraction_ = 0.25f; @@ -50811,12 +37393,10 @@ void V0LayerParameter::SharedDtor() { type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); meanfile_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - det_crop_mode_.DestroyNoArena(_default_det_crop_mode_); - if (this != &V0LayerParameter_default_instance_.get()) { - delete weight_filler_; - delete bias_filler_; - delete hdf5_output_param_; - } + det_crop_mode_.DestroyNoArena(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get()); + if (this != internal_default_instance()) delete weight_filler_; + if (this != internal_default_instance()) delete bias_filler_; + if (this != internal_default_instance()) delete hdf5_output_param_; } void V0LayerParameter::SetCachedSize(int size) const { @@ -50825,17 +37405,15 @@ void V0LayerParameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* V0LayerParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return V0LayerParameter_descriptor_; + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const V0LayerParameter& V0LayerParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV0LayerParameter(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed V0LayerParameter_default_instance_; - V0LayerParameter* V0LayerParameter::New(::google::protobuf::Arena* arena) const { V0LayerParameter* n = new V0LayerParameter; if (arena != NULL) { @@ -50846,88 +37424,78 @@ V0LayerParameter* V0LayerParameter::New(::google::protobuf::Arena* arena) const void V0LayerParameter::Clear() { // @@protoc_insertion_point(message_clear_start:opencv_caffe.V0LayerParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(V0LayerParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 255u) { - ZR_(num_output_, kernelsize_); - if (has_name()) { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - if (has_type()) { - type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - biasterm_ = true; - if (has_weight_filler()) { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - } - if (has_bias_filler()) { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - } - } - if (_has_bits_[8 / 32] & 65280u) { - group_ = 1u; - stride_ = 1u; - pool_ = 0; - dropout_ratio_ = 0.5f; - local_size_ = 5u; - alpha_ = 1; - beta_ = 0.75f; - k_ = 1; - } - if (_has_bits_[16 / 32] & 4128768u) { - ZR_(batchsize_, cropsize_); - if (has_source()) { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - scale_ = 1; - if (has_meanfile()) { - meanfile_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - mirror_ = false; - } - if (_has_bits_[24 / 32] & 4261412864u) { - ZR_(det_context_pad_, new_num_); - rand_skip_ = 0u; - det_fg_threshold_ = 0.5f; - det_bg_threshold_ = 0.5f; - det_fg_fraction_ = 0.25f; - if (has_det_crop_mode()) { - det_crop_mode_.ClearToDefaultNoArena(_default_det_crop_mode_); - } - } - if (_has_bits_[32 / 32] & 63u) { - ZR_(new_channels_, new_width_); - shuffle_images_ = false; - concat_dim_ = 1u; - if (has_hdf5_output_param()) { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::opencv_caffe::HDF5OutputParameter::Clear(); - } - } - -#undef ZR_HELPER_ -#undef ZR_ + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; blobs_.Clear(); blobs_lr_.Clear(); weight_decay_.Clear(); - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*name_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(!type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*type_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*source_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(!meanfile_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); + (*meanfile_.UnsafeRawStringPointer())->clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(!det_crop_mode_.IsDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get())); + (*det_crop_mode_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get()); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(weight_filler_ != NULL); + weight_filler_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(bias_filler_ != NULL); + bias_filler_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(hdf5_output_param_ != NULL); + hdf5_output_param_->Clear(); + } } + if (cached_has_bits & 65280u) { + ::memset(&num_output_, 0, static_cast( + reinterpret_cast(&mirror_) - + reinterpret_cast(&num_output_)) + sizeof(mirror_)); + } + if (cached_has_bits & 16711680u) { + ::memset(&shuffle_images_, 0, static_cast( + reinterpret_cast(&new_height_) - + reinterpret_cast(&shuffle_images_)) + sizeof(new_height_)); + concat_dim_ = 1u; + biasterm_ = true; + } + if (cached_has_bits & 4278190080u) { + group_ = 1u; + stride_ = 1u; + dropout_ratio_ = 0.5f; + local_size_ = 5u; + alpha_ = 1; + beta_ = 0.75f; + scale_ = 1; + k_ = 1; + } + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 7u) { + det_fg_threshold_ = 0.5f; + det_bg_threshold_ = 0.5f; + det_fg_fraction_ = 0.25f; + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); } bool V0LayerParameter::MergePartialFromCodedStream( @@ -50936,47 +37504,46 @@ bool V0LayerParameter::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:opencv_caffe.V0LayerParameter) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string name = 1; case 1: { - if (tag == 10) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormat::PARSE, "opencv_caffe.V0LayerParameter.name"); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_type; break; } // optional string type = 2; case 2: { - if (tag == 18) { - parse_type: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_type())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), + this->type().data(), static_cast(this->type().length()), ::google::protobuf::internal::WireFormat::PARSE, "opencv_caffe.V0LayerParameter.type"); } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_num_output; break; } // optional uint32 num_output = 3; case 3: { - if (tag == 24) { - parse_num_output: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_num_output(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -50984,14 +37551,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(32)) goto parse_biasterm; break; } // optional bool biasterm = 4 [default = true]; case 4: { - if (tag == 32) { - parse_biasterm: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_biasterm(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -50999,40 +37565,37 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_weight_filler; break; } // optional .opencv_caffe.FillerParameter weight_filler = 5; case 5: { - if (tag == 42) { - parse_weight_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_weight_filler())); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_bias_filler; break; } // optional .opencv_caffe.FillerParameter bias_filler = 6; case 6: { - if (tag == 50) { - parse_bias_filler: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_bias_filler())); } else { goto handle_unusual; } - if (input->ExpectTag(56)) goto parse_pad; break; } // optional uint32 pad = 7 [default = 0]; case 7: { - if (tag == 56) { - parse_pad: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { set_has_pad(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51040,14 +37603,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(64)) goto parse_kernelsize; break; } // optional uint32 kernelsize = 8; case 8: { - if (tag == 64) { - parse_kernelsize: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { set_has_kernelsize(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51055,14 +37617,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(72)) goto parse_group; break; } // optional uint32 group = 9 [default = 1]; case 9: { - if (tag == 72) { - parse_group: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { set_has_group(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51070,14 +37631,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(80)) goto parse_stride; break; } // optional uint32 stride = 10 [default = 1]; case 10: { - if (tag == 80) { - parse_stride: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { set_has_stride(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51085,14 +37645,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(88)) goto parse_pool; break; } // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; case 11: { - if (tag == 88) { - parse_pool: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( @@ -51100,19 +37659,19 @@ bool V0LayerParameter::MergePartialFromCodedStream( if (::opencv_caffe::V0LayerParameter_PoolMethod_IsValid(value)) { set_pool(static_cast< ::opencv_caffe::V0LayerParameter_PoolMethod >(value)); } else { - mutable_unknown_fields()->AddVarint(11, value); + mutable_unknown_fields()->AddVarint( + 11, static_cast< ::google::protobuf::uint64>(value)); } } else { goto handle_unusual; } - if (input->ExpectTag(101)) goto parse_dropout_ratio; break; } // optional float dropout_ratio = 12 [default = 0.5]; case 12: { - if (tag == 101) { - parse_dropout_ratio: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) { set_has_dropout_ratio(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -51120,14 +37679,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(104)) goto parse_local_size; break; } // optional uint32 local_size = 13 [default = 5]; case 13: { - if (tag == 104) { - parse_local_size: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { set_has_local_size(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51135,14 +37693,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(117)) goto parse_alpha; break; } // optional float alpha = 14 [default = 1]; case 14: { - if (tag == 117) { - parse_alpha: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) { set_has_alpha(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -51150,14 +37707,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(125)) goto parse_beta; break; } // optional float beta = 15 [default = 0.75]; case 15: { - if (tag == 125) { - parse_beta: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) { set_has_beta(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -51165,31 +37721,29 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(130)) goto parse_source; break; } // optional string source = 16; case 16: { - if (tag == 130) { - parse_source: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_source())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), + this->source().data(), static_cast(this->source().length()), ::google::protobuf::internal::WireFormat::PARSE, "opencv_caffe.V0LayerParameter.source"); } else { goto handle_unusual; } - if (input->ExpectTag(141)) goto parse_scale; break; } // optional float scale = 17 [default = 1]; case 17: { - if (tag == 141) { - parse_scale: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(141u /* 141 & 0xFF */)) { set_has_scale(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -51197,31 +37751,29 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(146)) goto parse_meanfile; break; } // optional string meanfile = 18; case 18: { - if (tag == 146) { - parse_meanfile: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_meanfile())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->meanfile().data(), this->meanfile().length(), + this->meanfile().data(), static_cast(this->meanfile().length()), ::google::protobuf::internal::WireFormat::PARSE, "opencv_caffe.V0LayerParameter.meanfile"); } else { goto handle_unusual; } - if (input->ExpectTag(152)) goto parse_batchsize; break; } // optional uint32 batchsize = 19; case 19: { - if (tag == 152) { - parse_batchsize: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) { set_has_batchsize(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51229,14 +37781,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(160)) goto parse_cropsize; break; } // optional uint32 cropsize = 20 [default = 0]; case 20: { - if (tag == 160) { - parse_cropsize: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) { set_has_cropsize(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51244,14 +37795,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(168)) goto parse_mirror; break; } // optional bool mirror = 21 [default = false]; case 21: { - if (tag == 168) { - parse_mirror: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(168u /* 168 & 0xFF */)) { set_has_mirror(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -51259,14 +37809,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(181)) goto parse_k; break; } // optional float k = 22 [default = 1]; case 22: { - if (tag == 181) { - parse_k: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(181u /* 181 & 0xFF */)) { set_has_k(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -51274,69 +37823,62 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(402)) goto parse_blobs; break; } // repeated .opencv_caffe.BlobProto blobs = 50; case 50: { - if (tag == 402) { - parse_blobs: - DO_(input->IncrementRecursionDepth()); - parse_loop_blobs: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_blobs())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(146u /* 402 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_blobs())); } else { goto handle_unusual; } - if (input->ExpectTag(402)) goto parse_loop_blobs; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(413)) goto parse_blobs_lr; break; } // repeated float blobs_lr = 51; case 51: { - if (tag == 413) { - parse_blobs_lr: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(157u /* 413 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 2, 413, input, this->mutable_blobs_lr()))); - } else if (tag == 410) { + 2, 413u, input, this->mutable_blobs_lr()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(154u /* 410 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_blobs_lr()))); } else { goto handle_unusual; } - if (input->ExpectTag(413)) goto parse_blobs_lr; - if (input->ExpectTag(421)) goto parse_weight_decay; break; } // repeated float weight_decay = 52; case 52: { - if (tag == 421) { - parse_weight_decay: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(165u /* 421 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 2, 421, input, this->mutable_weight_decay()))); - } else if (tag == 418) { + 2, 421u, input, this->mutable_weight_decay()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(162u /* 418 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_weight_decay()))); } else { goto handle_unusual; } - if (input->ExpectTag(421)) goto parse_weight_decay; - if (input->ExpectTag(424)) goto parse_rand_skip; break; } // optional uint32 rand_skip = 53 [default = 0]; case 53: { - if (tag == 424) { - parse_rand_skip: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(168u /* 424 & 0xFF */)) { set_has_rand_skip(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51344,14 +37886,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(437)) goto parse_det_fg_threshold; break; } // optional float det_fg_threshold = 54 [default = 0.5]; case 54: { - if (tag == 437) { - parse_det_fg_threshold: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(181u /* 437 & 0xFF */)) { set_has_det_fg_threshold(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -51359,14 +37900,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(445)) goto parse_det_bg_threshold; break; } // optional float det_bg_threshold = 55 [default = 0.5]; case 55: { - if (tag == 445) { - parse_det_bg_threshold: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(189u /* 445 & 0xFF */)) { set_has_det_bg_threshold(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -51374,14 +37914,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(453)) goto parse_det_fg_fraction; break; } // optional float det_fg_fraction = 56 [default = 0.25]; case 56: { - if (tag == 453) { - parse_det_fg_fraction: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(197u /* 453 & 0xFF */)) { set_has_det_fg_fraction(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -51389,14 +37928,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(464)) goto parse_det_context_pad; break; } // optional uint32 det_context_pad = 58 [default = 0]; case 58: { - if (tag == 464) { - parse_det_context_pad: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(208u /* 464 & 0xFF */)) { set_has_det_context_pad(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51404,31 +37942,29 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(474)) goto parse_det_crop_mode; break; } // optional string det_crop_mode = 59 [default = "warp"]; case 59: { - if (tag == 474) { - parse_det_crop_mode: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(218u /* 474 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_det_crop_mode())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->det_crop_mode().data(), this->det_crop_mode().length(), + this->det_crop_mode().data(), static_cast(this->det_crop_mode().length()), ::google::protobuf::internal::WireFormat::PARSE, "opencv_caffe.V0LayerParameter.det_crop_mode"); } else { goto handle_unusual; } - if (input->ExpectTag(480)) goto parse_new_num; break; } // optional int32 new_num = 60 [default = 0]; case 60: { - if (tag == 480) { - parse_new_num: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(224u /* 480 & 0xFF */)) { set_has_new_num(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -51436,14 +37972,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(488)) goto parse_new_channels; break; } // optional int32 new_channels = 61 [default = 0]; case 61: { - if (tag == 488) { - parse_new_channels: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(232u /* 488 & 0xFF */)) { set_has_new_channels(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -51451,14 +37986,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(496)) goto parse_new_height; break; } // optional int32 new_height = 62 [default = 0]; case 62: { - if (tag == 496) { - parse_new_height: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(240u /* 496 & 0xFF */)) { set_has_new_height(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -51466,14 +38000,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(504)) goto parse_new_width; break; } // optional int32 new_width = 63 [default = 0]; case 63: { - if (tag == 504) { - parse_new_width: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(248u /* 504 & 0xFF */)) { set_has_new_width(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -51481,14 +38014,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(512)) goto parse_shuffle_images; break; } // optional bool shuffle_images = 64 [default = false]; case 64: { - if (tag == 512) { - parse_shuffle_images: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(0u /* 512 & 0xFF */)) { set_has_shuffle_images(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -51496,14 +38028,13 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(520)) goto parse_concat_dim; break; } // optional uint32 concat_dim = 65 [default = 1]; case 65: { - if (tag == 520) { - parse_concat_dim: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 520 & 0xFF */)) { set_has_concat_dim(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -51511,32 +38042,28 @@ bool V0LayerParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(8010)) goto parse_hdf5_output_param; break; } // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001; case 1001: { - if (tag == 8010) { - parse_hdf5_output_param: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 8010 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_hdf5_output_param())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -51553,10 +38080,14 @@ failure: void V0LayerParameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:opencv_caffe.V0LayerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional string name = 1; - if (has_name()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -51564,9 +38095,9 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional string type = 2; - if (has_type()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), + this->type().data(), static_cast(this->type().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.type"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -51574,77 +38105,77 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional uint32 num_output = 3; - if (has_num_output()) { + if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->num_output(), output); } // optional bool biasterm = 4 [default = true]; - if (has_biasterm()) { + if (cached_has_bits & 0x00800000u) { ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->biasterm(), output); } // optional .opencv_caffe.FillerParameter weight_filler = 5; - if (has_weight_filler()) { + if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, *this->weight_filler_, output); } // optional .opencv_caffe.FillerParameter bias_filler = 6; - if (has_bias_filler()) { + if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, *this->bias_filler_, output); } // optional uint32 pad = 7 [default = 0]; - if (has_pad()) { + if (cached_has_bits & 0x00000200u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->pad(), output); } // optional uint32 kernelsize = 8; - if (has_kernelsize()) { + if (cached_has_bits & 0x00000400u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->kernelsize(), output); } // optional uint32 group = 9 [default = 1]; - if (has_group()) { + if (cached_has_bits & 0x01000000u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->group(), output); } // optional uint32 stride = 10 [default = 1]; - if (has_stride()) { + if (cached_has_bits & 0x02000000u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->stride(), output); } // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; - if (has_pool()) { + if (cached_has_bits & 0x00000800u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 11, this->pool(), output); } // optional float dropout_ratio = 12 [default = 0.5]; - if (has_dropout_ratio()) { + if (cached_has_bits & 0x04000000u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->dropout_ratio(), output); } // optional uint32 local_size = 13 [default = 5]; - if (has_local_size()) { + if (cached_has_bits & 0x08000000u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->local_size(), output); } // optional float alpha = 14 [default = 1]; - if (has_alpha()) { + if (cached_has_bits & 0x10000000u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->alpha(), output); } // optional float beta = 15 [default = 0.75]; - if (has_beta()) { + if (cached_has_bits & 0x20000000u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->beta(), output); } // optional string source = 16; - if (has_source()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), + this->source().data(), static_cast(this->source().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.source"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -51652,14 +38183,14 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional float scale = 17 [default = 1]; - if (has_scale()) { + if (cached_has_bits & 0x40000000u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(17, this->scale(), output); } // optional string meanfile = 18; - if (has_meanfile()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->meanfile().data(), this->meanfile().length(), + this->meanfile().data(), static_cast(this->meanfile().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.meanfile"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -51667,72 +38198,75 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional uint32 batchsize = 19; - if (has_batchsize()) { + if (cached_has_bits & 0x00001000u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->batchsize(), output); } // optional uint32 cropsize = 20 [default = 0]; - if (has_cropsize()) { + if (cached_has_bits & 0x00002000u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(20, this->cropsize(), output); } // optional bool mirror = 21 [default = false]; - if (has_mirror()) { + if (cached_has_bits & 0x00008000u) { ::google::protobuf::internal::WireFormatLite::WriteBool(21, this->mirror(), output); } // optional float k = 22 [default = 1]; - if (has_k()) { + if (cached_has_bits & 0x80000000u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(22, this->k(), output); } // repeated .opencv_caffe.BlobProto blobs = 50; - for (unsigned int i = 0, n = this->blobs_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->blobs_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 50, this->blobs(i), output); + 50, this->blobs(static_cast(i)), output); } // repeated float blobs_lr = 51; - for (int i = 0; i < this->blobs_lr_size(); i++) { + for (int i = 0, n = this->blobs_lr_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteFloat( 51, this->blobs_lr(i), output); } // repeated float weight_decay = 52; - for (int i = 0; i < this->weight_decay_size(); i++) { + for (int i = 0, n = this->weight_decay_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteFloat( 52, this->weight_decay(i), output); } // optional uint32 rand_skip = 53 [default = 0]; - if (has_rand_skip()) { + if (cached_has_bits & 0x00020000u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(53, this->rand_skip(), output); } + cached_has_bits = _has_bits_[1]; // optional float det_fg_threshold = 54 [default = 0.5]; - if (has_det_fg_threshold()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(54, this->det_fg_threshold(), output); } // optional float det_bg_threshold = 55 [default = 0.5]; - if (has_det_bg_threshold()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(55, this->det_bg_threshold(), output); } // optional float det_fg_fraction = 56 [default = 0.25]; - if (has_det_fg_fraction()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(56, this->det_fg_fraction(), output); } + cached_has_bits = _has_bits_[0]; // optional uint32 det_context_pad = 58 [default = 0]; - if (has_det_context_pad()) { + if (cached_has_bits & 0x00040000u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(58, this->det_context_pad(), output); } // optional string det_crop_mode = 59 [default = "warp"]; - if (has_det_crop_mode()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->det_crop_mode().data(), this->det_crop_mode().length(), + this->det_crop_mode().data(), static_cast(this->det_crop_mode().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.det_crop_mode"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -51740,44 +38274,44 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional int32 new_num = 60 [default = 0]; - if (has_new_num()) { + if (cached_has_bits & 0x00080000u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(60, this->new_num(), output); } // optional int32 new_channels = 61 [default = 0]; - if (has_new_channels()) { + if (cached_has_bits & 0x00100000u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(61, this->new_channels(), output); } // optional int32 new_height = 62 [default = 0]; - if (has_new_height()) { + if (cached_has_bits & 0x00200000u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(62, this->new_height(), output); } // optional int32 new_width = 63 [default = 0]; - if (has_new_width()) { + if (cached_has_bits & 0x00004000u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(63, this->new_width(), output); } // optional bool shuffle_images = 64 [default = false]; - if (has_shuffle_images()) { + if (cached_has_bits & 0x00010000u) { ::google::protobuf::internal::WireFormatLite::WriteBool(64, this->shuffle_images(), output); } // optional uint32 concat_dim = 65 [default = 1]; - if (has_concat_dim()) { + if (cached_has_bits & 0x00400000u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(65, this->concat_dim(), output); } // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001; - if (has_hdf5_output_param()) { + if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1001, *this->hdf5_output_param_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); + _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:opencv_caffe.V0LayerParameter) } @@ -51786,10 +38320,14 @@ void V0LayerParameter::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.V0LayerParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional string name = 1; - if (has_name()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.name"); target = @@ -51798,9 +38336,9 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional string type = 2; - if (has_type()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->type().data(), this->type().length(), + this->type().data(), static_cast(this->type().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.type"); target = @@ -51809,79 +38347,79 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional uint32 num_output = 3; - if (has_num_output()) { + if (cached_has_bits & 0x00000100u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->num_output(), target); } // optional bool biasterm = 4 [default = true]; - if (has_biasterm()) { + if (cached_has_bits & 0x00800000u) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->biasterm(), target); } // optional .opencv_caffe.FillerParameter weight_filler = 5; - if (has_weight_filler()) { + if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *this->weight_filler_, false, target); + InternalWriteMessageToArray( + 5, *this->weight_filler_, deterministic, target); } // optional .opencv_caffe.FillerParameter bias_filler = 6; - if (has_bias_filler()) { + if (cached_has_bits & 0x00000040u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, *this->bias_filler_, false, target); + InternalWriteMessageToArray( + 6, *this->bias_filler_, deterministic, target); } // optional uint32 pad = 7 [default = 0]; - if (has_pad()) { + if (cached_has_bits & 0x00000200u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->pad(), target); } // optional uint32 kernelsize = 8; - if (has_kernelsize()) { + if (cached_has_bits & 0x00000400u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->kernelsize(), target); } // optional uint32 group = 9 [default = 1]; - if (has_group()) { + if (cached_has_bits & 0x01000000u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->group(), target); } // optional uint32 stride = 10 [default = 1]; - if (has_stride()) { + if (cached_has_bits & 0x02000000u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->stride(), target); } // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; - if (has_pool()) { + if (cached_has_bits & 0x00000800u) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 11, this->pool(), target); } // optional float dropout_ratio = 12 [default = 0.5]; - if (has_dropout_ratio()) { + if (cached_has_bits & 0x04000000u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->dropout_ratio(), target); } // optional uint32 local_size = 13 [default = 5]; - if (has_local_size()) { + if (cached_has_bits & 0x08000000u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->local_size(), target); } // optional float alpha = 14 [default = 1]; - if (has_alpha()) { + if (cached_has_bits & 0x10000000u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->alpha(), target); } // optional float beta = 15 [default = 0.75]; - if (has_beta()) { + if (cached_has_bits & 0x20000000u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->beta(), target); } // optional string source = 16; - if (has_source()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->source().data(), this->source().length(), + this->source().data(), static_cast(this->source().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.source"); target = @@ -51890,14 +38428,14 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional float scale = 17 [default = 1]; - if (has_scale()) { + if (cached_has_bits & 0x40000000u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(17, this->scale(), target); } // optional string meanfile = 18; - if (has_meanfile()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->meanfile().data(), this->meanfile().length(), + this->meanfile().data(), static_cast(this->meanfile().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.meanfile"); target = @@ -51906,73 +38444,72 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional uint32 batchsize = 19; - if (has_batchsize()) { + if (cached_has_bits & 0x00001000u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(19, this->batchsize(), target); } // optional uint32 cropsize = 20 [default = 0]; - if (has_cropsize()) { + if (cached_has_bits & 0x00002000u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(20, this->cropsize(), target); } // optional bool mirror = 21 [default = false]; - if (has_mirror()) { + if (cached_has_bits & 0x00008000u) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(21, this->mirror(), target); } // optional float k = 22 [default = 1]; - if (has_k()) { + if (cached_has_bits & 0x80000000u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(22, this->k(), target); } // repeated .opencv_caffe.BlobProto blobs = 50; - for (unsigned int i = 0, n = this->blobs_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->blobs_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 50, this->blobs(i), false, target); + InternalWriteMessageToArray( + 50, this->blobs(static_cast(i)), deterministic, target); } // repeated float blobs_lr = 51; - for (int i = 0; i < this->blobs_lr_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(51, this->blobs_lr(i), target); - } + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(51, this->blobs_lr_, target); // repeated float weight_decay = 52; - for (int i = 0; i < this->weight_decay_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(52, this->weight_decay(i), target); - } + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(52, this->weight_decay_, target); // optional uint32 rand_skip = 53 [default = 0]; - if (has_rand_skip()) { + if (cached_has_bits & 0x00020000u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(53, this->rand_skip(), target); } + cached_has_bits = _has_bits_[1]; // optional float det_fg_threshold = 54 [default = 0.5]; - if (has_det_fg_threshold()) { + if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(54, this->det_fg_threshold(), target); } // optional float det_bg_threshold = 55 [default = 0.5]; - if (has_det_bg_threshold()) { + if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(55, this->det_bg_threshold(), target); } // optional float det_fg_fraction = 56 [default = 0.25]; - if (has_det_fg_fraction()) { + if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(56, this->det_fg_fraction(), target); } + cached_has_bits = _has_bits_[0]; // optional uint32 det_context_pad = 58 [default = 0]; - if (has_det_context_pad()) { + if (cached_has_bits & 0x00040000u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(58, this->det_context_pad(), target); } // optional string det_crop_mode = 59 [default = "warp"]; - if (has_det_crop_mode()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( - this->det_crop_mode().data(), this->det_crop_mode().length(), + this->det_crop_mode().data(), static_cast(this->det_crop_mode().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "opencv_caffe.V0LayerParameter.det_crop_mode"); target = @@ -51981,45 +38518,45 @@ void V0LayerParameter::SerializeWithCachedSizes( } // optional int32 new_num = 60 [default = 0]; - if (has_new_num()) { + if (cached_has_bits & 0x00080000u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(60, this->new_num(), target); } // optional int32 new_channels = 61 [default = 0]; - if (has_new_channels()) { + if (cached_has_bits & 0x00100000u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(61, this->new_channels(), target); } // optional int32 new_height = 62 [default = 0]; - if (has_new_height()) { + if (cached_has_bits & 0x00200000u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(62, this->new_height(), target); } // optional int32 new_width = 63 [default = 0]; - if (has_new_width()) { + if (cached_has_bits & 0x00004000u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(63, this->new_width(), target); } // optional bool shuffle_images = 64 [default = false]; - if (has_shuffle_images()) { + if (cached_has_bits & 0x00010000u) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(64, this->shuffle_images(), target); } // optional uint32 concat_dim = 65 [default = 1]; - if (has_concat_dim()) { + if (cached_has_bits & 0x00400000u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(65, this->concat_dim(), target); } // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001; - if (has_hdf5_output_param()) { + if (cached_has_bits & 0x00000080u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1001, *this->hdf5_output_param_, false, target); + InternalWriteMessageToArray( + 1001, *this->hdf5_output_param_, deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.V0LayerParameter) return target; @@ -52029,6 +38566,40 @@ size_t V0LayerParameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.V0LayerParameter) size_t total_size = 0; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated .opencv_caffe.BlobProto blobs = 50; + { + unsigned int count = static_cast(this->blobs_size()); + total_size += 2UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->blobs(static_cast(i))); + } + } + + // repeated float blobs_lr = 51; + { + unsigned int count = static_cast(this->blobs_lr_size()); + size_t data_size = 4UL * count; + total_size += 2 * + ::google::protobuf::internal::FromIntSize(this->blobs_lr_size()); + total_size += data_size; + } + + // repeated float weight_decay = 52; + { + unsigned int count = static_cast(this->weight_decay_size()); + size_t data_size = 4UL * count; + total_size += 2 * + ::google::protobuf::internal::FromIntSize(this->weight_decay_size()); + total_size += data_size; + } + if (_has_bits_[0 / 32] & 255u) { // optional string name = 1; if (has_name()) { @@ -52044,32 +38615,57 @@ size_t V0LayerParameter::ByteSizeLong() const { this->type()); } - // optional uint32 num_output = 3; - if (has_num_output()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->num_output()); + // optional string source = 16; + if (has_source()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->source()); } - // optional bool biasterm = 4 [default = true]; - if (has_biasterm()) { - total_size += 1 + 1; + // optional string meanfile = 18; + if (has_meanfile()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->meanfile()); + } + + // optional string det_crop_mode = 59 [default = "warp"]; + if (has_det_crop_mode()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->det_crop_mode()); } // optional .opencv_caffe.FillerParameter weight_filler = 5; if (has_weight_filler()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->weight_filler_); } // optional .opencv_caffe.FillerParameter bias_filler = 6; if (has_bias_filler()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->bias_filler_); } + // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001; + if (has_hdf5_output_param()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->hdf5_output_param_); + } + + } + if (_has_bits_[8 / 32] & 65280u) { + // optional uint32 num_output = 3; + if (has_num_output()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->num_output()); + } + // optional uint32 pad = 7 [default = 0]; if (has_pad()) { total_size += 1 + @@ -52084,8 +38680,94 @@ size_t V0LayerParameter::ByteSizeLong() const { this->kernelsize()); } + // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; + if (has_pool()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool()); + } + + // optional uint32 batchsize = 19; + if (has_batchsize()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->batchsize()); + } + + // optional uint32 cropsize = 20 [default = 0]; + if (has_cropsize()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cropsize()); + } + + // optional int32 new_width = 63 [default = 0]; + if (has_new_width()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->new_width()); + } + + // optional bool mirror = 21 [default = false]; + if (has_mirror()) { + total_size += 2 + 1; + } + } - if (_has_bits_[8 / 32] & 65280u) { + if (_has_bits_[16 / 32] & 16711680u) { + // optional bool shuffle_images = 64 [default = false]; + if (has_shuffle_images()) { + total_size += 2 + 1; + } + + // optional uint32 rand_skip = 53 [default = 0]; + if (has_rand_skip()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->rand_skip()); + } + + // optional uint32 det_context_pad = 58 [default = 0]; + if (has_det_context_pad()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->det_context_pad()); + } + + // optional int32 new_num = 60 [default = 0]; + if (has_new_num()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->new_num()); + } + + // optional int32 new_channels = 61 [default = 0]; + if (has_new_channels()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->new_channels()); + } + + // optional int32 new_height = 62 [default = 0]; + if (has_new_height()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->new_height()); + } + + // optional uint32 concat_dim = 65 [default = 1]; + if (has_concat_dim()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->concat_dim()); + } + + // optional bool biasterm = 4 [default = true]; + if (has_biasterm()) { + total_size += 1 + 1; + } + + } + if (_has_bits_[24 / 32] & 4278190080u) { // optional uint32 group = 9 [default = 1]; if (has_group()) { total_size += 1 + @@ -52100,12 +38782,6 @@ size_t V0LayerParameter::ByteSizeLong() const { this->stride()); } - // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; - if (has_pool()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool()); - } - // optional float dropout_ratio = 12 [default = 0.5]; if (has_dropout_ratio()) { total_size += 1 + 4; @@ -52128,60 +38804,18 @@ size_t V0LayerParameter::ByteSizeLong() const { total_size += 1 + 4; } + // optional float scale = 17 [default = 1]; + if (has_scale()) { + total_size += 2 + 4; + } + // optional float k = 22 [default = 1]; if (has_k()) { total_size += 2 + 4; } } - if (_has_bits_[16 / 32] & 4128768u) { - // optional string source = 16; - if (has_source()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->source()); - } - - // optional float scale = 17 [default = 1]; - if (has_scale()) { - total_size += 2 + 4; - } - - // optional string meanfile = 18; - if (has_meanfile()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->meanfile()); - } - - // optional uint32 batchsize = 19; - if (has_batchsize()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->batchsize()); - } - - // optional uint32 cropsize = 20 [default = 0]; - if (has_cropsize()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->cropsize()); - } - - // optional bool mirror = 21 [default = false]; - if (has_mirror()) { - total_size += 2 + 1; - } - - } - if (_has_bits_[25 / 32] & 4261412864u) { - // optional uint32 rand_skip = 53 [default = 0]; - if (has_rand_skip()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rand_skip()); - } - + if (_has_bits_[32 / 32] & 7u) { // optional float det_fg_threshold = 54 [default = 0.5]; if (has_det_fg_threshold()) { total_size += 2 + 4; @@ -52197,105 +38831,6 @@ size_t V0LayerParameter::ByteSizeLong() const { total_size += 2 + 4; } - // optional uint32 det_context_pad = 58 [default = 0]; - if (has_det_context_pad()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->det_context_pad()); - } - - // optional string det_crop_mode = 59 [default = "warp"]; - if (has_det_crop_mode()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->det_crop_mode()); - } - - // optional int32 new_num = 60 [default = 0]; - if (has_new_num()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->new_num()); - } - - } - if (_has_bits_[32 / 32] & 63u) { - // optional int32 new_channels = 61 [default = 0]; - if (has_new_channels()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->new_channels()); - } - - // optional int32 new_height = 62 [default = 0]; - if (has_new_height()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->new_height()); - } - - // optional int32 new_width = 63 [default = 0]; - if (has_new_width()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->new_width()); - } - - // optional bool shuffle_images = 64 [default = false]; - if (has_shuffle_images()) { - total_size += 2 + 1; - } - - // optional uint32 concat_dim = 65 [default = 1]; - if (has_concat_dim()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->concat_dim()); - } - - // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001; - if (has_hdf5_output_param()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->hdf5_output_param_); - } - - } - // repeated .opencv_caffe.BlobProto blobs = 50; - { - unsigned int count = this->blobs_size(); - total_size += 2UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->blobs(i)); - } - } - - // repeated float blobs_lr = 51; - { - size_t data_size = 0; - unsigned int count = this->blobs_lr_size(); - data_size = 4UL * count; - total_size += 2 * - ::google::protobuf::internal::FromIntSize(this->blobs_lr_size()); - total_size += data_size; - } - - // repeated float weight_decay = 52; - { - size_t data_size = 0; - unsigned int count = this->weight_decay_size(); - data_size = 4UL * count; - total_size += 2 * - ::google::protobuf::internal::FromIntSize(this->weight_decay_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -52306,7 +38841,7 @@ size_t V0LayerParameter::ByteSizeLong() const { void V0LayerParameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.V0LayerParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const V0LayerParameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -52315,147 +38850,145 @@ void V0LayerParameter::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.V0LayerParameter) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void V0LayerParameter::MergeFrom(const V0LayerParameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.V0LayerParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void V0LayerParameter::UnsafeMergeFrom(const V0LayerParameter& from) { - GOOGLE_DCHECK(&from != this); blobs_.MergeFrom(from.blobs_); - blobs_lr_.UnsafeMergeFrom(from.blobs_lr_); - weight_decay_.UnsafeMergeFrom(from.weight_decay_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_name()) { + blobs_lr_.MergeFrom(from.blobs_lr_); + weight_decay_.MergeFrom(from.weight_decay_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { set_has_name(); name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } - if (from.has_type()) { + if (cached_has_bits & 0x00000002u) { set_has_type(); type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); } - if (from.has_num_output()) { - set_num_output(from.num_output()); - } - if (from.has_biasterm()) { - set_biasterm(from.biasterm()); - } - if (from.has_weight_filler()) { - mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); - } - if (from.has_bias_filler()) { - mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); - } - if (from.has_pad()) { - set_pad(from.pad()); - } - if (from.has_kernelsize()) { - set_kernelsize(from.kernelsize()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_group()) { - set_group(from.group()); - } - if (from.has_stride()) { - set_stride(from.stride()); - } - if (from.has_pool()) { - set_pool(from.pool()); - } - if (from.has_dropout_ratio()) { - set_dropout_ratio(from.dropout_ratio()); - } - if (from.has_local_size()) { - set_local_size(from.local_size()); - } - if (from.has_alpha()) { - set_alpha(from.alpha()); - } - if (from.has_beta()) { - set_beta(from.beta()); - } - if (from.has_k()) { - set_k(from.k()); - } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_source()) { + if (cached_has_bits & 0x00000004u) { set_has_source(); source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_); } - if (from.has_scale()) { - set_scale(from.scale()); - } - if (from.has_meanfile()) { + if (cached_has_bits & 0x00000008u) { set_has_meanfile(); meanfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.meanfile_); } - if (from.has_batchsize()) { - set_batchsize(from.batchsize()); - } - if (from.has_cropsize()) { - set_cropsize(from.cropsize()); - } - if (from.has_mirror()) { - set_mirror(from.mirror()); - } - } - if (from._has_bits_[25 / 32] & (0xffu << (25 % 32))) { - if (from.has_rand_skip()) { - set_rand_skip(from.rand_skip()); - } - if (from.has_det_fg_threshold()) { - set_det_fg_threshold(from.det_fg_threshold()); - } - if (from.has_det_bg_threshold()) { - set_det_bg_threshold(from.det_bg_threshold()); - } - if (from.has_det_fg_fraction()) { - set_det_fg_fraction(from.det_fg_fraction()); - } - if (from.has_det_context_pad()) { - set_det_context_pad(from.det_context_pad()); - } - if (from.has_det_crop_mode()) { + if (cached_has_bits & 0x00000010u) { set_has_det_crop_mode(); - det_crop_mode_.AssignWithDefault(_default_det_crop_mode_, from.det_crop_mode_); + det_crop_mode_.AssignWithDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get(), from.det_crop_mode_); } - if (from.has_new_num()) { - set_new_num(from.new_num()); + if (cached_has_bits & 0x00000020u) { + mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler()); } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_new_channels()) { - set_new_channels(from.new_channels()); + if (cached_has_bits & 0x00000040u) { + mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler()); } - if (from.has_new_height()) { - set_new_height(from.new_height()); - } - if (from.has_new_width()) { - set_new_width(from.new_width()); - } - if (from.has_shuffle_images()) { - set_shuffle_images(from.shuffle_images()); - } - if (from.has_concat_dim()) { - set_concat_dim(from.concat_dim()); - } - if (from.has_hdf5_output_param()) { + if (cached_has_bits & 0x00000080u) { mutable_hdf5_output_param()->::opencv_caffe::HDF5OutputParameter::MergeFrom(from.hdf5_output_param()); } } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); + if (cached_has_bits & 65280u) { + if (cached_has_bits & 0x00000100u) { + num_output_ = from.num_output_; + } + if (cached_has_bits & 0x00000200u) { + pad_ = from.pad_; + } + if (cached_has_bits & 0x00000400u) { + kernelsize_ = from.kernelsize_; + } + if (cached_has_bits & 0x00000800u) { + pool_ = from.pool_; + } + if (cached_has_bits & 0x00001000u) { + batchsize_ = from.batchsize_; + } + if (cached_has_bits & 0x00002000u) { + cropsize_ = from.cropsize_; + } + if (cached_has_bits & 0x00004000u) { + new_width_ = from.new_width_; + } + if (cached_has_bits & 0x00008000u) { + mirror_ = from.mirror_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 16711680u) { + if (cached_has_bits & 0x00010000u) { + shuffle_images_ = from.shuffle_images_; + } + if (cached_has_bits & 0x00020000u) { + rand_skip_ = from.rand_skip_; + } + if (cached_has_bits & 0x00040000u) { + det_context_pad_ = from.det_context_pad_; + } + if (cached_has_bits & 0x00080000u) { + new_num_ = from.new_num_; + } + if (cached_has_bits & 0x00100000u) { + new_channels_ = from.new_channels_; + } + if (cached_has_bits & 0x00200000u) { + new_height_ = from.new_height_; + } + if (cached_has_bits & 0x00400000u) { + concat_dim_ = from.concat_dim_; + } + if (cached_has_bits & 0x00800000u) { + biasterm_ = from.biasterm_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 4278190080u) { + if (cached_has_bits & 0x01000000u) { + group_ = from.group_; + } + if (cached_has_bits & 0x02000000u) { + stride_ = from.stride_; + } + if (cached_has_bits & 0x04000000u) { + dropout_ratio_ = from.dropout_ratio_; + } + if (cached_has_bits & 0x08000000u) { + local_size_ = from.local_size_; + } + if (cached_has_bits & 0x10000000u) { + alpha_ = from.alpha_; + } + if (cached_has_bits & 0x20000000u) { + beta_ = from.beta_; + } + if (cached_has_bits & 0x40000000u) { + scale_ = from.scale_; + } + if (cached_has_bits & 0x80000000u) { + k_ = from.k_; + } + _has_bits_[0] |= cached_has_bits; + } + cached_has_bits = from._has_bits_[1]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + det_fg_threshold_ = from.det_fg_threshold_; + } + if (cached_has_bits & 0x00000002u) { + det_bg_threshold_ = from.det_bg_threshold_; + } + if (cached_has_bits & 0x00000004u) { + det_fg_fraction_ = from.det_fg_fraction_; + } + _has_bits_[1] |= cached_has_bits; } } @@ -52470,11 +39003,10 @@ void V0LayerParameter::CopyFrom(const V0LayerParameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.V0LayerParameter) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool V0LayerParameter::IsInitialized() const { - return true; } @@ -52483,1212 +39015,63 @@ void V0LayerParameter::Swap(V0LayerParameter* other) { InternalSwap(other); } void V0LayerParameter::InternalSwap(V0LayerParameter* other) { + using std::swap; + blobs_.InternalSwap(&other->blobs_); + blobs_lr_.InternalSwap(&other->blobs_lr_); + weight_decay_.InternalSwap(&other->weight_decay_); name_.Swap(&other->name_); type_.Swap(&other->type_); - std::swap(num_output_, other->num_output_); - std::swap(biasterm_, other->biasterm_); - std::swap(weight_filler_, other->weight_filler_); - std::swap(bias_filler_, other->bias_filler_); - std::swap(pad_, other->pad_); - std::swap(kernelsize_, other->kernelsize_); - std::swap(group_, other->group_); - std::swap(stride_, other->stride_); - std::swap(pool_, other->pool_); - std::swap(dropout_ratio_, other->dropout_ratio_); - std::swap(local_size_, other->local_size_); - std::swap(alpha_, other->alpha_); - std::swap(beta_, other->beta_); - std::swap(k_, other->k_); source_.Swap(&other->source_); - std::swap(scale_, other->scale_); meanfile_.Swap(&other->meanfile_); - std::swap(batchsize_, other->batchsize_); - std::swap(cropsize_, other->cropsize_); - std::swap(mirror_, other->mirror_); - blobs_.UnsafeArenaSwap(&other->blobs_); - blobs_lr_.UnsafeArenaSwap(&other->blobs_lr_); - weight_decay_.UnsafeArenaSwap(&other->weight_decay_); - std::swap(rand_skip_, other->rand_skip_); - std::swap(det_fg_threshold_, other->det_fg_threshold_); - std::swap(det_bg_threshold_, other->det_bg_threshold_); - std::swap(det_fg_fraction_, other->det_fg_fraction_); - std::swap(det_context_pad_, other->det_context_pad_); det_crop_mode_.Swap(&other->det_crop_mode_); - std::swap(new_num_, other->new_num_); - std::swap(new_channels_, other->new_channels_); - std::swap(new_height_, other->new_height_); - std::swap(new_width_, other->new_width_); - std::swap(shuffle_images_, other->shuffle_images_); - std::swap(concat_dim_, other->concat_dim_); - std::swap(hdf5_output_param_, other->hdf5_output_param_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_has_bits_[1], other->_has_bits_[1]); + swap(weight_filler_, other->weight_filler_); + swap(bias_filler_, other->bias_filler_); + swap(hdf5_output_param_, other->hdf5_output_param_); + swap(num_output_, other->num_output_); + swap(pad_, other->pad_); + swap(kernelsize_, other->kernelsize_); + swap(pool_, other->pool_); + swap(batchsize_, other->batchsize_); + swap(cropsize_, other->cropsize_); + swap(new_width_, other->new_width_); + swap(mirror_, other->mirror_); + swap(shuffle_images_, other->shuffle_images_); + swap(rand_skip_, other->rand_skip_); + swap(det_context_pad_, other->det_context_pad_); + swap(new_num_, other->new_num_); + swap(new_channels_, other->new_channels_); + swap(new_height_, other->new_height_); + swap(concat_dim_, other->concat_dim_); + swap(biasterm_, other->biasterm_); + swap(group_, other->group_); + swap(stride_, other->stride_); + swap(dropout_ratio_, other->dropout_ratio_); + swap(local_size_, other->local_size_); + swap(alpha_, other->alpha_); + swap(beta_, other->beta_); + swap(scale_, other->scale_); + swap(k_, other->k_); + swap(det_fg_threshold_, other->det_fg_threshold_); + swap(det_bg_threshold_, other->det_bg_threshold_); + swap(det_fg_fraction_, other->det_fg_fraction_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(_has_bits_[1], other->_has_bits_[1]); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata V0LayerParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = V0LayerParameter_descriptor_; - metadata.reflection = V0LayerParameter_reflection_; - return metadata; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// V0LayerParameter - -// optional string name = 1; -bool V0LayerParameter::has_name() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void V0LayerParameter::set_has_name() { - _has_bits_[0] |= 0x00000001u; -} -void V0LayerParameter::clear_has_name() { - _has_bits_[0] &= ~0x00000001u; -} -void V0LayerParameter::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_name(); -} -const ::std::string& V0LayerParameter::name() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V0LayerParameter::set_name(const ::std::string& value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.name) -} -void V0LayerParameter::set_name(const char* value) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.name) -} -void V0LayerParameter::set_name(const char* value, size_t size) { - set_has_name(); - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V0LayerParameter.name) -} -::std::string* V0LayerParameter::mutable_name() { - set_has_name(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* V0LayerParameter::release_name() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.name) - clear_has_name(); - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V0LayerParameter::set_allocated_name(::std::string* name) { - if (name != NULL) { - set_has_name(); - } else { - clear_has_name(); - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.name) -} - -// optional string type = 2; -bool V0LayerParameter::has_type() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void V0LayerParameter::set_has_type() { - _has_bits_[0] |= 0x00000002u; -} -void V0LayerParameter::clear_has_type() { - _has_bits_[0] &= ~0x00000002u; -} -void V0LayerParameter::clear_type() { - type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_type(); -} -const ::std::string& V0LayerParameter::type() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.type) - return type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V0LayerParameter::set_type(const ::std::string& value) { - set_has_type(); - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.type) -} -void V0LayerParameter::set_type(const char* value) { - set_has_type(); - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.type) -} -void V0LayerParameter::set_type(const char* value, size_t size) { - set_has_type(); - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V0LayerParameter.type) -} -::std::string* V0LayerParameter::mutable_type() { - set_has_type(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.type) - return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* V0LayerParameter::release_type() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.type) - clear_has_type(); - return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V0LayerParameter::set_allocated_type(::std::string* type) { - if (type != NULL) { - set_has_type(); - } else { - clear_has_type(); - } - type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.type) -} - -// optional uint32 num_output = 3; -bool V0LayerParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void V0LayerParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000004u; -} -void V0LayerParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000004u; -} -void V0LayerParameter::clear_num_output() { - num_output_ = 0u; - clear_has_num_output(); -} -::google::protobuf::uint32 V0LayerParameter::num_output() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.num_output) - return num_output_; -} -void V0LayerParameter::set_num_output(::google::protobuf::uint32 value) { - set_has_num_output(); - num_output_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.num_output) -} - -// optional bool biasterm = 4 [default = true]; -bool V0LayerParameter::has_biasterm() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void V0LayerParameter::set_has_biasterm() { - _has_bits_[0] |= 0x00000008u; -} -void V0LayerParameter::clear_has_biasterm() { - _has_bits_[0] &= ~0x00000008u; -} -void V0LayerParameter::clear_biasterm() { - biasterm_ = true; - clear_has_biasterm(); -} -bool V0LayerParameter::biasterm() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.biasterm) - return biasterm_; -} -void V0LayerParameter::set_biasterm(bool value) { - set_has_biasterm(); - biasterm_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.biasterm) -} - -// optional .opencv_caffe.FillerParameter weight_filler = 5; -bool V0LayerParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void V0LayerParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000010u; -} -void V0LayerParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000010u; -} -void V0LayerParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_weight_filler(); -} -const ::opencv_caffe::FillerParameter& V0LayerParameter::weight_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* V0LayerParameter::mutable_weight_filler() { - set_has_weight_filler(); - if (weight_filler_ == NULL) { - weight_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.weight_filler) - return weight_filler_; -} -::opencv_caffe::FillerParameter* V0LayerParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} -void V0LayerParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; - if (weight_filler) { - set_has_weight_filler(); - } else { - clear_has_weight_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.weight_filler) -} - -// optional .opencv_caffe.FillerParameter bias_filler = 6; -bool V0LayerParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void V0LayerParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000020u; -} -void V0LayerParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000020u; -} -void V0LayerParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_bias_filler(); -} -const ::opencv_caffe::FillerParameter& V0LayerParameter::bias_filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* V0LayerParameter::mutable_bias_filler() { - set_has_bias_filler(); - if (bias_filler_ == NULL) { - bias_filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.bias_filler) - return bias_filler_; -} -::opencv_caffe::FillerParameter* V0LayerParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} -void V0LayerParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; - if (bias_filler) { - set_has_bias_filler(); - } else { - clear_has_bias_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.bias_filler) -} - -// optional uint32 pad = 7 [default = 0]; -bool V0LayerParameter::has_pad() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void V0LayerParameter::set_has_pad() { - _has_bits_[0] |= 0x00000040u; -} -void V0LayerParameter::clear_has_pad() { - _has_bits_[0] &= ~0x00000040u; -} -void V0LayerParameter::clear_pad() { - pad_ = 0u; - clear_has_pad(); -} -::google::protobuf::uint32 V0LayerParameter::pad() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.pad) - return pad_; -} -void V0LayerParameter::set_pad(::google::protobuf::uint32 value) { - set_has_pad(); - pad_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.pad) -} - -// optional uint32 kernelsize = 8; -bool V0LayerParameter::has_kernelsize() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void V0LayerParameter::set_has_kernelsize() { - _has_bits_[0] |= 0x00000080u; -} -void V0LayerParameter::clear_has_kernelsize() { - _has_bits_[0] &= ~0x00000080u; -} -void V0LayerParameter::clear_kernelsize() { - kernelsize_ = 0u; - clear_has_kernelsize(); -} -::google::protobuf::uint32 V0LayerParameter::kernelsize() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.kernelsize) - return kernelsize_; -} -void V0LayerParameter::set_kernelsize(::google::protobuf::uint32 value) { - set_has_kernelsize(); - kernelsize_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.kernelsize) -} - -// optional uint32 group = 9 [default = 1]; -bool V0LayerParameter::has_group() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -void V0LayerParameter::set_has_group() { - _has_bits_[0] |= 0x00000100u; -} -void V0LayerParameter::clear_has_group() { - _has_bits_[0] &= ~0x00000100u; -} -void V0LayerParameter::clear_group() { - group_ = 1u; - clear_has_group(); -} -::google::protobuf::uint32 V0LayerParameter::group() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.group) - return group_; -} -void V0LayerParameter::set_group(::google::protobuf::uint32 value) { - set_has_group(); - group_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.group) -} - -// optional uint32 stride = 10 [default = 1]; -bool V0LayerParameter::has_stride() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -void V0LayerParameter::set_has_stride() { - _has_bits_[0] |= 0x00000200u; -} -void V0LayerParameter::clear_has_stride() { - _has_bits_[0] &= ~0x00000200u; -} -void V0LayerParameter::clear_stride() { - stride_ = 1u; - clear_has_stride(); -} -::google::protobuf::uint32 V0LayerParameter::stride() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.stride) - return stride_; -} -void V0LayerParameter::set_stride(::google::protobuf::uint32 value) { - set_has_stride(); - stride_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.stride) -} - -// optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; -bool V0LayerParameter::has_pool() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -void V0LayerParameter::set_has_pool() { - _has_bits_[0] |= 0x00000400u; -} -void V0LayerParameter::clear_has_pool() { - _has_bits_[0] &= ~0x00000400u; -} -void V0LayerParameter::clear_pool() { - pool_ = 0; - clear_has_pool(); -} -::opencv_caffe::V0LayerParameter_PoolMethod V0LayerParameter::pool() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.pool) - return static_cast< ::opencv_caffe::V0LayerParameter_PoolMethod >(pool_); -} -void V0LayerParameter::set_pool(::opencv_caffe::V0LayerParameter_PoolMethod value) { - assert(::opencv_caffe::V0LayerParameter_PoolMethod_IsValid(value)); - set_has_pool(); - pool_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.pool) -} - -// optional float dropout_ratio = 12 [default = 0.5]; -bool V0LayerParameter::has_dropout_ratio() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -void V0LayerParameter::set_has_dropout_ratio() { - _has_bits_[0] |= 0x00000800u; -} -void V0LayerParameter::clear_has_dropout_ratio() { - _has_bits_[0] &= ~0x00000800u; -} -void V0LayerParameter::clear_dropout_ratio() { - dropout_ratio_ = 0.5f; - clear_has_dropout_ratio(); -} -float V0LayerParameter::dropout_ratio() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.dropout_ratio) - return dropout_ratio_; -} -void V0LayerParameter::set_dropout_ratio(float value) { - set_has_dropout_ratio(); - dropout_ratio_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.dropout_ratio) -} - -// optional uint32 local_size = 13 [default = 5]; -bool V0LayerParameter::has_local_size() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -void V0LayerParameter::set_has_local_size() { - _has_bits_[0] |= 0x00001000u; -} -void V0LayerParameter::clear_has_local_size() { - _has_bits_[0] &= ~0x00001000u; -} -void V0LayerParameter::clear_local_size() { - local_size_ = 5u; - clear_has_local_size(); -} -::google::protobuf::uint32 V0LayerParameter::local_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.local_size) - return local_size_; -} -void V0LayerParameter::set_local_size(::google::protobuf::uint32 value) { - set_has_local_size(); - local_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.local_size) -} - -// optional float alpha = 14 [default = 1]; -bool V0LayerParameter::has_alpha() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -void V0LayerParameter::set_has_alpha() { - _has_bits_[0] |= 0x00002000u; -} -void V0LayerParameter::clear_has_alpha() { - _has_bits_[0] &= ~0x00002000u; -} -void V0LayerParameter::clear_alpha() { - alpha_ = 1; - clear_has_alpha(); -} -float V0LayerParameter::alpha() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.alpha) - return alpha_; -} -void V0LayerParameter::set_alpha(float value) { - set_has_alpha(); - alpha_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.alpha) -} - -// optional float beta = 15 [default = 0.75]; -bool V0LayerParameter::has_beta() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -void V0LayerParameter::set_has_beta() { - _has_bits_[0] |= 0x00004000u; -} -void V0LayerParameter::clear_has_beta() { - _has_bits_[0] &= ~0x00004000u; -} -void V0LayerParameter::clear_beta() { - beta_ = 0.75f; - clear_has_beta(); -} -float V0LayerParameter::beta() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.beta) - return beta_; -} -void V0LayerParameter::set_beta(float value) { - set_has_beta(); - beta_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.beta) -} - -// optional float k = 22 [default = 1]; -bool V0LayerParameter::has_k() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -void V0LayerParameter::set_has_k() { - _has_bits_[0] |= 0x00008000u; -} -void V0LayerParameter::clear_has_k() { - _has_bits_[0] &= ~0x00008000u; -} -void V0LayerParameter::clear_k() { - k_ = 1; - clear_has_k(); -} -float V0LayerParameter::k() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.k) - return k_; -} -void V0LayerParameter::set_k(float value) { - set_has_k(); - k_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.k) -} - -// optional string source = 16; -bool V0LayerParameter::has_source() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -void V0LayerParameter::set_has_source() { - _has_bits_[0] |= 0x00010000u; -} -void V0LayerParameter::clear_has_source() { - _has_bits_[0] &= ~0x00010000u; -} -void V0LayerParameter::clear_source() { - source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_source(); -} -const ::std::string& V0LayerParameter::source() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V0LayerParameter::set_source(const ::std::string& value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.source) -} -void V0LayerParameter::set_source(const char* value) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.source) -} -void V0LayerParameter::set_source(const char* value, size_t size) { - set_has_source(); - source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V0LayerParameter.source) -} -::std::string* V0LayerParameter::mutable_source() { - set_has_source(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.source) - return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* V0LayerParameter::release_source() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.source) - clear_has_source(); - return source_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V0LayerParameter::set_allocated_source(::std::string* source) { - if (source != NULL) { - set_has_source(); - } else { - clear_has_source(); - } - source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.source) -} - -// optional float scale = 17 [default = 1]; -bool V0LayerParameter::has_scale() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -void V0LayerParameter::set_has_scale() { - _has_bits_[0] |= 0x00020000u; -} -void V0LayerParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00020000u; -} -void V0LayerParameter::clear_scale() { - scale_ = 1; - clear_has_scale(); -} -float V0LayerParameter::scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.scale) - return scale_; -} -void V0LayerParameter::set_scale(float value) { - set_has_scale(); - scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.scale) -} - -// optional string meanfile = 18; -bool V0LayerParameter::has_meanfile() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -void V0LayerParameter::set_has_meanfile() { - _has_bits_[0] |= 0x00040000u; -} -void V0LayerParameter::clear_has_meanfile() { - _has_bits_[0] &= ~0x00040000u; -} -void V0LayerParameter::clear_meanfile() { - meanfile_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_meanfile(); -} -const ::std::string& V0LayerParameter::meanfile() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.meanfile) - return meanfile_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V0LayerParameter::set_meanfile(const ::std::string& value) { - set_has_meanfile(); - meanfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.meanfile) -} -void V0LayerParameter::set_meanfile(const char* value) { - set_has_meanfile(); - meanfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.meanfile) -} -void V0LayerParameter::set_meanfile(const char* value, size_t size) { - set_has_meanfile(); - meanfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V0LayerParameter.meanfile) -} -::std::string* V0LayerParameter::mutable_meanfile() { - set_has_meanfile(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.meanfile) - return meanfile_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* V0LayerParameter::release_meanfile() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.meanfile) - clear_has_meanfile(); - return meanfile_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void V0LayerParameter::set_allocated_meanfile(::std::string* meanfile) { - if (meanfile != NULL) { - set_has_meanfile(); - } else { - clear_has_meanfile(); - } - meanfile_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), meanfile); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.meanfile) -} - -// optional uint32 batchsize = 19; -bool V0LayerParameter::has_batchsize() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -void V0LayerParameter::set_has_batchsize() { - _has_bits_[0] |= 0x00080000u; -} -void V0LayerParameter::clear_has_batchsize() { - _has_bits_[0] &= ~0x00080000u; -} -void V0LayerParameter::clear_batchsize() { - batchsize_ = 0u; - clear_has_batchsize(); -} -::google::protobuf::uint32 V0LayerParameter::batchsize() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.batchsize) - return batchsize_; -} -void V0LayerParameter::set_batchsize(::google::protobuf::uint32 value) { - set_has_batchsize(); - batchsize_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.batchsize) -} - -// optional uint32 cropsize = 20 [default = 0]; -bool V0LayerParameter::has_cropsize() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -void V0LayerParameter::set_has_cropsize() { - _has_bits_[0] |= 0x00100000u; -} -void V0LayerParameter::clear_has_cropsize() { - _has_bits_[0] &= ~0x00100000u; -} -void V0LayerParameter::clear_cropsize() { - cropsize_ = 0u; - clear_has_cropsize(); -} -::google::protobuf::uint32 V0LayerParameter::cropsize() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.cropsize) - return cropsize_; -} -void V0LayerParameter::set_cropsize(::google::protobuf::uint32 value) { - set_has_cropsize(); - cropsize_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.cropsize) -} - -// optional bool mirror = 21 [default = false]; -bool V0LayerParameter::has_mirror() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -void V0LayerParameter::set_has_mirror() { - _has_bits_[0] |= 0x00200000u; -} -void V0LayerParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00200000u; -} -void V0LayerParameter::clear_mirror() { - mirror_ = false; - clear_has_mirror(); -} -bool V0LayerParameter::mirror() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.mirror) - return mirror_; -} -void V0LayerParameter::set_mirror(bool value) { - set_has_mirror(); - mirror_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.mirror) -} - -// repeated .opencv_caffe.BlobProto blobs = 50; -int V0LayerParameter::blobs_size() const { - return blobs_.size(); -} -void V0LayerParameter::clear_blobs() { - blobs_.Clear(); -} -const ::opencv_caffe::BlobProto& V0LayerParameter::blobs(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.blobs) - return blobs_.Get(index); -} -::opencv_caffe::BlobProto* V0LayerParameter::mutable_blobs(int index) { - // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.blobs) - return blobs_.Mutable(index); -} -::opencv_caffe::BlobProto* V0LayerParameter::add_blobs() { - // @@protoc_insertion_point(field_add:opencv_caffe.V0LayerParameter.blobs) - return blobs_.Add(); -} -::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >* -V0LayerParameter::mutable_blobs() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V0LayerParameter.blobs) - return &blobs_; -} -const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >& -V0LayerParameter::blobs() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V0LayerParameter.blobs) - return blobs_; -} - -// repeated float blobs_lr = 51; -int V0LayerParameter::blobs_lr_size() const { - return blobs_lr_.size(); -} -void V0LayerParameter::clear_blobs_lr() { - blobs_lr_.Clear(); -} -float V0LayerParameter::blobs_lr(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.blobs_lr) - return blobs_lr_.Get(index); -} -void V0LayerParameter::set_blobs_lr(int index, float value) { - blobs_lr_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.blobs_lr) -} -void V0LayerParameter::add_blobs_lr(float value) { - blobs_lr_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.V0LayerParameter.blobs_lr) -} -const ::google::protobuf::RepeatedField< float >& -V0LayerParameter::blobs_lr() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V0LayerParameter.blobs_lr) - return blobs_lr_; -} -::google::protobuf::RepeatedField< float >* -V0LayerParameter::mutable_blobs_lr() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V0LayerParameter.blobs_lr) - return &blobs_lr_; -} - -// repeated float weight_decay = 52; -int V0LayerParameter::weight_decay_size() const { - return weight_decay_.size(); -} -void V0LayerParameter::clear_weight_decay() { - weight_decay_.Clear(); -} -float V0LayerParameter::weight_decay(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.weight_decay) - return weight_decay_.Get(index); -} -void V0LayerParameter::set_weight_decay(int index, float value) { - weight_decay_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.weight_decay) -} -void V0LayerParameter::add_weight_decay(float value) { - weight_decay_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.V0LayerParameter.weight_decay) -} -const ::google::protobuf::RepeatedField< float >& -V0LayerParameter::weight_decay() const { - // @@protoc_insertion_point(field_list:opencv_caffe.V0LayerParameter.weight_decay) - return weight_decay_; -} -::google::protobuf::RepeatedField< float >* -V0LayerParameter::mutable_weight_decay() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.V0LayerParameter.weight_decay) - return &weight_decay_; -} - -// optional uint32 rand_skip = 53 [default = 0]; -bool V0LayerParameter::has_rand_skip() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -void V0LayerParameter::set_has_rand_skip() { - _has_bits_[0] |= 0x02000000u; -} -void V0LayerParameter::clear_has_rand_skip() { - _has_bits_[0] &= ~0x02000000u; -} -void V0LayerParameter::clear_rand_skip() { - rand_skip_ = 0u; - clear_has_rand_skip(); -} -::google::protobuf::uint32 V0LayerParameter::rand_skip() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.rand_skip) - return rand_skip_; -} -void V0LayerParameter::set_rand_skip(::google::protobuf::uint32 value) { - set_has_rand_skip(); - rand_skip_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.rand_skip) -} - -// optional float det_fg_threshold = 54 [default = 0.5]; -bool V0LayerParameter::has_det_fg_threshold() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -void V0LayerParameter::set_has_det_fg_threshold() { - _has_bits_[0] |= 0x04000000u; -} -void V0LayerParameter::clear_has_det_fg_threshold() { - _has_bits_[0] &= ~0x04000000u; -} -void V0LayerParameter::clear_det_fg_threshold() { - det_fg_threshold_ = 0.5f; - clear_has_det_fg_threshold(); -} -float V0LayerParameter::det_fg_threshold() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.det_fg_threshold) - return det_fg_threshold_; -} -void V0LayerParameter::set_det_fg_threshold(float value) { - set_has_det_fg_threshold(); - det_fg_threshold_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.det_fg_threshold) -} - -// optional float det_bg_threshold = 55 [default = 0.5]; -bool V0LayerParameter::has_det_bg_threshold() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -void V0LayerParameter::set_has_det_bg_threshold() { - _has_bits_[0] |= 0x08000000u; -} -void V0LayerParameter::clear_has_det_bg_threshold() { - _has_bits_[0] &= ~0x08000000u; -} -void V0LayerParameter::clear_det_bg_threshold() { - det_bg_threshold_ = 0.5f; - clear_has_det_bg_threshold(); -} -float V0LayerParameter::det_bg_threshold() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.det_bg_threshold) - return det_bg_threshold_; -} -void V0LayerParameter::set_det_bg_threshold(float value) { - set_has_det_bg_threshold(); - det_bg_threshold_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.det_bg_threshold) -} - -// optional float det_fg_fraction = 56 [default = 0.25]; -bool V0LayerParameter::has_det_fg_fraction() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -void V0LayerParameter::set_has_det_fg_fraction() { - _has_bits_[0] |= 0x10000000u; -} -void V0LayerParameter::clear_has_det_fg_fraction() { - _has_bits_[0] &= ~0x10000000u; -} -void V0LayerParameter::clear_det_fg_fraction() { - det_fg_fraction_ = 0.25f; - clear_has_det_fg_fraction(); -} -float V0LayerParameter::det_fg_fraction() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.det_fg_fraction) - return det_fg_fraction_; -} -void V0LayerParameter::set_det_fg_fraction(float value) { - set_has_det_fg_fraction(); - det_fg_fraction_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.det_fg_fraction) -} - -// optional uint32 det_context_pad = 58 [default = 0]; -bool V0LayerParameter::has_det_context_pad() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -void V0LayerParameter::set_has_det_context_pad() { - _has_bits_[0] |= 0x20000000u; -} -void V0LayerParameter::clear_has_det_context_pad() { - _has_bits_[0] &= ~0x20000000u; -} -void V0LayerParameter::clear_det_context_pad() { - det_context_pad_ = 0u; - clear_has_det_context_pad(); -} -::google::protobuf::uint32 V0LayerParameter::det_context_pad() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.det_context_pad) - return det_context_pad_; -} -void V0LayerParameter::set_det_context_pad(::google::protobuf::uint32 value) { - set_has_det_context_pad(); - det_context_pad_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.det_context_pad) -} - -// optional string det_crop_mode = 59 [default = "warp"]; -bool V0LayerParameter::has_det_crop_mode() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -void V0LayerParameter::set_has_det_crop_mode() { - _has_bits_[0] |= 0x40000000u; -} -void V0LayerParameter::clear_has_det_crop_mode() { - _has_bits_[0] &= ~0x40000000u; -} -void V0LayerParameter::clear_det_crop_mode() { - det_crop_mode_.ClearToDefaultNoArena(_default_det_crop_mode_); - clear_has_det_crop_mode(); -} -const ::std::string& V0LayerParameter::det_crop_mode() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.det_crop_mode) - return det_crop_mode_.GetNoArena(_default_det_crop_mode_); -} -void V0LayerParameter::set_det_crop_mode(const ::std::string& value) { - set_has_det_crop_mode(); - det_crop_mode_.SetNoArena(_default_det_crop_mode_, value); - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.det_crop_mode) -} -void V0LayerParameter::set_det_crop_mode(const char* value) { - set_has_det_crop_mode(); - det_crop_mode_.SetNoArena(_default_det_crop_mode_, ::std::string(value)); - // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.det_crop_mode) -} -void V0LayerParameter::set_det_crop_mode(const char* value, size_t size) { - set_has_det_crop_mode(); - det_crop_mode_.SetNoArena(_default_det_crop_mode_, - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V0LayerParameter.det_crop_mode) -} -::std::string* V0LayerParameter::mutable_det_crop_mode() { - set_has_det_crop_mode(); - // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.det_crop_mode) - return det_crop_mode_.MutableNoArena(_default_det_crop_mode_); -} -::std::string* V0LayerParameter::release_det_crop_mode() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.det_crop_mode) - clear_has_det_crop_mode(); - return det_crop_mode_.ReleaseNoArena(_default_det_crop_mode_); -} -void V0LayerParameter::set_allocated_det_crop_mode(::std::string* det_crop_mode) { - if (det_crop_mode != NULL) { - set_has_det_crop_mode(); - } else { - clear_has_det_crop_mode(); - } - det_crop_mode_.SetAllocatedNoArena(_default_det_crop_mode_, det_crop_mode); - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.det_crop_mode) -} - -// optional int32 new_num = 60 [default = 0]; -bool V0LayerParameter::has_new_num() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -void V0LayerParameter::set_has_new_num() { - _has_bits_[0] |= 0x80000000u; -} -void V0LayerParameter::clear_has_new_num() { - _has_bits_[0] &= ~0x80000000u; -} -void V0LayerParameter::clear_new_num() { - new_num_ = 0; - clear_has_new_num(); -} -::google::protobuf::int32 V0LayerParameter::new_num() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.new_num) - return new_num_; -} -void V0LayerParameter::set_new_num(::google::protobuf::int32 value) { - set_has_new_num(); - new_num_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.new_num) -} - -// optional int32 new_channels = 61 [default = 0]; -bool V0LayerParameter::has_new_channels() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -void V0LayerParameter::set_has_new_channels() { - _has_bits_[1] |= 0x00000001u; -} -void V0LayerParameter::clear_has_new_channels() { - _has_bits_[1] &= ~0x00000001u; -} -void V0LayerParameter::clear_new_channels() { - new_channels_ = 0; - clear_has_new_channels(); -} -::google::protobuf::int32 V0LayerParameter::new_channels() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.new_channels) - return new_channels_; -} -void V0LayerParameter::set_new_channels(::google::protobuf::int32 value) { - set_has_new_channels(); - new_channels_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.new_channels) -} - -// optional int32 new_height = 62 [default = 0]; -bool V0LayerParameter::has_new_height() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -void V0LayerParameter::set_has_new_height() { - _has_bits_[1] |= 0x00000002u; -} -void V0LayerParameter::clear_has_new_height() { - _has_bits_[1] &= ~0x00000002u; -} -void V0LayerParameter::clear_new_height() { - new_height_ = 0; - clear_has_new_height(); -} -::google::protobuf::int32 V0LayerParameter::new_height() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.new_height) - return new_height_; -} -void V0LayerParameter::set_new_height(::google::protobuf::int32 value) { - set_has_new_height(); - new_height_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.new_height) -} - -// optional int32 new_width = 63 [default = 0]; -bool V0LayerParameter::has_new_width() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -void V0LayerParameter::set_has_new_width() { - _has_bits_[1] |= 0x00000004u; -} -void V0LayerParameter::clear_has_new_width() { - _has_bits_[1] &= ~0x00000004u; -} -void V0LayerParameter::clear_new_width() { - new_width_ = 0; - clear_has_new_width(); -} -::google::protobuf::int32 V0LayerParameter::new_width() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.new_width) - return new_width_; -} -void V0LayerParameter::set_new_width(::google::protobuf::int32 value) { - set_has_new_width(); - new_width_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.new_width) -} - -// optional bool shuffle_images = 64 [default = false]; -bool V0LayerParameter::has_shuffle_images() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -void V0LayerParameter::set_has_shuffle_images() { - _has_bits_[1] |= 0x00000008u; -} -void V0LayerParameter::clear_has_shuffle_images() { - _has_bits_[1] &= ~0x00000008u; -} -void V0LayerParameter::clear_shuffle_images() { - shuffle_images_ = false; - clear_has_shuffle_images(); -} -bool V0LayerParameter::shuffle_images() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.shuffle_images) - return shuffle_images_; -} -void V0LayerParameter::set_shuffle_images(bool value) { - set_has_shuffle_images(); - shuffle_images_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.shuffle_images) -} - -// optional uint32 concat_dim = 65 [default = 1]; -bool V0LayerParameter::has_concat_dim() const { - return (_has_bits_[1] & 0x00000010u) != 0; -} -void V0LayerParameter::set_has_concat_dim() { - _has_bits_[1] |= 0x00000010u; -} -void V0LayerParameter::clear_has_concat_dim() { - _has_bits_[1] &= ~0x00000010u; -} -void V0LayerParameter::clear_concat_dim() { - concat_dim_ = 1u; - clear_has_concat_dim(); -} -::google::protobuf::uint32 V0LayerParameter::concat_dim() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.concat_dim) - return concat_dim_; -} -void V0LayerParameter::set_concat_dim(::google::protobuf::uint32 value) { - set_has_concat_dim(); - concat_dim_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.concat_dim) -} - -// optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001; -bool V0LayerParameter::has_hdf5_output_param() const { - return (_has_bits_[1] & 0x00000020u) != 0; -} -void V0LayerParameter::set_has_hdf5_output_param() { - _has_bits_[1] |= 0x00000020u; -} -void V0LayerParameter::clear_has_hdf5_output_param() { - _has_bits_[1] &= ~0x00000020u; -} -void V0LayerParameter::clear_hdf5_output_param() { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::opencv_caffe::HDF5OutputParameter::Clear(); - clear_has_hdf5_output_param(); -} -const ::opencv_caffe::HDF5OutputParameter& V0LayerParameter::hdf5_output_param() const { - // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.hdf5_output_param) - return hdf5_output_param_ != NULL ? *hdf5_output_param_ - : *::opencv_caffe::HDF5OutputParameter::internal_default_instance(); -} -::opencv_caffe::HDF5OutputParameter* V0LayerParameter::mutable_hdf5_output_param() { - set_has_hdf5_output_param(); - if (hdf5_output_param_ == NULL) { - hdf5_output_param_ = new ::opencv_caffe::HDF5OutputParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.hdf5_output_param) - return hdf5_output_param_; -} -::opencv_caffe::HDF5OutputParameter* V0LayerParameter::release_hdf5_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.hdf5_output_param) - clear_has_hdf5_output_param(); - ::opencv_caffe::HDF5OutputParameter* temp = hdf5_output_param_; - hdf5_output_param_ = NULL; - return temp; -} -void V0LayerParameter::set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param) { - delete hdf5_output_param_; - hdf5_output_param_ = hdf5_output_param; - if (hdf5_output_param) { - set_has_hdf5_output_param(); - } else { - clear_has_hdf5_output_param(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.hdf5_output_param) -} - -inline const V0LayerParameter* V0LayerParameter::internal_default_instance() { - return &V0LayerParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void PReLUParameter::InitAsDefaultInstance() { + ::opencv_caffe::_PReLUParameter_default_instance_._instance.get_mutable()->filler_ = const_cast< ::opencv_caffe::FillerParameter*>( + ::opencv_caffe::FillerParameter::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PReLUParameter::kFillerFieldNumber; const int PReLUParameter::kChannelSharedFieldNumber; @@ -53696,28 +39079,32 @@ const int PReLUParameter::kChannelSharedFieldNumber; PReLUParameter::PReLUParameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPReLUParameter(); + } SharedCtor(); // @@protoc_insertion_point(constructor:opencv_caffe.PReLUParameter) } - -void PReLUParameter::InitAsDefaultInstance() { - filler_ = const_cast< ::opencv_caffe::FillerParameter*>( - ::opencv_caffe::FillerParameter::internal_default_instance()); -} - PReLUParameter::PReLUParameter(const PReLUParameter& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_filler()) { + filler_ = new ::opencv_caffe::FillerParameter(*from.filler_); + } else { + filler_ = NULL; + } + channel_shared_ = from.channel_shared_; // @@protoc_insertion_point(copy_constructor:opencv_caffe.PReLUParameter) } void PReLUParameter::SharedCtor() { _cached_size_ = 0; - filler_ = NULL; - channel_shared_ = false; + ::memset(&filler_, 0, static_cast( + reinterpret_cast(&channel_shared_) - + reinterpret_cast(&filler_)) + sizeof(channel_shared_)); } PReLUParameter::~PReLUParameter() { @@ -53726,9 +39113,7 @@ PReLUParameter::~PReLUParameter() { } void PReLUParameter::SharedDtor() { - if (this != &PReLUParameter_default_instance_.get()) { - delete filler_; - } + if (this != internal_default_instance()) delete filler_; } void PReLUParameter::SetCachedSize(int size) const { @@ -53737,17 +39122,15 @@ void PReLUParameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* PReLUParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PReLUParameter_descriptor_; + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PReLUParameter& PReLUParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPReLUParameter(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed PReLUParameter_default_instance_; - PReLUParameter* PReLUParameter::New(::google::protobuf::Arena* arena) const { PReLUParameter* n = new PReLUParameter; if (arena != NULL) { @@ -53758,16 +39141,18 @@ PReLUParameter* PReLUParameter::New(::google::protobuf::Arena* arena) const { void PReLUParameter::Clear() { // @@protoc_insertion_point(message_clear_start:opencv_caffe.PReLUParameter) - if (_has_bits_[0 / 32] & 3u) { - if (has_filler()) { - if (filler_ != NULL) filler_->::opencv_caffe::FillerParameter::Clear(); - } - channel_shared_ = false; + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(filler_ != NULL); + filler_->Clear(); } + channel_shared_ = false; _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } + _internal_metadata_.Clear(); } bool PReLUParameter::MergePartialFromCodedStream( @@ -53776,26 +39161,26 @@ bool PReLUParameter::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:opencv_caffe.PReLUParameter) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .opencv_caffe.FillerParameter filler = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_filler())); } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_channel_shared; break; } // optional bool channel_shared = 2 [default = false]; case 2: { - if (tag == 16) { - parse_channel_shared: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_channel_shared(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -53803,19 +39188,16 @@ bool PReLUParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -53832,20 +39214,24 @@ failure: void PReLUParameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:opencv_caffe.PReLUParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional .opencv_caffe.FillerParameter filler = 1; - if (has_filler()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->filler_, output); } // optional bool channel_shared = 2 [default = false]; - if (has_channel_shared()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->channel_shared(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); + _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:opencv_caffe.PReLUParameter) } @@ -53854,21 +39240,25 @@ void PReLUParameter::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PReLUParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional .opencv_caffe.FillerParameter filler = 1; - if (has_filler()) { + if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->filler_, false, target); + InternalWriteMessageToArray( + 1, *this->filler_, deterministic, target); } // optional bool channel_shared = 2 [default = false]; - if (has_channel_shared()) { + if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->channel_shared(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PReLUParameter) return target; @@ -53878,11 +39268,16 @@ size_t PReLUParameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PReLUParameter) size_t total_size = 0; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } if (_has_bits_[0 / 32] & 3u) { // optional .opencv_caffe.FillerParameter filler = 1; if (has_filler()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->filler_); } @@ -53892,11 +39287,6 @@ size_t PReLUParameter::ByteSizeLong() const { } } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -53906,7 +39296,7 @@ size_t PReLUParameter::ByteSizeLong() const { void PReLUParameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PReLUParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const PReLUParameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -53915,32 +39305,26 @@ void PReLUParameter::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PReLUParameter) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void PReLUParameter::MergeFrom(const PReLUParameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PReLUParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void PReLUParameter::UnsafeMergeFrom(const PReLUParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_filler()) { + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 3u) { + if (cached_has_bits & 0x00000001u) { mutable_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.filler()); } - if (from.has_channel_shared()) { - set_channel_shared(from.channel_shared()); + if (cached_has_bits & 0x00000002u) { + channel_shared_ = from.channel_shared_; } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); + _has_bits_[0] |= cached_has_bits; } } @@ -53955,11 +39339,10 @@ void PReLUParameter::CopyFrom(const PReLUParameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PReLUParameter) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool PReLUParameter::IsInitialized() const { - return true; } @@ -53968,100 +39351,24 @@ void PReLUParameter::Swap(PReLUParameter* other) { InternalSwap(other); } void PReLUParameter::InternalSwap(PReLUParameter* other) { - std::swap(filler_, other->filler_); - std::swap(channel_shared_, other->channel_shared_); - std::swap(_has_bits_[0], other->_has_bits_[0]); + using std::swap; + swap(filler_, other->filler_); + swap(channel_shared_, other->channel_shared_); + swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata PReLUParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PReLUParameter_descriptor_; - metadata.reflection = PReLUParameter_reflection_; - return metadata; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PReLUParameter - -// optional .opencv_caffe.FillerParameter filler = 1; -bool PReLUParameter::has_filler() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void PReLUParameter::set_has_filler() { - _has_bits_[0] |= 0x00000001u; -} -void PReLUParameter::clear_has_filler() { - _has_bits_[0] &= ~0x00000001u; -} -void PReLUParameter::clear_filler() { - if (filler_ != NULL) filler_->::opencv_caffe::FillerParameter::Clear(); - clear_has_filler(); -} -const ::opencv_caffe::FillerParameter& PReLUParameter::filler() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PReLUParameter.filler) - return filler_ != NULL ? *filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); -} -::opencv_caffe::FillerParameter* PReLUParameter::mutable_filler() { - set_has_filler(); - if (filler_ == NULL) { - filler_ = new ::opencv_caffe::FillerParameter; - } - // @@protoc_insertion_point(field_mutable:opencv_caffe.PReLUParameter.filler) - return filler_; -} -::opencv_caffe::FillerParameter* PReLUParameter::release_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.PReLUParameter.filler) - clear_has_filler(); - ::opencv_caffe::FillerParameter* temp = filler_; - filler_ = NULL; - return temp; -} -void PReLUParameter::set_allocated_filler(::opencv_caffe::FillerParameter* filler) { - delete filler_; - filler_ = filler; - if (filler) { - set_has_filler(); - } else { - clear_has_filler(); - } - // @@protoc_insertion_point(field_set_allocated:opencv_caffe.PReLUParameter.filler) -} - -// optional bool channel_shared = 2 [default = false]; -bool PReLUParameter::has_channel_shared() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void PReLUParameter::set_has_channel_shared() { - _has_bits_[0] |= 0x00000002u; -} -void PReLUParameter::clear_has_channel_shared() { - _has_bits_[0] &= ~0x00000002u; -} -void PReLUParameter::clear_channel_shared() { - channel_shared_ = false; - clear_has_channel_shared(); -} -bool PReLUParameter::channel_shared() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PReLUParameter.channel_shared) - return channel_shared_; -} -void PReLUParameter::set_channel_shared(bool value) { - set_has_channel_shared(); - channel_shared_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PReLUParameter.channel_shared) -} - -inline const PReLUParameter* PReLUParameter::internal_default_instance() { - return &PReLUParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void NormalizedBBox::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int NormalizedBBox::kXminFieldNumber; const int NormalizedBBox::kYminFieldNumber; @@ -54075,26 +39382,29 @@ const int NormalizedBBox::kSizeFieldNumber; NormalizedBBox::NormalizedBBox() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizedBBox(); + } SharedCtor(); // @@protoc_insertion_point(constructor:opencv_caffe.NormalizedBBox) } - -void NormalizedBBox::InitAsDefaultInstance() { -} - NormalizedBBox::NormalizedBBox(const NormalizedBBox& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&xmin_, &from.xmin_, + static_cast(reinterpret_cast(&size_) - + reinterpret_cast(&xmin_)) + sizeof(size_)); // @@protoc_insertion_point(copy_constructor:opencv_caffe.NormalizedBBox) } void NormalizedBBox::SharedCtor() { _cached_size_ = 0; - ::memset(&xmin_, 0, reinterpret_cast(&size_) - - reinterpret_cast(&xmin_) + sizeof(size_)); + ::memset(&xmin_, 0, static_cast( + reinterpret_cast(&size_) - + reinterpret_cast(&xmin_)) + sizeof(size_)); } NormalizedBBox::~NormalizedBBox() { @@ -54111,17 +39421,15 @@ void NormalizedBBox::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* NormalizedBBox::descriptor() { - protobuf_AssignDescriptorsOnce(); - return NormalizedBBox_descriptor_; + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const NormalizedBBox& NormalizedBBox::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizedBBox(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed NormalizedBBox_default_instance_; - NormalizedBBox* NormalizedBBox::New(::google::protobuf::Arena* arena) const { NormalizedBBox* n = new NormalizedBBox; if (arena != NULL) { @@ -54132,31 +39440,18 @@ NormalizedBBox* NormalizedBBox::New(::google::protobuf::Arena* arena) const { void NormalizedBBox::Clear() { // @@protoc_insertion_point(message_clear_start:opencv_caffe.NormalizedBBox) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(NormalizedBBox, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(xmin_, size_); - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 255u) { + ::memset(&xmin_, 0, static_cast( + reinterpret_cast(&size_) - + reinterpret_cast(&xmin_)) + sizeof(size_)); } + _has_bits_.Clear(); + _internal_metadata_.Clear(); } bool NormalizedBBox::MergePartialFromCodedStream( @@ -54165,13 +39460,14 @@ bool NormalizedBBox::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:opencv_caffe.NormalizedBBox) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional float xmin = 1; case 1: { - if (tag == 13) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { set_has_xmin(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -54179,14 +39475,13 @@ bool NormalizedBBox::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(21)) goto parse_ymin; break; } // optional float ymin = 2; case 2: { - if (tag == 21) { - parse_ymin: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { set_has_ymin(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -54194,14 +39489,13 @@ bool NormalizedBBox::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(29)) goto parse_xmax; break; } // optional float xmax = 3; case 3: { - if (tag == 29) { - parse_xmax: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { set_has_xmax(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -54209,14 +39503,13 @@ bool NormalizedBBox::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(37)) goto parse_ymax; break; } // optional float ymax = 4; case 4: { - if (tag == 37) { - parse_ymax: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { set_has_ymax(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -54224,14 +39517,13 @@ bool NormalizedBBox::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(40)) goto parse_label; break; } // optional int32 label = 5; case 5: { - if (tag == 40) { - parse_label: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { set_has_label(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -54239,14 +39531,13 @@ bool NormalizedBBox::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(48)) goto parse_difficult; break; } // optional bool difficult = 6; case 6: { - if (tag == 48) { - parse_difficult: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { set_has_difficult(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -54254,14 +39545,13 @@ bool NormalizedBBox::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(61)) goto parse_score; break; } // optional float score = 7; case 7: { - if (tag == 61) { - parse_score: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) { set_has_score(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -54269,14 +39559,13 @@ bool NormalizedBBox::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(69)) goto parse_size; break; } // optional float size = 8; case 8: { - if (tag == 69) { - parse_size: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) { set_has_size(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -54284,19 +39573,16 @@ bool NormalizedBBox::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -54313,49 +39599,53 @@ failure: void NormalizedBBox::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:opencv_caffe.NormalizedBBox) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional float xmin = 1; - if (has_xmin()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->xmin(), output); } // optional float ymin = 2; - if (has_ymin()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->ymin(), output); } // optional float xmax = 3; - if (has_xmax()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->xmax(), output); } // optional float ymax = 4; - if (has_ymax()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->ymax(), output); } // optional int32 label = 5; - if (has_label()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->label(), output); } // optional bool difficult = 6; - if (has_difficult()) { + if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->difficult(), output); } // optional float score = 7; - if (has_score()) { + if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->score(), output); } // optional float size = 8; - if (has_size()) { + if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->size(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); + _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:opencv_caffe.NormalizedBBox) } @@ -54364,49 +39654,53 @@ void NormalizedBBox::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NormalizedBBox) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional float xmin = 1; - if (has_xmin()) { + if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->xmin(), target); } // optional float ymin = 2; - if (has_ymin()) { + if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->ymin(), target); } // optional float xmax = 3; - if (has_xmax()) { + if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->xmax(), target); } // optional float ymax = 4; - if (has_ymax()) { + if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->ymax(), target); } // optional int32 label = 5; - if (has_label()) { + if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->label(), target); } // optional bool difficult = 6; - if (has_difficult()) { + if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->difficult(), target); } // optional float score = 7; - if (has_score()) { + if (cached_has_bits & 0x00000040u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->score(), target); } // optional float size = 8; - if (has_size()) { + if (cached_has_bits & 0x00000080u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->size(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NormalizedBBox) return target; @@ -54416,6 +39710,11 @@ size_t NormalizedBBox::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NormalizedBBox) size_t total_size = 0; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } if (_has_bits_[0 / 32] & 255u) { // optional float xmin = 1; if (has_xmin()) { @@ -54460,11 +39759,6 @@ size_t NormalizedBBox::ByteSizeLong() const { } } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -54474,7 +39768,7 @@ size_t NormalizedBBox::ByteSizeLong() const { void NormalizedBBox::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NormalizedBBox) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const NormalizedBBox* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -54483,50 +39777,44 @@ void NormalizedBBox::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NormalizedBBox) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void NormalizedBBox::MergeFrom(const NormalizedBBox& from) { // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NormalizedBBox) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void NormalizedBBox::UnsafeMergeFrom(const NormalizedBBox& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_xmin()) { - set_xmin(from.xmin()); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 255u) { + if (cached_has_bits & 0x00000001u) { + xmin_ = from.xmin_; } - if (from.has_ymin()) { - set_ymin(from.ymin()); + if (cached_has_bits & 0x00000002u) { + ymin_ = from.ymin_; } - if (from.has_xmax()) { - set_xmax(from.xmax()); + if (cached_has_bits & 0x00000004u) { + xmax_ = from.xmax_; } - if (from.has_ymax()) { - set_ymax(from.ymax()); + if (cached_has_bits & 0x00000008u) { + ymax_ = from.ymax_; } - if (from.has_label()) { - set_label(from.label()); + if (cached_has_bits & 0x00000010u) { + label_ = from.label_; } - if (from.has_difficult()) { - set_difficult(from.difficult()); + if (cached_has_bits & 0x00000020u) { + difficult_ = from.difficult_; } - if (from.has_score()) { - set_score(from.score()); + if (cached_has_bits & 0x00000040u) { + score_ = from.score_; } - if (from.has_size()) { - set_size(from.size()); + if (cached_has_bits & 0x00000080u) { + size_ = from.size_; } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); + _has_bits_[0] |= cached_has_bits; } } @@ -54541,11 +39829,10 @@ void NormalizedBBox::CopyFrom(const NormalizedBBox& from) { // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NormalizedBBox) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool NormalizedBBox::IsInitialized() const { - return true; } @@ -54554,229 +39841,30 @@ void NormalizedBBox::Swap(NormalizedBBox* other) { InternalSwap(other); } void NormalizedBBox::InternalSwap(NormalizedBBox* other) { - std::swap(xmin_, other->xmin_); - std::swap(ymin_, other->ymin_); - std::swap(xmax_, other->xmax_); - std::swap(ymax_, other->ymax_); - std::swap(label_, other->label_); - std::swap(difficult_, other->difficult_); - std::swap(score_, other->score_); - std::swap(size_, other->size_); - std::swap(_has_bits_[0], other->_has_bits_[0]); + using std::swap; + swap(xmin_, other->xmin_); + swap(ymin_, other->ymin_); + swap(xmax_, other->xmax_); + swap(ymax_, other->ymax_); + swap(label_, other->label_); + swap(difficult_, other->difficult_); + swap(score_, other->score_); + swap(size_, other->size_); + swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata NormalizedBBox::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = NormalizedBBox_descriptor_; - metadata.reflection = NormalizedBBox_reflection_; - return metadata; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// NormalizedBBox - -// optional float xmin = 1; -bool NormalizedBBox::has_xmin() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void NormalizedBBox::set_has_xmin() { - _has_bits_[0] |= 0x00000001u; -} -void NormalizedBBox::clear_has_xmin() { - _has_bits_[0] &= ~0x00000001u; -} -void NormalizedBBox::clear_xmin() { - xmin_ = 0; - clear_has_xmin(); -} -float NormalizedBBox::xmin() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizedBBox.xmin) - return xmin_; -} -void NormalizedBBox::set_xmin(float value) { - set_has_xmin(); - xmin_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizedBBox.xmin) -} - -// optional float ymin = 2; -bool NormalizedBBox::has_ymin() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void NormalizedBBox::set_has_ymin() { - _has_bits_[0] |= 0x00000002u; -} -void NormalizedBBox::clear_has_ymin() { - _has_bits_[0] &= ~0x00000002u; -} -void NormalizedBBox::clear_ymin() { - ymin_ = 0; - clear_has_ymin(); -} -float NormalizedBBox::ymin() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizedBBox.ymin) - return ymin_; -} -void NormalizedBBox::set_ymin(float value) { - set_has_ymin(); - ymin_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizedBBox.ymin) -} - -// optional float xmax = 3; -bool NormalizedBBox::has_xmax() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void NormalizedBBox::set_has_xmax() { - _has_bits_[0] |= 0x00000004u; -} -void NormalizedBBox::clear_has_xmax() { - _has_bits_[0] &= ~0x00000004u; -} -void NormalizedBBox::clear_xmax() { - xmax_ = 0; - clear_has_xmax(); -} -float NormalizedBBox::xmax() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizedBBox.xmax) - return xmax_; -} -void NormalizedBBox::set_xmax(float value) { - set_has_xmax(); - xmax_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizedBBox.xmax) -} - -// optional float ymax = 4; -bool NormalizedBBox::has_ymax() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -void NormalizedBBox::set_has_ymax() { - _has_bits_[0] |= 0x00000008u; -} -void NormalizedBBox::clear_has_ymax() { - _has_bits_[0] &= ~0x00000008u; -} -void NormalizedBBox::clear_ymax() { - ymax_ = 0; - clear_has_ymax(); -} -float NormalizedBBox::ymax() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizedBBox.ymax) - return ymax_; -} -void NormalizedBBox::set_ymax(float value) { - set_has_ymax(); - ymax_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizedBBox.ymax) -} - -// optional int32 label = 5; -bool NormalizedBBox::has_label() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -void NormalizedBBox::set_has_label() { - _has_bits_[0] |= 0x00000010u; -} -void NormalizedBBox::clear_has_label() { - _has_bits_[0] &= ~0x00000010u; -} -void NormalizedBBox::clear_label() { - label_ = 0; - clear_has_label(); -} -::google::protobuf::int32 NormalizedBBox::label() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizedBBox.label) - return label_; -} -void NormalizedBBox::set_label(::google::protobuf::int32 value) { - set_has_label(); - label_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizedBBox.label) -} - -// optional bool difficult = 6; -bool NormalizedBBox::has_difficult() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void NormalizedBBox::set_has_difficult() { - _has_bits_[0] |= 0x00000020u; -} -void NormalizedBBox::clear_has_difficult() { - _has_bits_[0] &= ~0x00000020u; -} -void NormalizedBBox::clear_difficult() { - difficult_ = false; - clear_has_difficult(); -} -bool NormalizedBBox::difficult() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizedBBox.difficult) - return difficult_; -} -void NormalizedBBox::set_difficult(bool value) { - set_has_difficult(); - difficult_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizedBBox.difficult) -} - -// optional float score = 7; -bool NormalizedBBox::has_score() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void NormalizedBBox::set_has_score() { - _has_bits_[0] |= 0x00000040u; -} -void NormalizedBBox::clear_has_score() { - _has_bits_[0] &= ~0x00000040u; -} -void NormalizedBBox::clear_score() { - score_ = 0; - clear_has_score(); -} -float NormalizedBBox::score() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizedBBox.score) - return score_; -} -void NormalizedBBox::set_score(float value) { - set_has_score(); - score_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizedBBox.score) -} - -// optional float size = 8; -bool NormalizedBBox::has_size() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void NormalizedBBox::set_has_size() { - _has_bits_[0] |= 0x00000080u; -} -void NormalizedBBox::clear_has_size() { - _has_bits_[0] &= ~0x00000080u; -} -void NormalizedBBox::clear_size() { - size_ = 0; - clear_has_size(); -} -float NormalizedBBox::size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.NormalizedBBox.size) - return size_; -} -void NormalizedBBox::set_size(float value) { - set_has_size(); - size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.NormalizedBBox.size) -} - -inline const NormalizedBBox* NormalizedBBox::internal_default_instance() { - return &NormalizedBBox_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void ROIPoolingParameter::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ROIPoolingParameter::kPooledHFieldNumber; const int ROIPoolingParameter::kPooledWFieldNumber; @@ -54785,26 +39873,29 @@ const int ROIPoolingParameter::kSpatialScaleFieldNumber; ROIPoolingParameter::ROIPoolingParameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsROIPoolingParameter(); + } SharedCtor(); // @@protoc_insertion_point(constructor:opencv_caffe.ROIPoolingParameter) } - -void ROIPoolingParameter::InitAsDefaultInstance() { -} - ROIPoolingParameter::ROIPoolingParameter(const ROIPoolingParameter& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&pooled_h_, &from.pooled_h_, + static_cast(reinterpret_cast(&spatial_scale_) - + reinterpret_cast(&pooled_h_)) + sizeof(spatial_scale_)); // @@protoc_insertion_point(copy_constructor:opencv_caffe.ROIPoolingParameter) } void ROIPoolingParameter::SharedCtor() { _cached_size_ = 0; - ::memset(&pooled_h_, 0, reinterpret_cast(&pooled_w_) - - reinterpret_cast(&pooled_h_) + sizeof(pooled_w_)); + ::memset(&pooled_h_, 0, static_cast( + reinterpret_cast(&pooled_w_) - + reinterpret_cast(&pooled_h_)) + sizeof(pooled_w_)); spatial_scale_ = 1; } @@ -54822,17 +39913,15 @@ void ROIPoolingParameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* ROIPoolingParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ROIPoolingParameter_descriptor_; + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ROIPoolingParameter& ROIPoolingParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsROIPoolingParameter(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed ROIPoolingParameter_default_instance_; - ROIPoolingParameter* ROIPoolingParameter::New(::google::protobuf::Arena* arena) const { ROIPoolingParameter* n = new ROIPoolingParameter; if (arena != NULL) { @@ -54843,34 +39932,19 @@ ROIPoolingParameter* ROIPoolingParameter::New(::google::protobuf::Arena* arena) void ROIPoolingParameter::Clear() { // @@protoc_insertion_point(message_clear_start:opencv_caffe.ROIPoolingParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(ROIPoolingParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - if (_has_bits_[0 / 32] & 7u) { - ZR_(pooled_h_, pooled_w_); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + ::memset(&pooled_h_, 0, static_cast( + reinterpret_cast(&pooled_w_) - + reinterpret_cast(&pooled_h_)) + sizeof(pooled_w_)); spatial_scale_ = 1; } - -#undef ZR_HELPER_ -#undef ZR_ - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } + _internal_metadata_.Clear(); } bool ROIPoolingParameter::MergePartialFromCodedStream( @@ -54879,13 +39953,14 @@ bool ROIPoolingParameter::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:opencv_caffe.ROIPoolingParameter) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional uint32 pooled_h = 1 [default = 0]; case 1: { - if (tag == 8) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_pooled_h(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -54893,14 +39968,13 @@ bool ROIPoolingParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_pooled_w; break; } // optional uint32 pooled_w = 2 [default = 0]; case 2: { - if (tag == 16) { - parse_pooled_w: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_pooled_w(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -54908,14 +39982,13 @@ bool ROIPoolingParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(29)) goto parse_spatial_scale; break; } // optional float spatial_scale = 3 [default = 1]; case 3: { - if (tag == 29) { - parse_spatial_scale: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { set_has_spatial_scale(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -54923,19 +39996,16 @@ bool ROIPoolingParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -54952,24 +40022,28 @@ failure: void ROIPoolingParameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:opencv_caffe.ROIPoolingParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional uint32 pooled_h = 1 [default = 0]; - if (has_pooled_h()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->pooled_h(), output); } // optional uint32 pooled_w = 2 [default = 0]; - if (has_pooled_w()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pooled_w(), output); } // optional float spatial_scale = 3 [default = 1]; - if (has_spatial_scale()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->spatial_scale(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); + _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:opencv_caffe.ROIPoolingParameter) } @@ -54978,24 +40052,28 @@ void ROIPoolingParameter::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ROIPoolingParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional uint32 pooled_h = 1 [default = 0]; - if (has_pooled_h()) { + if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->pooled_h(), target); } // optional uint32 pooled_w = 2 [default = 0]; - if (has_pooled_w()) { + if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pooled_w(), target); } // optional float spatial_scale = 3 [default = 1]; - if (has_spatial_scale()) { + if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->spatial_scale(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ROIPoolingParameter) return target; @@ -55005,6 +40083,11 @@ size_t ROIPoolingParameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ROIPoolingParameter) size_t total_size = 0; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } if (_has_bits_[0 / 32] & 7u) { // optional uint32 pooled_h = 1 [default = 0]; if (has_pooled_h()) { @@ -55026,11 +40109,6 @@ size_t ROIPoolingParameter::ByteSizeLong() const { } } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -55040,7 +40118,7 @@ size_t ROIPoolingParameter::ByteSizeLong() const { void ROIPoolingParameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ROIPoolingParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const ROIPoolingParameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -55049,35 +40127,29 @@ void ROIPoolingParameter::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ROIPoolingParameter) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void ROIPoolingParameter::MergeFrom(const ROIPoolingParameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ROIPoolingParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void ROIPoolingParameter::UnsafeMergeFrom(const ROIPoolingParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_pooled_h()) { - set_pooled_h(from.pooled_h()); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + pooled_h_ = from.pooled_h_; } - if (from.has_pooled_w()) { - set_pooled_w(from.pooled_w()); + if (cached_has_bits & 0x00000002u) { + pooled_w_ = from.pooled_w_; } - if (from.has_spatial_scale()) { - set_spatial_scale(from.spatial_scale()); + if (cached_has_bits & 0x00000004u) { + spatial_scale_ = from.spatial_scale_; } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); + _has_bits_[0] |= cached_has_bits; } } @@ -55092,11 +40164,10 @@ void ROIPoolingParameter::CopyFrom(const ROIPoolingParameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ROIPoolingParameter) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool ROIPoolingParameter::IsInitialized() const { - return true; } @@ -55105,104 +40176,25 @@ void ROIPoolingParameter::Swap(ROIPoolingParameter* other) { InternalSwap(other); } void ROIPoolingParameter::InternalSwap(ROIPoolingParameter* other) { - std::swap(pooled_h_, other->pooled_h_); - std::swap(pooled_w_, other->pooled_w_); - std::swap(spatial_scale_, other->spatial_scale_); - std::swap(_has_bits_[0], other->_has_bits_[0]); + using std::swap; + swap(pooled_h_, other->pooled_h_); + swap(pooled_w_, other->pooled_w_); + swap(spatial_scale_, other->spatial_scale_); + swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata ROIPoolingParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ROIPoolingParameter_descriptor_; - metadata.reflection = ROIPoolingParameter_reflection_; - return metadata; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ROIPoolingParameter - -// optional uint32 pooled_h = 1 [default = 0]; -bool ROIPoolingParameter::has_pooled_h() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ROIPoolingParameter::set_has_pooled_h() { - _has_bits_[0] |= 0x00000001u; -} -void ROIPoolingParameter::clear_has_pooled_h() { - _has_bits_[0] &= ~0x00000001u; -} -void ROIPoolingParameter::clear_pooled_h() { - pooled_h_ = 0u; - clear_has_pooled_h(); -} -::google::protobuf::uint32 ROIPoolingParameter::pooled_h() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ROIPoolingParameter.pooled_h) - return pooled_h_; -} -void ROIPoolingParameter::set_pooled_h(::google::protobuf::uint32 value) { - set_has_pooled_h(); - pooled_h_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ROIPoolingParameter.pooled_h) -} - -// optional uint32 pooled_w = 2 [default = 0]; -bool ROIPoolingParameter::has_pooled_w() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ROIPoolingParameter::set_has_pooled_w() { - _has_bits_[0] |= 0x00000002u; -} -void ROIPoolingParameter::clear_has_pooled_w() { - _has_bits_[0] &= ~0x00000002u; -} -void ROIPoolingParameter::clear_pooled_w() { - pooled_w_ = 0u; - clear_has_pooled_w(); -} -::google::protobuf::uint32 ROIPoolingParameter::pooled_w() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ROIPoolingParameter.pooled_w) - return pooled_w_; -} -void ROIPoolingParameter::set_pooled_w(::google::protobuf::uint32 value) { - set_has_pooled_w(); - pooled_w_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ROIPoolingParameter.pooled_w) -} - -// optional float spatial_scale = 3 [default = 1]; -bool ROIPoolingParameter::has_spatial_scale() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void ROIPoolingParameter::set_has_spatial_scale() { - _has_bits_[0] |= 0x00000004u; -} -void ROIPoolingParameter::clear_has_spatial_scale() { - _has_bits_[0] &= ~0x00000004u; -} -void ROIPoolingParameter::clear_spatial_scale() { - spatial_scale_ = 1; - clear_has_spatial_scale(); -} -float ROIPoolingParameter::spatial_scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ROIPoolingParameter.spatial_scale) - return spatial_scale_; -} -void ROIPoolingParameter::set_spatial_scale(float value) { - set_has_spatial_scale(); - spatial_scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ROIPoolingParameter.spatial_scale) -} - -inline const ROIPoolingParameter* ROIPoolingParameter::internal_default_instance() { - return &ROIPoolingParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void ProposalParameter::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ProposalParameter::kFeatStrideFieldNumber; const int ProposalParameter::kBaseSizeFieldNumber; @@ -55216,19 +40208,23 @@ const int ProposalParameter::kNmsThreshFieldNumber; ProposalParameter::ProposalParameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsProposalParameter(); + } SharedCtor(); // @@protoc_insertion_point(constructor:opencv_caffe.ProposalParameter) } - -void ProposalParameter::InitAsDefaultInstance() { -} - ProposalParameter::ProposalParameter(const ProposalParameter& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0), + ratio_(from.ratio_), + scale_(from.scale_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&feat_stride_, &from.feat_stride_, + static_cast(reinterpret_cast(&nms_thresh_) - + reinterpret_cast(&feat_stride_)) + sizeof(nms_thresh_)); // @@protoc_insertion_point(copy_constructor:opencv_caffe.ProposalParameter) } @@ -55256,17 +40252,15 @@ void ProposalParameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* ProposalParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return ProposalParameter_descriptor_; + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ProposalParameter& ProposalParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsProposalParameter(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed ProposalParameter_default_instance_; - ProposalParameter* ProposalParameter::New(::google::protobuf::Arena* arena) const { ProposalParameter* n = new ProposalParameter; if (arena != NULL) { @@ -55277,7 +40271,14 @@ ProposalParameter* ProposalParameter::New(::google::protobuf::Arena* arena) cons void ProposalParameter::Clear() { // @@protoc_insertion_point(message_clear_start:opencv_caffe.ProposalParameter) - if (_has_bits_[0 / 32] & 231u) { + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ratio_.Clear(); + scale_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 63u) { feat_stride_ = 16u; base_size_ = 16u; min_size_ = 16u; @@ -55285,12 +40286,8 @@ void ProposalParameter::Clear() { post_nms_topn_ = 300u; nms_thresh_ = 0.7f; } - ratio_.Clear(); - scale_.Clear(); _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); - } + _internal_metadata_.Clear(); } bool ProposalParameter::MergePartialFromCodedStream( @@ -55299,13 +40296,14 @@ bool ProposalParameter::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:opencv_caffe.ProposalParameter) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional uint32 feat_stride = 1 [default = 16]; case 1: { - if (tag == 8) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_feat_stride(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -55313,14 +40311,13 @@ bool ProposalParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_base_size; break; } // optional uint32 base_size = 2 [default = 16]; case 2: { - if (tag == 16) { - parse_base_size: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_base_size(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -55328,14 +40325,13 @@ bool ProposalParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_min_size; break; } // optional uint32 min_size = 3 [default = 16]; case 3: { - if (tag == 24) { - parse_min_size: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_min_size(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -55343,52 +40339,51 @@ bool ProposalParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(37)) goto parse_ratio; break; } // repeated float ratio = 4; case 4: { - if (tag == 37) { - parse_ratio: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 37, input, this->mutable_ratio()))); - } else if (tag == 34) { + 1, 37u, input, this->mutable_ratio()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_ratio()))); } else { goto handle_unusual; } - if (input->ExpectTag(37)) goto parse_ratio; - if (input->ExpectTag(45)) goto parse_scale; break; } // repeated float scale = 5; case 5: { - if (tag == 45) { - parse_scale: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 45, input, this->mutable_scale()))); - } else if (tag == 42) { + 1, 45u, input, this->mutable_scale()))); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_scale()))); } else { goto handle_unusual; } - if (input->ExpectTag(45)) goto parse_scale; - if (input->ExpectTag(48)) goto parse_pre_nms_topn; break; } // optional uint32 pre_nms_topn = 6 [default = 6000]; case 6: { - if (tag == 48) { - parse_pre_nms_topn: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { set_has_pre_nms_topn(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -55396,14 +40391,13 @@ bool ProposalParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(56)) goto parse_post_nms_topn; break; } // optional uint32 post_nms_topn = 7 [default = 300]; case 7: { - if (tag == 56) { - parse_post_nms_topn: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { set_has_post_nms_topn(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( @@ -55411,14 +40405,13 @@ bool ProposalParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(69)) goto parse_nms_thresh; break; } // optional float nms_thresh = 8 [default = 0.7]; case 8: { - if (tag == 69) { - parse_nms_thresh: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) { set_has_nms_thresh(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -55426,19 +40419,16 @@ bool ProposalParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -55455,51 +40445,55 @@ failure: void ProposalParameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:opencv_caffe.ProposalParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional uint32 feat_stride = 1 [default = 16]; - if (has_feat_stride()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->feat_stride(), output); } // optional uint32 base_size = 2 [default = 16]; - if (has_base_size()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->base_size(), output); } // optional uint32 min_size = 3 [default = 16]; - if (has_min_size()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->min_size(), output); } // repeated float ratio = 4; - for (int i = 0; i < this->ratio_size(); i++) { + for (int i = 0, n = this->ratio_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteFloat( 4, this->ratio(i), output); } // repeated float scale = 5; - for (int i = 0; i < this->scale_size(); i++) { + for (int i = 0, n = this->scale_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteFloat( 5, this->scale(i), output); } // optional uint32 pre_nms_topn = 6 [default = 6000]; - if (has_pre_nms_topn()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->pre_nms_topn(), output); } // optional uint32 post_nms_topn = 7 [default = 300]; - if (has_post_nms_topn()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->post_nms_topn(), output); } // optional float nms_thresh = 8 [default = 0.7]; - if (has_nms_thresh()) { + if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->nms_thresh(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); + _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:opencv_caffe.ProposalParameter) } @@ -55508,51 +40502,51 @@ void ProposalParameter::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ProposalParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // optional uint32 feat_stride = 1 [default = 16]; - if (has_feat_stride()) { + if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->feat_stride(), target); } // optional uint32 base_size = 2 [default = 16]; - if (has_base_size()) { + if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->base_size(), target); } // optional uint32 min_size = 3 [default = 16]; - if (has_min_size()) { + if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->min_size(), target); } // repeated float ratio = 4; - for (int i = 0; i < this->ratio_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(4, this->ratio(i), target); - } + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(4, this->ratio_, target); // repeated float scale = 5; - for (int i = 0; i < this->scale_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatToArray(5, this->scale(i), target); - } + target = ::google::protobuf::internal::WireFormatLite:: + WriteFloatToArray(5, this->scale_, target); // optional uint32 pre_nms_topn = 6 [default = 6000]; - if (has_pre_nms_topn()) { + if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->pre_nms_topn(), target); } // optional uint32 post_nms_topn = 7 [default = 300]; - if (has_post_nms_topn()) { + if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->post_nms_topn(), target); } // optional float nms_thresh = 8 [default = 0.7]; - if (has_nms_thresh()) { + if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->nms_thresh(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ProposalParameter) return target; @@ -55562,7 +40556,30 @@ size_t ProposalParameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ProposalParameter) size_t total_size = 0; - if (_has_bits_[0 / 32] & 231u) { + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + // repeated float ratio = 4; + { + unsigned int count = static_cast(this->ratio_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->ratio_size()); + total_size += data_size; + } + + // repeated float scale = 5; + { + unsigned int count = static_cast(this->scale_size()); + size_t data_size = 4UL * count; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->scale_size()); + total_size += data_size; + } + + if (_has_bits_[0 / 32] & 63u) { // optional uint32 feat_stride = 1 [default = 16]; if (has_feat_stride()) { total_size += 1 + @@ -55604,31 +40621,6 @@ size_t ProposalParameter::ByteSizeLong() const { } } - // repeated float ratio = 4; - { - size_t data_size = 0; - unsigned int count = this->ratio_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->ratio_size()); - total_size += data_size; - } - - // repeated float scale = 5; - { - size_t data_size = 0; - unsigned int count = this->scale_size(); - data_size = 4UL * count; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->scale_size()); - total_size += data_size; - } - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -55638,7 +40630,7 @@ size_t ProposalParameter::ByteSizeLong() const { void ProposalParameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ProposalParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const ProposalParameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -55647,46 +40639,40 @@ void ProposalParameter::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ProposalParameter) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void ProposalParameter::MergeFrom(const ProposalParameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ProposalParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void ProposalParameter::UnsafeMergeFrom(const ProposalParameter& from) { - GOOGLE_DCHECK(&from != this); - ratio_.UnsafeMergeFrom(from.ratio_); - scale_.UnsafeMergeFrom(from.scale_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_feat_stride()) { - set_feat_stride(from.feat_stride()); + ratio_.MergeFrom(from.ratio_); + scale_.MergeFrom(from.scale_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 63u) { + if (cached_has_bits & 0x00000001u) { + feat_stride_ = from.feat_stride_; } - if (from.has_base_size()) { - set_base_size(from.base_size()); + if (cached_has_bits & 0x00000002u) { + base_size_ = from.base_size_; } - if (from.has_min_size()) { - set_min_size(from.min_size()); + if (cached_has_bits & 0x00000004u) { + min_size_ = from.min_size_; } - if (from.has_pre_nms_topn()) { - set_pre_nms_topn(from.pre_nms_topn()); + if (cached_has_bits & 0x00000008u) { + pre_nms_topn_ = from.pre_nms_topn_; } - if (from.has_post_nms_topn()) { - set_post_nms_topn(from.post_nms_topn()); + if (cached_has_bits & 0x00000010u) { + post_nms_topn_ = from.post_nms_topn_; } - if (from.has_nms_thresh()) { - set_nms_thresh(from.nms_thresh()); + if (cached_has_bits & 0x00000020u) { + nms_thresh_ = from.nms_thresh_; } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); + _has_bits_[0] |= cached_has_bits; } } @@ -55701,11 +40687,10 @@ void ProposalParameter::CopyFrom(const ProposalParameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ProposalParameter) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool ProposalParameter::IsInitialized() const { - return true; } @@ -55714,241 +40699,30 @@ void ProposalParameter::Swap(ProposalParameter* other) { InternalSwap(other); } void ProposalParameter::InternalSwap(ProposalParameter* other) { - std::swap(feat_stride_, other->feat_stride_); - std::swap(base_size_, other->base_size_); - std::swap(min_size_, other->min_size_); - ratio_.UnsafeArenaSwap(&other->ratio_); - scale_.UnsafeArenaSwap(&other->scale_); - std::swap(pre_nms_topn_, other->pre_nms_topn_); - std::swap(post_nms_topn_, other->post_nms_topn_); - std::swap(nms_thresh_, other->nms_thresh_); - std::swap(_has_bits_[0], other->_has_bits_[0]); + using std::swap; + ratio_.InternalSwap(&other->ratio_); + scale_.InternalSwap(&other->scale_); + swap(feat_stride_, other->feat_stride_); + swap(base_size_, other->base_size_); + swap(min_size_, other->min_size_); + swap(pre_nms_topn_, other->pre_nms_topn_); + swap(post_nms_topn_, other->post_nms_topn_); + swap(nms_thresh_, other->nms_thresh_); + swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata ProposalParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = ProposalParameter_descriptor_; - metadata.reflection = ProposalParameter_reflection_; - return metadata; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ProposalParameter - -// optional uint32 feat_stride = 1 [default = 16]; -bool ProposalParameter::has_feat_stride() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void ProposalParameter::set_has_feat_stride() { - _has_bits_[0] |= 0x00000001u; -} -void ProposalParameter::clear_has_feat_stride() { - _has_bits_[0] &= ~0x00000001u; -} -void ProposalParameter::clear_feat_stride() { - feat_stride_ = 16u; - clear_has_feat_stride(); -} -::google::protobuf::uint32 ProposalParameter::feat_stride() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.feat_stride) - return feat_stride_; -} -void ProposalParameter::set_feat_stride(::google::protobuf::uint32 value) { - set_has_feat_stride(); - feat_stride_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.feat_stride) -} - -// optional uint32 base_size = 2 [default = 16]; -bool ProposalParameter::has_base_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void ProposalParameter::set_has_base_size() { - _has_bits_[0] |= 0x00000002u; -} -void ProposalParameter::clear_has_base_size() { - _has_bits_[0] &= ~0x00000002u; -} -void ProposalParameter::clear_base_size() { - base_size_ = 16u; - clear_has_base_size(); -} -::google::protobuf::uint32 ProposalParameter::base_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.base_size) - return base_size_; -} -void ProposalParameter::set_base_size(::google::protobuf::uint32 value) { - set_has_base_size(); - base_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.base_size) -} - -// optional uint32 min_size = 3 [default = 16]; -bool ProposalParameter::has_min_size() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void ProposalParameter::set_has_min_size() { - _has_bits_[0] |= 0x00000004u; -} -void ProposalParameter::clear_has_min_size() { - _has_bits_[0] &= ~0x00000004u; -} -void ProposalParameter::clear_min_size() { - min_size_ = 16u; - clear_has_min_size(); -} -::google::protobuf::uint32 ProposalParameter::min_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.min_size) - return min_size_; -} -void ProposalParameter::set_min_size(::google::protobuf::uint32 value) { - set_has_min_size(); - min_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.min_size) -} - -// repeated float ratio = 4; -int ProposalParameter::ratio_size() const { - return ratio_.size(); -} -void ProposalParameter::clear_ratio() { - ratio_.Clear(); -} -float ProposalParameter::ratio(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.ratio) - return ratio_.Get(index); -} -void ProposalParameter::set_ratio(int index, float value) { - ratio_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.ratio) -} -void ProposalParameter::add_ratio(float value) { - ratio_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.ProposalParameter.ratio) -} -const ::google::protobuf::RepeatedField< float >& -ProposalParameter::ratio() const { - // @@protoc_insertion_point(field_list:opencv_caffe.ProposalParameter.ratio) - return ratio_; -} -::google::protobuf::RepeatedField< float >* -ProposalParameter::mutable_ratio() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.ProposalParameter.ratio) - return &ratio_; -} - -// repeated float scale = 5; -int ProposalParameter::scale_size() const { - return scale_.size(); -} -void ProposalParameter::clear_scale() { - scale_.Clear(); -} -float ProposalParameter::scale(int index) const { - // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.scale) - return scale_.Get(index); -} -void ProposalParameter::set_scale(int index, float value) { - scale_.Set(index, value); - // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.scale) -} -void ProposalParameter::add_scale(float value) { - scale_.Add(value); - // @@protoc_insertion_point(field_add:opencv_caffe.ProposalParameter.scale) -} -const ::google::protobuf::RepeatedField< float >& -ProposalParameter::scale() const { - // @@protoc_insertion_point(field_list:opencv_caffe.ProposalParameter.scale) - return scale_; -} -::google::protobuf::RepeatedField< float >* -ProposalParameter::mutable_scale() { - // @@protoc_insertion_point(field_mutable_list:opencv_caffe.ProposalParameter.scale) - return &scale_; -} - -// optional uint32 pre_nms_topn = 6 [default = 6000]; -bool ProposalParameter::has_pre_nms_topn() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -void ProposalParameter::set_has_pre_nms_topn() { - _has_bits_[0] |= 0x00000020u; -} -void ProposalParameter::clear_has_pre_nms_topn() { - _has_bits_[0] &= ~0x00000020u; -} -void ProposalParameter::clear_pre_nms_topn() { - pre_nms_topn_ = 6000u; - clear_has_pre_nms_topn(); -} -::google::protobuf::uint32 ProposalParameter::pre_nms_topn() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.pre_nms_topn) - return pre_nms_topn_; -} -void ProposalParameter::set_pre_nms_topn(::google::protobuf::uint32 value) { - set_has_pre_nms_topn(); - pre_nms_topn_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.pre_nms_topn) -} - -// optional uint32 post_nms_topn = 7 [default = 300]; -bool ProposalParameter::has_post_nms_topn() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -void ProposalParameter::set_has_post_nms_topn() { - _has_bits_[0] |= 0x00000040u; -} -void ProposalParameter::clear_has_post_nms_topn() { - _has_bits_[0] &= ~0x00000040u; -} -void ProposalParameter::clear_post_nms_topn() { - post_nms_topn_ = 300u; - clear_has_post_nms_topn(); -} -::google::protobuf::uint32 ProposalParameter::post_nms_topn() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.post_nms_topn) - return post_nms_topn_; -} -void ProposalParameter::set_post_nms_topn(::google::protobuf::uint32 value) { - set_has_post_nms_topn(); - post_nms_topn_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.post_nms_topn) -} - -// optional float nms_thresh = 8 [default = 0.7]; -bool ProposalParameter::has_nms_thresh() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -void ProposalParameter::set_has_nms_thresh() { - _has_bits_[0] |= 0x00000080u; -} -void ProposalParameter::clear_has_nms_thresh() { - _has_bits_[0] &= ~0x00000080u; -} -void ProposalParameter::clear_nms_thresh() { - nms_thresh_ = 0.7f; - clear_has_nms_thresh(); -} -float ProposalParameter::nms_thresh() const { - // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.nms_thresh) - return nms_thresh_; -} -void ProposalParameter::set_nms_thresh(float value) { - set_has_nms_thresh(); - nms_thresh_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.nms_thresh) -} - -inline const ProposalParameter* ProposalParameter::internal_default_instance() { - return &ProposalParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void PSROIPoolingParameter::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PSROIPoolingParameter::kSpatialScaleFieldNumber; const int PSROIPoolingParameter::kOutputDimFieldNumber; @@ -55957,26 +40731,29 @@ const int PSROIPoolingParameter::kGroupSizeFieldNumber; PSROIPoolingParameter::PSROIPoolingParameter() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPSROIPoolingParameter(); + } SharedCtor(); // @@protoc_insertion_point(constructor:opencv_caffe.PSROIPoolingParameter) } - -void PSROIPoolingParameter::InitAsDefaultInstance() { -} - PSROIPoolingParameter::PSROIPoolingParameter(const PSROIPoolingParameter& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _has_bits_(from._has_bits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&spatial_scale_, &from.spatial_scale_, + static_cast(reinterpret_cast(&group_size_) - + reinterpret_cast(&spatial_scale_)) + sizeof(group_size_)); // @@protoc_insertion_point(copy_constructor:opencv_caffe.PSROIPoolingParameter) } void PSROIPoolingParameter::SharedCtor() { _cached_size_ = 0; - ::memset(&spatial_scale_, 0, reinterpret_cast(&group_size_) - - reinterpret_cast(&spatial_scale_) + sizeof(group_size_)); + ::memset(&spatial_scale_, 0, static_cast( + reinterpret_cast(&group_size_) - + reinterpret_cast(&spatial_scale_)) + sizeof(group_size_)); } PSROIPoolingParameter::~PSROIPoolingParameter() { @@ -55993,17 +40770,15 @@ void PSROIPoolingParameter::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* PSROIPoolingParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return PSROIPoolingParameter_descriptor_; + ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PSROIPoolingParameter& PSROIPoolingParameter::default_instance() { - protobuf_InitDefaults_opencv_2dcaffe_2eproto(); + ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPSROIPoolingParameter(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed PSROIPoolingParameter_default_instance_; - PSROIPoolingParameter* PSROIPoolingParameter::New(::google::protobuf::Arena* arena) const { PSROIPoolingParameter* n = new PSROIPoolingParameter; if (arena != NULL) { @@ -56014,31 +40789,18 @@ PSROIPoolingParameter* PSROIPoolingParameter::New(::google::protobuf::Arena* are void PSROIPoolingParameter::Clear() { // @@protoc_insertion_point(message_clear_start:opencv_caffe.PSROIPoolingParameter) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(PSROIPoolingParameter, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(spatial_scale_, group_size_); - -#undef ZR_HELPER_ -#undef ZR_ - - _has_bits_.Clear(); - if (_internal_metadata_.have_unknown_fields()) { - mutable_unknown_fields()->Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 7u) { + ::memset(&spatial_scale_, 0, static_cast( + reinterpret_cast(&group_size_) - + reinterpret_cast(&spatial_scale_)) + sizeof(group_size_)); } + _has_bits_.Clear(); + _internal_metadata_.Clear(); } bool PSROIPoolingParameter::MergePartialFromCodedStream( @@ -56047,13 +40809,14 @@ bool PSROIPoolingParameter::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:opencv_caffe.PSROIPoolingParameter) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required float spatial_scale = 1; case 1: { - if (tag == 13) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { set_has_spatial_scale(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -56061,14 +40824,13 @@ bool PSROIPoolingParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_output_dim; break; } // required int32 output_dim = 2; case 2: { - if (tag == 16) { - parse_output_dim: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_output_dim(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -56076,14 +40838,13 @@ bool PSROIPoolingParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_group_size; break; } // required int32 group_size = 3; case 3: { - if (tag == 24) { - parse_group_size: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_group_size(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -56091,19 +40852,16 @@ bool PSROIPoolingParameter::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -56120,24 +40878,28 @@ failure: void PSROIPoolingParameter::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:opencv_caffe.PSROIPoolingParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // required float spatial_scale = 1; - if (has_spatial_scale()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->spatial_scale(), output); } // required int32 output_dim = 2; - if (has_output_dim()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->output_dim(), output); } // required int32 group_size = 3; - if (has_group_size()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->group_size(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); + _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:opencv_caffe.PSROIPoolingParameter) } @@ -56146,24 +40908,28 @@ void PSROIPoolingParameter::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PSROIPoolingParameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; // required float spatial_scale = 1; - if (has_spatial_scale()) { + if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->spatial_scale(), target); } // required int32 output_dim = 2; - if (has_output_dim()) { + if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->output_dim(), target); } // required int32 group_size = 3; - if (has_group_size()) { + if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->group_size(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); + _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PSROIPoolingParameter) return target; @@ -56198,6 +40964,11 @@ size_t PSROIPoolingParameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PSROIPoolingParameter) size_t total_size = 0; + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required float spatial_scale = 1; total_size += 1 + 4; @@ -56215,11 +40986,6 @@ size_t PSROIPoolingParameter::ByteSizeLong() const { } else { total_size += RequiredFieldsByteSizeFallback(); } - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -56229,7 +40995,7 @@ size_t PSROIPoolingParameter::ByteSizeLong() const { void PSROIPoolingParameter::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PSROIPoolingParameter) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const PSROIPoolingParameter* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -56238,35 +41004,29 @@ void PSROIPoolingParameter::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PSROIPoolingParameter) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void PSROIPoolingParameter::MergeFrom(const PSROIPoolingParameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PSROIPoolingParameter) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void PSROIPoolingParameter::UnsafeMergeFrom(const PSROIPoolingParameter& from) { - GOOGLE_DCHECK(&from != this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_spatial_scale()) { - set_spatial_scale(from.spatial_scale()); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 7u) { + if (cached_has_bits & 0x00000001u) { + spatial_scale_ = from.spatial_scale_; } - if (from.has_output_dim()) { - set_output_dim(from.output_dim()); + if (cached_has_bits & 0x00000002u) { + output_dim_ = from.output_dim_; } - if (from.has_group_size()) { - set_group_size(from.group_size()); + if (cached_has_bits & 0x00000004u) { + group_size_ = from.group_size_; } - } - if (from._internal_metadata_.have_unknown_fields()) { - ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata( - from.unknown_fields(), &_internal_metadata_); + _has_bits_[0] |= cached_has_bits; } } @@ -56281,12 +41041,11 @@ void PSROIPoolingParameter::CopyFrom(const PSROIPoolingParameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PSROIPoolingParameter) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool PSROIPoolingParameter::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; } @@ -56295,104 +41054,22 @@ void PSROIPoolingParameter::Swap(PSROIPoolingParameter* other) { InternalSwap(other); } void PSROIPoolingParameter::InternalSwap(PSROIPoolingParameter* other) { - std::swap(spatial_scale_, other->spatial_scale_); - std::swap(output_dim_, other->output_dim_); - std::swap(group_size_, other->group_size_); - std::swap(_has_bits_[0], other->_has_bits_[0]); + using std::swap; + swap(spatial_scale_, other->spatial_scale_); + swap(output_dim_, other->output_dim_); + swap(group_size_, other->group_size_); + swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata PSROIPoolingParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = PSROIPoolingParameter_descriptor_; - metadata.reflection = PSROIPoolingParameter_reflection_; - return metadata; + protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PSROIPoolingParameter - -// required float spatial_scale = 1; -bool PSROIPoolingParameter::has_spatial_scale() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -void PSROIPoolingParameter::set_has_spatial_scale() { - _has_bits_[0] |= 0x00000001u; -} -void PSROIPoolingParameter::clear_has_spatial_scale() { - _has_bits_[0] &= ~0x00000001u; -} -void PSROIPoolingParameter::clear_spatial_scale() { - spatial_scale_ = 0; - clear_has_spatial_scale(); -} -float PSROIPoolingParameter::spatial_scale() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PSROIPoolingParameter.spatial_scale) - return spatial_scale_; -} -void PSROIPoolingParameter::set_spatial_scale(float value) { - set_has_spatial_scale(); - spatial_scale_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PSROIPoolingParameter.spatial_scale) -} - -// required int32 output_dim = 2; -bool PSROIPoolingParameter::has_output_dim() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -void PSROIPoolingParameter::set_has_output_dim() { - _has_bits_[0] |= 0x00000002u; -} -void PSROIPoolingParameter::clear_has_output_dim() { - _has_bits_[0] &= ~0x00000002u; -} -void PSROIPoolingParameter::clear_output_dim() { - output_dim_ = 0; - clear_has_output_dim(); -} -::google::protobuf::int32 PSROIPoolingParameter::output_dim() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PSROIPoolingParameter.output_dim) - return output_dim_; -} -void PSROIPoolingParameter::set_output_dim(::google::protobuf::int32 value) { - set_has_output_dim(); - output_dim_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PSROIPoolingParameter.output_dim) -} - -// required int32 group_size = 3; -bool PSROIPoolingParameter::has_group_size() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -void PSROIPoolingParameter::set_has_group_size() { - _has_bits_[0] |= 0x00000004u; -} -void PSROIPoolingParameter::clear_has_group_size() { - _has_bits_[0] &= ~0x00000004u; -} -void PSROIPoolingParameter::clear_group_size() { - group_size_ = 0; - clear_has_group_size(); -} -::google::protobuf::int32 PSROIPoolingParameter::group_size() const { - // @@protoc_insertion_point(field_get:opencv_caffe.PSROIPoolingParameter.group_size) - return group_size_; -} -void PSROIPoolingParameter::set_group_size(::google::protobuf::int32 value) { - set_has_group_size(); - group_size_ = value; - // @@protoc_insertion_point(field_set:opencv_caffe.PSROIPoolingParameter.group_size) -} - -inline const PSROIPoolingParameter* PSROIPoolingParameter::internal_default_instance() { - return &PSROIPoolingParameter_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace opencv_caffe // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/caffe/opencv-caffe.pb.h b/modules/dnn/misc/caffe/opencv-caffe.pb.h index 9f33511431..e4c4347dd5 100644 --- a/modules/dnn/misc/caffe/opencv-caffe.pb.h +++ b/modules/dnn/misc/caffe/opencv-caffe.pb.h @@ -8,107 +8,473 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3001000 +#if GOOGLE_PROTOBUF_VERSION < 3005000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include #include #include +#include #include #include #include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include #include // @@protoc_insertion_point(includes) +namespace protobuf_opencv_2dcaffe_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[71]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsBlobShapeImpl(); +void InitDefaultsBlobShape(); +void InitDefaultsBlobProtoImpl(); +void InitDefaultsBlobProto(); +void InitDefaultsBlobProtoVectorImpl(); +void InitDefaultsBlobProtoVector(); +void InitDefaultsPermuteParameterImpl(); +void InitDefaultsPermuteParameter(); +void InitDefaultsNormalizeBBoxParameterImpl(); +void InitDefaultsNormalizeBBoxParameter(); +void InitDefaultsPriorBoxParameterImpl(); +void InitDefaultsPriorBoxParameter(); +void InitDefaultsDetectionOutputParameterImpl(); +void InitDefaultsDetectionOutputParameter(); +void InitDefaultsDatumImpl(); +void InitDefaultsDatum(); +void InitDefaultsFillerParameterImpl(); +void InitDefaultsFillerParameter(); +void InitDefaultsNetParameterImpl(); +void InitDefaultsNetParameter(); +void InitDefaultsSolverParameterImpl(); +void InitDefaultsSolverParameter(); +void InitDefaultsSolverStateImpl(); +void InitDefaultsSolverState(); +void InitDefaultsNetStateImpl(); +void InitDefaultsNetState(); +void InitDefaultsNetStateRuleImpl(); +void InitDefaultsNetStateRule(); +void InitDefaultsParamSpecImpl(); +void InitDefaultsParamSpec(); +void InitDefaultsLayerParameterImpl(); +void InitDefaultsLayerParameter(); +void InitDefaultsTransformationParameterImpl(); +void InitDefaultsTransformationParameter(); +void InitDefaultsLossParameterImpl(); +void InitDefaultsLossParameter(); +void InitDefaultsAccuracyParameterImpl(); +void InitDefaultsAccuracyParameter(); +void InitDefaultsArgMaxParameterImpl(); +void InitDefaultsArgMaxParameter(); +void InitDefaultsConcatParameterImpl(); +void InitDefaultsConcatParameter(); +void InitDefaultsBatchNormParameterImpl(); +void InitDefaultsBatchNormParameter(); +void InitDefaultsBiasParameterImpl(); +void InitDefaultsBiasParameter(); +void InitDefaultsContrastiveLossParameterImpl(); +void InitDefaultsContrastiveLossParameter(); +void InitDefaultsConvolutionParameterImpl(); +void InitDefaultsConvolutionParameter(); +void InitDefaultsCropParameterImpl(); +void InitDefaultsCropParameter(); +void InitDefaultsDataParameterImpl(); +void InitDefaultsDataParameter(); +void InitDefaultsNonMaximumSuppressionParameterImpl(); +void InitDefaultsNonMaximumSuppressionParameter(); +void InitDefaultsSaveOutputParameterImpl(); +void InitDefaultsSaveOutputParameter(); +void InitDefaultsDropoutParameterImpl(); +void InitDefaultsDropoutParameter(); +void InitDefaultsDummyDataParameterImpl(); +void InitDefaultsDummyDataParameter(); +void InitDefaultsEltwiseParameterImpl(); +void InitDefaultsEltwiseParameter(); +void InitDefaultsELUParameterImpl(); +void InitDefaultsELUParameter(); +void InitDefaultsEmbedParameterImpl(); +void InitDefaultsEmbedParameter(); +void InitDefaultsExpParameterImpl(); +void InitDefaultsExpParameter(); +void InitDefaultsFlattenParameterImpl(); +void InitDefaultsFlattenParameter(); +void InitDefaultsHDF5DataParameterImpl(); +void InitDefaultsHDF5DataParameter(); +void InitDefaultsHDF5OutputParameterImpl(); +void InitDefaultsHDF5OutputParameter(); +void InitDefaultsHingeLossParameterImpl(); +void InitDefaultsHingeLossParameter(); +void InitDefaultsImageDataParameterImpl(); +void InitDefaultsImageDataParameter(); +void InitDefaultsInfogainLossParameterImpl(); +void InitDefaultsInfogainLossParameter(); +void InitDefaultsInnerProductParameterImpl(); +void InitDefaultsInnerProductParameter(); +void InitDefaultsInputParameterImpl(); +void InitDefaultsInputParameter(); +void InitDefaultsLogParameterImpl(); +void InitDefaultsLogParameter(); +void InitDefaultsLRNParameterImpl(); +void InitDefaultsLRNParameter(); +void InitDefaultsMemoryDataParameterImpl(); +void InitDefaultsMemoryDataParameter(); +void InitDefaultsMVNParameterImpl(); +void InitDefaultsMVNParameter(); +void InitDefaultsParameterParameterImpl(); +void InitDefaultsParameterParameter(); +void InitDefaultsPoolingParameterImpl(); +void InitDefaultsPoolingParameter(); +void InitDefaultsPowerParameterImpl(); +void InitDefaultsPowerParameter(); +void InitDefaultsPythonParameterImpl(); +void InitDefaultsPythonParameter(); +void InitDefaultsRecurrentParameterImpl(); +void InitDefaultsRecurrentParameter(); +void InitDefaultsReductionParameterImpl(); +void InitDefaultsReductionParameter(); +void InitDefaultsReLUParameterImpl(); +void InitDefaultsReLUParameter(); +void InitDefaultsReshapeParameterImpl(); +void InitDefaultsReshapeParameter(); +void InitDefaultsScaleParameterImpl(); +void InitDefaultsScaleParameter(); +void InitDefaultsSigmoidParameterImpl(); +void InitDefaultsSigmoidParameter(); +void InitDefaultsSliceParameterImpl(); +void InitDefaultsSliceParameter(); +void InitDefaultsSoftmaxParameterImpl(); +void InitDefaultsSoftmaxParameter(); +void InitDefaultsTanHParameterImpl(); +void InitDefaultsTanHParameter(); +void InitDefaultsTileParameterImpl(); +void InitDefaultsTileParameter(); +void InitDefaultsThresholdParameterImpl(); +void InitDefaultsThresholdParameter(); +void InitDefaultsWindowDataParameterImpl(); +void InitDefaultsWindowDataParameter(); +void InitDefaultsSPPParameterImpl(); +void InitDefaultsSPPParameter(); +void InitDefaultsV1LayerParameterImpl(); +void InitDefaultsV1LayerParameter(); +void InitDefaultsV0LayerParameterImpl(); +void InitDefaultsV0LayerParameter(); +void InitDefaultsPReLUParameterImpl(); +void InitDefaultsPReLUParameter(); +void InitDefaultsNormalizedBBoxImpl(); +void InitDefaultsNormalizedBBox(); +void InitDefaultsROIPoolingParameterImpl(); +void InitDefaultsROIPoolingParameter(); +void InitDefaultsProposalParameterImpl(); +void InitDefaultsProposalParameter(); +void InitDefaultsPSROIPoolingParameterImpl(); +void InitDefaultsPSROIPoolingParameter(); +inline void InitDefaults() { + InitDefaultsBlobShape(); + InitDefaultsBlobProto(); + InitDefaultsBlobProtoVector(); + InitDefaultsPermuteParameter(); + InitDefaultsNormalizeBBoxParameter(); + InitDefaultsPriorBoxParameter(); + InitDefaultsDetectionOutputParameter(); + InitDefaultsDatum(); + InitDefaultsFillerParameter(); + InitDefaultsNetParameter(); + InitDefaultsSolverParameter(); + InitDefaultsSolverState(); + InitDefaultsNetState(); + InitDefaultsNetStateRule(); + InitDefaultsParamSpec(); + InitDefaultsLayerParameter(); + InitDefaultsTransformationParameter(); + InitDefaultsLossParameter(); + InitDefaultsAccuracyParameter(); + InitDefaultsArgMaxParameter(); + InitDefaultsConcatParameter(); + InitDefaultsBatchNormParameter(); + InitDefaultsBiasParameter(); + InitDefaultsContrastiveLossParameter(); + InitDefaultsConvolutionParameter(); + InitDefaultsCropParameter(); + InitDefaultsDataParameter(); + InitDefaultsNonMaximumSuppressionParameter(); + InitDefaultsSaveOutputParameter(); + InitDefaultsDropoutParameter(); + InitDefaultsDummyDataParameter(); + InitDefaultsEltwiseParameter(); + InitDefaultsELUParameter(); + InitDefaultsEmbedParameter(); + InitDefaultsExpParameter(); + InitDefaultsFlattenParameter(); + InitDefaultsHDF5DataParameter(); + InitDefaultsHDF5OutputParameter(); + InitDefaultsHingeLossParameter(); + InitDefaultsImageDataParameter(); + InitDefaultsInfogainLossParameter(); + InitDefaultsInnerProductParameter(); + InitDefaultsInputParameter(); + InitDefaultsLogParameter(); + InitDefaultsLRNParameter(); + InitDefaultsMemoryDataParameter(); + InitDefaultsMVNParameter(); + InitDefaultsParameterParameter(); + InitDefaultsPoolingParameter(); + InitDefaultsPowerParameter(); + InitDefaultsPythonParameter(); + InitDefaultsRecurrentParameter(); + InitDefaultsReductionParameter(); + InitDefaultsReLUParameter(); + InitDefaultsReshapeParameter(); + InitDefaultsScaleParameter(); + InitDefaultsSigmoidParameter(); + InitDefaultsSliceParameter(); + InitDefaultsSoftmaxParameter(); + InitDefaultsTanHParameter(); + InitDefaultsTileParameter(); + InitDefaultsThresholdParameter(); + InitDefaultsWindowDataParameter(); + InitDefaultsSPPParameter(); + InitDefaultsV1LayerParameter(); + InitDefaultsV0LayerParameter(); + InitDefaultsPReLUParameter(); + InitDefaultsNormalizedBBox(); + InitDefaultsROIPoolingParameter(); + InitDefaultsProposalParameter(); + InitDefaultsPSROIPoolingParameter(); +} +} // namespace protobuf_opencv_2dcaffe_2eproto namespace opencv_caffe { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_opencv_2dcaffe_2eproto(); -void protobuf_InitDefaults_opencv_2dcaffe_2eproto(); -void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); -void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - class AccuracyParameter; +class AccuracyParameterDefaultTypeInternal; +extern AccuracyParameterDefaultTypeInternal _AccuracyParameter_default_instance_; class ArgMaxParameter; +class ArgMaxParameterDefaultTypeInternal; +extern ArgMaxParameterDefaultTypeInternal _ArgMaxParameter_default_instance_; class BatchNormParameter; +class BatchNormParameterDefaultTypeInternal; +extern BatchNormParameterDefaultTypeInternal _BatchNormParameter_default_instance_; class BiasParameter; +class BiasParameterDefaultTypeInternal; +extern BiasParameterDefaultTypeInternal _BiasParameter_default_instance_; class BlobProto; +class BlobProtoDefaultTypeInternal; +extern BlobProtoDefaultTypeInternal _BlobProto_default_instance_; class BlobProtoVector; +class BlobProtoVectorDefaultTypeInternal; +extern BlobProtoVectorDefaultTypeInternal _BlobProtoVector_default_instance_; class BlobShape; +class BlobShapeDefaultTypeInternal; +extern BlobShapeDefaultTypeInternal _BlobShape_default_instance_; class ConcatParameter; +class ConcatParameterDefaultTypeInternal; +extern ConcatParameterDefaultTypeInternal _ConcatParameter_default_instance_; class ContrastiveLossParameter; +class ContrastiveLossParameterDefaultTypeInternal; +extern ContrastiveLossParameterDefaultTypeInternal _ContrastiveLossParameter_default_instance_; class ConvolutionParameter; +class ConvolutionParameterDefaultTypeInternal; +extern ConvolutionParameterDefaultTypeInternal _ConvolutionParameter_default_instance_; class CropParameter; +class CropParameterDefaultTypeInternal; +extern CropParameterDefaultTypeInternal _CropParameter_default_instance_; class DataParameter; +class DataParameterDefaultTypeInternal; +extern DataParameterDefaultTypeInternal _DataParameter_default_instance_; class Datum; +class DatumDefaultTypeInternal; +extern DatumDefaultTypeInternal _Datum_default_instance_; class DetectionOutputParameter; +class DetectionOutputParameterDefaultTypeInternal; +extern DetectionOutputParameterDefaultTypeInternal _DetectionOutputParameter_default_instance_; class DropoutParameter; +class DropoutParameterDefaultTypeInternal; +extern DropoutParameterDefaultTypeInternal _DropoutParameter_default_instance_; class DummyDataParameter; +class DummyDataParameterDefaultTypeInternal; +extern DummyDataParameterDefaultTypeInternal _DummyDataParameter_default_instance_; class ELUParameter; +class ELUParameterDefaultTypeInternal; +extern ELUParameterDefaultTypeInternal _ELUParameter_default_instance_; class EltwiseParameter; +class EltwiseParameterDefaultTypeInternal; +extern EltwiseParameterDefaultTypeInternal _EltwiseParameter_default_instance_; class EmbedParameter; +class EmbedParameterDefaultTypeInternal; +extern EmbedParameterDefaultTypeInternal _EmbedParameter_default_instance_; class ExpParameter; +class ExpParameterDefaultTypeInternal; +extern ExpParameterDefaultTypeInternal _ExpParameter_default_instance_; class FillerParameter; +class FillerParameterDefaultTypeInternal; +extern FillerParameterDefaultTypeInternal _FillerParameter_default_instance_; class FlattenParameter; +class FlattenParameterDefaultTypeInternal; +extern FlattenParameterDefaultTypeInternal _FlattenParameter_default_instance_; class HDF5DataParameter; +class HDF5DataParameterDefaultTypeInternal; +extern HDF5DataParameterDefaultTypeInternal _HDF5DataParameter_default_instance_; class HDF5OutputParameter; +class HDF5OutputParameterDefaultTypeInternal; +extern HDF5OutputParameterDefaultTypeInternal _HDF5OutputParameter_default_instance_; class HingeLossParameter; +class HingeLossParameterDefaultTypeInternal; +extern HingeLossParameterDefaultTypeInternal _HingeLossParameter_default_instance_; class ImageDataParameter; +class ImageDataParameterDefaultTypeInternal; +extern ImageDataParameterDefaultTypeInternal _ImageDataParameter_default_instance_; class InfogainLossParameter; +class InfogainLossParameterDefaultTypeInternal; +extern InfogainLossParameterDefaultTypeInternal _InfogainLossParameter_default_instance_; class InnerProductParameter; +class InnerProductParameterDefaultTypeInternal; +extern InnerProductParameterDefaultTypeInternal _InnerProductParameter_default_instance_; class InputParameter; +class InputParameterDefaultTypeInternal; +extern InputParameterDefaultTypeInternal _InputParameter_default_instance_; class LRNParameter; +class LRNParameterDefaultTypeInternal; +extern LRNParameterDefaultTypeInternal _LRNParameter_default_instance_; class LayerParameter; +class LayerParameterDefaultTypeInternal; +extern LayerParameterDefaultTypeInternal _LayerParameter_default_instance_; class LogParameter; +class LogParameterDefaultTypeInternal; +extern LogParameterDefaultTypeInternal _LogParameter_default_instance_; class LossParameter; +class LossParameterDefaultTypeInternal; +extern LossParameterDefaultTypeInternal _LossParameter_default_instance_; class MVNParameter; +class MVNParameterDefaultTypeInternal; +extern MVNParameterDefaultTypeInternal _MVNParameter_default_instance_; class MemoryDataParameter; +class MemoryDataParameterDefaultTypeInternal; +extern MemoryDataParameterDefaultTypeInternal _MemoryDataParameter_default_instance_; class NetParameter; +class NetParameterDefaultTypeInternal; +extern NetParameterDefaultTypeInternal _NetParameter_default_instance_; class NetState; +class NetStateDefaultTypeInternal; +extern NetStateDefaultTypeInternal _NetState_default_instance_; class NetStateRule; +class NetStateRuleDefaultTypeInternal; +extern NetStateRuleDefaultTypeInternal _NetStateRule_default_instance_; class NonMaximumSuppressionParameter; +class NonMaximumSuppressionParameterDefaultTypeInternal; +extern NonMaximumSuppressionParameterDefaultTypeInternal _NonMaximumSuppressionParameter_default_instance_; class NormalizeBBoxParameter; +class NormalizeBBoxParameterDefaultTypeInternal; +extern NormalizeBBoxParameterDefaultTypeInternal _NormalizeBBoxParameter_default_instance_; class NormalizedBBox; +class NormalizedBBoxDefaultTypeInternal; +extern NormalizedBBoxDefaultTypeInternal _NormalizedBBox_default_instance_; class PReLUParameter; +class PReLUParameterDefaultTypeInternal; +extern PReLUParameterDefaultTypeInternal _PReLUParameter_default_instance_; class PSROIPoolingParameter; +class PSROIPoolingParameterDefaultTypeInternal; +extern PSROIPoolingParameterDefaultTypeInternal _PSROIPoolingParameter_default_instance_; class ParamSpec; +class ParamSpecDefaultTypeInternal; +extern ParamSpecDefaultTypeInternal _ParamSpec_default_instance_; class ParameterParameter; +class ParameterParameterDefaultTypeInternal; +extern ParameterParameterDefaultTypeInternal _ParameterParameter_default_instance_; class PermuteParameter; +class PermuteParameterDefaultTypeInternal; +extern PermuteParameterDefaultTypeInternal _PermuteParameter_default_instance_; class PoolingParameter; +class PoolingParameterDefaultTypeInternal; +extern PoolingParameterDefaultTypeInternal _PoolingParameter_default_instance_; class PowerParameter; +class PowerParameterDefaultTypeInternal; +extern PowerParameterDefaultTypeInternal _PowerParameter_default_instance_; class PriorBoxParameter; +class PriorBoxParameterDefaultTypeInternal; +extern PriorBoxParameterDefaultTypeInternal _PriorBoxParameter_default_instance_; class ProposalParameter; +class ProposalParameterDefaultTypeInternal; +extern ProposalParameterDefaultTypeInternal _ProposalParameter_default_instance_; class PythonParameter; +class PythonParameterDefaultTypeInternal; +extern PythonParameterDefaultTypeInternal _PythonParameter_default_instance_; class ROIPoolingParameter; +class ROIPoolingParameterDefaultTypeInternal; +extern ROIPoolingParameterDefaultTypeInternal _ROIPoolingParameter_default_instance_; class ReLUParameter; +class ReLUParameterDefaultTypeInternal; +extern ReLUParameterDefaultTypeInternal _ReLUParameter_default_instance_; class RecurrentParameter; +class RecurrentParameterDefaultTypeInternal; +extern RecurrentParameterDefaultTypeInternal _RecurrentParameter_default_instance_; class ReductionParameter; +class ReductionParameterDefaultTypeInternal; +extern ReductionParameterDefaultTypeInternal _ReductionParameter_default_instance_; class ReshapeParameter; +class ReshapeParameterDefaultTypeInternal; +extern ReshapeParameterDefaultTypeInternal _ReshapeParameter_default_instance_; class SPPParameter; +class SPPParameterDefaultTypeInternal; +extern SPPParameterDefaultTypeInternal _SPPParameter_default_instance_; class SaveOutputParameter; +class SaveOutputParameterDefaultTypeInternal; +extern SaveOutputParameterDefaultTypeInternal _SaveOutputParameter_default_instance_; class ScaleParameter; +class ScaleParameterDefaultTypeInternal; +extern ScaleParameterDefaultTypeInternal _ScaleParameter_default_instance_; class SigmoidParameter; +class SigmoidParameterDefaultTypeInternal; +extern SigmoidParameterDefaultTypeInternal _SigmoidParameter_default_instance_; class SliceParameter; +class SliceParameterDefaultTypeInternal; +extern SliceParameterDefaultTypeInternal _SliceParameter_default_instance_; class SoftmaxParameter; +class SoftmaxParameterDefaultTypeInternal; +extern SoftmaxParameterDefaultTypeInternal _SoftmaxParameter_default_instance_; class SolverParameter; +class SolverParameterDefaultTypeInternal; +extern SolverParameterDefaultTypeInternal _SolverParameter_default_instance_; class SolverState; +class SolverStateDefaultTypeInternal; +extern SolverStateDefaultTypeInternal _SolverState_default_instance_; class TanHParameter; +class TanHParameterDefaultTypeInternal; +extern TanHParameterDefaultTypeInternal _TanHParameter_default_instance_; class ThresholdParameter; +class ThresholdParameterDefaultTypeInternal; +extern ThresholdParameterDefaultTypeInternal _ThresholdParameter_default_instance_; class TileParameter; +class TileParameterDefaultTypeInternal; +extern TileParameterDefaultTypeInternal _TileParameter_default_instance_; class TransformationParameter; +class TransformationParameterDefaultTypeInternal; +extern TransformationParameterDefaultTypeInternal _TransformationParameter_default_instance_; class V0LayerParameter; +class V0LayerParameterDefaultTypeInternal; +extern V0LayerParameterDefaultTypeInternal _V0LayerParameter_default_instance_; class V1LayerParameter; +class V1LayerParameterDefaultTypeInternal; +extern V1LayerParameterDefaultTypeInternal _V1LayerParameter_default_instance_; class WindowDataParameter; +class WindowDataParameterDefaultTypeInternal; +extern WindowDataParameterDefaultTypeInternal _WindowDataParameter_default_instance_; +} // namespace opencv_caffe +namespace opencv_caffe { enum PriorBoxParameter_CodeType { PriorBoxParameter_CodeType_CORNER = 1, @@ -698,11 +1064,24 @@ class BlobShape : public ::google::protobuf::Message /* @@protoc_insertion_point CopyFrom(from); return *this; } + #if LANG_CXX11 + BlobShape(BlobShape&& from) noexcept + : BlobShape() { + *this = ::std::move(from); + } + inline BlobShape& operator=(BlobShape&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -710,49 +1089,54 @@ class BlobShape : public ::google::protobuf::Message /* @@protoc_insertion_point static const ::google::protobuf::Descriptor* descriptor(); static const BlobShape& default_instance(); - static const BlobShape* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BlobShape* internal_default_instance() { + return reinterpret_cast( + &_BlobShape_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; void Swap(BlobShape* other); + friend void swap(BlobShape& a, BlobShape& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline BlobShape* New() const { return New(NULL); } + inline BlobShape* New() const PROTOBUF_FINAL { return New(NULL); } - BlobShape* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + BlobShape* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BlobShape& from); void MergeFrom(const BlobShape& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BlobShape* other); - void UnsafeMergeFrom(const BlobShape& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -778,15 +1162,9 @@ class BlobShape : public ::google::protobuf::Message /* @@protoc_insertion_point mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dim_; mutable int _dim_cached_byte_size_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShapeImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed BlobShape_default_instance_; - // ------------------------------------------------------------------- class BlobProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.BlobProto) */ { @@ -800,11 +1178,24 @@ class BlobProto : public ::google::protobuf::Message /* @@protoc_insertion_point CopyFrom(from); return *this; } + #if LANG_CXX11 + BlobProto(BlobProto&& from) noexcept + : BlobProto() { + *this = ::std::move(from); + } + inline BlobProto& operator=(BlobProto&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -812,63 +1203,59 @@ class BlobProto : public ::google::protobuf::Message /* @@protoc_insertion_point static const ::google::protobuf::Descriptor* descriptor(); static const BlobProto& default_instance(); - static const BlobProto* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BlobProto* internal_default_instance() { + return reinterpret_cast( + &_BlobProto_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; void Swap(BlobProto* other); + friend void swap(BlobProto& a, BlobProto& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline BlobProto* New() const { return New(NULL); } + inline BlobProto* New() const PROTOBUF_FINAL { return New(NULL); } - BlobProto* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + BlobProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BlobProto& from); void MergeFrom(const BlobProto& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BlobProto* other); - void UnsafeMergeFrom(const BlobProto& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .opencv_caffe.BlobShape shape = 7; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 7; - const ::opencv_caffe::BlobShape& shape() const; - ::opencv_caffe::BlobShape* mutable_shape(); - ::opencv_caffe::BlobShape* release_shape(); - void set_allocated_shape(::opencv_caffe::BlobShape* shape); - // repeated float data = 5 [packed = true]; int data_size() const; void clear_data(); @@ -917,25 +1304,30 @@ class BlobProto : public ::google::protobuf::Message /* @@protoc_insertion_point ::google::protobuf::RepeatedField< double >* mutable_double_diff(); - // optional .opencv_caffe.Type raw_data_type = 10; - bool has_raw_data_type() const; - void clear_raw_data_type(); - static const int kRawDataTypeFieldNumber = 10; - ::opencv_caffe::Type raw_data_type() const; - void set_raw_data_type(::opencv_caffe::Type value); - // optional bytes raw_data = 12 [packed = false]; bool has_raw_data() const; void clear_raw_data(); static const int kRawDataFieldNumber = 12; const ::std::string& raw_data() const; void set_raw_data(const ::std::string& value); + #if LANG_CXX11 + void set_raw_data(::std::string&& value); + #endif void set_raw_data(const char* value); void set_raw_data(const void* value, size_t size); ::std::string* mutable_raw_data(); ::std::string* release_raw_data(); void set_allocated_raw_data(::std::string* raw_data); + // optional .opencv_caffe.BlobShape shape = 7; + bool has_shape() const; + void clear_shape(); + static const int kShapeFieldNumber = 7; + const ::opencv_caffe::BlobShape& shape() const; + ::opencv_caffe::BlobShape* release_shape(); + ::opencv_caffe::BlobShape* mutable_shape(); + void set_allocated_shape(::opencv_caffe::BlobShape* shape); + // optional int32 num = 1 [default = 0]; bool has_num() const; void clear_num(); @@ -964,22 +1356,29 @@ class BlobProto : public ::google::protobuf::Message /* @@protoc_insertion_point ::google::protobuf::int32 width() const; void set_width(::google::protobuf::int32 value); + // optional .opencv_caffe.Type raw_data_type = 10; + bool has_raw_data_type() const; + void clear_raw_data_type(); + static const int kRawDataTypeFieldNumber = 10; + ::opencv_caffe::Type raw_data_type() const; + void set_raw_data_type(::opencv_caffe::Type value); + // @@protoc_insertion_point(class_scope:opencv_caffe.BlobProto) private: - inline void set_has_shape(); - inline void clear_has_shape(); - inline void set_has_raw_data_type(); - inline void clear_has_raw_data_type(); - inline void set_has_raw_data(); - inline void clear_has_raw_data(); - inline void set_has_num(); - inline void clear_has_num(); - inline void set_has_channels(); - inline void clear_has_channels(); - inline void set_has_height(); - inline void clear_has_height(); - inline void set_has_width(); - inline void clear_has_width(); + void set_has_shape(); + void clear_has_shape(); + void set_has_raw_data_type(); + void clear_has_raw_data_type(); + void set_has_raw_data(); + void clear_has_raw_data(); + void set_has_num(); + void clear_has_num(); + void set_has_channels(); + void clear_has_channels(); + void set_has_height(); + void clear_has_height(); + void set_has_width(); + void clear_has_width(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -994,20 +1393,14 @@ class BlobProto : public ::google::protobuf::Message /* @@protoc_insertion_point mutable int _double_diff_cached_byte_size_; ::google::protobuf::internal::ArenaStringPtr raw_data_; ::opencv_caffe::BlobShape* shape_; - int raw_data_type_; ::google::protobuf::int32 num_; ::google::protobuf::int32 channels_; ::google::protobuf::int32 height_; ::google::protobuf::int32 width_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + int raw_data_type_; + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProtoImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed BlobProto_default_instance_; - // ------------------------------------------------------------------- class BlobProtoVector : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.BlobProtoVector) */ { @@ -1021,11 +1414,24 @@ class BlobProtoVector : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + BlobProtoVector(BlobProtoVector&& from) noexcept + : BlobProtoVector() { + *this = ::std::move(from); + } + inline BlobProtoVector& operator=(BlobProtoVector&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -1033,49 +1439,54 @@ class BlobProtoVector : public ::google::protobuf::Message /* @@protoc_insertion static const ::google::protobuf::Descriptor* descriptor(); static const BlobProtoVector& default_instance(); - static const BlobProtoVector* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BlobProtoVector* internal_default_instance() { + return reinterpret_cast( + &_BlobProtoVector_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; void Swap(BlobProtoVector* other); + friend void swap(BlobProtoVector& a, BlobProtoVector& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline BlobProtoVector* New() const { return New(NULL); } + inline BlobProtoVector* New() const PROTOBUF_FINAL { return New(NULL); } - BlobProtoVector* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + BlobProtoVector* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BlobProtoVector& from); void MergeFrom(const BlobProtoVector& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BlobProtoVector* other); - void UnsafeMergeFrom(const BlobProtoVector& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -1100,15 +1511,9 @@ class BlobProtoVector : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto > blobs_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProtoVectorImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed BlobProtoVector_default_instance_; - // ------------------------------------------------------------------- class PermuteParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.PermuteParameter) */ { @@ -1122,11 +1527,24 @@ class PermuteParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + PermuteParameter(PermuteParameter&& from) noexcept + : PermuteParameter() { + *this = ::std::move(from); + } + inline PermuteParameter& operator=(PermuteParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -1134,49 +1552,54 @@ class PermuteParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const PermuteParameter& default_instance(); - static const PermuteParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PermuteParameter* internal_default_instance() { + return reinterpret_cast( + &_PermuteParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; void Swap(PermuteParameter* other); + friend void swap(PermuteParameter& a, PermuteParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PermuteParameter* New() const { return New(NULL); } + inline PermuteParameter* New() const PROTOBUF_FINAL { return New(NULL); } - PermuteParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + PermuteParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PermuteParameter& from); void MergeFrom(const PermuteParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PermuteParameter* other); - void UnsafeMergeFrom(const PermuteParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -1201,15 +1624,9 @@ class PermuteParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > order_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPermuteParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed PermuteParameter_default_instance_; - // ------------------------------------------------------------------- class NormalizeBBoxParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.NormalizeBBoxParameter) */ { @@ -1223,11 +1640,24 @@ class NormalizeBBoxParameter : public ::google::protobuf::Message /* @@protoc_in CopyFrom(from); return *this; } + #if LANG_CXX11 + NormalizeBBoxParameter(NormalizeBBoxParameter&& from) noexcept + : NormalizeBBoxParameter() { + *this = ::std::move(from); + } + inline NormalizeBBoxParameter& operator=(NormalizeBBoxParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -1235,54 +1665,68 @@ class NormalizeBBoxParameter : public ::google::protobuf::Message /* @@protoc_in static const ::google::protobuf::Descriptor* descriptor(); static const NormalizeBBoxParameter& default_instance(); - static const NormalizeBBoxParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NormalizeBBoxParameter* internal_default_instance() { + return reinterpret_cast( + &_NormalizeBBoxParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; void Swap(NormalizeBBoxParameter* other); + friend void swap(NormalizeBBoxParameter& a, NormalizeBBoxParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline NormalizeBBoxParameter* New() const { return New(NULL); } + inline NormalizeBBoxParameter* New() const PROTOBUF_FINAL { return New(NULL); } - NormalizeBBoxParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + NormalizeBBoxParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const NormalizeBBoxParameter& from); void MergeFrom(const NormalizeBBoxParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(NormalizeBBoxParameter* other); - void UnsafeMergeFrom(const NormalizeBBoxParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional .opencv_caffe.FillerParameter scale_filler = 2; + bool has_scale_filler() const; + void clear_scale_filler(); + static const int kScaleFillerFieldNumber = 2; + const ::opencv_caffe::FillerParameter& scale_filler() const; + ::opencv_caffe::FillerParameter* release_scale_filler(); + ::opencv_caffe::FillerParameter* mutable_scale_filler(); + void set_allocated_scale_filler(::opencv_caffe::FillerParameter* scale_filler); + // optional bool across_spatial = 1 [default = true]; bool has_across_spatial() const; void clear_across_spatial(); @@ -1290,15 +1734,6 @@ class NormalizeBBoxParameter : public ::google::protobuf::Message /* @@protoc_in bool across_spatial() const; void set_across_spatial(bool value); - // optional .opencv_caffe.FillerParameter scale_filler = 2; - bool has_scale_filler() const; - void clear_scale_filler(); - static const int kScaleFillerFieldNumber = 2; - const ::opencv_caffe::FillerParameter& scale_filler() const; - ::opencv_caffe::FillerParameter* mutable_scale_filler(); - ::opencv_caffe::FillerParameter* release_scale_filler(); - void set_allocated_scale_filler(::opencv_caffe::FillerParameter* scale_filler); - // optional bool channel_shared = 3 [default = true]; bool has_channel_shared() const; void clear_channel_shared(); @@ -1315,14 +1750,14 @@ class NormalizeBBoxParameter : public ::google::protobuf::Message /* @@protoc_in // @@protoc_insertion_point(class_scope:opencv_caffe.NormalizeBBoxParameter) private: - inline void set_has_across_spatial(); - inline void clear_has_across_spatial(); - inline void set_has_scale_filler(); - inline void clear_has_scale_filler(); - inline void set_has_channel_shared(); - inline void clear_has_channel_shared(); - inline void set_has_eps(); - inline void clear_has_eps(); + void set_has_across_spatial(); + void clear_has_across_spatial(); + void set_has_scale_filler(); + void clear_has_scale_filler(); + void set_has_channel_shared(); + void clear_has_channel_shared(); + void set_has_eps(); + void clear_has_eps(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -1331,15 +1766,9 @@ class NormalizeBBoxParameter : public ::google::protobuf::Message /* @@protoc_in bool across_spatial_; bool channel_shared_; float eps_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizeBBoxParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed NormalizeBBoxParameter_default_instance_; - // ------------------------------------------------------------------- class PriorBoxParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.PriorBoxParameter) */ { @@ -1353,11 +1782,24 @@ class PriorBoxParameter : public ::google::protobuf::Message /* @@protoc_inserti CopyFrom(from); return *this; } + #if LANG_CXX11 + PriorBoxParameter(PriorBoxParameter&& from) noexcept + : PriorBoxParameter() { + *this = ::std::move(from); + } + inline PriorBoxParameter& operator=(PriorBoxParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -1365,49 +1807,54 @@ class PriorBoxParameter : public ::google::protobuf::Message /* @@protoc_inserti static const ::google::protobuf::Descriptor* descriptor(); static const PriorBoxParameter& default_instance(); - static const PriorBoxParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PriorBoxParameter* internal_default_instance() { + return reinterpret_cast( + &_PriorBoxParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; void Swap(PriorBoxParameter* other); + friend void swap(PriorBoxParameter& a, PriorBoxParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PriorBoxParameter* New() const { return New(NULL); } + inline PriorBoxParameter* New() const PROTOBUF_FINAL { return New(NULL); } - PriorBoxParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + PriorBoxParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PriorBoxParameter& from); void MergeFrom(const PriorBoxParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PriorBoxParameter* other); - void UnsafeMergeFrom(const PriorBoxParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -1439,20 +1886,6 @@ class PriorBoxParameter : public ::google::protobuf::Message /* @@protoc_inserti // accessors ------------------------------------------------------- - // optional float min_size = 1; - bool has_min_size() const; - void clear_min_size(); - static const int kMinSizeFieldNumber = 1; - float min_size() const; - void set_min_size(float value); - - // optional float max_size = 2; - bool has_max_size() const; - void clear_max_size(); - static const int kMaxSizeFieldNumber = 2; - float max_size() const; - void set_max_size(float value); - // repeated float aspect_ratio = 3; int aspect_ratio_size() const; void clear_aspect_ratio(); @@ -1465,20 +1898,6 @@ class PriorBoxParameter : public ::google::protobuf::Message /* @@protoc_inserti ::google::protobuf::RepeatedField< float >* mutable_aspect_ratio(); - // optional bool flip = 4 [default = true]; - bool has_flip() const; - void clear_flip(); - static const int kFlipFieldNumber = 4; - bool flip() const; - void set_flip(bool value); - - // optional bool clip = 5 [default = true]; - bool has_clip() const; - void clear_clip(); - static const int kClipFieldNumber = 5; - bool clip() const; - void set_clip(bool value); - // repeated float variance = 6; int variance_size() const; void clear_variance(); @@ -1491,55 +1910,6 @@ class PriorBoxParameter : public ::google::protobuf::Message /* @@protoc_inserti ::google::protobuf::RepeatedField< float >* mutable_variance(); - // optional uint32 img_size = 7; - bool has_img_size() const; - void clear_img_size(); - static const int kImgSizeFieldNumber = 7; - ::google::protobuf::uint32 img_size() const; - void set_img_size(::google::protobuf::uint32 value); - - // optional uint32 img_h = 8; - bool has_img_h() const; - void clear_img_h(); - static const int kImgHFieldNumber = 8; - ::google::protobuf::uint32 img_h() const; - void set_img_h(::google::protobuf::uint32 value); - - // optional uint32 img_w = 9; - bool has_img_w() const; - void clear_img_w(); - static const int kImgWFieldNumber = 9; - ::google::protobuf::uint32 img_w() const; - void set_img_w(::google::protobuf::uint32 value); - - // optional float step = 10; - bool has_step() const; - void clear_step(); - static const int kStepFieldNumber = 10; - float step() const; - void set_step(float value); - - // optional float step_h = 11; - bool has_step_h() const; - void clear_step_h(); - static const int kStepHFieldNumber = 11; - float step_h() const; - void set_step_h(float value); - - // optional float step_w = 12; - bool has_step_w() const; - void clear_step_w(); - static const int kStepWFieldNumber = 12; - float step_w() const; - void set_step_w(float value); - - // optional float offset = 13 [default = 0.5]; - bool has_offset() const; - void clear_offset(); - static const int kOffsetFieldNumber = 13; - float offset() const; - void set_offset(float value); - // repeated float offset_h = 14; int offset_h_size() const; void clear_offset_h(); @@ -1588,30 +1958,107 @@ class PriorBoxParameter : public ::google::protobuf::Message /* @@protoc_inserti ::google::protobuf::RepeatedField< float >* mutable_height(); + // optional float min_size = 1; + bool has_min_size() const; + void clear_min_size(); + static const int kMinSizeFieldNumber = 1; + float min_size() const; + void set_min_size(float value); + + // optional float max_size = 2; + bool has_max_size() const; + void clear_max_size(); + static const int kMaxSizeFieldNumber = 2; + float max_size() const; + void set_max_size(float value); + + // optional uint32 img_size = 7; + bool has_img_size() const; + void clear_img_size(); + static const int kImgSizeFieldNumber = 7; + ::google::protobuf::uint32 img_size() const; + void set_img_size(::google::protobuf::uint32 value); + + // optional uint32 img_h = 8; + bool has_img_h() const; + void clear_img_h(); + static const int kImgHFieldNumber = 8; + ::google::protobuf::uint32 img_h() const; + void set_img_h(::google::protobuf::uint32 value); + + // optional uint32 img_w = 9; + bool has_img_w() const; + void clear_img_w(); + static const int kImgWFieldNumber = 9; + ::google::protobuf::uint32 img_w() const; + void set_img_w(::google::protobuf::uint32 value); + + // optional float step = 10; + bool has_step() const; + void clear_step(); + static const int kStepFieldNumber = 10; + float step() const; + void set_step(float value); + + // optional float step_h = 11; + bool has_step_h() const; + void clear_step_h(); + static const int kStepHFieldNumber = 11; + float step_h() const; + void set_step_h(float value); + + // optional float step_w = 12; + bool has_step_w() const; + void clear_step_w(); + static const int kStepWFieldNumber = 12; + float step_w() const; + void set_step_w(float value); + + // optional bool flip = 4 [default = true]; + bool has_flip() const; + void clear_flip(); + static const int kFlipFieldNumber = 4; + bool flip() const; + void set_flip(bool value); + + // optional bool clip = 5 [default = true]; + bool has_clip() const; + void clear_clip(); + static const int kClipFieldNumber = 5; + bool clip() const; + void set_clip(bool value); + + // optional float offset = 13 [default = 0.5]; + bool has_offset() const; + void clear_offset(); + static const int kOffsetFieldNumber = 13; + float offset() const; + void set_offset(float value); + // @@protoc_insertion_point(class_scope:opencv_caffe.PriorBoxParameter) private: - inline void set_has_min_size(); - inline void clear_has_min_size(); - inline void set_has_max_size(); - inline void clear_has_max_size(); - inline void set_has_flip(); - inline void clear_has_flip(); - inline void set_has_clip(); - inline void clear_has_clip(); - inline void set_has_img_size(); - inline void clear_has_img_size(); - inline void set_has_img_h(); - inline void clear_has_img_h(); - inline void set_has_img_w(); - inline void clear_has_img_w(); - inline void set_has_step(); - inline void clear_has_step(); - inline void set_has_step_h(); - inline void clear_has_step_h(); - inline void set_has_step_w(); - inline void clear_has_step_w(); - inline void set_has_offset(); - inline void clear_has_offset(); + void set_has_min_size(); + void clear_has_min_size(); + void set_has_max_size(); + void clear_has_max_size(); + void set_has_flip(); + void clear_has_flip(); + void set_has_clip(); + void clear_has_clip(); + void set_has_img_size(); + void clear_has_img_size(); + void set_has_img_h(); + void clear_has_img_h(); + void set_has_img_w(); + void clear_has_img_w(); + void set_has_step(); + void clear_has_step(); + void set_has_step_h(); + void clear_has_step_h(); + void set_has_step_w(); + void clear_has_step_w(); + void set_has_offset(); + void clear_has_offset(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -1633,15 +2080,9 @@ class PriorBoxParameter : public ::google::protobuf::Message /* @@protoc_inserti bool flip_; bool clip_; float offset_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPriorBoxParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed PriorBoxParameter_default_instance_; - // ------------------------------------------------------------------- class DetectionOutputParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.DetectionOutputParameter) */ { @@ -1655,11 +2096,24 @@ class DetectionOutputParameter : public ::google::protobuf::Message /* @@protoc_ CopyFrom(from); return *this; } + #if LANG_CXX11 + DetectionOutputParameter(DetectionOutputParameter&& from) noexcept + : DetectionOutputParameter() { + *this = ::std::move(from); + } + inline DetectionOutputParameter& operator=(DetectionOutputParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -1667,54 +2121,77 @@ class DetectionOutputParameter : public ::google::protobuf::Message /* @@protoc_ static const ::google::protobuf::Descriptor* descriptor(); static const DetectionOutputParameter& default_instance(); - static const DetectionOutputParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DetectionOutputParameter* internal_default_instance() { + return reinterpret_cast( + &_DetectionOutputParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; void Swap(DetectionOutputParameter* other); + friend void swap(DetectionOutputParameter& a, DetectionOutputParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline DetectionOutputParameter* New() const { return New(NULL); } + inline DetectionOutputParameter* New() const PROTOBUF_FINAL { return New(NULL); } - DetectionOutputParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + DetectionOutputParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DetectionOutputParameter& from); void MergeFrom(const DetectionOutputParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DetectionOutputParameter* other); - void UnsafeMergeFrom(const DetectionOutputParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; + bool has_nms_param() const; + void clear_nms_param(); + static const int kNmsParamFieldNumber = 4; + const ::opencv_caffe::NonMaximumSuppressionParameter& nms_param() const; + ::opencv_caffe::NonMaximumSuppressionParameter* release_nms_param(); + ::opencv_caffe::NonMaximumSuppressionParameter* mutable_nms_param(); + void set_allocated_nms_param(::opencv_caffe::NonMaximumSuppressionParameter* nms_param); + + // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; + bool has_save_output_param() const; + void clear_save_output_param(); + static const int kSaveOutputParamFieldNumber = 5; + const ::opencv_caffe::SaveOutputParameter& save_output_param() const; + ::opencv_caffe::SaveOutputParameter* release_save_output_param(); + ::opencv_caffe::SaveOutputParameter* mutable_save_output_param(); + void set_allocated_save_output_param(::opencv_caffe::SaveOutputParameter* save_output_param); + // optional uint32 num_classes = 1; bool has_num_classes() const; void clear_num_classes(); @@ -1722,13 +2199,6 @@ class DetectionOutputParameter : public ::google::protobuf::Message /* @@protoc_ ::google::protobuf::uint32 num_classes() const; void set_num_classes(::google::protobuf::uint32 value); - // optional bool share_location = 2 [default = true]; - bool has_share_location() const; - void clear_share_location(); - static const int kShareLocationFieldNumber = 2; - bool share_location() const; - void set_share_location(bool value); - // optional int32 background_label_id = 3 [default = 0]; bool has_background_label_id() const; void clear_background_label_id(); @@ -1736,31 +2206,6 @@ class DetectionOutputParameter : public ::google::protobuf::Message /* @@protoc_ ::google::protobuf::int32 background_label_id() const; void set_background_label_id(::google::protobuf::int32 value); - // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; - bool has_nms_param() const; - void clear_nms_param(); - static const int kNmsParamFieldNumber = 4; - const ::opencv_caffe::NonMaximumSuppressionParameter& nms_param() const; - ::opencv_caffe::NonMaximumSuppressionParameter* mutable_nms_param(); - ::opencv_caffe::NonMaximumSuppressionParameter* release_nms_param(); - void set_allocated_nms_param(::opencv_caffe::NonMaximumSuppressionParameter* nms_param); - - // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; - bool has_save_output_param() const; - void clear_save_output_param(); - static const int kSaveOutputParamFieldNumber = 5; - const ::opencv_caffe::SaveOutputParameter& save_output_param() const; - ::opencv_caffe::SaveOutputParameter* mutable_save_output_param(); - ::opencv_caffe::SaveOutputParameter* release_save_output_param(); - void set_allocated_save_output_param(::opencv_caffe::SaveOutputParameter* save_output_param); - - // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; - bool has_code_type() const; - void clear_code_type(); - static const int kCodeTypeFieldNumber = 6; - ::opencv_caffe::PriorBoxParameter_CodeType code_type() const; - void set_code_type(::opencv_caffe::PriorBoxParameter_CodeType value); - // optional bool variance_encoded_in_target = 8 [default = false]; bool has_variance_encoded_in_target() const; void clear_variance_encoded_in_target(); @@ -1768,6 +2213,13 @@ class DetectionOutputParameter : public ::google::protobuf::Message /* @@protoc_ bool variance_encoded_in_target() const; void set_variance_encoded_in_target(bool value); + // optional float confidence_threshold = 9; + bool has_confidence_threshold() const; + void clear_confidence_threshold(); + static const int kConfidenceThresholdFieldNumber = 9; + float confidence_threshold() const; + void set_confidence_threshold(float value); + // optional int32 keep_top_k = 7 [default = -1]; bool has_keep_top_k() const; void clear_keep_top_k(); @@ -1775,12 +2227,19 @@ class DetectionOutputParameter : public ::google::protobuf::Message /* @@protoc_ ::google::protobuf::int32 keep_top_k() const; void set_keep_top_k(::google::protobuf::int32 value); - // optional float confidence_threshold = 9; - bool has_confidence_threshold() const; - void clear_confidence_threshold(); - static const int kConfidenceThresholdFieldNumber = 9; - float confidence_threshold() const; - void set_confidence_threshold(float value); + // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; + bool has_code_type() const; + void clear_code_type(); + static const int kCodeTypeFieldNumber = 6; + ::opencv_caffe::PriorBoxParameter_CodeType code_type() const; + void set_code_type(::opencv_caffe::PriorBoxParameter_CodeType value); + + // optional bool share_location = 2 [default = true]; + bool has_share_location() const; + void clear_share_location(); + static const int kShareLocationFieldNumber = 2; + bool share_location() const; + void set_share_location(bool value); // optional bool normalized_bbox = 10 [default = true]; bool has_normalized_bbox() const; @@ -1791,26 +2250,26 @@ class DetectionOutputParameter : public ::google::protobuf::Message /* @@protoc_ // @@protoc_insertion_point(class_scope:opencv_caffe.DetectionOutputParameter) private: - inline void set_has_num_classes(); - inline void clear_has_num_classes(); - inline void set_has_share_location(); - inline void clear_has_share_location(); - inline void set_has_background_label_id(); - inline void clear_has_background_label_id(); - inline void set_has_nms_param(); - inline void clear_has_nms_param(); - inline void set_has_save_output_param(); - inline void clear_has_save_output_param(); - inline void set_has_code_type(); - inline void clear_has_code_type(); - inline void set_has_variance_encoded_in_target(); - inline void clear_has_variance_encoded_in_target(); - inline void set_has_keep_top_k(); - inline void clear_has_keep_top_k(); - inline void set_has_confidence_threshold(); - inline void clear_has_confidence_threshold(); - inline void set_has_normalized_bbox(); - inline void clear_has_normalized_bbox(); + void set_has_num_classes(); + void clear_has_num_classes(); + void set_has_share_location(); + void clear_has_share_location(); + void set_has_background_label_id(); + void clear_has_background_label_id(); + void set_has_nms_param(); + void clear_has_nms_param(); + void set_has_save_output_param(); + void clear_has_save_output_param(); + void set_has_code_type(); + void clear_has_code_type(); + void set_has_variance_encoded_in_target(); + void clear_has_variance_encoded_in_target(); + void set_has_keep_top_k(); + void clear_has_keep_top_k(); + void set_has_confidence_threshold(); + void clear_has_confidence_threshold(); + void set_has_normalized_bbox(); + void clear_has_normalized_bbox(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -1825,15 +2284,9 @@ class DetectionOutputParameter : public ::google::protobuf::Message /* @@protoc_ int code_type_; bool share_location_; bool normalized_bbox_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDetectionOutputParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed DetectionOutputParameter_default_instance_; - // ------------------------------------------------------------------- class Datum : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.Datum) */ { @@ -1847,11 +2300,24 @@ class Datum : public ::google::protobuf::Message /* @@protoc_insertion_point(cla CopyFrom(from); return *this; } + #if LANG_CXX11 + Datum(Datum&& from) noexcept + : Datum() { + *this = ::std::move(from); + } + inline Datum& operator=(Datum&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -1859,54 +2325,86 @@ class Datum : public ::google::protobuf::Message /* @@protoc_insertion_point(cla static const ::google::protobuf::Descriptor* descriptor(); static const Datum& default_instance(); - static const Datum* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Datum* internal_default_instance() { + return reinterpret_cast( + &_Datum_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 7; void Swap(Datum* other); + friend void swap(Datum& a, Datum& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline Datum* New() const { return New(NULL); } + inline Datum* New() const PROTOBUF_FINAL { return New(NULL); } - Datum* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + Datum* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const Datum& from); void MergeFrom(const Datum& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(Datum* other); - void UnsafeMergeFrom(const Datum& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // repeated float float_data = 6; + int float_data_size() const; + void clear_float_data(); + static const int kFloatDataFieldNumber = 6; + float float_data(int index) const; + void set_float_data(int index, float value); + void add_float_data(float value); + const ::google::protobuf::RepeatedField< float >& + float_data() const; + ::google::protobuf::RepeatedField< float >* + mutable_float_data(); + + // optional bytes data = 4; + bool has_data() const; + void clear_data(); + static const int kDataFieldNumber = 4; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif + void set_data(const char* value); + void set_data(const void* value, size_t size); + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); + // optional int32 channels = 1; bool has_channels() const; void clear_channels(); @@ -1928,18 +2426,6 @@ class Datum : public ::google::protobuf::Message /* @@protoc_insertion_point(cla ::google::protobuf::int32 width() const; void set_width(::google::protobuf::int32 value); - // optional bytes data = 4; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 4; - const ::std::string& data() const; - void set_data(const ::std::string& value); - void set_data(const char* value); - void set_data(const void* value, size_t size); - ::std::string* mutable_data(); - ::std::string* release_data(); - void set_allocated_data(::std::string* data); - // optional int32 label = 5; bool has_label() const; void clear_label(); @@ -1947,18 +2433,6 @@ class Datum : public ::google::protobuf::Message /* @@protoc_insertion_point(cla ::google::protobuf::int32 label() const; void set_label(::google::protobuf::int32 value); - // repeated float float_data = 6; - int float_data_size() const; - void clear_float_data(); - static const int kFloatDataFieldNumber = 6; - float float_data(int index) const; - void set_float_data(int index, float value); - void add_float_data(float value); - const ::google::protobuf::RepeatedField< float >& - float_data() const; - ::google::protobuf::RepeatedField< float >* - mutable_float_data(); - // optional bool encoded = 7 [default = false]; bool has_encoded() const; void clear_encoded(); @@ -1968,18 +2442,18 @@ class Datum : public ::google::protobuf::Message /* @@protoc_insertion_point(cla // @@protoc_insertion_point(class_scope:opencv_caffe.Datum) private: - inline void set_has_channels(); - inline void clear_has_channels(); - inline void set_has_height(); - inline void clear_has_height(); - inline void set_has_width(); - inline void clear_has_width(); - inline void set_has_data(); - inline void clear_has_data(); - inline void set_has_label(); - inline void clear_has_label(); - inline void set_has_encoded(); - inline void clear_has_encoded(); + void set_has_channels(); + void clear_has_channels(); + void set_has_height(); + void clear_has_height(); + void set_has_width(); + void clear_has_width(); + void set_has_data(); + void clear_has_data(); + void set_has_label(); + void clear_has_label(); + void set_has_encoded(); + void clear_has_encoded(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -1991,15 +2465,9 @@ class Datum : public ::google::protobuf::Message /* @@protoc_insertion_point(cla ::google::protobuf::int32 width_; ::google::protobuf::int32 label_; bool encoded_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDatumImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed Datum_default_instance_; - // ------------------------------------------------------------------- class FillerParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.FillerParameter) */ { @@ -2013,11 +2481,24 @@ class FillerParameter : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + FillerParameter(FillerParameter&& from) noexcept + : FillerParameter() { + *this = ::std::move(from); + } + inline FillerParameter& operator=(FillerParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -2025,49 +2506,54 @@ class FillerParameter : public ::google::protobuf::Message /* @@protoc_insertion static const ::google::protobuf::Descriptor* descriptor(); static const FillerParameter& default_instance(); - static const FillerParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FillerParameter* internal_default_instance() { + return reinterpret_cast( + &_FillerParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 8; void Swap(FillerParameter* other); + friend void swap(FillerParameter& a, FillerParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline FillerParameter* New() const { return New(NULL); } + inline FillerParameter* New() const PROTOBUF_FINAL { return New(NULL); } - FillerParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FillerParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const FillerParameter& from); void MergeFrom(const FillerParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(FillerParameter* other); - void UnsafeMergeFrom(const FillerParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -2107,6 +2593,9 @@ class FillerParameter : public ::google::protobuf::Message /* @@protoc_insertion static const int kTypeFieldNumber = 1; const ::std::string& type() const; void set_type(const ::std::string& value); + #if LANG_CXX11 + void set_type(::std::string&& value); + #endif void set_type(const char* value); void set_type(const char* value, size_t size); ::std::string* mutable_type(); @@ -2127,13 +2616,6 @@ class FillerParameter : public ::google::protobuf::Message /* @@protoc_insertion float min() const; void set_min(float value); - // optional float max = 4 [default = 1]; - bool has_max() const; - void clear_max(); - static const int kMaxFieldNumber = 4; - float max() const; - void set_max(float value); - // optional float mean = 5 [default = 0]; bool has_mean() const; void clear_mean(); @@ -2141,20 +2623,6 @@ class FillerParameter : public ::google::protobuf::Message /* @@protoc_insertion float mean() const; void set_mean(float value); - // optional float std = 6 [default = 1]; - bool has_std() const; - void clear_std(); - static const int kStdFieldNumber = 6; - float std() const; - void set_std(float value); - - // optional int32 sparse = 7 [default = -1]; - bool has_sparse() const; - void clear_sparse(); - static const int kSparseFieldNumber = 7; - ::google::protobuf::int32 sparse() const; - void set_sparse(::google::protobuf::int32 value); - // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; bool has_variance_norm() const; void clear_variance_norm(); @@ -2162,29 +2630,50 @@ class FillerParameter : public ::google::protobuf::Message /* @@protoc_insertion ::opencv_caffe::FillerParameter_VarianceNorm variance_norm() const; void set_variance_norm(::opencv_caffe::FillerParameter_VarianceNorm value); + // optional int32 sparse = 7 [default = -1]; + bool has_sparse() const; + void clear_sparse(); + static const int kSparseFieldNumber = 7; + ::google::protobuf::int32 sparse() const; + void set_sparse(::google::protobuf::int32 value); + + // optional float max = 4 [default = 1]; + bool has_max() const; + void clear_max(); + static const int kMaxFieldNumber = 4; + float max() const; + void set_max(float value); + + // optional float std = 6 [default = 1]; + bool has_std() const; + void clear_std(); + static const int kStdFieldNumber = 6; + float std() const; + void set_std(float value); + // @@protoc_insertion_point(class_scope:opencv_caffe.FillerParameter) private: - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_value(); - inline void clear_has_value(); - inline void set_has_min(); - inline void clear_has_min(); - inline void set_has_max(); - inline void clear_has_max(); - inline void set_has_mean(); - inline void clear_has_mean(); - inline void set_has_std(); - inline void clear_has_std(); - inline void set_has_sparse(); - inline void clear_has_sparse(); - inline void set_has_variance_norm(); - inline void clear_has_variance_norm(); + void set_has_type(); + void clear_has_type(); + void set_has_value(); + void clear_has_value(); + void set_has_min(); + void clear_has_min(); + void set_has_max(); + void clear_has_max(); + void set_has_mean(); + void clear_has_mean(); + void set_has_std(); + void clear_has_std(); + void set_has_sparse(); + void clear_has_sparse(); + void set_has_variance_norm(); + void clear_has_variance_norm(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; - static ::std::string* _default_type_; + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_type_; ::google::protobuf::internal::ArenaStringPtr type_; float value_; float min_; @@ -2193,15 +2682,9 @@ class FillerParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::int32 sparse_; float max_; float std_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed FillerParameter_default_instance_; - // ------------------------------------------------------------------- class NetParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.NetParameter) */ { @@ -2215,11 +2698,24 @@ class NetParameter : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + NetParameter(NetParameter&& from) noexcept + : NetParameter() { + *this = ::std::move(from); + } + inline NetParameter& operator=(NetParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -2227,141 +2723,59 @@ class NetParameter : public ::google::protobuf::Message /* @@protoc_insertion_po static const ::google::protobuf::Descriptor* descriptor(); static const NetParameter& default_instance(); - static const NetParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NetParameter* internal_default_instance() { + return reinterpret_cast( + &_NetParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 9; void Swap(NetParameter* other); + friend void swap(NetParameter& a, NetParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline NetParameter* New() const { return New(NULL); } + inline NetParameter* New() const PROTOBUF_FINAL { return New(NULL); } - NetParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + NetParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const NetParameter& from); void MergeFrom(const NetParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(NetParameter* other); - void UnsafeMergeFrom(const NetParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string name = 1; - bool has_name() const; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // repeated string input = 3; - int input_size() const; - void clear_input(); - static const int kInputFieldNumber = 3; - const ::std::string& input(int index) const; - ::std::string* mutable_input(int index); - void set_input(int index, const ::std::string& value); - void set_input(int index, const char* value); - void set_input(int index, const char* value, size_t size); - ::std::string* add_input(); - void add_input(const ::std::string& value); - void add_input(const char* value); - void add_input(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input(); - - // repeated .opencv_caffe.BlobShape input_shape = 8; - int input_shape_size() const; - void clear_input_shape(); - static const int kInputShapeFieldNumber = 8; - const ::opencv_caffe::BlobShape& input_shape(int index) const; - ::opencv_caffe::BlobShape* mutable_input_shape(int index); - ::opencv_caffe::BlobShape* add_input_shape(); - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >* - mutable_input_shape(); - const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >& - input_shape() const; - - // repeated int32 input_dim = 4; - int input_dim_size() const; - void clear_input_dim(); - static const int kInputDimFieldNumber = 4; - ::google::protobuf::int32 input_dim(int index) const; - void set_input_dim(int index, ::google::protobuf::int32 value); - void add_input_dim(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - input_dim() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_input_dim(); - - // optional bool force_backward = 5 [default = false]; - bool has_force_backward() const; - void clear_force_backward(); - static const int kForceBackwardFieldNumber = 5; - bool force_backward() const; - void set_force_backward(bool value); - - // optional .opencv_caffe.NetState state = 6; - bool has_state() const; - void clear_state(); - static const int kStateFieldNumber = 6; - const ::opencv_caffe::NetState& state() const; - ::opencv_caffe::NetState* mutable_state(); - ::opencv_caffe::NetState* release_state(); - void set_allocated_state(::opencv_caffe::NetState* state); - - // optional bool debug_info = 7 [default = false]; - bool has_debug_info() const; - void clear_debug_info(); - static const int kDebugInfoFieldNumber = 7; - bool debug_info() const; - void set_debug_info(bool value); - - // repeated .opencv_caffe.LayerParameter layer = 100; - int layer_size() const; - void clear_layer(); - static const int kLayerFieldNumber = 100; - const ::opencv_caffe::LayerParameter& layer(int index) const; - ::opencv_caffe::LayerParameter* mutable_layer(int index); - ::opencv_caffe::LayerParameter* add_layer(); - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::LayerParameter >* - mutable_layer(); - const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::LayerParameter >& - layer() const; - // repeated .opencv_caffe.V1LayerParameter layers = 2; int layers_size() const; void clear_layers(); @@ -2374,38 +2788,128 @@ class NetParameter : public ::google::protobuf::Message /* @@protoc_insertion_po const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::V1LayerParameter >& layers() const; + // repeated string input = 3; + int input_size() const; + void clear_input(); + static const int kInputFieldNumber = 3; + const ::std::string& input(int index) const; + ::std::string* mutable_input(int index); + void set_input(int index, const ::std::string& value); + #if LANG_CXX11 + void set_input(int index, ::std::string&& value); + #endif + void set_input(int index, const char* value); + void set_input(int index, const char* value, size_t size); + ::std::string* add_input(); + void add_input(const ::std::string& value); + #if LANG_CXX11 + void add_input(::std::string&& value); + #endif + void add_input(const char* value); + void add_input(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input(); + + // repeated int32 input_dim = 4; + int input_dim_size() const; + void clear_input_dim(); + static const int kInputDimFieldNumber = 4; + ::google::protobuf::int32 input_dim(int index) const; + void set_input_dim(int index, ::google::protobuf::int32 value); + void add_input_dim(::google::protobuf::int32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& + input_dim() const; + ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* + mutable_input_dim(); + + // repeated .opencv_caffe.BlobShape input_shape = 8; + int input_shape_size() const; + void clear_input_shape(); + static const int kInputShapeFieldNumber = 8; + const ::opencv_caffe::BlobShape& input_shape(int index) const; + ::opencv_caffe::BlobShape* mutable_input_shape(int index); + ::opencv_caffe::BlobShape* add_input_shape(); + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >* + mutable_input_shape(); + const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >& + input_shape() const; + + // repeated .opencv_caffe.LayerParameter layer = 100; + int layer_size() const; + void clear_layer(); + static const int kLayerFieldNumber = 100; + const ::opencv_caffe::LayerParameter& layer(int index) const; + ::opencv_caffe::LayerParameter* mutable_layer(int index); + ::opencv_caffe::LayerParameter* add_layer(); + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::LayerParameter >* + mutable_layer(); + const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::LayerParameter >& + layer() const; + + // optional string name = 1; + bool has_name() const; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // optional .opencv_caffe.NetState state = 6; + bool has_state() const; + void clear_state(); + static const int kStateFieldNumber = 6; + const ::opencv_caffe::NetState& state() const; + ::opencv_caffe::NetState* release_state(); + ::opencv_caffe::NetState* mutable_state(); + void set_allocated_state(::opencv_caffe::NetState* state); + + // optional bool force_backward = 5 [default = false]; + bool has_force_backward() const; + void clear_force_backward(); + static const int kForceBackwardFieldNumber = 5; + bool force_backward() const; + void set_force_backward(bool value); + + // optional bool debug_info = 7 [default = false]; + bool has_debug_info() const; + void clear_debug_info(); + static const int kDebugInfoFieldNumber = 7; + bool debug_info() const; + void set_debug_info(bool value); + // @@protoc_insertion_point(class_scope:opencv_caffe.NetParameter) private: - inline void set_has_name(); - inline void clear_has_name(); - inline void set_has_force_backward(); - inline void clear_has_force_backward(); - inline void set_has_state(); - inline void clear_has_state(); - inline void set_has_debug_info(); - inline void clear_has_debug_info(); + void set_has_name(); + void clear_has_name(); + void set_has_force_backward(); + void clear_has_force_backward(); + void set_has_state(); + void clear_has_state(); + void set_has_debug_info(); + void clear_has_debug_info(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; - ::google::protobuf::RepeatedPtrField< ::std::string> input_; - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape > input_shape_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > input_dim_; - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::LayerParameter > layer_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::V1LayerParameter > layers_; + ::google::protobuf::RepeatedPtrField< ::std::string> input_; + ::google::protobuf::RepeatedField< ::google::protobuf::int32 > input_dim_; + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape > input_shape_; + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::LayerParameter > layer_; ::google::protobuf::internal::ArenaStringPtr name_; ::opencv_caffe::NetState* state_; bool force_backward_; bool debug_info_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed NetParameter_default_instance_; - // ------------------------------------------------------------------- class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.SolverParameter) */ { @@ -2419,11 +2923,24 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + SolverParameter(SolverParameter&& from) noexcept + : SolverParameter() { + *this = ::std::move(from); + } + inline SolverParameter& operator=(SolverParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -2431,49 +2948,54 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion static const ::google::protobuf::Descriptor* descriptor(); static const SolverParameter& default_instance(); - static const SolverParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SolverParameter* internal_default_instance() { + return reinterpret_cast( + &_SolverParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 10; void Swap(SolverParameter* other); + friend void swap(SolverParameter& a, SolverParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SolverParameter* New() const { return New(NULL); } + inline SolverParameter* New() const PROTOBUF_FINAL { return New(NULL); } - SolverParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SolverParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SolverParameter& from); void MergeFrom(const SolverParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SolverParameter* other); - void UnsafeMergeFrom(const SolverParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -2565,39 +3087,6 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion // accessors ------------------------------------------------------- - // optional string net = 24; - bool has_net() const; - void clear_net(); - static const int kNetFieldNumber = 24; - const ::std::string& net() const; - void set_net(const ::std::string& value); - void set_net(const char* value); - void set_net(const char* value, size_t size); - ::std::string* mutable_net(); - ::std::string* release_net(); - void set_allocated_net(::std::string* net); - - // optional .opencv_caffe.NetParameter net_param = 25; - bool has_net_param() const; - void clear_net_param(); - static const int kNetParamFieldNumber = 25; - const ::opencv_caffe::NetParameter& net_param() const; - ::opencv_caffe::NetParameter* mutable_net_param(); - ::opencv_caffe::NetParameter* release_net_param(); - void set_allocated_net_param(::opencv_caffe::NetParameter* net_param); - - // optional string train_net = 1; - bool has_train_net() const; - void clear_train_net(); - static const int kTrainNetFieldNumber = 1; - const ::std::string& train_net() const; - void set_train_net(const ::std::string& value); - void set_train_net(const char* value); - void set_train_net(const char* value, size_t size); - ::std::string* mutable_train_net(); - ::std::string* release_train_net(); - void set_allocated_train_net(::std::string* train_net); - // repeated string test_net = 2; int test_net_size() const; void clear_test_net(); @@ -2605,57 +3094,21 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion const ::std::string& test_net(int index) const; ::std::string* mutable_test_net(int index); void set_test_net(int index, const ::std::string& value); + #if LANG_CXX11 + void set_test_net(int index, ::std::string&& value); + #endif void set_test_net(int index, const char* value); void set_test_net(int index, const char* value, size_t size); ::std::string* add_test_net(); void add_test_net(const ::std::string& value); + #if LANG_CXX11 + void add_test_net(::std::string&& value); + #endif void add_test_net(const char* value); void add_test_net(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& test_net() const; ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_test_net(); - // optional .opencv_caffe.NetParameter train_net_param = 21; - bool has_train_net_param() const; - void clear_train_net_param(); - static const int kTrainNetParamFieldNumber = 21; - const ::opencv_caffe::NetParameter& train_net_param() const; - ::opencv_caffe::NetParameter* mutable_train_net_param(); - ::opencv_caffe::NetParameter* release_train_net_param(); - void set_allocated_train_net_param(::opencv_caffe::NetParameter* train_net_param); - - // repeated .opencv_caffe.NetParameter test_net_param = 22; - int test_net_param_size() const; - void clear_test_net_param(); - static const int kTestNetParamFieldNumber = 22; - const ::opencv_caffe::NetParameter& test_net_param(int index) const; - ::opencv_caffe::NetParameter* mutable_test_net_param(int index); - ::opencv_caffe::NetParameter* add_test_net_param(); - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetParameter >* - mutable_test_net_param(); - const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetParameter >& - test_net_param() const; - - // optional .opencv_caffe.NetState train_state = 26; - bool has_train_state() const; - void clear_train_state(); - static const int kTrainStateFieldNumber = 26; - const ::opencv_caffe::NetState& train_state() const; - ::opencv_caffe::NetState* mutable_train_state(); - ::opencv_caffe::NetState* release_train_state(); - void set_allocated_train_state(::opencv_caffe::NetState* train_state); - - // repeated .opencv_caffe.NetState test_state = 27; - int test_state_size() const; - void clear_test_state(); - static const int kTestStateFieldNumber = 27; - const ::opencv_caffe::NetState& test_state(int index) const; - ::opencv_caffe::NetState* mutable_test_state(int index); - ::opencv_caffe::NetState* add_test_state(); - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetState >* - mutable_test_state(); - const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetState >& - test_state() const; - // repeated int32 test_iter = 3; int test_iter_size() const; void clear_test_iter(); @@ -2668,6 +3121,159 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* mutable_test_iter(); + // repeated .opencv_caffe.NetParameter test_net_param = 22; + int test_net_param_size() const; + void clear_test_net_param(); + static const int kTestNetParamFieldNumber = 22; + const ::opencv_caffe::NetParameter& test_net_param(int index) const; + ::opencv_caffe::NetParameter* mutable_test_net_param(int index); + ::opencv_caffe::NetParameter* add_test_net_param(); + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetParameter >* + mutable_test_net_param(); + const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetParameter >& + test_net_param() const; + + // repeated .opencv_caffe.NetState test_state = 27; + int test_state_size() const; + void clear_test_state(); + static const int kTestStateFieldNumber = 27; + const ::opencv_caffe::NetState& test_state(int index) const; + ::opencv_caffe::NetState* mutable_test_state(int index); + ::opencv_caffe::NetState* add_test_state(); + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetState >* + mutable_test_state(); + const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetState >& + test_state() const; + + // repeated int32 stepvalue = 34; + int stepvalue_size() const; + void clear_stepvalue(); + static const int kStepvalueFieldNumber = 34; + ::google::protobuf::int32 stepvalue(int index) const; + void set_stepvalue(int index, ::google::protobuf::int32 value); + void add_stepvalue(::google::protobuf::int32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& + stepvalue() const; + ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* + mutable_stepvalue(); + + // optional string train_net = 1; + bool has_train_net() const; + void clear_train_net(); + static const int kTrainNetFieldNumber = 1; + const ::std::string& train_net() const; + void set_train_net(const ::std::string& value); + #if LANG_CXX11 + void set_train_net(::std::string&& value); + #endif + void set_train_net(const char* value); + void set_train_net(const char* value, size_t size); + ::std::string* mutable_train_net(); + ::std::string* release_train_net(); + void set_allocated_train_net(::std::string* train_net); + + // optional string lr_policy = 8; + bool has_lr_policy() const; + void clear_lr_policy(); + static const int kLrPolicyFieldNumber = 8; + const ::std::string& lr_policy() const; + void set_lr_policy(const ::std::string& value); + #if LANG_CXX11 + void set_lr_policy(::std::string&& value); + #endif + void set_lr_policy(const char* value); + void set_lr_policy(const char* value, size_t size); + ::std::string* mutable_lr_policy(); + ::std::string* release_lr_policy(); + void set_allocated_lr_policy(::std::string* lr_policy); + + // optional string snapshot_prefix = 15; + bool has_snapshot_prefix() const; + void clear_snapshot_prefix(); + static const int kSnapshotPrefixFieldNumber = 15; + const ::std::string& snapshot_prefix() const; + void set_snapshot_prefix(const ::std::string& value); + #if LANG_CXX11 + void set_snapshot_prefix(::std::string&& value); + #endif + void set_snapshot_prefix(const char* value); + void set_snapshot_prefix(const char* value, size_t size); + ::std::string* mutable_snapshot_prefix(); + ::std::string* release_snapshot_prefix(); + void set_allocated_snapshot_prefix(::std::string* snapshot_prefix); + + // optional string net = 24; + bool has_net() const; + void clear_net(); + static const int kNetFieldNumber = 24; + const ::std::string& net() const; + void set_net(const ::std::string& value); + #if LANG_CXX11 + void set_net(::std::string&& value); + #endif + void set_net(const char* value); + void set_net(const char* value, size_t size); + ::std::string* mutable_net(); + ::std::string* release_net(); + void set_allocated_net(::std::string* net); + + // optional string regularization_type = 29 [default = "L2"]; + bool has_regularization_type() const; + void clear_regularization_type(); + static const int kRegularizationTypeFieldNumber = 29; + const ::std::string& regularization_type() const; + void set_regularization_type(const ::std::string& value); + #if LANG_CXX11 + void set_regularization_type(::std::string&& value); + #endif + void set_regularization_type(const char* value); + void set_regularization_type(const char* value, size_t size); + ::std::string* mutable_regularization_type(); + ::std::string* release_regularization_type(); + void set_allocated_regularization_type(::std::string* regularization_type); + + // optional string type = 40 [default = "SGD"]; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 40; + const ::std::string& type() const; + void set_type(const ::std::string& value); + #if LANG_CXX11 + void set_type(::std::string&& value); + #endif + void set_type(const char* value); + void set_type(const char* value, size_t size); + ::std::string* mutable_type(); + ::std::string* release_type(); + void set_allocated_type(::std::string* type); + + // optional .opencv_caffe.NetParameter train_net_param = 21; + bool has_train_net_param() const; + void clear_train_net_param(); + static const int kTrainNetParamFieldNumber = 21; + const ::opencv_caffe::NetParameter& train_net_param() const; + ::opencv_caffe::NetParameter* release_train_net_param(); + ::opencv_caffe::NetParameter* mutable_train_net_param(); + void set_allocated_train_net_param(::opencv_caffe::NetParameter* train_net_param); + + // optional .opencv_caffe.NetParameter net_param = 25; + bool has_net_param() const; + void clear_net_param(); + static const int kNetParamFieldNumber = 25; + const ::opencv_caffe::NetParameter& net_param() const; + ::opencv_caffe::NetParameter* release_net_param(); + ::opencv_caffe::NetParameter* mutable_net_param(); + void set_allocated_net_param(::opencv_caffe::NetParameter* net_param); + + // optional .opencv_caffe.NetState train_state = 26; + bool has_train_state() const; + void clear_train_state(); + static const int kTrainStateFieldNumber = 26; + const ::opencv_caffe::NetState& train_state() const; + ::opencv_caffe::NetState* release_train_state(); + ::opencv_caffe::NetState* mutable_train_state(); + void set_allocated_train_state(::opencv_caffe::NetState* train_state); + // optional int32 test_interval = 4 [default = 0]; bool has_test_interval() const; void clear_test_interval(); @@ -2675,20 +3281,6 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::int32 test_interval() const; void set_test_interval(::google::protobuf::int32 value); - // optional bool test_compute_loss = 19 [default = false]; - bool has_test_compute_loss() const; - void clear_test_compute_loss(); - static const int kTestComputeLossFieldNumber = 19; - bool test_compute_loss() const; - void set_test_compute_loss(bool value); - - // optional bool test_initialization = 32 [default = true]; - bool has_test_initialization() const; - void clear_test_initialization(); - static const int kTestInitializationFieldNumber = 32; - bool test_initialization() const; - void set_test_initialization(bool value); - // optional float base_lr = 5; bool has_base_lr() const; void clear_base_lr(); @@ -2703,13 +3295,6 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::int32 display() const; void set_display(::google::protobuf::int32 value); - // optional int32 average_loss = 33 [default = 1]; - bool has_average_loss() const; - void clear_average_loss(); - static const int kAverageLossFieldNumber = 33; - ::google::protobuf::int32 average_loss() const; - void set_average_loss(::google::protobuf::int32 value); - // optional int32 max_iter = 7; bool has_max_iter() const; void clear_max_iter(); @@ -2717,25 +3302,6 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::int32 max_iter() const; void set_max_iter(::google::protobuf::int32 value); - // optional int32 iter_size = 36 [default = 1]; - bool has_iter_size() const; - void clear_iter_size(); - static const int kIterSizeFieldNumber = 36; - ::google::protobuf::int32 iter_size() const; - void set_iter_size(::google::protobuf::int32 value); - - // optional string lr_policy = 8; - bool has_lr_policy() const; - void clear_lr_policy(); - static const int kLrPolicyFieldNumber = 8; - const ::std::string& lr_policy() const; - void set_lr_policy(const ::std::string& value); - void set_lr_policy(const char* value); - void set_lr_policy(const char* value, size_t size); - ::std::string* mutable_lr_policy(); - ::std::string* release_lr_policy(); - void set_allocated_lr_policy(::std::string* lr_policy); - // optional float gamma = 9; bool has_gamma() const; void clear_gamma(); @@ -2764,18 +3330,6 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion float weight_decay() const; void set_weight_decay(float value); - // optional string regularization_type = 29 [default = "L2"]; - bool has_regularization_type() const; - void clear_regularization_type(); - static const int kRegularizationTypeFieldNumber = 29; - const ::std::string& regularization_type() const; - void set_regularization_type(const ::std::string& value); - void set_regularization_type(const char* value); - void set_regularization_type(const char* value, size_t size); - ::std::string* mutable_regularization_type(); - ::std::string* release_regularization_type(); - void set_allocated_regularization_type(::std::string* regularization_type); - // optional int32 stepsize = 13; bool has_stepsize() const; void clear_stepsize(); @@ -2783,25 +3337,6 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::int32 stepsize() const; void set_stepsize(::google::protobuf::int32 value); - // repeated int32 stepvalue = 34; - int stepvalue_size() const; - void clear_stepvalue(); - static const int kStepvalueFieldNumber = 34; - ::google::protobuf::int32 stepvalue(int index) const; - void set_stepvalue(int index, ::google::protobuf::int32 value); - void add_stepvalue(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - stepvalue() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_stepvalue(); - - // optional float clip_gradients = 35 [default = -1]; - bool has_clip_gradients() const; - void clear_clip_gradients(); - static const int kClipGradientsFieldNumber = 35; - float clip_gradients() const; - void set_clip_gradients(float value); - // optional int32 snapshot = 14 [default = 0]; bool has_snapshot() const; void clear_snapshot(); @@ -2809,17 +3344,19 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::int32 snapshot() const; void set_snapshot(::google::protobuf::int32 value); - // optional string snapshot_prefix = 15; - bool has_snapshot_prefix() const; - void clear_snapshot_prefix(); - static const int kSnapshotPrefixFieldNumber = 15; - const ::std::string& snapshot_prefix() const; - void set_snapshot_prefix(const ::std::string& value); - void set_snapshot_prefix(const char* value); - void set_snapshot_prefix(const char* value, size_t size); - ::std::string* mutable_snapshot_prefix(); - ::std::string* release_snapshot_prefix(); - void set_allocated_snapshot_prefix(::std::string* snapshot_prefix); + // optional int32 device_id = 18 [default = 0]; + bool has_device_id() const; + void clear_device_id(); + static const int kDeviceIdFieldNumber = 18; + ::google::protobuf::int32 device_id() const; + void set_device_id(::google::protobuf::int32 value); + + // optional bool test_compute_loss = 19 [default = false]; + bool has_test_compute_loss() const; + void clear_test_compute_loss(); + static const int kTestComputeLossFieldNumber = 19; + bool test_compute_loss() const; + void set_test_compute_loss(bool value); // optional bool snapshot_diff = 16 [default = false]; bool has_snapshot_diff() const; @@ -2828,67 +3365,6 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion bool snapshot_diff() const; void set_snapshot_diff(bool value); - // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; - bool has_snapshot_format() const; - void clear_snapshot_format(); - static const int kSnapshotFormatFieldNumber = 37; - ::opencv_caffe::SolverParameter_SnapshotFormat snapshot_format() const; - void set_snapshot_format(::opencv_caffe::SolverParameter_SnapshotFormat value); - - // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; - bool has_solver_mode() const; - void clear_solver_mode(); - static const int kSolverModeFieldNumber = 17; - ::opencv_caffe::SolverParameter_SolverMode solver_mode() const; - void set_solver_mode(::opencv_caffe::SolverParameter_SolverMode value); - - // optional int32 device_id = 18 [default = 0]; - bool has_device_id() const; - void clear_device_id(); - static const int kDeviceIdFieldNumber = 18; - ::google::protobuf::int32 device_id() const; - void set_device_id(::google::protobuf::int32 value); - - // optional int64 random_seed = 20 [default = -1]; - bool has_random_seed() const; - void clear_random_seed(); - static const int kRandomSeedFieldNumber = 20; - ::google::protobuf::int64 random_seed() const; - void set_random_seed(::google::protobuf::int64 value); - - // optional string type = 40 [default = "SGD"]; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 40; - const ::std::string& type() const; - void set_type(const ::std::string& value); - void set_type(const char* value); - void set_type(const char* value, size_t size); - ::std::string* mutable_type(); - ::std::string* release_type(); - void set_allocated_type(::std::string* type); - - // optional float delta = 31 [default = 1e-08]; - bool has_delta() const; - void clear_delta(); - static const int kDeltaFieldNumber = 31; - float delta() const; - void set_delta(float value); - - // optional float momentum2 = 39 [default = 0.999]; - bool has_momentum2() const; - void clear_momentum2(); - static const int kMomentum2FieldNumber = 39; - float momentum2() const; - void set_momentum2(float value); - - // optional float rms_decay = 38 [default = 0.99]; - bool has_rms_decay() const; - void clear_rms_decay(); - static const int kRmsDecayFieldNumber = 38; - float rms_decay() const; - void set_rms_decay(float value); - // optional bool debug_info = 23 [default = false]; bool has_debug_info() const; void clear_debug_info(); @@ -2896,13 +3372,6 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion bool debug_info() const; void set_debug_info(bool value); - // optional bool snapshot_after_train = 28 [default = true]; - bool has_snapshot_after_train() const; - void clear_snapshot_after_train(); - static const int kSnapshotAfterTrainFieldNumber = 28; - bool snapshot_after_train() const; - void set_snapshot_after_train(bool value); - // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; bool has_solver_type() const; void clear_solver_type(); @@ -2910,96 +3379,173 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion ::opencv_caffe::SolverParameter_SolverType solver_type() const; void set_solver_type(::opencv_caffe::SolverParameter_SolverType value); + // optional float momentum2 = 39 [default = 0.999]; + bool has_momentum2() const; + void clear_momentum2(); + static const int kMomentum2FieldNumber = 39; + float momentum2() const; + void set_momentum2(float value); + + // optional int64 random_seed = 20 [default = -1]; + bool has_random_seed() const; + void clear_random_seed(); + static const int kRandomSeedFieldNumber = 20; + ::google::protobuf::int64 random_seed() const; + void set_random_seed(::google::protobuf::int64 value); + + // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; + bool has_solver_mode() const; + void clear_solver_mode(); + static const int kSolverModeFieldNumber = 17; + ::opencv_caffe::SolverParameter_SolverMode solver_mode() const; + void set_solver_mode(::opencv_caffe::SolverParameter_SolverMode value); + + // optional bool test_initialization = 32 [default = true]; + bool has_test_initialization() const; + void clear_test_initialization(); + static const int kTestInitializationFieldNumber = 32; + bool test_initialization() const; + void set_test_initialization(bool value); + + // optional bool snapshot_after_train = 28 [default = true]; + bool has_snapshot_after_train() const; + void clear_snapshot_after_train(); + static const int kSnapshotAfterTrainFieldNumber = 28; + bool snapshot_after_train() const; + void set_snapshot_after_train(bool value); + + // optional float delta = 31 [default = 1e-08]; + bool has_delta() const; + void clear_delta(); + static const int kDeltaFieldNumber = 31; + float delta() const; + void set_delta(float value); + + // optional int32 average_loss = 33 [default = 1]; + bool has_average_loss() const; + void clear_average_loss(); + static const int kAverageLossFieldNumber = 33; + ::google::protobuf::int32 average_loss() const; + void set_average_loss(::google::protobuf::int32 value); + + // optional float clip_gradients = 35 [default = -1]; + bool has_clip_gradients() const; + void clear_clip_gradients(); + static const int kClipGradientsFieldNumber = 35; + float clip_gradients() const; + void set_clip_gradients(float value); + + // optional int32 iter_size = 36 [default = 1]; + bool has_iter_size() const; + void clear_iter_size(); + static const int kIterSizeFieldNumber = 36; + ::google::protobuf::int32 iter_size() const; + void set_iter_size(::google::protobuf::int32 value); + + // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; + bool has_snapshot_format() const; + void clear_snapshot_format(); + static const int kSnapshotFormatFieldNumber = 37; + ::opencv_caffe::SolverParameter_SnapshotFormat snapshot_format() const; + void set_snapshot_format(::opencv_caffe::SolverParameter_SnapshotFormat value); + + // optional float rms_decay = 38 [default = 0.99]; + bool has_rms_decay() const; + void clear_rms_decay(); + static const int kRmsDecayFieldNumber = 38; + float rms_decay() const; + void set_rms_decay(float value); + // @@protoc_insertion_point(class_scope:opencv_caffe.SolverParameter) private: - inline void set_has_net(); - inline void clear_has_net(); - inline void set_has_net_param(); - inline void clear_has_net_param(); - inline void set_has_train_net(); - inline void clear_has_train_net(); - inline void set_has_train_net_param(); - inline void clear_has_train_net_param(); - inline void set_has_train_state(); - inline void clear_has_train_state(); - inline void set_has_test_interval(); - inline void clear_has_test_interval(); - inline void set_has_test_compute_loss(); - inline void clear_has_test_compute_loss(); - inline void set_has_test_initialization(); - inline void clear_has_test_initialization(); - inline void set_has_base_lr(); - inline void clear_has_base_lr(); - inline void set_has_display(); - inline void clear_has_display(); - inline void set_has_average_loss(); - inline void clear_has_average_loss(); - inline void set_has_max_iter(); - inline void clear_has_max_iter(); - inline void set_has_iter_size(); - inline void clear_has_iter_size(); - inline void set_has_lr_policy(); - inline void clear_has_lr_policy(); - inline void set_has_gamma(); - inline void clear_has_gamma(); - inline void set_has_power(); - inline void clear_has_power(); - inline void set_has_momentum(); - inline void clear_has_momentum(); - inline void set_has_weight_decay(); - inline void clear_has_weight_decay(); - inline void set_has_regularization_type(); - inline void clear_has_regularization_type(); - inline void set_has_stepsize(); - inline void clear_has_stepsize(); - inline void set_has_clip_gradients(); - inline void clear_has_clip_gradients(); - inline void set_has_snapshot(); - inline void clear_has_snapshot(); - inline void set_has_snapshot_prefix(); - inline void clear_has_snapshot_prefix(); - inline void set_has_snapshot_diff(); - inline void clear_has_snapshot_diff(); - inline void set_has_snapshot_format(); - inline void clear_has_snapshot_format(); - inline void set_has_solver_mode(); - inline void clear_has_solver_mode(); - inline void set_has_device_id(); - inline void clear_has_device_id(); - inline void set_has_random_seed(); - inline void clear_has_random_seed(); - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_delta(); - inline void clear_has_delta(); - inline void set_has_momentum2(); - inline void clear_has_momentum2(); - inline void set_has_rms_decay(); - inline void clear_has_rms_decay(); - inline void set_has_debug_info(); - inline void clear_has_debug_info(); - inline void set_has_snapshot_after_train(); - inline void clear_has_snapshot_after_train(); - inline void set_has_solver_type(); - inline void clear_has_solver_type(); + void set_has_net(); + void clear_has_net(); + void set_has_net_param(); + void clear_has_net_param(); + void set_has_train_net(); + void clear_has_train_net(); + void set_has_train_net_param(); + void clear_has_train_net_param(); + void set_has_train_state(); + void clear_has_train_state(); + void set_has_test_interval(); + void clear_has_test_interval(); + void set_has_test_compute_loss(); + void clear_has_test_compute_loss(); + void set_has_test_initialization(); + void clear_has_test_initialization(); + void set_has_base_lr(); + void clear_has_base_lr(); + void set_has_display(); + void clear_has_display(); + void set_has_average_loss(); + void clear_has_average_loss(); + void set_has_max_iter(); + void clear_has_max_iter(); + void set_has_iter_size(); + void clear_has_iter_size(); + void set_has_lr_policy(); + void clear_has_lr_policy(); + void set_has_gamma(); + void clear_has_gamma(); + void set_has_power(); + void clear_has_power(); + void set_has_momentum(); + void clear_has_momentum(); + void set_has_weight_decay(); + void clear_has_weight_decay(); + void set_has_regularization_type(); + void clear_has_regularization_type(); + void set_has_stepsize(); + void clear_has_stepsize(); + void set_has_clip_gradients(); + void clear_has_clip_gradients(); + void set_has_snapshot(); + void clear_has_snapshot(); + void set_has_snapshot_prefix(); + void clear_has_snapshot_prefix(); + void set_has_snapshot_diff(); + void clear_has_snapshot_diff(); + void set_has_snapshot_format(); + void clear_has_snapshot_format(); + void set_has_solver_mode(); + void clear_has_solver_mode(); + void set_has_device_id(); + void clear_has_device_id(); + void set_has_random_seed(); + void clear_has_random_seed(); + void set_has_type(); + void clear_has_type(); + void set_has_delta(); + void clear_has_delta(); + void set_has_momentum2(); + void clear_has_momentum2(); + void set_has_rms_decay(); + void clear_has_rms_decay(); + void set_has_debug_info(); + void clear_has_debug_info(); + void set_has_snapshot_after_train(); + void clear_has_snapshot_after_train(); + void set_has_solver_type(); + void clear_has_solver_type(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<2> _has_bits_; ::google::protobuf::RepeatedPtrField< ::std::string> test_net_; + ::google::protobuf::RepeatedField< ::google::protobuf::int32 > test_iter_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetParameter > test_net_param_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetState > test_state_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > test_iter_; ::google::protobuf::RepeatedField< ::google::protobuf::int32 > stepvalue_; - ::google::protobuf::internal::ArenaStringPtr net_; ::google::protobuf::internal::ArenaStringPtr train_net_; ::google::protobuf::internal::ArenaStringPtr lr_policy_; - static ::std::string* _default_regularization_type_; - ::google::protobuf::internal::ArenaStringPtr regularization_type_; ::google::protobuf::internal::ArenaStringPtr snapshot_prefix_; - static ::std::string* _default_type_; + ::google::protobuf::internal::ArenaStringPtr net_; + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_regularization_type_; + ::google::protobuf::internal::ArenaStringPtr regularization_type_; + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_type_; ::google::protobuf::internal::ArenaStringPtr type_; - ::opencv_caffe::NetParameter* net_param_; ::opencv_caffe::NetParameter* train_net_param_; + ::opencv_caffe::NetParameter* net_param_; ::opencv_caffe::NetState* train_state_; ::google::protobuf::int32 test_interval_; float base_lr_; @@ -3010,33 +3556,27 @@ class SolverParameter : public ::google::protobuf::Message /* @@protoc_insertion float momentum_; float weight_decay_; ::google::protobuf::int32 stepsize_; + ::google::protobuf::int32 snapshot_; + ::google::protobuf::int32 device_id_; bool test_compute_loss_; bool snapshot_diff_; bool debug_info_; - ::google::protobuf::int32 snapshot_; - ::google::protobuf::int32 device_id_; int solver_type_; - float rms_decay_; - ::google::protobuf::int32 average_loss_; - ::google::protobuf::int32 iter_size_; + float momentum2_; + ::google::protobuf::int64 random_seed_; + int solver_mode_; bool test_initialization_; bool snapshot_after_train_; - float clip_gradients_; - int snapshot_format_; - int solver_mode_; - ::google::protobuf::int64 random_seed_; float delta_; - float momentum2_; + ::google::protobuf::int32 average_loss_; + float clip_gradients_; + ::google::protobuf::int32 iter_size_; + int snapshot_format_; + float rms_decay_; mutable int _cached_size_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed SolverParameter_default_instance_; - // ------------------------------------------------------------------- class SolverState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.SolverState) */ { @@ -3050,11 +3590,24 @@ class SolverState : public ::google::protobuf::Message /* @@protoc_insertion_poi CopyFrom(from); return *this; } + #if LANG_CXX11 + SolverState(SolverState&& from) noexcept + : SolverState() { + *this = ::std::move(from); + } + inline SolverState& operator=(SolverState&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -3062,73 +3615,59 @@ class SolverState : public ::google::protobuf::Message /* @@protoc_insertion_poi static const ::google::protobuf::Descriptor* descriptor(); static const SolverState& default_instance(); - static const SolverState* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SolverState* internal_default_instance() { + return reinterpret_cast( + &_SolverState_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 11; void Swap(SolverState* other); + friend void swap(SolverState& a, SolverState& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SolverState* New() const { return New(NULL); } + inline SolverState* New() const PROTOBUF_FINAL { return New(NULL); } - SolverState* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SolverState* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SolverState& from); void MergeFrom(const SolverState& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SolverState* other); - void UnsafeMergeFrom(const SolverState& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int32 iter = 1; - bool has_iter() const; - void clear_iter(); - static const int kIterFieldNumber = 1; - ::google::protobuf::int32 iter() const; - void set_iter(::google::protobuf::int32 value); - - // optional string learned_net = 2; - bool has_learned_net() const; - void clear_learned_net(); - static const int kLearnedNetFieldNumber = 2; - const ::std::string& learned_net() const; - void set_learned_net(const ::std::string& value); - void set_learned_net(const char* value); - void set_learned_net(const char* value, size_t size); - ::std::string* mutable_learned_net(); - ::std::string* release_learned_net(); - void set_allocated_learned_net(::std::string* learned_net); - // repeated .opencv_caffe.BlobProto history = 3; int history_size() const; void clear_history(); @@ -3141,6 +3680,28 @@ class SolverState : public ::google::protobuf::Message /* @@protoc_insertion_poi const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >& history() const; + // optional string learned_net = 2; + bool has_learned_net() const; + void clear_learned_net(); + static const int kLearnedNetFieldNumber = 2; + const ::std::string& learned_net() const; + void set_learned_net(const ::std::string& value); + #if LANG_CXX11 + void set_learned_net(::std::string&& value); + #endif + void set_learned_net(const char* value); + void set_learned_net(const char* value, size_t size); + ::std::string* mutable_learned_net(); + ::std::string* release_learned_net(); + void set_allocated_learned_net(::std::string* learned_net); + + // optional int32 iter = 1; + bool has_iter() const; + void clear_iter(); + static const int kIterFieldNumber = 1; + ::google::protobuf::int32 iter() const; + void set_iter(::google::protobuf::int32 value); + // optional int32 current_step = 4 [default = 0]; bool has_current_step() const; void clear_current_step(); @@ -3150,12 +3711,12 @@ class SolverState : public ::google::protobuf::Message /* @@protoc_insertion_poi // @@protoc_insertion_point(class_scope:opencv_caffe.SolverState) private: - inline void set_has_iter(); - inline void clear_has_iter(); - inline void set_has_learned_net(); - inline void clear_has_learned_net(); - inline void set_has_current_step(); - inline void clear_has_current_step(); + void set_has_iter(); + void clear_has_iter(); + void set_has_learned_net(); + void clear_has_learned_net(); + void set_has_current_step(); + void clear_has_current_step(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -3164,15 +3725,9 @@ class SolverState : public ::google::protobuf::Message /* @@protoc_insertion_poi ::google::protobuf::internal::ArenaStringPtr learned_net_; ::google::protobuf::int32 iter_; ::google::protobuf::int32 current_step_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverStateImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed SolverState_default_instance_; - // ------------------------------------------------------------------- class NetState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.NetState) */ { @@ -3186,11 +3741,24 @@ class NetState : public ::google::protobuf::Message /* @@protoc_insertion_point( CopyFrom(from); return *this; } + #if LANG_CXX11 + NetState(NetState&& from) noexcept + : NetState() { + *this = ::std::move(from); + } + inline NetState& operator=(NetState&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -3198,68 +3766,59 @@ class NetState : public ::google::protobuf::Message /* @@protoc_insertion_point( static const ::google::protobuf::Descriptor* descriptor(); static const NetState& default_instance(); - static const NetState* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NetState* internal_default_instance() { + return reinterpret_cast( + &_NetState_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 12; void Swap(NetState* other); + friend void swap(NetState& a, NetState& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline NetState* New() const { return New(NULL); } + inline NetState* New() const PROTOBUF_FINAL { return New(NULL); } - NetState* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + NetState* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const NetState& from); void MergeFrom(const NetState& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(NetState* other); - void UnsafeMergeFrom(const NetState& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .opencv_caffe.Phase phase = 1 [default = TEST]; - bool has_phase() const; - void clear_phase(); - static const int kPhaseFieldNumber = 1; - ::opencv_caffe::Phase phase() const; - void set_phase(::opencv_caffe::Phase value); - - // optional int32 level = 2 [default = 0]; - bool has_level() const; - void clear_level(); - static const int kLevelFieldNumber = 2; - ::google::protobuf::int32 level() const; - void set_level(::google::protobuf::int32 value); - // repeated string stage = 3; int stage_size() const; void clear_stage(); @@ -3267,21 +3826,41 @@ class NetState : public ::google::protobuf::Message /* @@protoc_insertion_point( const ::std::string& stage(int index) const; ::std::string* mutable_stage(int index); void set_stage(int index, const ::std::string& value); + #if LANG_CXX11 + void set_stage(int index, ::std::string&& value); + #endif void set_stage(int index, const char* value); void set_stage(int index, const char* value, size_t size); ::std::string* add_stage(); void add_stage(const ::std::string& value); + #if LANG_CXX11 + void add_stage(::std::string&& value); + #endif void add_stage(const char* value); void add_stage(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& stage() const; ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_stage(); + // optional int32 level = 2 [default = 0]; + bool has_level() const; + void clear_level(); + static const int kLevelFieldNumber = 2; + ::google::protobuf::int32 level() const; + void set_level(::google::protobuf::int32 value); + + // optional .opencv_caffe.Phase phase = 1 [default = TEST]; + bool has_phase() const; + void clear_phase(); + static const int kPhaseFieldNumber = 1; + ::opencv_caffe::Phase phase() const; + void set_phase(::opencv_caffe::Phase value); + // @@protoc_insertion_point(class_scope:opencv_caffe.NetState) private: - inline void set_has_phase(); - inline void clear_has_phase(); - inline void set_has_level(); - inline void clear_has_level(); + void set_has_phase(); + void clear_has_phase(); + void set_has_level(); + void clear_has_level(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -3289,15 +3868,9 @@ class NetState : public ::google::protobuf::Message /* @@protoc_insertion_point( ::google::protobuf::RepeatedPtrField< ::std::string> stage_; ::google::protobuf::int32 level_; int phase_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed NetState_default_instance_; - // ------------------------------------------------------------------- class NetStateRule : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.NetStateRule) */ { @@ -3311,11 +3884,24 @@ class NetStateRule : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + NetStateRule(NetStateRule&& from) noexcept + : NetStateRule() { + *this = ::std::move(from); + } + inline NetStateRule& operator=(NetStateRule&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -3323,54 +3909,103 @@ class NetStateRule : public ::google::protobuf::Message /* @@protoc_insertion_po static const ::google::protobuf::Descriptor* descriptor(); static const NetStateRule& default_instance(); - static const NetStateRule* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NetStateRule* internal_default_instance() { + return reinterpret_cast( + &_NetStateRule_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 13; void Swap(NetStateRule* other); + friend void swap(NetStateRule& a, NetStateRule& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline NetStateRule* New() const { return New(NULL); } + inline NetStateRule* New() const PROTOBUF_FINAL { return New(NULL); } - NetStateRule* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + NetStateRule* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const NetStateRule& from); void MergeFrom(const NetStateRule& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(NetStateRule* other); - void UnsafeMergeFrom(const NetStateRule& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // repeated string stage = 4; + int stage_size() const; + void clear_stage(); + static const int kStageFieldNumber = 4; + const ::std::string& stage(int index) const; + ::std::string* mutable_stage(int index); + void set_stage(int index, const ::std::string& value); + #if LANG_CXX11 + void set_stage(int index, ::std::string&& value); + #endif + void set_stage(int index, const char* value); + void set_stage(int index, const char* value, size_t size); + ::std::string* add_stage(); + void add_stage(const ::std::string& value); + #if LANG_CXX11 + void add_stage(::std::string&& value); + #endif + void add_stage(const char* value); + void add_stage(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& stage() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_stage(); + + // repeated string not_stage = 5; + int not_stage_size() const; + void clear_not_stage(); + static const int kNotStageFieldNumber = 5; + const ::std::string& not_stage(int index) const; + ::std::string* mutable_not_stage(int index); + void set_not_stage(int index, const ::std::string& value); + #if LANG_CXX11 + void set_not_stage(int index, ::std::string&& value); + #endif + void set_not_stage(int index, const char* value); + void set_not_stage(int index, const char* value, size_t size); + ::std::string* add_not_stage(); + void add_not_stage(const ::std::string& value); + #if LANG_CXX11 + void add_not_stage(::std::string&& value); + #endif + void add_not_stage(const char* value); + void add_not_stage(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& not_stage() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_not_stage(); + // optional .opencv_caffe.Phase phase = 1; bool has_phase() const; void clear_phase(); @@ -3392,46 +4027,14 @@ class NetStateRule : public ::google::protobuf::Message /* @@protoc_insertion_po ::google::protobuf::int32 max_level() const; void set_max_level(::google::protobuf::int32 value); - // repeated string stage = 4; - int stage_size() const; - void clear_stage(); - static const int kStageFieldNumber = 4; - const ::std::string& stage(int index) const; - ::std::string* mutable_stage(int index); - void set_stage(int index, const ::std::string& value); - void set_stage(int index, const char* value); - void set_stage(int index, const char* value, size_t size); - ::std::string* add_stage(); - void add_stage(const ::std::string& value); - void add_stage(const char* value); - void add_stage(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& stage() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_stage(); - - // repeated string not_stage = 5; - int not_stage_size() const; - void clear_not_stage(); - static const int kNotStageFieldNumber = 5; - const ::std::string& not_stage(int index) const; - ::std::string* mutable_not_stage(int index); - void set_not_stage(int index, const ::std::string& value); - void set_not_stage(int index, const char* value); - void set_not_stage(int index, const char* value, size_t size); - ::std::string* add_not_stage(); - void add_not_stage(const ::std::string& value); - void add_not_stage(const char* value); - void add_not_stage(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& not_stage() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_not_stage(); - // @@protoc_insertion_point(class_scope:opencv_caffe.NetStateRule) private: - inline void set_has_phase(); - inline void clear_has_phase(); - inline void set_has_min_level(); - inline void clear_has_min_level(); - inline void set_has_max_level(); - inline void clear_has_max_level(); + void set_has_phase(); + void clear_has_phase(); + void set_has_min_level(); + void clear_has_min_level(); + void set_has_max_level(); + void clear_has_max_level(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -3441,15 +4044,9 @@ class NetStateRule : public ::google::protobuf::Message /* @@protoc_insertion_po int phase_; ::google::protobuf::int32 min_level_; ::google::protobuf::int32 max_level_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateRuleImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed NetStateRule_default_instance_; - // ------------------------------------------------------------------- class ParamSpec : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ParamSpec) */ { @@ -3463,11 +4060,24 @@ class ParamSpec : public ::google::protobuf::Message /* @@protoc_insertion_point CopyFrom(from); return *this; } + #if LANG_CXX11 + ParamSpec(ParamSpec&& from) noexcept + : ParamSpec() { + *this = ::std::move(from); + } + inline ParamSpec& operator=(ParamSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -3475,49 +4085,54 @@ class ParamSpec : public ::google::protobuf::Message /* @@protoc_insertion_point static const ::google::protobuf::Descriptor* descriptor(); static const ParamSpec& default_instance(); - static const ParamSpec* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParamSpec* internal_default_instance() { + return reinterpret_cast( + &_ParamSpec_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 14; void Swap(ParamSpec* other); + friend void swap(ParamSpec& a, ParamSpec& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ParamSpec* New() const { return New(NULL); } + inline ParamSpec* New() const PROTOBUF_FINAL { return New(NULL); } - ParamSpec* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ParamSpec* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ParamSpec& from); void MergeFrom(const ParamSpec& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ParamSpec* other); - void UnsafeMergeFrom(const ParamSpec& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -3555,6 +4170,9 @@ class ParamSpec : public ::google::protobuf::Message /* @@protoc_insertion_point static const int kNameFieldNumber = 1; const ::std::string& name() const; void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif void set_name(const char* value); void set_name(const char* value, size_t size); ::std::string* mutable_name(); @@ -3584,14 +4202,14 @@ class ParamSpec : public ::google::protobuf::Message /* @@protoc_insertion_point // @@protoc_insertion_point(class_scope:opencv_caffe.ParamSpec) private: - inline void set_has_name(); - inline void clear_has_name(); - inline void set_has_share_mode(); - inline void clear_has_share_mode(); - inline void set_has_lr_mult(); - inline void clear_has_lr_mult(); - inline void set_has_decay_mult(); - inline void clear_has_decay_mult(); + void set_has_name(); + void clear_has_name(); + void set_has_share_mode(); + void clear_has_share_mode(); + void set_has_lr_mult(); + void clear_has_lr_mult(); + void set_has_decay_mult(); + void clear_has_decay_mult(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -3600,15 +4218,9 @@ class ParamSpec : public ::google::protobuf::Message /* @@protoc_insertion_point int share_mode_; float lr_mult_; float decay_mult_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParamSpecImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ParamSpec_default_instance_; - // ------------------------------------------------------------------- class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.LayerParameter) */ { @@ -3622,11 +4234,24 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + LayerParameter(LayerParameter&& from) noexcept + : LayerParameter() { + *this = ::std::move(from); + } + inline LayerParameter& operator=(LayerParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -3634,78 +4259,59 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ static const ::google::protobuf::Descriptor* descriptor(); static const LayerParameter& default_instance(); - static const LayerParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LayerParameter* internal_default_instance() { + return reinterpret_cast( + &_LayerParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 15; void Swap(LayerParameter* other); + friend void swap(LayerParameter& a, LayerParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline LayerParameter* New() const { return New(NULL); } + inline LayerParameter* New() const PROTOBUF_FINAL { return New(NULL); } - LayerParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + LayerParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const LayerParameter& from); void MergeFrom(const LayerParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(LayerParameter* other); - void UnsafeMergeFrom(const LayerParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string name = 1; - bool has_name() const; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // optional string type = 2; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::std::string& type() const; - void set_type(const ::std::string& value); - void set_type(const char* value); - void set_type(const char* value, size_t size); - ::std::string* mutable_type(); - ::std::string* release_type(); - void set_allocated_type(::std::string* type); - // repeated string bottom = 3; int bottom_size() const; void clear_bottom(); @@ -3713,10 +4319,16 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ const ::std::string& bottom(int index) const; ::std::string* mutable_bottom(int index); void set_bottom(int index, const ::std::string& value); + #if LANG_CXX11 + void set_bottom(int index, ::std::string&& value); + #endif void set_bottom(int index, const char* value); void set_bottom(int index, const char* value, size_t size); ::std::string* add_bottom(); void add_bottom(const ::std::string& value); + #if LANG_CXX11 + void add_bottom(::std::string&& value); + #endif void add_bottom(const char* value); void add_bottom(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& bottom() const; @@ -3729,22 +4341,21 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ const ::std::string& top(int index) const; ::std::string* mutable_top(int index); void set_top(int index, const ::std::string& value); + #if LANG_CXX11 + void set_top(int index, ::std::string&& value); + #endif void set_top(int index, const char* value); void set_top(int index, const char* value, size_t size); ::std::string* add_top(); void add_top(const ::std::string& value); + #if LANG_CXX11 + void add_top(::std::string&& value); + #endif void add_top(const char* value); void add_top(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& top() const; ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_top(); - // optional .opencv_caffe.Phase phase = 10; - bool has_phase() const; - void clear_phase(); - static const int kPhaseFieldNumber = 10; - ::opencv_caffe::Phase phase() const; - void set_phase(::opencv_caffe::Phase value); - // repeated float loss_weight = 5; int loss_weight_size() const; void clear_loss_weight(); @@ -3781,18 +4392,6 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >& blobs() const; - // repeated bool propagate_down = 11; - int propagate_down_size() const; - void clear_propagate_down(); - static const int kPropagateDownFieldNumber = 11; - bool propagate_down(int index) const; - void set_propagate_down(int index, bool value); - void add_propagate_down(bool value); - const ::google::protobuf::RepeatedField< bool >& - propagate_down() const; - ::google::protobuf::RepeatedField< bool >* - mutable_propagate_down(); - // repeated .opencv_caffe.NetStateRule include = 8; int include_size() const; void clear_include(); @@ -3817,13 +4416,55 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >& exclude() const; + // repeated bool propagate_down = 11; + int propagate_down_size() const; + void clear_propagate_down(); + static const int kPropagateDownFieldNumber = 11; + bool propagate_down(int index) const; + void set_propagate_down(int index, bool value); + void add_propagate_down(bool value); + const ::google::protobuf::RepeatedField< bool >& + propagate_down() const; + ::google::protobuf::RepeatedField< bool >* + mutable_propagate_down(); + + // optional string name = 1; + bool has_name() const; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // optional string type = 2; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 2; + const ::std::string& type() const; + void set_type(const ::std::string& value); + #if LANG_CXX11 + void set_type(::std::string&& value); + #endif + void set_type(const char* value); + void set_type(const char* value, size_t size); + ::std::string* mutable_type(); + ::std::string* release_type(); + void set_allocated_type(::std::string* type); + // optional .opencv_caffe.TransformationParameter transform_param = 100; bool has_transform_param() const; void clear_transform_param(); static const int kTransformParamFieldNumber = 100; const ::opencv_caffe::TransformationParameter& transform_param() const; - ::opencv_caffe::TransformationParameter* mutable_transform_param(); ::opencv_caffe::TransformationParameter* release_transform_param(); + ::opencv_caffe::TransformationParameter* mutable_transform_param(); void set_allocated_transform_param(::opencv_caffe::TransformationParameter* transform_param); // optional .opencv_caffe.LossParameter loss_param = 101; @@ -3831,8 +4472,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_loss_param(); static const int kLossParamFieldNumber = 101; const ::opencv_caffe::LossParameter& loss_param() const; - ::opencv_caffe::LossParameter* mutable_loss_param(); ::opencv_caffe::LossParameter* release_loss_param(); + ::opencv_caffe::LossParameter* mutable_loss_param(); void set_allocated_loss_param(::opencv_caffe::LossParameter* loss_param); // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; @@ -3840,8 +4481,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_accuracy_param(); static const int kAccuracyParamFieldNumber = 102; const ::opencv_caffe::AccuracyParameter& accuracy_param() const; - ::opencv_caffe::AccuracyParameter* mutable_accuracy_param(); ::opencv_caffe::AccuracyParameter* release_accuracy_param(); + ::opencv_caffe::AccuracyParameter* mutable_accuracy_param(); void set_allocated_accuracy_param(::opencv_caffe::AccuracyParameter* accuracy_param); // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; @@ -3849,35 +4490,17 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_argmax_param(); static const int kArgmaxParamFieldNumber = 103; const ::opencv_caffe::ArgMaxParameter& argmax_param() const; - ::opencv_caffe::ArgMaxParameter* mutable_argmax_param(); ::opencv_caffe::ArgMaxParameter* release_argmax_param(); + ::opencv_caffe::ArgMaxParameter* mutable_argmax_param(); void set_allocated_argmax_param(::opencv_caffe::ArgMaxParameter* argmax_param); - // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; - bool has_batch_norm_param() const; - void clear_batch_norm_param(); - static const int kBatchNormParamFieldNumber = 139; - const ::opencv_caffe::BatchNormParameter& batch_norm_param() const; - ::opencv_caffe::BatchNormParameter* mutable_batch_norm_param(); - ::opencv_caffe::BatchNormParameter* release_batch_norm_param(); - void set_allocated_batch_norm_param(::opencv_caffe::BatchNormParameter* batch_norm_param); - - // optional .opencv_caffe.BiasParameter bias_param = 141; - bool has_bias_param() const; - void clear_bias_param(); - static const int kBiasParamFieldNumber = 141; - const ::opencv_caffe::BiasParameter& bias_param() const; - ::opencv_caffe::BiasParameter* mutable_bias_param(); - ::opencv_caffe::BiasParameter* release_bias_param(); - void set_allocated_bias_param(::opencv_caffe::BiasParameter* bias_param); - // optional .opencv_caffe.ConcatParameter concat_param = 104; bool has_concat_param() const; void clear_concat_param(); static const int kConcatParamFieldNumber = 104; const ::opencv_caffe::ConcatParameter& concat_param() const; - ::opencv_caffe::ConcatParameter* mutable_concat_param(); ::opencv_caffe::ConcatParameter* release_concat_param(); + ::opencv_caffe::ConcatParameter* mutable_concat_param(); void set_allocated_concat_param(::opencv_caffe::ConcatParameter* concat_param); // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; @@ -3885,8 +4508,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_contrastive_loss_param(); static const int kContrastiveLossParamFieldNumber = 105; const ::opencv_caffe::ContrastiveLossParameter& contrastive_loss_param() const; - ::opencv_caffe::ContrastiveLossParameter* mutable_contrastive_loss_param(); ::opencv_caffe::ContrastiveLossParameter* release_contrastive_loss_param(); + ::opencv_caffe::ContrastiveLossParameter* mutable_contrastive_loss_param(); void set_allocated_contrastive_loss_param(::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param); // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; @@ -3894,44 +4517,26 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_convolution_param(); static const int kConvolutionParamFieldNumber = 106; const ::opencv_caffe::ConvolutionParameter& convolution_param() const; - ::opencv_caffe::ConvolutionParameter* mutable_convolution_param(); ::opencv_caffe::ConvolutionParameter* release_convolution_param(); + ::opencv_caffe::ConvolutionParameter* mutable_convolution_param(); void set_allocated_convolution_param(::opencv_caffe::ConvolutionParameter* convolution_param); - // optional .opencv_caffe.CropParameter crop_param = 144; - bool has_crop_param() const; - void clear_crop_param(); - static const int kCropParamFieldNumber = 144; - const ::opencv_caffe::CropParameter& crop_param() const; - ::opencv_caffe::CropParameter* mutable_crop_param(); - ::opencv_caffe::CropParameter* release_crop_param(); - void set_allocated_crop_param(::opencv_caffe::CropParameter* crop_param); - // optional .opencv_caffe.DataParameter data_param = 107; bool has_data_param() const; void clear_data_param(); static const int kDataParamFieldNumber = 107; const ::opencv_caffe::DataParameter& data_param() const; - ::opencv_caffe::DataParameter* mutable_data_param(); ::opencv_caffe::DataParameter* release_data_param(); + ::opencv_caffe::DataParameter* mutable_data_param(); void set_allocated_data_param(::opencv_caffe::DataParameter* data_param); - // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; - bool has_detection_output_param() const; - void clear_detection_output_param(); - static const int kDetectionOutputParamFieldNumber = 147; - const ::opencv_caffe::DetectionOutputParameter& detection_output_param() const; - ::opencv_caffe::DetectionOutputParameter* mutable_detection_output_param(); - ::opencv_caffe::DetectionOutputParameter* release_detection_output_param(); - void set_allocated_detection_output_param(::opencv_caffe::DetectionOutputParameter* detection_output_param); - // optional .opencv_caffe.DropoutParameter dropout_param = 108; bool has_dropout_param() const; void clear_dropout_param(); static const int kDropoutParamFieldNumber = 108; const ::opencv_caffe::DropoutParameter& dropout_param() const; - ::opencv_caffe::DropoutParameter* mutable_dropout_param(); ::opencv_caffe::DropoutParameter* release_dropout_param(); + ::opencv_caffe::DropoutParameter* mutable_dropout_param(); void set_allocated_dropout_param(::opencv_caffe::DropoutParameter* dropout_param); // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; @@ -3939,8 +4544,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_dummy_data_param(); static const int kDummyDataParamFieldNumber = 109; const ::opencv_caffe::DummyDataParameter& dummy_data_param() const; - ::opencv_caffe::DummyDataParameter* mutable_dummy_data_param(); ::opencv_caffe::DummyDataParameter* release_dummy_data_param(); + ::opencv_caffe::DummyDataParameter* mutable_dummy_data_param(); void set_allocated_dummy_data_param(::opencv_caffe::DummyDataParameter* dummy_data_param); // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; @@ -3948,53 +4553,26 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_eltwise_param(); static const int kEltwiseParamFieldNumber = 110; const ::opencv_caffe::EltwiseParameter& eltwise_param() const; - ::opencv_caffe::EltwiseParameter* mutable_eltwise_param(); ::opencv_caffe::EltwiseParameter* release_eltwise_param(); + ::opencv_caffe::EltwiseParameter* mutable_eltwise_param(); void set_allocated_eltwise_param(::opencv_caffe::EltwiseParameter* eltwise_param); - // optional .opencv_caffe.ELUParameter elu_param = 140; - bool has_elu_param() const; - void clear_elu_param(); - static const int kEluParamFieldNumber = 140; - const ::opencv_caffe::ELUParameter& elu_param() const; - ::opencv_caffe::ELUParameter* mutable_elu_param(); - ::opencv_caffe::ELUParameter* release_elu_param(); - void set_allocated_elu_param(::opencv_caffe::ELUParameter* elu_param); - - // optional .opencv_caffe.EmbedParameter embed_param = 137; - bool has_embed_param() const; - void clear_embed_param(); - static const int kEmbedParamFieldNumber = 137; - const ::opencv_caffe::EmbedParameter& embed_param() const; - ::opencv_caffe::EmbedParameter* mutable_embed_param(); - ::opencv_caffe::EmbedParameter* release_embed_param(); - void set_allocated_embed_param(::opencv_caffe::EmbedParameter* embed_param); - // optional .opencv_caffe.ExpParameter exp_param = 111; bool has_exp_param() const; void clear_exp_param(); static const int kExpParamFieldNumber = 111; const ::opencv_caffe::ExpParameter& exp_param() const; - ::opencv_caffe::ExpParameter* mutable_exp_param(); ::opencv_caffe::ExpParameter* release_exp_param(); + ::opencv_caffe::ExpParameter* mutable_exp_param(); void set_allocated_exp_param(::opencv_caffe::ExpParameter* exp_param); - // optional .opencv_caffe.FlattenParameter flatten_param = 135; - bool has_flatten_param() const; - void clear_flatten_param(); - static const int kFlattenParamFieldNumber = 135; - const ::opencv_caffe::FlattenParameter& flatten_param() const; - ::opencv_caffe::FlattenParameter* mutable_flatten_param(); - ::opencv_caffe::FlattenParameter* release_flatten_param(); - void set_allocated_flatten_param(::opencv_caffe::FlattenParameter* flatten_param); - // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; bool has_hdf5_data_param() const; void clear_hdf5_data_param(); static const int kHdf5DataParamFieldNumber = 112; const ::opencv_caffe::HDF5DataParameter& hdf5_data_param() const; - ::opencv_caffe::HDF5DataParameter* mutable_hdf5_data_param(); ::opencv_caffe::HDF5DataParameter* release_hdf5_data_param(); + ::opencv_caffe::HDF5DataParameter* mutable_hdf5_data_param(); void set_allocated_hdf5_data_param(::opencv_caffe::HDF5DataParameter* hdf5_data_param); // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; @@ -4002,8 +4580,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_hdf5_output_param(); static const int kHdf5OutputParamFieldNumber = 113; const ::opencv_caffe::HDF5OutputParameter& hdf5_output_param() const; - ::opencv_caffe::HDF5OutputParameter* mutable_hdf5_output_param(); ::opencv_caffe::HDF5OutputParameter* release_hdf5_output_param(); + ::opencv_caffe::HDF5OutputParameter* mutable_hdf5_output_param(); void set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param); // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; @@ -4011,8 +4589,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_hinge_loss_param(); static const int kHingeLossParamFieldNumber = 114; const ::opencv_caffe::HingeLossParameter& hinge_loss_param() const; - ::opencv_caffe::HingeLossParameter* mutable_hinge_loss_param(); ::opencv_caffe::HingeLossParameter* release_hinge_loss_param(); + ::opencv_caffe::HingeLossParameter* mutable_hinge_loss_param(); void set_allocated_hinge_loss_param(::opencv_caffe::HingeLossParameter* hinge_loss_param); // optional .opencv_caffe.ImageDataParameter image_data_param = 115; @@ -4020,8 +4598,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_image_data_param(); static const int kImageDataParamFieldNumber = 115; const ::opencv_caffe::ImageDataParameter& image_data_param() const; - ::opencv_caffe::ImageDataParameter* mutable_image_data_param(); ::opencv_caffe::ImageDataParameter* release_image_data_param(); + ::opencv_caffe::ImageDataParameter* mutable_image_data_param(); void set_allocated_image_data_param(::opencv_caffe::ImageDataParameter* image_data_param); // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; @@ -4029,8 +4607,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_infogain_loss_param(); static const int kInfogainLossParamFieldNumber = 116; const ::opencv_caffe::InfogainLossParameter& infogain_loss_param() const; - ::opencv_caffe::InfogainLossParameter* mutable_infogain_loss_param(); ::opencv_caffe::InfogainLossParameter* release_infogain_loss_param(); + ::opencv_caffe::InfogainLossParameter* mutable_infogain_loss_param(); void set_allocated_infogain_loss_param(::opencv_caffe::InfogainLossParameter* infogain_loss_param); // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; @@ -4038,35 +4616,17 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_inner_product_param(); static const int kInnerProductParamFieldNumber = 117; const ::opencv_caffe::InnerProductParameter& inner_product_param() const; - ::opencv_caffe::InnerProductParameter* mutable_inner_product_param(); ::opencv_caffe::InnerProductParameter* release_inner_product_param(); + ::opencv_caffe::InnerProductParameter* mutable_inner_product_param(); void set_allocated_inner_product_param(::opencv_caffe::InnerProductParameter* inner_product_param); - // optional .opencv_caffe.InputParameter input_param = 143; - bool has_input_param() const; - void clear_input_param(); - static const int kInputParamFieldNumber = 143; - const ::opencv_caffe::InputParameter& input_param() const; - ::opencv_caffe::InputParameter* mutable_input_param(); - ::opencv_caffe::InputParameter* release_input_param(); - void set_allocated_input_param(::opencv_caffe::InputParameter* input_param); - - // optional .opencv_caffe.LogParameter log_param = 134; - bool has_log_param() const; - void clear_log_param(); - static const int kLogParamFieldNumber = 134; - const ::opencv_caffe::LogParameter& log_param() const; - ::opencv_caffe::LogParameter* mutable_log_param(); - ::opencv_caffe::LogParameter* release_log_param(); - void set_allocated_log_param(::opencv_caffe::LogParameter* log_param); - // optional .opencv_caffe.LRNParameter lrn_param = 118; bool has_lrn_param() const; void clear_lrn_param(); static const int kLrnParamFieldNumber = 118; const ::opencv_caffe::LRNParameter& lrn_param() const; - ::opencv_caffe::LRNParameter* mutable_lrn_param(); ::opencv_caffe::LRNParameter* release_lrn_param(); + ::opencv_caffe::LRNParameter* mutable_lrn_param(); void set_allocated_lrn_param(::opencv_caffe::LRNParameter* lrn_param); // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; @@ -4074,8 +4634,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_memory_data_param(); static const int kMemoryDataParamFieldNumber = 119; const ::opencv_caffe::MemoryDataParameter& memory_data_param() const; - ::opencv_caffe::MemoryDataParameter* mutable_memory_data_param(); ::opencv_caffe::MemoryDataParameter* release_memory_data_param(); + ::opencv_caffe::MemoryDataParameter* mutable_memory_data_param(); void set_allocated_memory_data_param(::opencv_caffe::MemoryDataParameter* memory_data_param); // optional .opencv_caffe.MVNParameter mvn_param = 120; @@ -4083,44 +4643,17 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_mvn_param(); static const int kMvnParamFieldNumber = 120; const ::opencv_caffe::MVNParameter& mvn_param() const; - ::opencv_caffe::MVNParameter* mutable_mvn_param(); ::opencv_caffe::MVNParameter* release_mvn_param(); + ::opencv_caffe::MVNParameter* mutable_mvn_param(); void set_allocated_mvn_param(::opencv_caffe::MVNParameter* mvn_param); - // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; - bool has_norm_param() const; - void clear_norm_param(); - static const int kNormParamFieldNumber = 149; - const ::opencv_caffe::NormalizeBBoxParameter& norm_param() const; - ::opencv_caffe::NormalizeBBoxParameter* mutable_norm_param(); - ::opencv_caffe::NormalizeBBoxParameter* release_norm_param(); - void set_allocated_norm_param(::opencv_caffe::NormalizeBBoxParameter* norm_param); - - // optional .opencv_caffe.PermuteParameter permute_param = 148; - bool has_permute_param() const; - void clear_permute_param(); - static const int kPermuteParamFieldNumber = 148; - const ::opencv_caffe::PermuteParameter& permute_param() const; - ::opencv_caffe::PermuteParameter* mutable_permute_param(); - ::opencv_caffe::PermuteParameter* release_permute_param(); - void set_allocated_permute_param(::opencv_caffe::PermuteParameter* permute_param); - - // optional .opencv_caffe.ParameterParameter parameter_param = 145; - bool has_parameter_param() const; - void clear_parameter_param(); - static const int kParameterParamFieldNumber = 145; - const ::opencv_caffe::ParameterParameter& parameter_param() const; - ::opencv_caffe::ParameterParameter* mutable_parameter_param(); - ::opencv_caffe::ParameterParameter* release_parameter_param(); - void set_allocated_parameter_param(::opencv_caffe::ParameterParameter* parameter_param); - // optional .opencv_caffe.PoolingParameter pooling_param = 121; bool has_pooling_param() const; void clear_pooling_param(); static const int kPoolingParamFieldNumber = 121; const ::opencv_caffe::PoolingParameter& pooling_param() const; - ::opencv_caffe::PoolingParameter* mutable_pooling_param(); ::opencv_caffe::PoolingParameter* release_pooling_param(); + ::opencv_caffe::PoolingParameter* mutable_pooling_param(); void set_allocated_pooling_param(::opencv_caffe::PoolingParameter* pooling_param); // optional .opencv_caffe.PowerParameter power_param = 122; @@ -4128,116 +4661,26 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_power_param(); static const int kPowerParamFieldNumber = 122; const ::opencv_caffe::PowerParameter& power_param() const; - ::opencv_caffe::PowerParameter* mutable_power_param(); ::opencv_caffe::PowerParameter* release_power_param(); + ::opencv_caffe::PowerParameter* mutable_power_param(); void set_allocated_power_param(::opencv_caffe::PowerParameter* power_param); - // optional .opencv_caffe.PReLUParameter prelu_param = 131; - bool has_prelu_param() const; - void clear_prelu_param(); - static const int kPreluParamFieldNumber = 131; - const ::opencv_caffe::PReLUParameter& prelu_param() const; - ::opencv_caffe::PReLUParameter* mutable_prelu_param(); - ::opencv_caffe::PReLUParameter* release_prelu_param(); - void set_allocated_prelu_param(::opencv_caffe::PReLUParameter* prelu_param); - - // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; - bool has_prior_box_param() const; - void clear_prior_box_param(); - static const int kPriorBoxParamFieldNumber = 150; - const ::opencv_caffe::PriorBoxParameter& prior_box_param() const; - ::opencv_caffe::PriorBoxParameter* mutable_prior_box_param(); - ::opencv_caffe::PriorBoxParameter* release_prior_box_param(); - void set_allocated_prior_box_param(::opencv_caffe::PriorBoxParameter* prior_box_param); - - // optional .opencv_caffe.ProposalParameter proposal_param = 201; - bool has_proposal_param() const; - void clear_proposal_param(); - static const int kProposalParamFieldNumber = 201; - const ::opencv_caffe::ProposalParameter& proposal_param() const; - ::opencv_caffe::ProposalParameter* mutable_proposal_param(); - ::opencv_caffe::ProposalParameter* release_proposal_param(); - void set_allocated_proposal_param(::opencv_caffe::ProposalParameter* proposal_param); - - // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; - bool has_psroi_pooling_param() const; - void clear_psroi_pooling_param(); - static const int kPsroiPoolingParamFieldNumber = 10002; - const ::opencv_caffe::PSROIPoolingParameter& psroi_pooling_param() const; - ::opencv_caffe::PSROIPoolingParameter* mutable_psroi_pooling_param(); - ::opencv_caffe::PSROIPoolingParameter* release_psroi_pooling_param(); - void set_allocated_psroi_pooling_param(::opencv_caffe::PSROIPoolingParameter* psroi_pooling_param); - - // optional .opencv_caffe.PythonParameter python_param = 130; - bool has_python_param() const; - void clear_python_param(); - static const int kPythonParamFieldNumber = 130; - const ::opencv_caffe::PythonParameter& python_param() const; - ::opencv_caffe::PythonParameter* mutable_python_param(); - ::opencv_caffe::PythonParameter* release_python_param(); - void set_allocated_python_param(::opencv_caffe::PythonParameter* python_param); - - // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; - bool has_recurrent_param() const; - void clear_recurrent_param(); - static const int kRecurrentParamFieldNumber = 146; - const ::opencv_caffe::RecurrentParameter& recurrent_param() const; - ::opencv_caffe::RecurrentParameter* mutable_recurrent_param(); - ::opencv_caffe::RecurrentParameter* release_recurrent_param(); - void set_allocated_recurrent_param(::opencv_caffe::RecurrentParameter* recurrent_param); - - // optional .opencv_caffe.ReductionParameter reduction_param = 136; - bool has_reduction_param() const; - void clear_reduction_param(); - static const int kReductionParamFieldNumber = 136; - const ::opencv_caffe::ReductionParameter& reduction_param() const; - ::opencv_caffe::ReductionParameter* mutable_reduction_param(); - ::opencv_caffe::ReductionParameter* release_reduction_param(); - void set_allocated_reduction_param(::opencv_caffe::ReductionParameter* reduction_param); - // optional .opencv_caffe.ReLUParameter relu_param = 123; bool has_relu_param() const; void clear_relu_param(); static const int kReluParamFieldNumber = 123; const ::opencv_caffe::ReLUParameter& relu_param() const; - ::opencv_caffe::ReLUParameter* mutable_relu_param(); ::opencv_caffe::ReLUParameter* release_relu_param(); + ::opencv_caffe::ReLUParameter* mutable_relu_param(); void set_allocated_relu_param(::opencv_caffe::ReLUParameter* relu_param); - // optional .opencv_caffe.ReshapeParameter reshape_param = 133; - bool has_reshape_param() const; - void clear_reshape_param(); - static const int kReshapeParamFieldNumber = 133; - const ::opencv_caffe::ReshapeParameter& reshape_param() const; - ::opencv_caffe::ReshapeParameter* mutable_reshape_param(); - ::opencv_caffe::ReshapeParameter* release_reshape_param(); - void set_allocated_reshape_param(::opencv_caffe::ReshapeParameter* reshape_param); - - // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; - bool has_roi_pooling_param() const; - void clear_roi_pooling_param(); - static const int kRoiPoolingParamFieldNumber = 8266711; - const ::opencv_caffe::ROIPoolingParameter& roi_pooling_param() const; - ::opencv_caffe::ROIPoolingParameter* mutable_roi_pooling_param(); - ::opencv_caffe::ROIPoolingParameter* release_roi_pooling_param(); - void set_allocated_roi_pooling_param(::opencv_caffe::ROIPoolingParameter* roi_pooling_param); - - // optional .opencv_caffe.ScaleParameter scale_param = 142; - bool has_scale_param() const; - void clear_scale_param(); - static const int kScaleParamFieldNumber = 142; - const ::opencv_caffe::ScaleParameter& scale_param() const; - ::opencv_caffe::ScaleParameter* mutable_scale_param(); - ::opencv_caffe::ScaleParameter* release_scale_param(); - void set_allocated_scale_param(::opencv_caffe::ScaleParameter* scale_param); - // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; bool has_sigmoid_param() const; void clear_sigmoid_param(); static const int kSigmoidParamFieldNumber = 124; const ::opencv_caffe::SigmoidParameter& sigmoid_param() const; - ::opencv_caffe::SigmoidParameter* mutable_sigmoid_param(); ::opencv_caffe::SigmoidParameter* release_sigmoid_param(); + ::opencv_caffe::SigmoidParameter* mutable_sigmoid_param(); void set_allocated_sigmoid_param(::opencv_caffe::SigmoidParameter* sigmoid_param); // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; @@ -4245,26 +4688,17 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_softmax_param(); static const int kSoftmaxParamFieldNumber = 125; const ::opencv_caffe::SoftmaxParameter& softmax_param() const; - ::opencv_caffe::SoftmaxParameter* mutable_softmax_param(); ::opencv_caffe::SoftmaxParameter* release_softmax_param(); + ::opencv_caffe::SoftmaxParameter* mutable_softmax_param(); void set_allocated_softmax_param(::opencv_caffe::SoftmaxParameter* softmax_param); - // optional .opencv_caffe.SPPParameter spp_param = 132; - bool has_spp_param() const; - void clear_spp_param(); - static const int kSppParamFieldNumber = 132; - const ::opencv_caffe::SPPParameter& spp_param() const; - ::opencv_caffe::SPPParameter* mutable_spp_param(); - ::opencv_caffe::SPPParameter* release_spp_param(); - void set_allocated_spp_param(::opencv_caffe::SPPParameter* spp_param); - // optional .opencv_caffe.SliceParameter slice_param = 126; bool has_slice_param() const; void clear_slice_param(); static const int kSliceParamFieldNumber = 126; const ::opencv_caffe::SliceParameter& slice_param() const; - ::opencv_caffe::SliceParameter* mutable_slice_param(); ::opencv_caffe::SliceParameter* release_slice_param(); + ::opencv_caffe::SliceParameter* mutable_slice_param(); void set_allocated_slice_param(::opencv_caffe::SliceParameter* slice_param); // optional .opencv_caffe.TanHParameter tanh_param = 127; @@ -4272,8 +4706,8 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_tanh_param(); static const int kTanhParamFieldNumber = 127; const ::opencv_caffe::TanHParameter& tanh_param() const; - ::opencv_caffe::TanHParameter* mutable_tanh_param(); ::opencv_caffe::TanHParameter* release_tanh_param(); + ::opencv_caffe::TanHParameter* mutable_tanh_param(); void set_allocated_tanh_param(::opencv_caffe::TanHParameter* tanh_param); // optional .opencv_caffe.ThresholdParameter threshold_param = 128; @@ -4281,222 +4715,430 @@ class LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_threshold_param(); static const int kThresholdParamFieldNumber = 128; const ::opencv_caffe::ThresholdParameter& threshold_param() const; - ::opencv_caffe::ThresholdParameter* mutable_threshold_param(); ::opencv_caffe::ThresholdParameter* release_threshold_param(); + ::opencv_caffe::ThresholdParameter* mutable_threshold_param(); void set_allocated_threshold_param(::opencv_caffe::ThresholdParameter* threshold_param); - // optional .opencv_caffe.TileParameter tile_param = 138; - bool has_tile_param() const; - void clear_tile_param(); - static const int kTileParamFieldNumber = 138; - const ::opencv_caffe::TileParameter& tile_param() const; - ::opencv_caffe::TileParameter* mutable_tile_param(); - ::opencv_caffe::TileParameter* release_tile_param(); - void set_allocated_tile_param(::opencv_caffe::TileParameter* tile_param); - // optional .opencv_caffe.WindowDataParameter window_data_param = 129; bool has_window_data_param() const; void clear_window_data_param(); static const int kWindowDataParamFieldNumber = 129; const ::opencv_caffe::WindowDataParameter& window_data_param() const; - ::opencv_caffe::WindowDataParameter* mutable_window_data_param(); ::opencv_caffe::WindowDataParameter* release_window_data_param(); + ::opencv_caffe::WindowDataParameter* mutable_window_data_param(); void set_allocated_window_data_param(::opencv_caffe::WindowDataParameter* window_data_param); + // optional .opencv_caffe.PythonParameter python_param = 130; + bool has_python_param() const; + void clear_python_param(); + static const int kPythonParamFieldNumber = 130; + const ::opencv_caffe::PythonParameter& python_param() const; + ::opencv_caffe::PythonParameter* release_python_param(); + ::opencv_caffe::PythonParameter* mutable_python_param(); + void set_allocated_python_param(::opencv_caffe::PythonParameter* python_param); + + // optional .opencv_caffe.PReLUParameter prelu_param = 131; + bool has_prelu_param() const; + void clear_prelu_param(); + static const int kPreluParamFieldNumber = 131; + const ::opencv_caffe::PReLUParameter& prelu_param() const; + ::opencv_caffe::PReLUParameter* release_prelu_param(); + ::opencv_caffe::PReLUParameter* mutable_prelu_param(); + void set_allocated_prelu_param(::opencv_caffe::PReLUParameter* prelu_param); + + // optional .opencv_caffe.SPPParameter spp_param = 132; + bool has_spp_param() const; + void clear_spp_param(); + static const int kSppParamFieldNumber = 132; + const ::opencv_caffe::SPPParameter& spp_param() const; + ::opencv_caffe::SPPParameter* release_spp_param(); + ::opencv_caffe::SPPParameter* mutable_spp_param(); + void set_allocated_spp_param(::opencv_caffe::SPPParameter* spp_param); + + // optional .opencv_caffe.ReshapeParameter reshape_param = 133; + bool has_reshape_param() const; + void clear_reshape_param(); + static const int kReshapeParamFieldNumber = 133; + const ::opencv_caffe::ReshapeParameter& reshape_param() const; + ::opencv_caffe::ReshapeParameter* release_reshape_param(); + ::opencv_caffe::ReshapeParameter* mutable_reshape_param(); + void set_allocated_reshape_param(::opencv_caffe::ReshapeParameter* reshape_param); + + // optional .opencv_caffe.LogParameter log_param = 134; + bool has_log_param() const; + void clear_log_param(); + static const int kLogParamFieldNumber = 134; + const ::opencv_caffe::LogParameter& log_param() const; + ::opencv_caffe::LogParameter* release_log_param(); + ::opencv_caffe::LogParameter* mutable_log_param(); + void set_allocated_log_param(::opencv_caffe::LogParameter* log_param); + + // optional .opencv_caffe.FlattenParameter flatten_param = 135; + bool has_flatten_param() const; + void clear_flatten_param(); + static const int kFlattenParamFieldNumber = 135; + const ::opencv_caffe::FlattenParameter& flatten_param() const; + ::opencv_caffe::FlattenParameter* release_flatten_param(); + ::opencv_caffe::FlattenParameter* mutable_flatten_param(); + void set_allocated_flatten_param(::opencv_caffe::FlattenParameter* flatten_param); + + // optional .opencv_caffe.ReductionParameter reduction_param = 136; + bool has_reduction_param() const; + void clear_reduction_param(); + static const int kReductionParamFieldNumber = 136; + const ::opencv_caffe::ReductionParameter& reduction_param() const; + ::opencv_caffe::ReductionParameter* release_reduction_param(); + ::opencv_caffe::ReductionParameter* mutable_reduction_param(); + void set_allocated_reduction_param(::opencv_caffe::ReductionParameter* reduction_param); + + // optional .opencv_caffe.EmbedParameter embed_param = 137; + bool has_embed_param() const; + void clear_embed_param(); + static const int kEmbedParamFieldNumber = 137; + const ::opencv_caffe::EmbedParameter& embed_param() const; + ::opencv_caffe::EmbedParameter* release_embed_param(); + ::opencv_caffe::EmbedParameter* mutable_embed_param(); + void set_allocated_embed_param(::opencv_caffe::EmbedParameter* embed_param); + + // optional .opencv_caffe.TileParameter tile_param = 138; + bool has_tile_param() const; + void clear_tile_param(); + static const int kTileParamFieldNumber = 138; + const ::opencv_caffe::TileParameter& tile_param() const; + ::opencv_caffe::TileParameter* release_tile_param(); + ::opencv_caffe::TileParameter* mutable_tile_param(); + void set_allocated_tile_param(::opencv_caffe::TileParameter* tile_param); + + // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; + bool has_batch_norm_param() const; + void clear_batch_norm_param(); + static const int kBatchNormParamFieldNumber = 139; + const ::opencv_caffe::BatchNormParameter& batch_norm_param() const; + ::opencv_caffe::BatchNormParameter* release_batch_norm_param(); + ::opencv_caffe::BatchNormParameter* mutable_batch_norm_param(); + void set_allocated_batch_norm_param(::opencv_caffe::BatchNormParameter* batch_norm_param); + + // optional .opencv_caffe.ELUParameter elu_param = 140; + bool has_elu_param() const; + void clear_elu_param(); + static const int kEluParamFieldNumber = 140; + const ::opencv_caffe::ELUParameter& elu_param() const; + ::opencv_caffe::ELUParameter* release_elu_param(); + ::opencv_caffe::ELUParameter* mutable_elu_param(); + void set_allocated_elu_param(::opencv_caffe::ELUParameter* elu_param); + + // optional .opencv_caffe.BiasParameter bias_param = 141; + bool has_bias_param() const; + void clear_bias_param(); + static const int kBiasParamFieldNumber = 141; + const ::opencv_caffe::BiasParameter& bias_param() const; + ::opencv_caffe::BiasParameter* release_bias_param(); + ::opencv_caffe::BiasParameter* mutable_bias_param(); + void set_allocated_bias_param(::opencv_caffe::BiasParameter* bias_param); + + // optional .opencv_caffe.ScaleParameter scale_param = 142; + bool has_scale_param() const; + void clear_scale_param(); + static const int kScaleParamFieldNumber = 142; + const ::opencv_caffe::ScaleParameter& scale_param() const; + ::opencv_caffe::ScaleParameter* release_scale_param(); + ::opencv_caffe::ScaleParameter* mutable_scale_param(); + void set_allocated_scale_param(::opencv_caffe::ScaleParameter* scale_param); + + // optional .opencv_caffe.InputParameter input_param = 143; + bool has_input_param() const; + void clear_input_param(); + static const int kInputParamFieldNumber = 143; + const ::opencv_caffe::InputParameter& input_param() const; + ::opencv_caffe::InputParameter* release_input_param(); + ::opencv_caffe::InputParameter* mutable_input_param(); + void set_allocated_input_param(::opencv_caffe::InputParameter* input_param); + + // optional .opencv_caffe.CropParameter crop_param = 144; + bool has_crop_param() const; + void clear_crop_param(); + static const int kCropParamFieldNumber = 144; + const ::opencv_caffe::CropParameter& crop_param() const; + ::opencv_caffe::CropParameter* release_crop_param(); + ::opencv_caffe::CropParameter* mutable_crop_param(); + void set_allocated_crop_param(::opencv_caffe::CropParameter* crop_param); + + // optional .opencv_caffe.ParameterParameter parameter_param = 145; + bool has_parameter_param() const; + void clear_parameter_param(); + static const int kParameterParamFieldNumber = 145; + const ::opencv_caffe::ParameterParameter& parameter_param() const; + ::opencv_caffe::ParameterParameter* release_parameter_param(); + ::opencv_caffe::ParameterParameter* mutable_parameter_param(); + void set_allocated_parameter_param(::opencv_caffe::ParameterParameter* parameter_param); + + // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; + bool has_recurrent_param() const; + void clear_recurrent_param(); + static const int kRecurrentParamFieldNumber = 146; + const ::opencv_caffe::RecurrentParameter& recurrent_param() const; + ::opencv_caffe::RecurrentParameter* release_recurrent_param(); + ::opencv_caffe::RecurrentParameter* mutable_recurrent_param(); + void set_allocated_recurrent_param(::opencv_caffe::RecurrentParameter* recurrent_param); + + // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; + bool has_detection_output_param() const; + void clear_detection_output_param(); + static const int kDetectionOutputParamFieldNumber = 147; + const ::opencv_caffe::DetectionOutputParameter& detection_output_param() const; + ::opencv_caffe::DetectionOutputParameter* release_detection_output_param(); + ::opencv_caffe::DetectionOutputParameter* mutable_detection_output_param(); + void set_allocated_detection_output_param(::opencv_caffe::DetectionOutputParameter* detection_output_param); + + // optional .opencv_caffe.PermuteParameter permute_param = 148; + bool has_permute_param() const; + void clear_permute_param(); + static const int kPermuteParamFieldNumber = 148; + const ::opencv_caffe::PermuteParameter& permute_param() const; + ::opencv_caffe::PermuteParameter* release_permute_param(); + ::opencv_caffe::PermuteParameter* mutable_permute_param(); + void set_allocated_permute_param(::opencv_caffe::PermuteParameter* permute_param); + + // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; + bool has_norm_param() const; + void clear_norm_param(); + static const int kNormParamFieldNumber = 149; + const ::opencv_caffe::NormalizeBBoxParameter& norm_param() const; + ::opencv_caffe::NormalizeBBoxParameter* release_norm_param(); + ::opencv_caffe::NormalizeBBoxParameter* mutable_norm_param(); + void set_allocated_norm_param(::opencv_caffe::NormalizeBBoxParameter* norm_param); + + // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; + bool has_prior_box_param() const; + void clear_prior_box_param(); + static const int kPriorBoxParamFieldNumber = 150; + const ::opencv_caffe::PriorBoxParameter& prior_box_param() const; + ::opencv_caffe::PriorBoxParameter* release_prior_box_param(); + ::opencv_caffe::PriorBoxParameter* mutable_prior_box_param(); + void set_allocated_prior_box_param(::opencv_caffe::PriorBoxParameter* prior_box_param); + + // optional .opencv_caffe.ProposalParameter proposal_param = 201; + bool has_proposal_param() const; + void clear_proposal_param(); + static const int kProposalParamFieldNumber = 201; + const ::opencv_caffe::ProposalParameter& proposal_param() const; + ::opencv_caffe::ProposalParameter* release_proposal_param(); + ::opencv_caffe::ProposalParameter* mutable_proposal_param(); + void set_allocated_proposal_param(::opencv_caffe::ProposalParameter* proposal_param); + + // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; + bool has_psroi_pooling_param() const; + void clear_psroi_pooling_param(); + static const int kPsroiPoolingParamFieldNumber = 10002; + const ::opencv_caffe::PSROIPoolingParameter& psroi_pooling_param() const; + ::opencv_caffe::PSROIPoolingParameter* release_psroi_pooling_param(); + ::opencv_caffe::PSROIPoolingParameter* mutable_psroi_pooling_param(); + void set_allocated_psroi_pooling_param(::opencv_caffe::PSROIPoolingParameter* psroi_pooling_param); + + // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711; + bool has_roi_pooling_param() const; + void clear_roi_pooling_param(); + static const int kRoiPoolingParamFieldNumber = 8266711; + const ::opencv_caffe::ROIPoolingParameter& roi_pooling_param() const; + ::opencv_caffe::ROIPoolingParameter* release_roi_pooling_param(); + ::opencv_caffe::ROIPoolingParameter* mutable_roi_pooling_param(); + void set_allocated_roi_pooling_param(::opencv_caffe::ROIPoolingParameter* roi_pooling_param); + + // optional .opencv_caffe.Phase phase = 10; + bool has_phase() const; + void clear_phase(); + static const int kPhaseFieldNumber = 10; + ::opencv_caffe::Phase phase() const; + void set_phase(::opencv_caffe::Phase value); + // @@protoc_insertion_point(class_scope:opencv_caffe.LayerParameter) private: - inline void set_has_name(); - inline void clear_has_name(); - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_phase(); - inline void clear_has_phase(); - inline void set_has_transform_param(); - inline void clear_has_transform_param(); - inline void set_has_loss_param(); - inline void clear_has_loss_param(); - inline void set_has_accuracy_param(); - inline void clear_has_accuracy_param(); - inline void set_has_argmax_param(); - inline void clear_has_argmax_param(); - inline void set_has_batch_norm_param(); - inline void clear_has_batch_norm_param(); - inline void set_has_bias_param(); - inline void clear_has_bias_param(); - inline void set_has_concat_param(); - inline void clear_has_concat_param(); - inline void set_has_contrastive_loss_param(); - inline void clear_has_contrastive_loss_param(); - inline void set_has_convolution_param(); - inline void clear_has_convolution_param(); - inline void set_has_crop_param(); - inline void clear_has_crop_param(); - inline void set_has_data_param(); - inline void clear_has_data_param(); - inline void set_has_detection_output_param(); - inline void clear_has_detection_output_param(); - inline void set_has_dropout_param(); - inline void clear_has_dropout_param(); - inline void set_has_dummy_data_param(); - inline void clear_has_dummy_data_param(); - inline void set_has_eltwise_param(); - inline void clear_has_eltwise_param(); - inline void set_has_elu_param(); - inline void clear_has_elu_param(); - inline void set_has_embed_param(); - inline void clear_has_embed_param(); - inline void set_has_exp_param(); - inline void clear_has_exp_param(); - inline void set_has_flatten_param(); - inline void clear_has_flatten_param(); - inline void set_has_hdf5_data_param(); - inline void clear_has_hdf5_data_param(); - inline void set_has_hdf5_output_param(); - inline void clear_has_hdf5_output_param(); - inline void set_has_hinge_loss_param(); - inline void clear_has_hinge_loss_param(); - inline void set_has_image_data_param(); - inline void clear_has_image_data_param(); - inline void set_has_infogain_loss_param(); - inline void clear_has_infogain_loss_param(); - inline void set_has_inner_product_param(); - inline void clear_has_inner_product_param(); - inline void set_has_input_param(); - inline void clear_has_input_param(); - inline void set_has_log_param(); - inline void clear_has_log_param(); - inline void set_has_lrn_param(); - inline void clear_has_lrn_param(); - inline void set_has_memory_data_param(); - inline void clear_has_memory_data_param(); - inline void set_has_mvn_param(); - inline void clear_has_mvn_param(); - inline void set_has_norm_param(); - inline void clear_has_norm_param(); - inline void set_has_permute_param(); - inline void clear_has_permute_param(); - inline void set_has_parameter_param(); - inline void clear_has_parameter_param(); - inline void set_has_pooling_param(); - inline void clear_has_pooling_param(); - inline void set_has_power_param(); - inline void clear_has_power_param(); - inline void set_has_prelu_param(); - inline void clear_has_prelu_param(); - inline void set_has_prior_box_param(); - inline void clear_has_prior_box_param(); - inline void set_has_proposal_param(); - inline void clear_has_proposal_param(); - inline void set_has_psroi_pooling_param(); - inline void clear_has_psroi_pooling_param(); - inline void set_has_python_param(); - inline void clear_has_python_param(); - inline void set_has_recurrent_param(); - inline void clear_has_recurrent_param(); - inline void set_has_reduction_param(); - inline void clear_has_reduction_param(); - inline void set_has_relu_param(); - inline void clear_has_relu_param(); - inline void set_has_reshape_param(); - inline void clear_has_reshape_param(); - inline void set_has_roi_pooling_param(); - inline void clear_has_roi_pooling_param(); - inline void set_has_scale_param(); - inline void clear_has_scale_param(); - inline void set_has_sigmoid_param(); - inline void clear_has_sigmoid_param(); - inline void set_has_softmax_param(); - inline void clear_has_softmax_param(); - inline void set_has_spp_param(); - inline void clear_has_spp_param(); - inline void set_has_slice_param(); - inline void clear_has_slice_param(); - inline void set_has_tanh_param(); - inline void clear_has_tanh_param(); - inline void set_has_threshold_param(); - inline void clear_has_threshold_param(); - inline void set_has_tile_param(); - inline void clear_has_tile_param(); - inline void set_has_window_data_param(); - inline void clear_has_window_data_param(); + void set_has_name(); + void clear_has_name(); + void set_has_type(); + void clear_has_type(); + void set_has_phase(); + void clear_has_phase(); + void set_has_transform_param(); + void clear_has_transform_param(); + void set_has_loss_param(); + void clear_has_loss_param(); + void set_has_accuracy_param(); + void clear_has_accuracy_param(); + void set_has_argmax_param(); + void clear_has_argmax_param(); + void set_has_batch_norm_param(); + void clear_has_batch_norm_param(); + void set_has_bias_param(); + void clear_has_bias_param(); + void set_has_concat_param(); + void clear_has_concat_param(); + void set_has_contrastive_loss_param(); + void clear_has_contrastive_loss_param(); + void set_has_convolution_param(); + void clear_has_convolution_param(); + void set_has_crop_param(); + void clear_has_crop_param(); + void set_has_data_param(); + void clear_has_data_param(); + void set_has_detection_output_param(); + void clear_has_detection_output_param(); + void set_has_dropout_param(); + void clear_has_dropout_param(); + void set_has_dummy_data_param(); + void clear_has_dummy_data_param(); + void set_has_eltwise_param(); + void clear_has_eltwise_param(); + void set_has_elu_param(); + void clear_has_elu_param(); + void set_has_embed_param(); + void clear_has_embed_param(); + void set_has_exp_param(); + void clear_has_exp_param(); + void set_has_flatten_param(); + void clear_has_flatten_param(); + void set_has_hdf5_data_param(); + void clear_has_hdf5_data_param(); + void set_has_hdf5_output_param(); + void clear_has_hdf5_output_param(); + void set_has_hinge_loss_param(); + void clear_has_hinge_loss_param(); + void set_has_image_data_param(); + void clear_has_image_data_param(); + void set_has_infogain_loss_param(); + void clear_has_infogain_loss_param(); + void set_has_inner_product_param(); + void clear_has_inner_product_param(); + void set_has_input_param(); + void clear_has_input_param(); + void set_has_log_param(); + void clear_has_log_param(); + void set_has_lrn_param(); + void clear_has_lrn_param(); + void set_has_memory_data_param(); + void clear_has_memory_data_param(); + void set_has_mvn_param(); + void clear_has_mvn_param(); + void set_has_norm_param(); + void clear_has_norm_param(); + void set_has_permute_param(); + void clear_has_permute_param(); + void set_has_parameter_param(); + void clear_has_parameter_param(); + void set_has_pooling_param(); + void clear_has_pooling_param(); + void set_has_power_param(); + void clear_has_power_param(); + void set_has_prelu_param(); + void clear_has_prelu_param(); + void set_has_prior_box_param(); + void clear_has_prior_box_param(); + void set_has_proposal_param(); + void clear_has_proposal_param(); + void set_has_psroi_pooling_param(); + void clear_has_psroi_pooling_param(); + void set_has_python_param(); + void clear_has_python_param(); + void set_has_recurrent_param(); + void clear_has_recurrent_param(); + void set_has_reduction_param(); + void clear_has_reduction_param(); + void set_has_relu_param(); + void clear_has_relu_param(); + void set_has_reshape_param(); + void clear_has_reshape_param(); + void set_has_roi_pooling_param(); + void clear_has_roi_pooling_param(); + void set_has_scale_param(); + void clear_has_scale_param(); + void set_has_sigmoid_param(); + void clear_has_sigmoid_param(); + void set_has_softmax_param(); + void clear_has_softmax_param(); + void set_has_spp_param(); + void clear_has_spp_param(); + void set_has_slice_param(); + void clear_has_slice_param(); + void set_has_tanh_param(); + void clear_has_tanh_param(); + void set_has_threshold_param(); + void clear_has_threshold_param(); + void set_has_tile_param(); + void clear_has_tile_param(); + void set_has_window_data_param(); + void clear_has_window_data_param(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::HasBits<3> _has_bits_; - mutable int _cached_size_; + ::google::protobuf::internal::HasBits<2> _has_bits_; ::google::protobuf::RepeatedPtrField< ::std::string> bottom_; ::google::protobuf::RepeatedPtrField< ::std::string> top_; ::google::protobuf::RepeatedField< float > loss_weight_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::ParamSpec > param_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto > blobs_; - ::google::protobuf::RepeatedField< bool > propagate_down_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule > include_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule > exclude_; + ::google::protobuf::RepeatedField< bool > propagate_down_; ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::internal::ArenaStringPtr type_; ::opencv_caffe::TransformationParameter* transform_param_; ::opencv_caffe::LossParameter* loss_param_; ::opencv_caffe::AccuracyParameter* accuracy_param_; ::opencv_caffe::ArgMaxParameter* argmax_param_; - ::opencv_caffe::BatchNormParameter* batch_norm_param_; - ::opencv_caffe::BiasParameter* bias_param_; ::opencv_caffe::ConcatParameter* concat_param_; ::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param_; ::opencv_caffe::ConvolutionParameter* convolution_param_; - ::opencv_caffe::CropParameter* crop_param_; ::opencv_caffe::DataParameter* data_param_; - ::opencv_caffe::DetectionOutputParameter* detection_output_param_; ::opencv_caffe::DropoutParameter* dropout_param_; ::opencv_caffe::DummyDataParameter* dummy_data_param_; ::opencv_caffe::EltwiseParameter* eltwise_param_; - ::opencv_caffe::ELUParameter* elu_param_; - ::opencv_caffe::EmbedParameter* embed_param_; ::opencv_caffe::ExpParameter* exp_param_; - ::opencv_caffe::FlattenParameter* flatten_param_; ::opencv_caffe::HDF5DataParameter* hdf5_data_param_; ::opencv_caffe::HDF5OutputParameter* hdf5_output_param_; ::opencv_caffe::HingeLossParameter* hinge_loss_param_; ::opencv_caffe::ImageDataParameter* image_data_param_; ::opencv_caffe::InfogainLossParameter* infogain_loss_param_; ::opencv_caffe::InnerProductParameter* inner_product_param_; - ::opencv_caffe::InputParameter* input_param_; - ::opencv_caffe::LogParameter* log_param_; ::opencv_caffe::LRNParameter* lrn_param_; ::opencv_caffe::MemoryDataParameter* memory_data_param_; ::opencv_caffe::MVNParameter* mvn_param_; - ::opencv_caffe::NormalizeBBoxParameter* norm_param_; - ::opencv_caffe::PermuteParameter* permute_param_; - ::opencv_caffe::ParameterParameter* parameter_param_; ::opencv_caffe::PoolingParameter* pooling_param_; ::opencv_caffe::PowerParameter* power_param_; - ::opencv_caffe::PReLUParameter* prelu_param_; - ::opencv_caffe::PriorBoxParameter* prior_box_param_; - ::opencv_caffe::ProposalParameter* proposal_param_; - ::opencv_caffe::PSROIPoolingParameter* psroi_pooling_param_; - ::opencv_caffe::PythonParameter* python_param_; - ::opencv_caffe::RecurrentParameter* recurrent_param_; - ::opencv_caffe::ReductionParameter* reduction_param_; ::opencv_caffe::ReLUParameter* relu_param_; - ::opencv_caffe::ReshapeParameter* reshape_param_; - ::opencv_caffe::ROIPoolingParameter* roi_pooling_param_; - ::opencv_caffe::ScaleParameter* scale_param_; ::opencv_caffe::SigmoidParameter* sigmoid_param_; ::opencv_caffe::SoftmaxParameter* softmax_param_; - ::opencv_caffe::SPPParameter* spp_param_; ::opencv_caffe::SliceParameter* slice_param_; ::opencv_caffe::TanHParameter* tanh_param_; ::opencv_caffe::ThresholdParameter* threshold_param_; - ::opencv_caffe::TileParameter* tile_param_; ::opencv_caffe::WindowDataParameter* window_data_param_; + ::opencv_caffe::PythonParameter* python_param_; + ::opencv_caffe::PReLUParameter* prelu_param_; + ::opencv_caffe::SPPParameter* spp_param_; + ::opencv_caffe::ReshapeParameter* reshape_param_; + ::opencv_caffe::LogParameter* log_param_; + ::opencv_caffe::FlattenParameter* flatten_param_; + ::opencv_caffe::ReductionParameter* reduction_param_; + ::opencv_caffe::EmbedParameter* embed_param_; + ::opencv_caffe::TileParameter* tile_param_; + ::opencv_caffe::BatchNormParameter* batch_norm_param_; + ::opencv_caffe::ELUParameter* elu_param_; + ::opencv_caffe::BiasParameter* bias_param_; + ::opencv_caffe::ScaleParameter* scale_param_; + ::opencv_caffe::InputParameter* input_param_; + ::opencv_caffe::CropParameter* crop_param_; + ::opencv_caffe::ParameterParameter* parameter_param_; + ::opencv_caffe::RecurrentParameter* recurrent_param_; + ::opencv_caffe::DetectionOutputParameter* detection_output_param_; + ::opencv_caffe::PermuteParameter* permute_param_; + ::opencv_caffe::NormalizeBBoxParameter* norm_param_; + ::opencv_caffe::PriorBoxParameter* prior_box_param_; + ::opencv_caffe::ProposalParameter* proposal_param_; + ::opencv_caffe::PSROIPoolingParameter* psroi_pooling_param_; + ::opencv_caffe::ROIPoolingParameter* roi_pooling_param_; int phase_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + mutable int _cached_size_; + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLayerParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed LayerParameter_default_instance_; - // ------------------------------------------------------------------- class TransformationParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.TransformationParameter) */ { @@ -4510,11 +5152,24 @@ class TransformationParameter : public ::google::protobuf::Message /* @@protoc_i CopyFrom(from); return *this; } + #if LANG_CXX11 + TransformationParameter(TransformationParameter&& from) noexcept + : TransformationParameter() { + *this = ::std::move(from); + } + inline TransformationParameter& operator=(TransformationParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -4522,87 +5177,59 @@ class TransformationParameter : public ::google::protobuf::Message /* @@protoc_i static const ::google::protobuf::Descriptor* descriptor(); static const TransformationParameter& default_instance(); - static const TransformationParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TransformationParameter* internal_default_instance() { + return reinterpret_cast( + &_TransformationParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 16; void Swap(TransformationParameter* other); + friend void swap(TransformationParameter& a, TransformationParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline TransformationParameter* New() const { return New(NULL); } + inline TransformationParameter* New() const PROTOBUF_FINAL { return New(NULL); } - TransformationParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + TransformationParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const TransformationParameter& from); void MergeFrom(const TransformationParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(TransformationParameter* other); - void UnsafeMergeFrom(const TransformationParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional float scale = 1 [default = 1]; - bool has_scale() const; - void clear_scale(); - static const int kScaleFieldNumber = 1; - float scale() const; - void set_scale(float value); - - // optional bool mirror = 2 [default = false]; - bool has_mirror() const; - void clear_mirror(); - static const int kMirrorFieldNumber = 2; - bool mirror() const; - void set_mirror(bool value); - - // optional uint32 crop_size = 3 [default = 0]; - bool has_crop_size() const; - void clear_crop_size(); - static const int kCropSizeFieldNumber = 3; - ::google::protobuf::uint32 crop_size() const; - void set_crop_size(::google::protobuf::uint32 value); - - // optional string mean_file = 4; - bool has_mean_file() const; - void clear_mean_file(); - static const int kMeanFileFieldNumber = 4; - const ::std::string& mean_file() const; - void set_mean_file(const ::std::string& value); - void set_mean_file(const char* value); - void set_mean_file(const char* value, size_t size); - ::std::string* mutable_mean_file(); - ::std::string* release_mean_file(); - void set_allocated_mean_file(::std::string* mean_file); - // repeated float mean_value = 5; int mean_value_size() const; void clear_mean_value(); @@ -4615,6 +5242,35 @@ class TransformationParameter : public ::google::protobuf::Message /* @@protoc_i ::google::protobuf::RepeatedField< float >* mutable_mean_value(); + // optional string mean_file = 4; + bool has_mean_file() const; + void clear_mean_file(); + static const int kMeanFileFieldNumber = 4; + const ::std::string& mean_file() const; + void set_mean_file(const ::std::string& value); + #if LANG_CXX11 + void set_mean_file(::std::string&& value); + #endif + void set_mean_file(const char* value); + void set_mean_file(const char* value, size_t size); + ::std::string* mutable_mean_file(); + ::std::string* release_mean_file(); + void set_allocated_mean_file(::std::string* mean_file); + + // optional uint32 crop_size = 3 [default = 0]; + bool has_crop_size() const; + void clear_crop_size(); + static const int kCropSizeFieldNumber = 3; + ::google::protobuf::uint32 crop_size() const; + void set_crop_size(::google::protobuf::uint32 value); + + // optional bool mirror = 2 [default = false]; + bool has_mirror() const; + void clear_mirror(); + static const int kMirrorFieldNumber = 2; + bool mirror() const; + void set_mirror(bool value); + // optional bool force_color = 6 [default = false]; bool has_force_color() const; void clear_force_color(); @@ -4629,20 +5285,27 @@ class TransformationParameter : public ::google::protobuf::Message /* @@protoc_i bool force_gray() const; void set_force_gray(bool value); + // optional float scale = 1 [default = 1]; + bool has_scale() const; + void clear_scale(); + static const int kScaleFieldNumber = 1; + float scale() const; + void set_scale(float value); + // @@protoc_insertion_point(class_scope:opencv_caffe.TransformationParameter) private: - inline void set_has_scale(); - inline void clear_has_scale(); - inline void set_has_mirror(); - inline void clear_has_mirror(); - inline void set_has_crop_size(); - inline void clear_has_crop_size(); - inline void set_has_mean_file(); - inline void clear_has_mean_file(); - inline void set_has_force_color(); - inline void clear_has_force_color(); - inline void set_has_force_gray(); - inline void clear_has_force_gray(); + void set_has_scale(); + void clear_has_scale(); + void set_has_mirror(); + void clear_has_mirror(); + void set_has_crop_size(); + void clear_has_crop_size(); + void set_has_mean_file(); + void clear_has_mean_file(); + void set_has_force_color(); + void clear_has_force_color(); + void set_has_force_gray(); + void clear_has_force_gray(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -4654,15 +5317,9 @@ class TransformationParameter : public ::google::protobuf::Message /* @@protoc_i bool force_color_; bool force_gray_; float scale_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTransformationParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed TransformationParameter_default_instance_; - // ------------------------------------------------------------------- class LossParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.LossParameter) */ { @@ -4676,11 +5333,24 @@ class LossParameter : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + LossParameter(LossParameter&& from) noexcept + : LossParameter() { + *this = ::std::move(from); + } + inline LossParameter& operator=(LossParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -4688,49 +5358,54 @@ class LossParameter : public ::google::protobuf::Message /* @@protoc_insertion_p static const ::google::protobuf::Descriptor* descriptor(); static const LossParameter& default_instance(); - static const LossParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LossParameter* internal_default_instance() { + return reinterpret_cast( + &_LossParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 17; void Swap(LossParameter* other); + friend void swap(LossParameter& a, LossParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline LossParameter* New() const { return New(NULL); } + inline LossParameter* New() const PROTOBUF_FINAL { return New(NULL); } - LossParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + LossParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const LossParameter& from); void MergeFrom(const LossParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(LossParameter* other); - void UnsafeMergeFrom(const LossParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -4773,13 +5448,6 @@ class LossParameter : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::int32 ignore_label() const; void set_ignore_label(::google::protobuf::int32 value); - // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; - bool has_normalization() const; - void clear_normalization(); - static const int kNormalizationFieldNumber = 3; - ::opencv_caffe::LossParameter_NormalizationMode normalization() const; - void set_normalization(::opencv_caffe::LossParameter_NormalizationMode value); - // optional bool normalize = 2; bool has_normalize() const; void clear_normalize(); @@ -4787,14 +5455,21 @@ class LossParameter : public ::google::protobuf::Message /* @@protoc_insertion_p bool normalize() const; void set_normalize(bool value); + // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; + bool has_normalization() const; + void clear_normalization(); + static const int kNormalizationFieldNumber = 3; + ::opencv_caffe::LossParameter_NormalizationMode normalization() const; + void set_normalization(::opencv_caffe::LossParameter_NormalizationMode value); + // @@protoc_insertion_point(class_scope:opencv_caffe.LossParameter) private: - inline void set_has_ignore_label(); - inline void clear_has_ignore_label(); - inline void set_has_normalization(); - inline void clear_has_normalization(); - inline void set_has_normalize(); - inline void clear_has_normalize(); + void set_has_ignore_label(); + void clear_has_ignore_label(); + void set_has_normalization(); + void clear_has_normalization(); + void set_has_normalize(); + void clear_has_normalize(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -4802,15 +5477,9 @@ class LossParameter : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::int32 ignore_label_; bool normalize_; int normalization_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLossParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed LossParameter_default_instance_; - // ------------------------------------------------------------------- class AccuracyParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.AccuracyParameter) */ { @@ -4824,11 +5493,24 @@ class AccuracyParameter : public ::google::protobuf::Message /* @@protoc_inserti CopyFrom(from); return *this; } + #if LANG_CXX11 + AccuracyParameter(AccuracyParameter&& from) noexcept + : AccuracyParameter() { + *this = ::std::move(from); + } + inline AccuracyParameter& operator=(AccuracyParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -4836,54 +5518,66 @@ class AccuracyParameter : public ::google::protobuf::Message /* @@protoc_inserti static const ::google::protobuf::Descriptor* descriptor(); static const AccuracyParameter& default_instance(); - static const AccuracyParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AccuracyParameter* internal_default_instance() { + return reinterpret_cast( + &_AccuracyParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 18; void Swap(AccuracyParameter* other); + friend void swap(AccuracyParameter& a, AccuracyParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline AccuracyParameter* New() const { return New(NULL); } + inline AccuracyParameter* New() const PROTOBUF_FINAL { return New(NULL); } - AccuracyParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + AccuracyParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const AccuracyParameter& from); void MergeFrom(const AccuracyParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(AccuracyParameter* other); - void UnsafeMergeFrom(const AccuracyParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional int32 ignore_label = 3; + bool has_ignore_label() const; + void clear_ignore_label(); + static const int kIgnoreLabelFieldNumber = 3; + ::google::protobuf::int32 ignore_label() const; + void set_ignore_label(::google::protobuf::int32 value); + // optional uint32 top_k = 1 [default = 1]; bool has_top_k() const; void clear_top_k(); @@ -4898,21 +5592,14 @@ class AccuracyParameter : public ::google::protobuf::Message /* @@protoc_inserti ::google::protobuf::int32 axis() const; void set_axis(::google::protobuf::int32 value); - // optional int32 ignore_label = 3; - bool has_ignore_label() const; - void clear_ignore_label(); - static const int kIgnoreLabelFieldNumber = 3; - ::google::protobuf::int32 ignore_label() const; - void set_ignore_label(::google::protobuf::int32 value); - // @@protoc_insertion_point(class_scope:opencv_caffe.AccuracyParameter) private: - inline void set_has_top_k(); - inline void clear_has_top_k(); - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_ignore_label(); - inline void clear_has_ignore_label(); + void set_has_top_k(); + void clear_has_top_k(); + void set_has_axis(); + void clear_has_axis(); + void set_has_ignore_label(); + void clear_has_ignore_label(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -4920,15 +5607,9 @@ class AccuracyParameter : public ::google::protobuf::Message /* @@protoc_inserti ::google::protobuf::int32 ignore_label_; ::google::protobuf::uint32 top_k_; ::google::protobuf::int32 axis_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsAccuracyParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed AccuracyParameter_default_instance_; - // ------------------------------------------------------------------- class ArgMaxParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ArgMaxParameter) */ { @@ -4942,11 +5623,24 @@ class ArgMaxParameter : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + ArgMaxParameter(ArgMaxParameter&& from) noexcept + : ArgMaxParameter() { + *this = ::std::move(from); + } + inline ArgMaxParameter& operator=(ArgMaxParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -4954,49 +5648,54 @@ class ArgMaxParameter : public ::google::protobuf::Message /* @@protoc_insertion static const ::google::protobuf::Descriptor* descriptor(); static const ArgMaxParameter& default_instance(); - static const ArgMaxParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArgMaxParameter* internal_default_instance() { + return reinterpret_cast( + &_ArgMaxParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 19; void Swap(ArgMaxParameter* other); + friend void swap(ArgMaxParameter& a, ArgMaxParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ArgMaxParameter* New() const { return New(NULL); } + inline ArgMaxParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ArgMaxParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ArgMaxParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ArgMaxParameter& from); void MergeFrom(const ArgMaxParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ArgMaxParameter* other); - void UnsafeMergeFrom(const ArgMaxParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -5009,13 +5708,6 @@ class ArgMaxParameter : public ::google::protobuf::Message /* @@protoc_insertion bool out_max_val() const; void set_out_max_val(bool value); - // optional uint32 top_k = 2 [default = 1]; - bool has_top_k() const; - void clear_top_k(); - static const int kTopKFieldNumber = 2; - ::google::protobuf::uint32 top_k() const; - void set_top_k(::google::protobuf::uint32 value); - // optional int32 axis = 3; bool has_axis() const; void clear_axis(); @@ -5023,14 +5715,21 @@ class ArgMaxParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::int32 axis() const; void set_axis(::google::protobuf::int32 value); + // optional uint32 top_k = 2 [default = 1]; + bool has_top_k() const; + void clear_top_k(); + static const int kTopKFieldNumber = 2; + ::google::protobuf::uint32 top_k() const; + void set_top_k(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:opencv_caffe.ArgMaxParameter) private: - inline void set_has_out_max_val(); - inline void clear_has_out_max_val(); - inline void set_has_top_k(); - inline void clear_has_top_k(); - inline void set_has_axis(); - inline void clear_has_axis(); + void set_has_out_max_val(); + void clear_has_out_max_val(); + void set_has_top_k(); + void clear_has_top_k(); + void set_has_axis(); + void clear_has_axis(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -5038,15 +5737,9 @@ class ArgMaxParameter : public ::google::protobuf::Message /* @@protoc_insertion bool out_max_val_; ::google::protobuf::int32 axis_; ::google::protobuf::uint32 top_k_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsArgMaxParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ArgMaxParameter_default_instance_; - // ------------------------------------------------------------------- class ConcatParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ConcatParameter) */ { @@ -5060,11 +5753,24 @@ class ConcatParameter : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + ConcatParameter(ConcatParameter&& from) noexcept + : ConcatParameter() { + *this = ::std::move(from); + } + inline ConcatParameter& operator=(ConcatParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -5072,61 +5778,59 @@ class ConcatParameter : public ::google::protobuf::Message /* @@protoc_insertion static const ::google::protobuf::Descriptor* descriptor(); static const ConcatParameter& default_instance(); - static const ConcatParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ConcatParameter* internal_default_instance() { + return reinterpret_cast( + &_ConcatParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 20; void Swap(ConcatParameter* other); + friend void swap(ConcatParameter& a, ConcatParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ConcatParameter* New() const { return New(NULL); } + inline ConcatParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ConcatParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ConcatParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ConcatParameter& from); void MergeFrom(const ConcatParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ConcatParameter* other); - void UnsafeMergeFrom(const ConcatParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int32 axis = 2 [default = 1]; - bool has_axis() const; - void clear_axis(); - static const int kAxisFieldNumber = 2; - ::google::protobuf::int32 axis() const; - void set_axis(::google::protobuf::int32 value); - // optional uint32 concat_dim = 1 [default = 1]; bool has_concat_dim() const; void clear_concat_dim(); @@ -5134,27 +5838,28 @@ class ConcatParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::uint32 concat_dim() const; void set_concat_dim(::google::protobuf::uint32 value); + // optional int32 axis = 2 [default = 1]; + bool has_axis() const; + void clear_axis(); + static const int kAxisFieldNumber = 2; + ::google::protobuf::int32 axis() const; + void set_axis(::google::protobuf::int32 value); + // @@protoc_insertion_point(class_scope:opencv_caffe.ConcatParameter) private: - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_concat_dim(); - inline void clear_has_concat_dim(); + void set_has_axis(); + void clear_has_axis(); + void set_has_concat_dim(); + void clear_has_concat_dim(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; - ::google::protobuf::int32 axis_; ::google::protobuf::uint32 concat_dim_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + ::google::protobuf::int32 axis_; + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConcatParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ConcatParameter_default_instance_; - // ------------------------------------------------------------------- class BatchNormParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.BatchNormParameter) */ { @@ -5168,11 +5873,24 @@ class BatchNormParameter : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + BatchNormParameter(BatchNormParameter&& from) noexcept + : BatchNormParameter() { + *this = ::std::move(from); + } + inline BatchNormParameter& operator=(BatchNormParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -5180,49 +5898,54 @@ class BatchNormParameter : public ::google::protobuf::Message /* @@protoc_insert static const ::google::protobuf::Descriptor* descriptor(); static const BatchNormParameter& default_instance(); - static const BatchNormParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BatchNormParameter* internal_default_instance() { + return reinterpret_cast( + &_BatchNormParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 21; void Swap(BatchNormParameter* other); + friend void swap(BatchNormParameter& a, BatchNormParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline BatchNormParameter* New() const { return New(NULL); } + inline BatchNormParameter* New() const PROTOBUF_FINAL { return New(NULL); } - BatchNormParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + BatchNormParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BatchNormParameter& from); void MergeFrom(const BatchNormParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BatchNormParameter* other); - void UnsafeMergeFrom(const BatchNormParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -5251,12 +5974,12 @@ class BatchNormParameter : public ::google::protobuf::Message /* @@protoc_insert // @@protoc_insertion_point(class_scope:opencv_caffe.BatchNormParameter) private: - inline void set_has_use_global_stats(); - inline void clear_has_use_global_stats(); - inline void set_has_moving_average_fraction(); - inline void clear_has_moving_average_fraction(); - inline void set_has_eps(); - inline void clear_has_eps(); + void set_has_use_global_stats(); + void clear_has_use_global_stats(); + void set_has_moving_average_fraction(); + void clear_has_moving_average_fraction(); + void set_has_eps(); + void clear_has_eps(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -5264,15 +5987,9 @@ class BatchNormParameter : public ::google::protobuf::Message /* @@protoc_insert bool use_global_stats_; float moving_average_fraction_; float eps_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBatchNormParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed BatchNormParameter_default_instance_; - // ------------------------------------------------------------------- class BiasParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.BiasParameter) */ { @@ -5286,11 +6003,24 @@ class BiasParameter : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + BiasParameter(BiasParameter&& from) noexcept + : BiasParameter() { + *this = ::std::move(from); + } + inline BiasParameter& operator=(BiasParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -5298,54 +6028,68 @@ class BiasParameter : public ::google::protobuf::Message /* @@protoc_insertion_p static const ::google::protobuf::Descriptor* descriptor(); static const BiasParameter& default_instance(); - static const BiasParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BiasParameter* internal_default_instance() { + return reinterpret_cast( + &_BiasParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 22; void Swap(BiasParameter* other); + friend void swap(BiasParameter& a, BiasParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline BiasParameter* New() const { return New(NULL); } + inline BiasParameter* New() const PROTOBUF_FINAL { return New(NULL); } - BiasParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + BiasParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BiasParameter& from); void MergeFrom(const BiasParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BiasParameter* other); - void UnsafeMergeFrom(const BiasParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional .opencv_caffe.FillerParameter filler = 3; + bool has_filler() const; + void clear_filler(); + static const int kFillerFieldNumber = 3; + const ::opencv_caffe::FillerParameter& filler() const; + ::opencv_caffe::FillerParameter* release_filler(); + ::opencv_caffe::FillerParameter* mutable_filler(); + void set_allocated_filler(::opencv_caffe::FillerParameter* filler); + // optional int32 axis = 1 [default = 1]; bool has_axis() const; void clear_axis(); @@ -5360,23 +6104,14 @@ class BiasParameter : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::int32 num_axes() const; void set_num_axes(::google::protobuf::int32 value); - // optional .opencv_caffe.FillerParameter filler = 3; - bool has_filler() const; - void clear_filler(); - static const int kFillerFieldNumber = 3; - const ::opencv_caffe::FillerParameter& filler() const; - ::opencv_caffe::FillerParameter* mutable_filler(); - ::opencv_caffe::FillerParameter* release_filler(); - void set_allocated_filler(::opencv_caffe::FillerParameter* filler); - // @@protoc_insertion_point(class_scope:opencv_caffe.BiasParameter) private: - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_num_axes(); - inline void clear_has_num_axes(); - inline void set_has_filler(); - inline void clear_has_filler(); + void set_has_axis(); + void clear_has_axis(); + void set_has_num_axes(); + void clear_has_num_axes(); + void set_has_filler(); + void clear_has_filler(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -5384,15 +6119,9 @@ class BiasParameter : public ::google::protobuf::Message /* @@protoc_insertion_p ::opencv_caffe::FillerParameter* filler_; ::google::protobuf::int32 axis_; ::google::protobuf::int32 num_axes_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBiasParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed BiasParameter_default_instance_; - // ------------------------------------------------------------------- class ContrastiveLossParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ContrastiveLossParameter) */ { @@ -5406,11 +6135,24 @@ class ContrastiveLossParameter : public ::google::protobuf::Message /* @@protoc_ CopyFrom(from); return *this; } + #if LANG_CXX11 + ContrastiveLossParameter(ContrastiveLossParameter&& from) noexcept + : ContrastiveLossParameter() { + *this = ::std::move(from); + } + inline ContrastiveLossParameter& operator=(ContrastiveLossParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -5418,61 +6160,59 @@ class ContrastiveLossParameter : public ::google::protobuf::Message /* @@protoc_ static const ::google::protobuf::Descriptor* descriptor(); static const ContrastiveLossParameter& default_instance(); - static const ContrastiveLossParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ContrastiveLossParameter* internal_default_instance() { + return reinterpret_cast( + &_ContrastiveLossParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 23; void Swap(ContrastiveLossParameter* other); + friend void swap(ContrastiveLossParameter& a, ContrastiveLossParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ContrastiveLossParameter* New() const { return New(NULL); } + inline ContrastiveLossParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ContrastiveLossParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ContrastiveLossParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ContrastiveLossParameter& from); void MergeFrom(const ContrastiveLossParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ContrastiveLossParameter* other); - void UnsafeMergeFrom(const ContrastiveLossParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional float margin = 1 [default = 1]; - bool has_margin() const; - void clear_margin(); - static const int kMarginFieldNumber = 1; - float margin() const; - void set_margin(float value); - // optional bool legacy_version = 2 [default = false]; bool has_legacy_version() const; void clear_legacy_version(); @@ -5480,27 +6220,28 @@ class ContrastiveLossParameter : public ::google::protobuf::Message /* @@protoc_ bool legacy_version() const; void set_legacy_version(bool value); + // optional float margin = 1 [default = 1]; + bool has_margin() const; + void clear_margin(); + static const int kMarginFieldNumber = 1; + float margin() const; + void set_margin(float value); + // @@protoc_insertion_point(class_scope:opencv_caffe.ContrastiveLossParameter) private: - inline void set_has_margin(); - inline void clear_has_margin(); - inline void set_has_legacy_version(); - inline void clear_has_legacy_version(); + void set_has_margin(); + void clear_has_margin(); + void set_has_legacy_version(); + void clear_has_legacy_version(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; bool legacy_version_; float margin_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsContrastiveLossParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ContrastiveLossParameter_default_instance_; - // ------------------------------------------------------------------- class ConvolutionParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ConvolutionParameter) */ { @@ -5514,11 +6255,24 @@ class ConvolutionParameter : public ::google::protobuf::Message /* @@protoc_inse CopyFrom(from); return *this; } + #if LANG_CXX11 + ConvolutionParameter(ConvolutionParameter&& from) noexcept + : ConvolutionParameter() { + *this = ::std::move(from); + } + inline ConvolutionParameter& operator=(ConvolutionParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -5526,49 +6280,54 @@ class ConvolutionParameter : public ::google::protobuf::Message /* @@protoc_inse static const ::google::protobuf::Descriptor* descriptor(); static const ConvolutionParameter& default_instance(); - static const ConvolutionParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ConvolutionParameter* internal_default_instance() { + return reinterpret_cast( + &_ConvolutionParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 24; void Swap(ConvolutionParameter* other); + friend void swap(ConvolutionParameter& a, ConvolutionParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ConvolutionParameter* New() const { return New(NULL); } + inline ConvolutionParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ConvolutionParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ConvolutionParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ConvolutionParameter& from); void MergeFrom(const ConvolutionParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ConvolutionParameter* other); - void UnsafeMergeFrom(const ConvolutionParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -5602,20 +6361,6 @@ class ConvolutionParameter : public ::google::protobuf::Message /* @@protoc_inse // accessors ------------------------------------------------------- - // optional uint32 num_output = 1; - bool has_num_output() const; - void clear_num_output(); - static const int kNumOutputFieldNumber = 1; - ::google::protobuf::uint32 num_output() const; - void set_num_output(::google::protobuf::uint32 value); - - // optional bool bias_term = 2 [default = true]; - bool has_bias_term() const; - void clear_bias_term(); - static const int kBiasTermFieldNumber = 2; - bool bias_term() const; - void set_bias_term(bool value); - // repeated uint32 pad = 3; int pad_size() const; void clear_pad(); @@ -5664,6 +6409,31 @@ class ConvolutionParameter : public ::google::protobuf::Message /* @@protoc_inse ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_dilation(); + // optional .opencv_caffe.FillerParameter weight_filler = 7; + bool has_weight_filler() const; + void clear_weight_filler(); + static const int kWeightFillerFieldNumber = 7; + const ::opencv_caffe::FillerParameter& weight_filler() const; + ::opencv_caffe::FillerParameter* release_weight_filler(); + ::opencv_caffe::FillerParameter* mutable_weight_filler(); + void set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler); + + // optional .opencv_caffe.FillerParameter bias_filler = 8; + bool has_bias_filler() const; + void clear_bias_filler(); + static const int kBiasFillerFieldNumber = 8; + const ::opencv_caffe::FillerParameter& bias_filler() const; + ::opencv_caffe::FillerParameter* release_bias_filler(); + ::opencv_caffe::FillerParameter* mutable_bias_filler(); + void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); + + // optional uint32 num_output = 1; + bool has_num_output() const; + void clear_num_output(); + static const int kNumOutputFieldNumber = 1; + ::google::protobuf::uint32 num_output() const; + void set_num_output(::google::protobuf::uint32 value); + // optional uint32 pad_h = 9 [default = 0]; bool has_pad_h() const; void clear_pad_h(); @@ -5706,31 +6476,6 @@ class ConvolutionParameter : public ::google::protobuf::Message /* @@protoc_inse ::google::protobuf::uint32 stride_w() const; void set_stride_w(::google::protobuf::uint32 value); - // optional uint32 group = 5 [default = 1]; - bool has_group() const; - void clear_group(); - static const int kGroupFieldNumber = 5; - ::google::protobuf::uint32 group() const; - void set_group(::google::protobuf::uint32 value); - - // optional .opencv_caffe.FillerParameter weight_filler = 7; - bool has_weight_filler() const; - void clear_weight_filler(); - static const int kWeightFillerFieldNumber = 7; - const ::opencv_caffe::FillerParameter& weight_filler() const; - ::opencv_caffe::FillerParameter* mutable_weight_filler(); - ::opencv_caffe::FillerParameter* release_weight_filler(); - void set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler); - - // optional .opencv_caffe.FillerParameter bias_filler = 8; - bool has_bias_filler() const; - void clear_bias_filler(); - static const int kBiasFillerFieldNumber = 8; - const ::opencv_caffe::FillerParameter& bias_filler() const; - ::opencv_caffe::FillerParameter* mutable_bias_filler(); - ::opencv_caffe::FillerParameter* release_bias_filler(); - void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); - // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; bool has_engine() const; void clear_engine(); @@ -5738,13 +6483,6 @@ class ConvolutionParameter : public ::google::protobuf::Message /* @@protoc_inse ::opencv_caffe::ConvolutionParameter_Engine engine() const; void set_engine(::opencv_caffe::ConvolutionParameter_Engine value); - // optional int32 axis = 16 [default = 1]; - bool has_axis() const; - void clear_axis(); - static const int kAxisFieldNumber = 16; - ::google::protobuf::int32 axis() const; - void set_axis(::google::protobuf::int32 value); - // optional bool force_nd_im2col = 17 [default = false]; bool has_force_nd_im2col() const; void clear_force_nd_im2col(); @@ -5752,36 +6490,57 @@ class ConvolutionParameter : public ::google::protobuf::Message /* @@protoc_inse bool force_nd_im2col() const; void set_force_nd_im2col(bool value); + // optional int32 axis = 16 [default = 1]; + bool has_axis() const; + void clear_axis(); + static const int kAxisFieldNumber = 16; + ::google::protobuf::int32 axis() const; + void set_axis(::google::protobuf::int32 value); + + // optional bool bias_term = 2 [default = true]; + bool has_bias_term() const; + void clear_bias_term(); + static const int kBiasTermFieldNumber = 2; + bool bias_term() const; + void set_bias_term(bool value); + + // optional uint32 group = 5 [default = 1]; + bool has_group() const; + void clear_group(); + static const int kGroupFieldNumber = 5; + ::google::protobuf::uint32 group() const; + void set_group(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:opencv_caffe.ConvolutionParameter) private: - inline void set_has_num_output(); - inline void clear_has_num_output(); - inline void set_has_bias_term(); - inline void clear_has_bias_term(); - inline void set_has_pad_h(); - inline void clear_has_pad_h(); - inline void set_has_pad_w(); - inline void clear_has_pad_w(); - inline void set_has_kernel_h(); - inline void clear_has_kernel_h(); - inline void set_has_kernel_w(); - inline void clear_has_kernel_w(); - inline void set_has_stride_h(); - inline void clear_has_stride_h(); - inline void set_has_stride_w(); - inline void clear_has_stride_w(); - inline void set_has_group(); - inline void clear_has_group(); - inline void set_has_weight_filler(); - inline void clear_has_weight_filler(); - inline void set_has_bias_filler(); - inline void clear_has_bias_filler(); - inline void set_has_engine(); - inline void clear_has_engine(); - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_force_nd_im2col(); - inline void clear_has_force_nd_im2col(); + void set_has_num_output(); + void clear_has_num_output(); + void set_has_bias_term(); + void clear_has_bias_term(); + void set_has_pad_h(); + void clear_has_pad_h(); + void set_has_pad_w(); + void clear_has_pad_w(); + void set_has_kernel_h(); + void clear_has_kernel_h(); + void set_has_kernel_w(); + void clear_has_kernel_w(); + void set_has_stride_h(); + void clear_has_stride_h(); + void set_has_stride_w(); + void clear_has_stride_w(); + void set_has_group(); + void clear_has_group(); + void set_has_weight_filler(); + void clear_has_weight_filler(); + void set_has_bias_filler(); + void clear_has_bias_filler(); + void set_has_engine(); + void clear_has_engine(); + void set_has_axis(); + void clear_has_axis(); + void set_has_force_nd_im2col(); + void clear_has_force_nd_im2col(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -5804,15 +6563,9 @@ class ConvolutionParameter : public ::google::protobuf::Message /* @@protoc_inse ::google::protobuf::int32 axis_; bool bias_term_; ::google::protobuf::uint32 group_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConvolutionParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ConvolutionParameter_default_instance_; - // ------------------------------------------------------------------- class CropParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.CropParameter) */ { @@ -5826,11 +6579,24 @@ class CropParameter : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + CropParameter(CropParameter&& from) noexcept + : CropParameter() { + *this = ::std::move(from); + } + inline CropParameter& operator=(CropParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -5838,61 +6604,59 @@ class CropParameter : public ::google::protobuf::Message /* @@protoc_insertion_p static const ::google::protobuf::Descriptor* descriptor(); static const CropParameter& default_instance(); - static const CropParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CropParameter* internal_default_instance() { + return reinterpret_cast( + &_CropParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 25; void Swap(CropParameter* other); + friend void swap(CropParameter& a, CropParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline CropParameter* New() const { return New(NULL); } + inline CropParameter* New() const PROTOBUF_FINAL { return New(NULL); } - CropParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + CropParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const CropParameter& from); void MergeFrom(const CropParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(CropParameter* other); - void UnsafeMergeFrom(const CropParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int32 axis = 1 [default = 2]; - bool has_axis() const; - void clear_axis(); - static const int kAxisFieldNumber = 1; - ::google::protobuf::int32 axis() const; - void set_axis(::google::protobuf::int32 value); - // repeated uint32 offset = 2; int offset_size() const; void clear_offset(); @@ -5905,25 +6669,26 @@ class CropParameter : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_offset(); + // optional int32 axis = 1 [default = 2]; + bool has_axis() const; + void clear_axis(); + static const int kAxisFieldNumber = 1; + ::google::protobuf::int32 axis() const; + void set_axis(::google::protobuf::int32 value); + // @@protoc_insertion_point(class_scope:opencv_caffe.CropParameter) private: - inline void set_has_axis(); - inline void clear_has_axis(); + void set_has_axis(); + void clear_has_axis(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > offset_; ::google::protobuf::int32 axis_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsCropParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed CropParameter_default_instance_; - // ------------------------------------------------------------------- class DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.DataParameter) */ { @@ -5937,11 +6702,24 @@ class DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + DataParameter(DataParameter&& from) noexcept + : DataParameter() { + *this = ::std::move(from); + } + inline DataParameter& operator=(DataParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -5949,49 +6727,54 @@ class DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_p static const ::google::protobuf::Descriptor* descriptor(); static const DataParameter& default_instance(); - static const DataParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DataParameter* internal_default_instance() { + return reinterpret_cast( + &_DataParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 26; void Swap(DataParameter* other); + friend void swap(DataParameter& a, DataParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline DataParameter* New() const { return New(NULL); } + inline DataParameter* New() const PROTOBUF_FINAL { return New(NULL); } - DataParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + DataParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DataParameter& from); void MergeFrom(const DataParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DataParameter* other); - void UnsafeMergeFrom(const DataParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -6029,12 +6812,30 @@ class DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_p static const int kSourceFieldNumber = 1; const ::std::string& source() const; void set_source(const ::std::string& value); + #if LANG_CXX11 + void set_source(::std::string&& value); + #endif void set_source(const char* value); void set_source(const char* value, size_t size); ::std::string* mutable_source(); ::std::string* release_source(); void set_allocated_source(::std::string* source); + // optional string mean_file = 3; + bool has_mean_file() const; + void clear_mean_file(); + static const int kMeanFileFieldNumber = 3; + const ::std::string& mean_file() const; + void set_mean_file(const ::std::string& value); + #if LANG_CXX11 + void set_mean_file(::std::string&& value); + #endif + void set_mean_file(const char* value); + void set_mean_file(const char* value, size_t size); + ::std::string* mutable_mean_file(); + ::std::string* release_mean_file(); + void set_allocated_mean_file(::std::string* mean_file); + // optional uint32 batch_size = 4; bool has_batch_size() const; void clear_batch_size(); @@ -6042,39 +6843,6 @@ class DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::uint32 batch_size() const; void set_batch_size(::google::protobuf::uint32 value); - // optional uint32 rand_skip = 7 [default = 0]; - bool has_rand_skip() const; - void clear_rand_skip(); - static const int kRandSkipFieldNumber = 7; - ::google::protobuf::uint32 rand_skip() const; - void set_rand_skip(::google::protobuf::uint32 value); - - // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; - bool has_backend() const; - void clear_backend(); - static const int kBackendFieldNumber = 8; - ::opencv_caffe::DataParameter_DB backend() const; - void set_backend(::opencv_caffe::DataParameter_DB value); - - // optional float scale = 2 [default = 1]; - bool has_scale() const; - void clear_scale(); - static const int kScaleFieldNumber = 2; - float scale() const; - void set_scale(float value); - - // optional string mean_file = 3; - bool has_mean_file() const; - void clear_mean_file(); - static const int kMeanFileFieldNumber = 3; - const ::std::string& mean_file() const; - void set_mean_file(const ::std::string& value); - void set_mean_file(const char* value); - void set_mean_file(const char* value, size_t size); - ::std::string* mutable_mean_file(); - ::std::string* release_mean_file(); - void set_allocated_mean_file(::std::string* mean_file); - // optional uint32 crop_size = 5 [default = 0]; bool has_crop_size() const; void clear_crop_size(); @@ -6082,6 +6850,13 @@ class DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::uint32 crop_size() const; void set_crop_size(::google::protobuf::uint32 value); + // optional uint32 rand_skip = 7 [default = 0]; + bool has_rand_skip() const; + void clear_rand_skip(); + static const int kRandSkipFieldNumber = 7; + ::google::protobuf::uint32 rand_skip() const; + void set_rand_skip(::google::protobuf::uint32 value); + // optional bool mirror = 6 [default = false]; bool has_mirror() const; void clear_mirror(); @@ -6096,6 +6871,20 @@ class DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_p bool force_encoded_color() const; void set_force_encoded_color(bool value); + // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; + bool has_backend() const; + void clear_backend(); + static const int kBackendFieldNumber = 8; + ::opencv_caffe::DataParameter_DB backend() const; + void set_backend(::opencv_caffe::DataParameter_DB value); + + // optional float scale = 2 [default = 1]; + bool has_scale() const; + void clear_scale(); + static const int kScaleFieldNumber = 2; + float scale() const; + void set_scale(float value); + // optional uint32 prefetch = 10 [default = 4]; bool has_prefetch() const; void clear_prefetch(); @@ -6105,26 +6894,26 @@ class DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_p // @@protoc_insertion_point(class_scope:opencv_caffe.DataParameter) private: - inline void set_has_source(); - inline void clear_has_source(); - inline void set_has_batch_size(); - inline void clear_has_batch_size(); - inline void set_has_rand_skip(); - inline void clear_has_rand_skip(); - inline void set_has_backend(); - inline void clear_has_backend(); - inline void set_has_scale(); - inline void clear_has_scale(); - inline void set_has_mean_file(); - inline void clear_has_mean_file(); - inline void set_has_crop_size(); - inline void clear_has_crop_size(); - inline void set_has_mirror(); - inline void clear_has_mirror(); - inline void set_has_force_encoded_color(); - inline void clear_has_force_encoded_color(); - inline void set_has_prefetch(); - inline void clear_has_prefetch(); + void set_has_source(); + void clear_has_source(); + void set_has_batch_size(); + void clear_has_batch_size(); + void set_has_rand_skip(); + void clear_has_rand_skip(); + void set_has_backend(); + void clear_has_backend(); + void set_has_scale(); + void clear_has_scale(); + void set_has_mean_file(); + void clear_has_mean_file(); + void set_has_crop_size(); + void clear_has_crop_size(); + void set_has_mirror(); + void clear_has_mirror(); + void set_has_force_encoded_color(); + void clear_has_force_encoded_color(); + void set_has_prefetch(); + void clear_has_prefetch(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -6132,22 +6921,16 @@ class DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::internal::ArenaStringPtr source_; ::google::protobuf::internal::ArenaStringPtr mean_file_; ::google::protobuf::uint32 batch_size_; - ::google::protobuf::uint32 rand_skip_; - int backend_; ::google::protobuf::uint32 crop_size_; + ::google::protobuf::uint32 rand_skip_; bool mirror_; bool force_encoded_color_; + int backend_; float scale_; ::google::protobuf::uint32 prefetch_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDataParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed DataParameter_default_instance_; - // ------------------------------------------------------------------- class NonMaximumSuppressionParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.NonMaximumSuppressionParameter) */ { @@ -6161,11 +6944,24 @@ class NonMaximumSuppressionParameter : public ::google::protobuf::Message /* @@p CopyFrom(from); return *this; } + #if LANG_CXX11 + NonMaximumSuppressionParameter(NonMaximumSuppressionParameter&& from) noexcept + : NonMaximumSuppressionParameter() { + *this = ::std::move(from); + } + inline NonMaximumSuppressionParameter& operator=(NonMaximumSuppressionParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -6173,61 +6969,59 @@ class NonMaximumSuppressionParameter : public ::google::protobuf::Message /* @@p static const ::google::protobuf::Descriptor* descriptor(); static const NonMaximumSuppressionParameter& default_instance(); - static const NonMaximumSuppressionParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NonMaximumSuppressionParameter* internal_default_instance() { + return reinterpret_cast( + &_NonMaximumSuppressionParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 27; void Swap(NonMaximumSuppressionParameter* other); + friend void swap(NonMaximumSuppressionParameter& a, NonMaximumSuppressionParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline NonMaximumSuppressionParameter* New() const { return New(NULL); } + inline NonMaximumSuppressionParameter* New() const PROTOBUF_FINAL { return New(NULL); } - NonMaximumSuppressionParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + NonMaximumSuppressionParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const NonMaximumSuppressionParameter& from); void MergeFrom(const NonMaximumSuppressionParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(NonMaximumSuppressionParameter* other); - void UnsafeMergeFrom(const NonMaximumSuppressionParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional float nms_threshold = 1 [default = 0.3]; - bool has_nms_threshold() const; - void clear_nms_threshold(); - static const int kNmsThresholdFieldNumber = 1; - float nms_threshold() const; - void set_nms_threshold(float value); - // optional int32 top_k = 2; bool has_top_k() const; void clear_top_k(); @@ -6235,6 +7029,13 @@ class NonMaximumSuppressionParameter : public ::google::protobuf::Message /* @@p ::google::protobuf::int32 top_k() const; void set_top_k(::google::protobuf::int32 value); + // optional float nms_threshold = 1 [default = 0.3]; + bool has_nms_threshold() const; + void clear_nms_threshold(); + static const int kNmsThresholdFieldNumber = 1; + float nms_threshold() const; + void set_nms_threshold(float value); + // optional float eta = 3 [default = 1]; bool has_eta() const; void clear_eta(); @@ -6244,12 +7045,12 @@ class NonMaximumSuppressionParameter : public ::google::protobuf::Message /* @@p // @@protoc_insertion_point(class_scope:opencv_caffe.NonMaximumSuppressionParameter) private: - inline void set_has_nms_threshold(); - inline void clear_has_nms_threshold(); - inline void set_has_top_k(); - inline void clear_has_top_k(); - inline void set_has_eta(); - inline void clear_has_eta(); + void set_has_nms_threshold(); + void clear_has_nms_threshold(); + void set_has_top_k(); + void clear_has_top_k(); + void set_has_eta(); + void clear_has_eta(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -6257,15 +7058,9 @@ class NonMaximumSuppressionParameter : public ::google::protobuf::Message /* @@p ::google::protobuf::int32 top_k_; float nms_threshold_; float eta_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNonMaximumSuppressionParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed NonMaximumSuppressionParameter_default_instance_; - // ------------------------------------------------------------------- class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.SaveOutputParameter) */ { @@ -6279,11 +7074,24 @@ class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_inser CopyFrom(from); return *this; } + #if LANG_CXX11 + SaveOutputParameter(SaveOutputParameter&& from) noexcept + : SaveOutputParameter() { + *this = ::std::move(from); + } + inline SaveOutputParameter& operator=(SaveOutputParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -6291,49 +7099,54 @@ class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_inser static const ::google::protobuf::Descriptor* descriptor(); static const SaveOutputParameter& default_instance(); - static const SaveOutputParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SaveOutputParameter* internal_default_instance() { + return reinterpret_cast( + &_SaveOutputParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 28; void Swap(SaveOutputParameter* other); + friend void swap(SaveOutputParameter& a, SaveOutputParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SaveOutputParameter* New() const { return New(NULL); } + inline SaveOutputParameter* New() const PROTOBUF_FINAL { return New(NULL); } - SaveOutputParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SaveOutputParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SaveOutputParameter& from); void MergeFrom(const SaveOutputParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SaveOutputParameter* other); - void UnsafeMergeFrom(const SaveOutputParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -6345,6 +7158,9 @@ class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_inser static const int kOutputDirectoryFieldNumber = 1; const ::std::string& output_directory() const; void set_output_directory(const ::std::string& value); + #if LANG_CXX11 + void set_output_directory(::std::string&& value); + #endif void set_output_directory(const char* value); void set_output_directory(const char* value, size_t size); ::std::string* mutable_output_directory(); @@ -6357,6 +7173,9 @@ class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_inser static const int kOutputNamePrefixFieldNumber = 2; const ::std::string& output_name_prefix() const; void set_output_name_prefix(const ::std::string& value); + #if LANG_CXX11 + void set_output_name_prefix(::std::string&& value); + #endif void set_output_name_prefix(const char* value); void set_output_name_prefix(const char* value, size_t size); ::std::string* mutable_output_name_prefix(); @@ -6369,6 +7188,9 @@ class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_inser static const int kOutputFormatFieldNumber = 3; const ::std::string& output_format() const; void set_output_format(const ::std::string& value); + #if LANG_CXX11 + void set_output_format(::std::string&& value); + #endif void set_output_format(const char* value); void set_output_format(const char* value, size_t size); ::std::string* mutable_output_format(); @@ -6381,6 +7203,9 @@ class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_inser static const int kLabelMapFileFieldNumber = 4; const ::std::string& label_map_file() const; void set_label_map_file(const ::std::string& value); + #if LANG_CXX11 + void set_label_map_file(::std::string&& value); + #endif void set_label_map_file(const char* value); void set_label_map_file(const char* value, size_t size); ::std::string* mutable_label_map_file(); @@ -6393,6 +7218,9 @@ class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_inser static const int kNameSizeFileFieldNumber = 5; const ::std::string& name_size_file() const; void set_name_size_file(const ::std::string& value); + #if LANG_CXX11 + void set_name_size_file(::std::string&& value); + #endif void set_name_size_file(const char* value); void set_name_size_file(const char* value, size_t size); ::std::string* mutable_name_size_file(); @@ -6408,18 +7236,18 @@ class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_inser // @@protoc_insertion_point(class_scope:opencv_caffe.SaveOutputParameter) private: - inline void set_has_output_directory(); - inline void clear_has_output_directory(); - inline void set_has_output_name_prefix(); - inline void clear_has_output_name_prefix(); - inline void set_has_output_format(); - inline void clear_has_output_format(); - inline void set_has_label_map_file(); - inline void clear_has_label_map_file(); - inline void set_has_name_size_file(); - inline void clear_has_name_size_file(); - inline void set_has_num_test_image(); - inline void clear_has_num_test_image(); + void set_has_output_directory(); + void clear_has_output_directory(); + void set_has_output_name_prefix(); + void clear_has_output_name_prefix(); + void set_has_output_format(); + void clear_has_output_format(); + void set_has_label_map_file(); + void clear_has_label_map_file(); + void set_has_name_size_file(); + void clear_has_name_size_file(); + void set_has_num_test_image(); + void clear_has_num_test_image(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -6430,15 +7258,9 @@ class SaveOutputParameter : public ::google::protobuf::Message /* @@protoc_inser ::google::protobuf::internal::ArenaStringPtr label_map_file_; ::google::protobuf::internal::ArenaStringPtr name_size_file_; ::google::protobuf::uint32 num_test_image_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSaveOutputParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed SaveOutputParameter_default_instance_; - // ------------------------------------------------------------------- class DropoutParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.DropoutParameter) */ { @@ -6452,11 +7274,24 @@ class DropoutParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + DropoutParameter(DropoutParameter&& from) noexcept + : DropoutParameter() { + *this = ::std::move(from); + } + inline DropoutParameter& operator=(DropoutParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -6464,49 +7299,54 @@ class DropoutParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const DropoutParameter& default_instance(); - static const DropoutParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DropoutParameter* internal_default_instance() { + return reinterpret_cast( + &_DropoutParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 29; void Swap(DropoutParameter* other); + friend void swap(DropoutParameter& a, DropoutParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline DropoutParameter* New() const { return New(NULL); } + inline DropoutParameter* New() const PROTOBUF_FINAL { return New(NULL); } - DropoutParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + DropoutParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DropoutParameter& from); void MergeFrom(const DropoutParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DropoutParameter* other); - void UnsafeMergeFrom(const DropoutParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -6528,25 +7368,19 @@ class DropoutParameter : public ::google::protobuf::Message /* @@protoc_insertio // @@protoc_insertion_point(class_scope:opencv_caffe.DropoutParameter) private: - inline void set_has_dropout_ratio(); - inline void clear_has_dropout_ratio(); - inline void set_has_scale_train(); - inline void clear_has_scale_train(); + void set_has_dropout_ratio(); + void clear_has_dropout_ratio(); + void set_has_scale_train(); + void clear_has_scale_train(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; float dropout_ratio_; bool scale_train_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDropoutParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed DropoutParameter_default_instance_; - // ------------------------------------------------------------------- class DummyDataParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.DummyDataParameter) */ { @@ -6560,11 +7394,24 @@ class DummyDataParameter : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + DummyDataParameter(DummyDataParameter&& from) noexcept + : DummyDataParameter() { + *this = ::std::move(from); + } + inline DummyDataParameter& operator=(DummyDataParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -6572,49 +7419,54 @@ class DummyDataParameter : public ::google::protobuf::Message /* @@protoc_insert static const ::google::protobuf::Descriptor* descriptor(); static const DummyDataParameter& default_instance(); - static const DummyDataParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DummyDataParameter* internal_default_instance() { + return reinterpret_cast( + &_DummyDataParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 30; void Swap(DummyDataParameter* other); + friend void swap(DummyDataParameter& a, DummyDataParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline DummyDataParameter* New() const { return New(NULL); } + inline DummyDataParameter* New() const PROTOBUF_FINAL { return New(NULL); } - DummyDataParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + DummyDataParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DummyDataParameter& from); void MergeFrom(const DummyDataParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DummyDataParameter* other); - void UnsafeMergeFrom(const DummyDataParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -6632,18 +7484,6 @@ class DummyDataParameter : public ::google::protobuf::Message /* @@protoc_insert const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::FillerParameter >& data_filler() const; - // repeated .opencv_caffe.BlobShape shape = 6; - int shape_size() const; - void clear_shape(); - static const int kShapeFieldNumber = 6; - const ::opencv_caffe::BlobShape& shape(int index) const; - ::opencv_caffe::BlobShape* mutable_shape(int index); - ::opencv_caffe::BlobShape* add_shape(); - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >* - mutable_shape(); - const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >& - shape() const; - // repeated uint32 num = 2; int num_size() const; void clear_num(); @@ -6692,6 +7532,18 @@ class DummyDataParameter : public ::google::protobuf::Message /* @@protoc_insert ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_width(); + // repeated .opencv_caffe.BlobShape shape = 6; + int shape_size() const; + void clear_shape(); + static const int kShapeFieldNumber = 6; + const ::opencv_caffe::BlobShape& shape(int index) const; + ::opencv_caffe::BlobShape* mutable_shape(int index); + ::opencv_caffe::BlobShape* add_shape(); + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >* + mutable_shape(); + const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape >& + shape() const; + // @@protoc_insertion_point(class_scope:opencv_caffe.DummyDataParameter) private: @@ -6699,20 +7551,14 @@ class DummyDataParameter : public ::google::protobuf::Message /* @@protoc_insert ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::FillerParameter > data_filler_; - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape > shape_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > num_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > channels_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > height_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > width_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape > shape_; + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDummyDataParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed DummyDataParameter_default_instance_; - // ------------------------------------------------------------------- class EltwiseParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.EltwiseParameter) */ { @@ -6726,11 +7572,24 @@ class EltwiseParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + EltwiseParameter(EltwiseParameter&& from) noexcept + : EltwiseParameter() { + *this = ::std::move(from); + } + inline EltwiseParameter& operator=(EltwiseParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -6738,49 +7597,54 @@ class EltwiseParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const EltwiseParameter& default_instance(); - static const EltwiseParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EltwiseParameter* internal_default_instance() { + return reinterpret_cast( + &_EltwiseParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 31; void Swap(EltwiseParameter* other); + friend void swap(EltwiseParameter& a, EltwiseParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline EltwiseParameter* New() const { return New(NULL); } + inline EltwiseParameter* New() const PROTOBUF_FINAL { return New(NULL); } - EltwiseParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + EltwiseParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const EltwiseParameter& from); void MergeFrom(const EltwiseParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(EltwiseParameter* other); - void UnsafeMergeFrom(const EltwiseParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -6814,13 +7678,6 @@ class EltwiseParameter : public ::google::protobuf::Message /* @@protoc_insertio // accessors ------------------------------------------------------- - // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; - bool has_operation() const; - void clear_operation(); - static const int kOperationFieldNumber = 1; - ::opencv_caffe::EltwiseParameter_EltwiseOp operation() const; - void set_operation(::opencv_caffe::EltwiseParameter_EltwiseOp value); - // repeated float coeff = 2; int coeff_size() const; void clear_coeff(); @@ -6833,6 +7690,13 @@ class EltwiseParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::RepeatedField< float >* mutable_coeff(); + // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM]; + bool has_operation() const; + void clear_operation(); + static const int kOperationFieldNumber = 1; + ::opencv_caffe::EltwiseParameter_EltwiseOp operation() const; + void set_operation(::opencv_caffe::EltwiseParameter_EltwiseOp value); + // optional bool stable_prod_grad = 3 [default = true]; bool has_stable_prod_grad() const; void clear_stable_prod_grad(); @@ -6842,10 +7706,10 @@ class EltwiseParameter : public ::google::protobuf::Message /* @@protoc_insertio // @@protoc_insertion_point(class_scope:opencv_caffe.EltwiseParameter) private: - inline void set_has_operation(); - inline void clear_has_operation(); - inline void set_has_stable_prod_grad(); - inline void clear_has_stable_prod_grad(); + void set_has_operation(); + void clear_has_operation(); + void set_has_stable_prod_grad(); + void clear_has_stable_prod_grad(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -6853,15 +7717,9 @@ class EltwiseParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::RepeatedField< float > coeff_; int operation_; bool stable_prod_grad_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEltwiseParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed EltwiseParameter_default_instance_; - // ------------------------------------------------------------------- class ELUParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ELUParameter) */ { @@ -6875,11 +7733,24 @@ class ELUParameter : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + ELUParameter(ELUParameter&& from) noexcept + : ELUParameter() { + *this = ::std::move(from); + } + inline ELUParameter& operator=(ELUParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -6887,49 +7758,54 @@ class ELUParameter : public ::google::protobuf::Message /* @@protoc_insertion_po static const ::google::protobuf::Descriptor* descriptor(); static const ELUParameter& default_instance(); - static const ELUParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ELUParameter* internal_default_instance() { + return reinterpret_cast( + &_ELUParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 32; void Swap(ELUParameter* other); + friend void swap(ELUParameter& a, ELUParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ELUParameter* New() const { return New(NULL); } + inline ELUParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ELUParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ELUParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ELUParameter& from); void MergeFrom(const ELUParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ELUParameter* other); - void UnsafeMergeFrom(const ELUParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -6944,22 +7820,16 @@ class ELUParameter : public ::google::protobuf::Message /* @@protoc_insertion_po // @@protoc_insertion_point(class_scope:opencv_caffe.ELUParameter) private: - inline void set_has_alpha(); - inline void clear_has_alpha(); + void set_has_alpha(); + void clear_has_alpha(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; float alpha_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsELUParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ELUParameter_default_instance_; - // ------------------------------------------------------------------- class EmbedParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.EmbedParameter) */ { @@ -6973,11 +7843,24 @@ class EmbedParameter : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + EmbedParameter(EmbedParameter&& from) noexcept + : EmbedParameter() { + *this = ::std::move(from); + } + inline EmbedParameter& operator=(EmbedParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -6985,54 +7868,77 @@ class EmbedParameter : public ::google::protobuf::Message /* @@protoc_insertion_ static const ::google::protobuf::Descriptor* descriptor(); static const EmbedParameter& default_instance(); - static const EmbedParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EmbedParameter* internal_default_instance() { + return reinterpret_cast( + &_EmbedParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 33; void Swap(EmbedParameter* other); + friend void swap(EmbedParameter& a, EmbedParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline EmbedParameter* New() const { return New(NULL); } + inline EmbedParameter* New() const PROTOBUF_FINAL { return New(NULL); } - EmbedParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + EmbedParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const EmbedParameter& from); void MergeFrom(const EmbedParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(EmbedParameter* other); - void UnsafeMergeFrom(const EmbedParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional .opencv_caffe.FillerParameter weight_filler = 4; + bool has_weight_filler() const; + void clear_weight_filler(); + static const int kWeightFillerFieldNumber = 4; + const ::opencv_caffe::FillerParameter& weight_filler() const; + ::opencv_caffe::FillerParameter* release_weight_filler(); + ::opencv_caffe::FillerParameter* mutable_weight_filler(); + void set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler); + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + bool has_bias_filler() const; + void clear_bias_filler(); + static const int kBiasFillerFieldNumber = 5; + const ::opencv_caffe::FillerParameter& bias_filler() const; + ::opencv_caffe::FillerParameter* release_bias_filler(); + ::opencv_caffe::FillerParameter* mutable_bias_filler(); + void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); + // optional uint32 num_output = 1; bool has_num_output() const; void clear_num_output(); @@ -7054,36 +7960,18 @@ class EmbedParameter : public ::google::protobuf::Message /* @@protoc_insertion_ bool bias_term() const; void set_bias_term(bool value); - // optional .opencv_caffe.FillerParameter weight_filler = 4; - bool has_weight_filler() const; - void clear_weight_filler(); - static const int kWeightFillerFieldNumber = 4; - const ::opencv_caffe::FillerParameter& weight_filler() const; - ::opencv_caffe::FillerParameter* mutable_weight_filler(); - ::opencv_caffe::FillerParameter* release_weight_filler(); - void set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler); - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - bool has_bias_filler() const; - void clear_bias_filler(); - static const int kBiasFillerFieldNumber = 5; - const ::opencv_caffe::FillerParameter& bias_filler() const; - ::opencv_caffe::FillerParameter* mutable_bias_filler(); - ::opencv_caffe::FillerParameter* release_bias_filler(); - void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); - // @@protoc_insertion_point(class_scope:opencv_caffe.EmbedParameter) private: - inline void set_has_num_output(); - inline void clear_has_num_output(); - inline void set_has_input_dim(); - inline void clear_has_input_dim(); - inline void set_has_bias_term(); - inline void clear_has_bias_term(); - inline void set_has_weight_filler(); - inline void clear_has_weight_filler(); - inline void set_has_bias_filler(); - inline void clear_has_bias_filler(); + void set_has_num_output(); + void clear_has_num_output(); + void set_has_input_dim(); + void clear_has_input_dim(); + void set_has_bias_term(); + void clear_has_bias_term(); + void set_has_weight_filler(); + void clear_has_weight_filler(); + void set_has_bias_filler(); + void clear_has_bias_filler(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -7093,15 +7981,9 @@ class EmbedParameter : public ::google::protobuf::Message /* @@protoc_insertion_ ::google::protobuf::uint32 num_output_; ::google::protobuf::uint32 input_dim_; bool bias_term_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEmbedParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed EmbedParameter_default_instance_; - // ------------------------------------------------------------------- class ExpParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ExpParameter) */ { @@ -7115,11 +7997,24 @@ class ExpParameter : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + ExpParameter(ExpParameter&& from) noexcept + : ExpParameter() { + *this = ::std::move(from); + } + inline ExpParameter& operator=(ExpParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -7127,54 +8022,66 @@ class ExpParameter : public ::google::protobuf::Message /* @@protoc_insertion_po static const ::google::protobuf::Descriptor* descriptor(); static const ExpParameter& default_instance(); - static const ExpParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExpParameter* internal_default_instance() { + return reinterpret_cast( + &_ExpParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 34; void Swap(ExpParameter* other); + friend void swap(ExpParameter& a, ExpParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ExpParameter* New() const { return New(NULL); } + inline ExpParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ExpParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ExpParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ExpParameter& from); void MergeFrom(const ExpParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ExpParameter* other); - void UnsafeMergeFrom(const ExpParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional float shift = 3 [default = 0]; + bool has_shift() const; + void clear_shift(); + static const int kShiftFieldNumber = 3; + float shift() const; + void set_shift(float value); + // optional float base = 1 [default = -1]; bool has_base() const; void clear_base(); @@ -7189,21 +8096,14 @@ class ExpParameter : public ::google::protobuf::Message /* @@protoc_insertion_po float scale() const; void set_scale(float value); - // optional float shift = 3 [default = 0]; - bool has_shift() const; - void clear_shift(); - static const int kShiftFieldNumber = 3; - float shift() const; - void set_shift(float value); - // @@protoc_insertion_point(class_scope:opencv_caffe.ExpParameter) private: - inline void set_has_base(); - inline void clear_has_base(); - inline void set_has_scale(); - inline void clear_has_scale(); - inline void set_has_shift(); - inline void clear_has_shift(); + void set_has_base(); + void clear_has_base(); + void set_has_scale(); + void clear_has_scale(); + void set_has_shift(); + void clear_has_shift(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -7211,15 +8111,9 @@ class ExpParameter : public ::google::protobuf::Message /* @@protoc_insertion_po float shift_; float base_; float scale_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsExpParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ExpParameter_default_instance_; - // ------------------------------------------------------------------- class FlattenParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.FlattenParameter) */ { @@ -7233,11 +8127,24 @@ class FlattenParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + FlattenParameter(FlattenParameter&& from) noexcept + : FlattenParameter() { + *this = ::std::move(from); + } + inline FlattenParameter& operator=(FlattenParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -7245,49 +8152,54 @@ class FlattenParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const FlattenParameter& default_instance(); - static const FlattenParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FlattenParameter* internal_default_instance() { + return reinterpret_cast( + &_FlattenParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 35; void Swap(FlattenParameter* other); + friend void swap(FlattenParameter& a, FlattenParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline FlattenParameter* New() const { return New(NULL); } + inline FlattenParameter* New() const PROTOBUF_FINAL { return New(NULL); } - FlattenParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FlattenParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const FlattenParameter& from); void MergeFrom(const FlattenParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(FlattenParameter* other); - void UnsafeMergeFrom(const FlattenParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -7309,25 +8221,19 @@ class FlattenParameter : public ::google::protobuf::Message /* @@protoc_insertio // @@protoc_insertion_point(class_scope:opencv_caffe.FlattenParameter) private: - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_end_axis(); - inline void clear_has_end_axis(); + void set_has_axis(); + void clear_has_axis(); + void set_has_end_axis(); + void clear_has_end_axis(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::int32 axis_; ::google::protobuf::int32 end_axis_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFlattenParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed FlattenParameter_default_instance_; - // ------------------------------------------------------------------- class HDF5DataParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.HDF5DataParameter) */ { @@ -7341,11 +8247,24 @@ class HDF5DataParameter : public ::google::protobuf::Message /* @@protoc_inserti CopyFrom(from); return *this; } + #if LANG_CXX11 + HDF5DataParameter(HDF5DataParameter&& from) noexcept + : HDF5DataParameter() { + *this = ::std::move(from); + } + inline HDF5DataParameter& operator=(HDF5DataParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -7353,49 +8272,54 @@ class HDF5DataParameter : public ::google::protobuf::Message /* @@protoc_inserti static const ::google::protobuf::Descriptor* descriptor(); static const HDF5DataParameter& default_instance(); - static const HDF5DataParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HDF5DataParameter* internal_default_instance() { + return reinterpret_cast( + &_HDF5DataParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 36; void Swap(HDF5DataParameter* other); + friend void swap(HDF5DataParameter& a, HDF5DataParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline HDF5DataParameter* New() const { return New(NULL); } + inline HDF5DataParameter* New() const PROTOBUF_FINAL { return New(NULL); } - HDF5DataParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + HDF5DataParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const HDF5DataParameter& from); void MergeFrom(const HDF5DataParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(HDF5DataParameter* other); - void UnsafeMergeFrom(const HDF5DataParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -7407,6 +8331,9 @@ class HDF5DataParameter : public ::google::protobuf::Message /* @@protoc_inserti static const int kSourceFieldNumber = 1; const ::std::string& source() const; void set_source(const ::std::string& value); + #if LANG_CXX11 + void set_source(::std::string&& value); + #endif void set_source(const char* value); void set_source(const char* value, size_t size); ::std::string* mutable_source(); @@ -7429,12 +8356,12 @@ class HDF5DataParameter : public ::google::protobuf::Message /* @@protoc_inserti // @@protoc_insertion_point(class_scope:opencv_caffe.HDF5DataParameter) private: - inline void set_has_source(); - inline void clear_has_source(); - inline void set_has_batch_size(); - inline void clear_has_batch_size(); - inline void set_has_shuffle(); - inline void clear_has_shuffle(); + void set_has_source(); + void clear_has_source(); + void set_has_batch_size(); + void clear_has_batch_size(); + void set_has_shuffle(); + void clear_has_shuffle(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -7442,15 +8369,9 @@ class HDF5DataParameter : public ::google::protobuf::Message /* @@protoc_inserti ::google::protobuf::internal::ArenaStringPtr source_; ::google::protobuf::uint32 batch_size_; bool shuffle_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5DataParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed HDF5DataParameter_default_instance_; - // ------------------------------------------------------------------- class HDF5OutputParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.HDF5OutputParameter) */ { @@ -7464,11 +8385,24 @@ class HDF5OutputParameter : public ::google::protobuf::Message /* @@protoc_inser CopyFrom(from); return *this; } + #if LANG_CXX11 + HDF5OutputParameter(HDF5OutputParameter&& from) noexcept + : HDF5OutputParameter() { + *this = ::std::move(from); + } + inline HDF5OutputParameter& operator=(HDF5OutputParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -7476,49 +8410,54 @@ class HDF5OutputParameter : public ::google::protobuf::Message /* @@protoc_inser static const ::google::protobuf::Descriptor* descriptor(); static const HDF5OutputParameter& default_instance(); - static const HDF5OutputParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HDF5OutputParameter* internal_default_instance() { + return reinterpret_cast( + &_HDF5OutputParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 37; void Swap(HDF5OutputParameter* other); + friend void swap(HDF5OutputParameter& a, HDF5OutputParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline HDF5OutputParameter* New() const { return New(NULL); } + inline HDF5OutputParameter* New() const PROTOBUF_FINAL { return New(NULL); } - HDF5OutputParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + HDF5OutputParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const HDF5OutputParameter& from); void MergeFrom(const HDF5OutputParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(HDF5OutputParameter* other); - void UnsafeMergeFrom(const HDF5OutputParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -7530,6 +8469,9 @@ class HDF5OutputParameter : public ::google::protobuf::Message /* @@protoc_inser static const int kFileNameFieldNumber = 1; const ::std::string& file_name() const; void set_file_name(const ::std::string& value); + #if LANG_CXX11 + void set_file_name(::std::string&& value); + #endif void set_file_name(const char* value); void set_file_name(const char* value, size_t size); ::std::string* mutable_file_name(); @@ -7538,22 +8480,16 @@ class HDF5OutputParameter : public ::google::protobuf::Message /* @@protoc_inser // @@protoc_insertion_point(class_scope:opencv_caffe.HDF5OutputParameter) private: - inline void set_has_file_name(); - inline void clear_has_file_name(); + void set_has_file_name(); + void clear_has_file_name(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr file_name_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed HDF5OutputParameter_default_instance_; - // ------------------------------------------------------------------- class HingeLossParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.HingeLossParameter) */ { @@ -7567,11 +8503,24 @@ class HingeLossParameter : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + HingeLossParameter(HingeLossParameter&& from) noexcept + : HingeLossParameter() { + *this = ::std::move(from); + } + inline HingeLossParameter& operator=(HingeLossParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -7579,49 +8528,54 @@ class HingeLossParameter : public ::google::protobuf::Message /* @@protoc_insert static const ::google::protobuf::Descriptor* descriptor(); static const HingeLossParameter& default_instance(); - static const HingeLossParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HingeLossParameter* internal_default_instance() { + return reinterpret_cast( + &_HingeLossParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 38; void Swap(HingeLossParameter* other); + friend void swap(HingeLossParameter& a, HingeLossParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline HingeLossParameter* New() const { return New(NULL); } + inline HingeLossParameter* New() const PROTOBUF_FINAL { return New(NULL); } - HingeLossParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + HingeLossParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const HingeLossParameter& from); void MergeFrom(const HingeLossParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(HingeLossParameter* other); - void UnsafeMergeFrom(const HingeLossParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -7662,22 +8616,16 @@ class HingeLossParameter : public ::google::protobuf::Message /* @@protoc_insert // @@protoc_insertion_point(class_scope:opencv_caffe.HingeLossParameter) private: - inline void set_has_norm(); - inline void clear_has_norm(); + void set_has_norm(); + void clear_has_norm(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; int norm_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHingeLossParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed HingeLossParameter_default_instance_; - // ------------------------------------------------------------------- class ImageDataParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ImageDataParameter) */ { @@ -7691,11 +8639,24 @@ class ImageDataParameter : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + ImageDataParameter(ImageDataParameter&& from) noexcept + : ImageDataParameter() { + *this = ::std::move(from); + } + inline ImageDataParameter& operator=(ImageDataParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -7703,49 +8664,54 @@ class ImageDataParameter : public ::google::protobuf::Message /* @@protoc_insert static const ::google::protobuf::Descriptor* descriptor(); static const ImageDataParameter& default_instance(); - static const ImageDataParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ImageDataParameter* internal_default_instance() { + return reinterpret_cast( + &_ImageDataParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 39; void Swap(ImageDataParameter* other); + friend void swap(ImageDataParameter& a, ImageDataParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ImageDataParameter* New() const { return New(NULL); } + inline ImageDataParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ImageDataParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ImageDataParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ImageDataParameter& from); void MergeFrom(const ImageDataParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ImageDataParameter* other); - void UnsafeMergeFrom(const ImageDataParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -7757,18 +8723,51 @@ class ImageDataParameter : public ::google::protobuf::Message /* @@protoc_insert static const int kSourceFieldNumber = 1; const ::std::string& source() const; void set_source(const ::std::string& value); + #if LANG_CXX11 + void set_source(::std::string&& value); + #endif void set_source(const char* value); void set_source(const char* value, size_t size); ::std::string* mutable_source(); ::std::string* release_source(); void set_allocated_source(::std::string* source); - // optional uint32 batch_size = 4 [default = 1]; - bool has_batch_size() const; - void clear_batch_size(); - static const int kBatchSizeFieldNumber = 4; - ::google::protobuf::uint32 batch_size() const; - void set_batch_size(::google::protobuf::uint32 value); + // optional string mean_file = 3; + bool has_mean_file() const; + void clear_mean_file(); + static const int kMeanFileFieldNumber = 3; + const ::std::string& mean_file() const; + void set_mean_file(const ::std::string& value); + #if LANG_CXX11 + void set_mean_file(::std::string&& value); + #endif + void set_mean_file(const char* value); + void set_mean_file(const char* value, size_t size); + ::std::string* mutable_mean_file(); + ::std::string* release_mean_file(); + void set_allocated_mean_file(::std::string* mean_file); + + // optional string root_folder = 12 [default = ""]; + bool has_root_folder() const; + void clear_root_folder(); + static const int kRootFolderFieldNumber = 12; + const ::std::string& root_folder() const; + void set_root_folder(const ::std::string& value); + #if LANG_CXX11 + void set_root_folder(::std::string&& value); + #endif + void set_root_folder(const char* value); + void set_root_folder(const char* value, size_t size); + ::std::string* mutable_root_folder(); + ::std::string* release_root_folder(); + void set_allocated_root_folder(::std::string* root_folder); + + // optional uint32 crop_size = 5 [default = 0]; + bool has_crop_size() const; + void clear_crop_size(); + static const int kCropSizeFieldNumber = 5; + ::google::protobuf::uint32 crop_size() const; + void set_crop_size(::google::protobuf::uint32 value); // optional uint32 rand_skip = 7 [default = 0]; bool has_rand_skip() const; @@ -7784,6 +8783,13 @@ class ImageDataParameter : public ::google::protobuf::Message /* @@protoc_insert bool shuffle() const; void set_shuffle(bool value); + // optional bool mirror = 6 [default = false]; + bool has_mirror() const; + void clear_mirror(); + static const int kMirrorFieldNumber = 6; + bool mirror() const; + void set_mirror(bool value); + // optional uint32 new_height = 9 [default = 0]; bool has_new_height() const; void clear_new_height(); @@ -7812,70 +8818,39 @@ class ImageDataParameter : public ::google::protobuf::Message /* @@protoc_insert float scale() const; void set_scale(float value); - // optional string mean_file = 3; - bool has_mean_file() const; - void clear_mean_file(); - static const int kMeanFileFieldNumber = 3; - const ::std::string& mean_file() const; - void set_mean_file(const ::std::string& value); - void set_mean_file(const char* value); - void set_mean_file(const char* value, size_t size); - ::std::string* mutable_mean_file(); - ::std::string* release_mean_file(); - void set_allocated_mean_file(::std::string* mean_file); - - // optional uint32 crop_size = 5 [default = 0]; - bool has_crop_size() const; - void clear_crop_size(); - static const int kCropSizeFieldNumber = 5; - ::google::protobuf::uint32 crop_size() const; - void set_crop_size(::google::protobuf::uint32 value); - - // optional bool mirror = 6 [default = false]; - bool has_mirror() const; - void clear_mirror(); - static const int kMirrorFieldNumber = 6; - bool mirror() const; - void set_mirror(bool value); - - // optional string root_folder = 12 [default = ""]; - bool has_root_folder() const; - void clear_root_folder(); - static const int kRootFolderFieldNumber = 12; - const ::std::string& root_folder() const; - void set_root_folder(const ::std::string& value); - void set_root_folder(const char* value); - void set_root_folder(const char* value, size_t size); - ::std::string* mutable_root_folder(); - ::std::string* release_root_folder(); - void set_allocated_root_folder(::std::string* root_folder); + // optional uint32 batch_size = 4 [default = 1]; + bool has_batch_size() const; + void clear_batch_size(); + static const int kBatchSizeFieldNumber = 4; + ::google::protobuf::uint32 batch_size() const; + void set_batch_size(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:opencv_caffe.ImageDataParameter) private: - inline void set_has_source(); - inline void clear_has_source(); - inline void set_has_batch_size(); - inline void clear_has_batch_size(); - inline void set_has_rand_skip(); - inline void clear_has_rand_skip(); - inline void set_has_shuffle(); - inline void clear_has_shuffle(); - inline void set_has_new_height(); - inline void clear_has_new_height(); - inline void set_has_new_width(); - inline void clear_has_new_width(); - inline void set_has_is_color(); - inline void clear_has_is_color(); - inline void set_has_scale(); - inline void clear_has_scale(); - inline void set_has_mean_file(); - inline void clear_has_mean_file(); - inline void set_has_crop_size(); - inline void clear_has_crop_size(); - inline void set_has_mirror(); - inline void clear_has_mirror(); - inline void set_has_root_folder(); - inline void clear_has_root_folder(); + void set_has_source(); + void clear_has_source(); + void set_has_batch_size(); + void clear_has_batch_size(); + void set_has_rand_skip(); + void clear_has_rand_skip(); + void set_has_shuffle(); + void clear_has_shuffle(); + void set_has_new_height(); + void clear_has_new_height(); + void set_has_new_width(); + void clear_has_new_width(); + void set_has_is_color(); + void clear_has_is_color(); + void set_has_scale(); + void clear_has_scale(); + void set_has_mean_file(); + void clear_has_mean_file(); + void set_has_crop_size(); + void clear_has_crop_size(); + void set_has_mirror(); + void clear_has_mirror(); + void set_has_root_folder(); + void clear_has_root_folder(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -7883,24 +8858,18 @@ class ImageDataParameter : public ::google::protobuf::Message /* @@protoc_insert ::google::protobuf::internal::ArenaStringPtr source_; ::google::protobuf::internal::ArenaStringPtr mean_file_; ::google::protobuf::internal::ArenaStringPtr root_folder_; + ::google::protobuf::uint32 crop_size_; ::google::protobuf::uint32 rand_skip_; - ::google::protobuf::uint32 new_height_; - ::google::protobuf::uint32 new_width_; bool shuffle_; bool mirror_; - ::google::protobuf::uint32 crop_size_; + ::google::protobuf::uint32 new_height_; + ::google::protobuf::uint32 new_width_; + bool is_color_; float scale_; ::google::protobuf::uint32 batch_size_; - bool is_color_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsImageDataParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ImageDataParameter_default_instance_; - // ------------------------------------------------------------------- class InfogainLossParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.InfogainLossParameter) */ { @@ -7914,11 +8883,24 @@ class InfogainLossParameter : public ::google::protobuf::Message /* @@protoc_ins CopyFrom(from); return *this; } + #if LANG_CXX11 + InfogainLossParameter(InfogainLossParameter&& from) noexcept + : InfogainLossParameter() { + *this = ::std::move(from); + } + inline InfogainLossParameter& operator=(InfogainLossParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -7926,49 +8908,54 @@ class InfogainLossParameter : public ::google::protobuf::Message /* @@protoc_ins static const ::google::protobuf::Descriptor* descriptor(); static const InfogainLossParameter& default_instance(); - static const InfogainLossParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InfogainLossParameter* internal_default_instance() { + return reinterpret_cast( + &_InfogainLossParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 40; void Swap(InfogainLossParameter* other); + friend void swap(InfogainLossParameter& a, InfogainLossParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline InfogainLossParameter* New() const { return New(NULL); } + inline InfogainLossParameter* New() const PROTOBUF_FINAL { return New(NULL); } - InfogainLossParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + InfogainLossParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const InfogainLossParameter& from); void MergeFrom(const InfogainLossParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(InfogainLossParameter* other); - void UnsafeMergeFrom(const InfogainLossParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -7980,6 +8967,9 @@ class InfogainLossParameter : public ::google::protobuf::Message /* @@protoc_ins static const int kSourceFieldNumber = 1; const ::std::string& source() const; void set_source(const ::std::string& value); + #if LANG_CXX11 + void set_source(::std::string&& value); + #endif void set_source(const char* value); void set_source(const char* value, size_t size); ::std::string* mutable_source(); @@ -7988,22 +8978,16 @@ class InfogainLossParameter : public ::google::protobuf::Message /* @@protoc_ins // @@protoc_insertion_point(class_scope:opencv_caffe.InfogainLossParameter) private: - inline void set_has_source(); - inline void clear_has_source(); + void set_has_source(); + void clear_has_source(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr source_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInfogainLossParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed InfogainLossParameter_default_instance_; - // ------------------------------------------------------------------- class InnerProductParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.InnerProductParameter) */ { @@ -8017,11 +9001,24 @@ class InnerProductParameter : public ::google::protobuf::Message /* @@protoc_ins CopyFrom(from); return *this; } + #if LANG_CXX11 + InnerProductParameter(InnerProductParameter&& from) noexcept + : InnerProductParameter() { + *this = ::std::move(from); + } + inline InnerProductParameter& operator=(InnerProductParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -8029,54 +9026,77 @@ class InnerProductParameter : public ::google::protobuf::Message /* @@protoc_ins static const ::google::protobuf::Descriptor* descriptor(); static const InnerProductParameter& default_instance(); - static const InnerProductParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InnerProductParameter* internal_default_instance() { + return reinterpret_cast( + &_InnerProductParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 41; void Swap(InnerProductParameter* other); + friend void swap(InnerProductParameter& a, InnerProductParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline InnerProductParameter* New() const { return New(NULL); } + inline InnerProductParameter* New() const PROTOBUF_FINAL { return New(NULL); } - InnerProductParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + InnerProductParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const InnerProductParameter& from); void MergeFrom(const InnerProductParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(InnerProductParameter* other); - void UnsafeMergeFrom(const InnerProductParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional .opencv_caffe.FillerParameter weight_filler = 3; + bool has_weight_filler() const; + void clear_weight_filler(); + static const int kWeightFillerFieldNumber = 3; + const ::opencv_caffe::FillerParameter& weight_filler() const; + ::opencv_caffe::FillerParameter* release_weight_filler(); + ::opencv_caffe::FillerParameter* mutable_weight_filler(); + void set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler); + + // optional .opencv_caffe.FillerParameter bias_filler = 4; + bool has_bias_filler() const; + void clear_bias_filler(); + static const int kBiasFillerFieldNumber = 4; + const ::opencv_caffe::FillerParameter& bias_filler() const; + ::opencv_caffe::FillerParameter* release_bias_filler(); + ::opencv_caffe::FillerParameter* mutable_bias_filler(); + void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); + // optional uint32 num_output = 1; bool has_num_output() const; void clear_num_output(); @@ -8084,6 +9104,13 @@ class InnerProductParameter : public ::google::protobuf::Message /* @@protoc_ins ::google::protobuf::uint32 num_output() const; void set_num_output(::google::protobuf::uint32 value); + // optional bool transpose = 6 [default = false]; + bool has_transpose() const; + void clear_transpose(); + static const int kTransposeFieldNumber = 6; + bool transpose() const; + void set_transpose(bool value); + // optional bool bias_term = 2 [default = true]; bool has_bias_term() const; void clear_bias_term(); @@ -8091,24 +9118,6 @@ class InnerProductParameter : public ::google::protobuf::Message /* @@protoc_ins bool bias_term() const; void set_bias_term(bool value); - // optional .opencv_caffe.FillerParameter weight_filler = 3; - bool has_weight_filler() const; - void clear_weight_filler(); - static const int kWeightFillerFieldNumber = 3; - const ::opencv_caffe::FillerParameter& weight_filler() const; - ::opencv_caffe::FillerParameter* mutable_weight_filler(); - ::opencv_caffe::FillerParameter* release_weight_filler(); - void set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler); - - // optional .opencv_caffe.FillerParameter bias_filler = 4; - bool has_bias_filler() const; - void clear_bias_filler(); - static const int kBiasFillerFieldNumber = 4; - const ::opencv_caffe::FillerParameter& bias_filler() const; - ::opencv_caffe::FillerParameter* mutable_bias_filler(); - ::opencv_caffe::FillerParameter* release_bias_filler(); - void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); - // optional int32 axis = 5 [default = 1]; bool has_axis() const; void clear_axis(); @@ -8116,27 +9125,20 @@ class InnerProductParameter : public ::google::protobuf::Message /* @@protoc_ins ::google::protobuf::int32 axis() const; void set_axis(::google::protobuf::int32 value); - // optional bool transpose = 6 [default = false]; - bool has_transpose() const; - void clear_transpose(); - static const int kTransposeFieldNumber = 6; - bool transpose() const; - void set_transpose(bool value); - // @@protoc_insertion_point(class_scope:opencv_caffe.InnerProductParameter) private: - inline void set_has_num_output(); - inline void clear_has_num_output(); - inline void set_has_bias_term(); - inline void clear_has_bias_term(); - inline void set_has_weight_filler(); - inline void clear_has_weight_filler(); - inline void set_has_bias_filler(); - inline void clear_has_bias_filler(); - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_transpose(); - inline void clear_has_transpose(); + void set_has_num_output(); + void clear_has_num_output(); + void set_has_bias_term(); + void clear_has_bias_term(); + void set_has_weight_filler(); + void clear_has_weight_filler(); + void set_has_bias_filler(); + void clear_has_bias_filler(); + void set_has_axis(); + void clear_has_axis(); + void set_has_transpose(); + void clear_has_transpose(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -8147,15 +9149,9 @@ class InnerProductParameter : public ::google::protobuf::Message /* @@protoc_ins bool transpose_; bool bias_term_; ::google::protobuf::int32 axis_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInnerProductParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed InnerProductParameter_default_instance_; - // ------------------------------------------------------------------- class InputParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.InputParameter) */ { @@ -8169,11 +9165,24 @@ class InputParameter : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + InputParameter(InputParameter&& from) noexcept + : InputParameter() { + *this = ::std::move(from); + } + inline InputParameter& operator=(InputParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -8181,49 +9190,54 @@ class InputParameter : public ::google::protobuf::Message /* @@protoc_insertion_ static const ::google::protobuf::Descriptor* descriptor(); static const InputParameter& default_instance(); - static const InputParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InputParameter* internal_default_instance() { + return reinterpret_cast( + &_InputParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 42; void Swap(InputParameter* other); + friend void swap(InputParameter& a, InputParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline InputParameter* New() const { return New(NULL); } + inline InputParameter* New() const PROTOBUF_FINAL { return New(NULL); } - InputParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + InputParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const InputParameter& from); void MergeFrom(const InputParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(InputParameter* other); - void UnsafeMergeFrom(const InputParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -8248,15 +9262,9 @@ class InputParameter : public ::google::protobuf::Message /* @@protoc_insertion_ ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobShape > shape_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInputParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed InputParameter_default_instance_; - // ------------------------------------------------------------------- class LogParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.LogParameter) */ { @@ -8270,11 +9278,24 @@ class LogParameter : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + LogParameter(LogParameter&& from) noexcept + : LogParameter() { + *this = ::std::move(from); + } + inline LogParameter& operator=(LogParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -8282,54 +9303,66 @@ class LogParameter : public ::google::protobuf::Message /* @@protoc_insertion_po static const ::google::protobuf::Descriptor* descriptor(); static const LogParameter& default_instance(); - static const LogParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LogParameter* internal_default_instance() { + return reinterpret_cast( + &_LogParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 43; void Swap(LogParameter* other); + friend void swap(LogParameter& a, LogParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline LogParameter* New() const { return New(NULL); } + inline LogParameter* New() const PROTOBUF_FINAL { return New(NULL); } - LogParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + LogParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const LogParameter& from); void MergeFrom(const LogParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(LogParameter* other); - void UnsafeMergeFrom(const LogParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional float shift = 3 [default = 0]; + bool has_shift() const; + void clear_shift(); + static const int kShiftFieldNumber = 3; + float shift() const; + void set_shift(float value); + // optional float base = 1 [default = -1]; bool has_base() const; void clear_base(); @@ -8344,21 +9377,14 @@ class LogParameter : public ::google::protobuf::Message /* @@protoc_insertion_po float scale() const; void set_scale(float value); - // optional float shift = 3 [default = 0]; - bool has_shift() const; - void clear_shift(); - static const int kShiftFieldNumber = 3; - float shift() const; - void set_shift(float value); - // @@protoc_insertion_point(class_scope:opencv_caffe.LogParameter) private: - inline void set_has_base(); - inline void clear_has_base(); - inline void set_has_scale(); - inline void clear_has_scale(); - inline void set_has_shift(); - inline void clear_has_shift(); + void set_has_base(); + void clear_has_base(); + void set_has_scale(); + void clear_has_scale(); + void set_has_shift(); + void clear_has_shift(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -8366,15 +9392,9 @@ class LogParameter : public ::google::protobuf::Message /* @@protoc_insertion_po float shift_; float base_; float scale_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLogParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed LogParameter_default_instance_; - // ------------------------------------------------------------------- class LRNParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.LRNParameter) */ { @@ -8388,11 +9408,24 @@ class LRNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + LRNParameter(LRNParameter&& from) noexcept + : LRNParameter() { + *this = ::std::move(from); + } + inline LRNParameter& operator=(LRNParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -8400,49 +9433,54 @@ class LRNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po static const ::google::protobuf::Descriptor* descriptor(); static const LRNParameter& default_instance(); - static const LRNParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LRNParameter* internal_default_instance() { + return reinterpret_cast( + &_LRNParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 44; void Swap(LRNParameter* other); + friend void swap(LRNParameter& a, LRNParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline LRNParameter* New() const { return New(NULL); } + inline LRNParameter* New() const PROTOBUF_FINAL { return New(NULL); } - LRNParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + LRNParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const LRNParameter& from); void MergeFrom(const LRNParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(LRNParameter* other); - void UnsafeMergeFrom(const LRNParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -8502,6 +9540,20 @@ class LRNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po // accessors ------------------------------------------------------- + // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; + bool has_norm_region() const; + void clear_norm_region(); + static const int kNormRegionFieldNumber = 4; + ::opencv_caffe::LRNParameter_NormRegion norm_region() const; + void set_norm_region(::opencv_caffe::LRNParameter_NormRegion value); + + // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; + bool has_engine() const; + void clear_engine(); + static const int kEngineFieldNumber = 6; + ::opencv_caffe::LRNParameter_Engine engine() const; + void set_engine(::opencv_caffe::LRNParameter_Engine value); + // optional uint32 local_size = 1 [default = 5]; bool has_local_size() const; void clear_local_size(); @@ -8523,13 +9575,6 @@ class LRNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po float beta() const; void set_beta(float value); - // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; - bool has_norm_region() const; - void clear_norm_region(); - static const int kNormRegionFieldNumber = 4; - ::opencv_caffe::LRNParameter_NormRegion norm_region() const; - void set_norm_region(::opencv_caffe::LRNParameter_NormRegion value); - // optional float k = 5 [default = 1]; bool has_k() const; void clear_k(); @@ -8537,27 +9582,20 @@ class LRNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po float k() const; void set_k(float value); - // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; - bool has_engine() const; - void clear_engine(); - static const int kEngineFieldNumber = 6; - ::opencv_caffe::LRNParameter_Engine engine() const; - void set_engine(::opencv_caffe::LRNParameter_Engine value); - // @@protoc_insertion_point(class_scope:opencv_caffe.LRNParameter) private: - inline void set_has_local_size(); - inline void clear_has_local_size(); - inline void set_has_alpha(); - inline void clear_has_alpha(); - inline void set_has_beta(); - inline void clear_has_beta(); - inline void set_has_norm_region(); - inline void clear_has_norm_region(); - inline void set_has_k(); - inline void clear_has_k(); - inline void set_has_engine(); - inline void clear_has_engine(); + void set_has_local_size(); + void clear_has_local_size(); + void set_has_alpha(); + void clear_has_alpha(); + void set_has_beta(); + void clear_has_beta(); + void set_has_norm_region(); + void clear_has_norm_region(); + void set_has_k(); + void clear_has_k(); + void set_has_engine(); + void clear_has_engine(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -8568,15 +9606,9 @@ class LRNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po float alpha_; float beta_; float k_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLRNParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed LRNParameter_default_instance_; - // ------------------------------------------------------------------- class MemoryDataParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.MemoryDataParameter) */ { @@ -8590,11 +9622,24 @@ class MemoryDataParameter : public ::google::protobuf::Message /* @@protoc_inser CopyFrom(from); return *this; } + #if LANG_CXX11 + MemoryDataParameter(MemoryDataParameter&& from) noexcept + : MemoryDataParameter() { + *this = ::std::move(from); + } + inline MemoryDataParameter& operator=(MemoryDataParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -8602,49 +9647,54 @@ class MemoryDataParameter : public ::google::protobuf::Message /* @@protoc_inser static const ::google::protobuf::Descriptor* descriptor(); static const MemoryDataParameter& default_instance(); - static const MemoryDataParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MemoryDataParameter* internal_default_instance() { + return reinterpret_cast( + &_MemoryDataParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 45; void Swap(MemoryDataParameter* other); + friend void swap(MemoryDataParameter& a, MemoryDataParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline MemoryDataParameter* New() const { return New(NULL); } + inline MemoryDataParameter* New() const PROTOBUF_FINAL { return New(NULL); } - MemoryDataParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + MemoryDataParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const MemoryDataParameter& from); void MergeFrom(const MemoryDataParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(MemoryDataParameter* other); - void UnsafeMergeFrom(const MemoryDataParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -8680,14 +9730,14 @@ class MemoryDataParameter : public ::google::protobuf::Message /* @@protoc_inser // @@protoc_insertion_point(class_scope:opencv_caffe.MemoryDataParameter) private: - inline void set_has_batch_size(); - inline void clear_has_batch_size(); - inline void set_has_channels(); - inline void clear_has_channels(); - inline void set_has_height(); - inline void clear_has_height(); - inline void set_has_width(); - inline void clear_has_width(); + void set_has_batch_size(); + void clear_has_batch_size(); + void set_has_channels(); + void clear_has_channels(); + void set_has_height(); + void clear_has_height(); + void set_has_width(); + void clear_has_width(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -8696,15 +9746,9 @@ class MemoryDataParameter : public ::google::protobuf::Message /* @@protoc_inser ::google::protobuf::uint32 channels_; ::google::protobuf::uint32 height_; ::google::protobuf::uint32 width_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMemoryDataParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed MemoryDataParameter_default_instance_; - // ------------------------------------------------------------------- class MVNParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.MVNParameter) */ { @@ -8718,11 +9762,24 @@ class MVNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + MVNParameter(MVNParameter&& from) noexcept + : MVNParameter() { + *this = ::std::move(from); + } + inline MVNParameter& operator=(MVNParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -8730,61 +9787,59 @@ class MVNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po static const ::google::protobuf::Descriptor* descriptor(); static const MVNParameter& default_instance(); - static const MVNParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MVNParameter* internal_default_instance() { + return reinterpret_cast( + &_MVNParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 46; void Swap(MVNParameter* other); + friend void swap(MVNParameter& a, MVNParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline MVNParameter* New() const { return New(NULL); } + inline MVNParameter* New() const PROTOBUF_FINAL { return New(NULL); } - MVNParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + MVNParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const MVNParameter& from); void MergeFrom(const MVNParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(MVNParameter* other); - void UnsafeMergeFrom(const MVNParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional bool normalize_variance = 1 [default = true]; - bool has_normalize_variance() const; - void clear_normalize_variance(); - static const int kNormalizeVarianceFieldNumber = 1; - bool normalize_variance() const; - void set_normalize_variance(bool value); - // optional bool across_channels = 2 [default = false]; bool has_across_channels() const; void clear_across_channels(); @@ -8792,6 +9847,13 @@ class MVNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po bool across_channels() const; void set_across_channels(bool value); + // optional bool normalize_variance = 1 [default = true]; + bool has_normalize_variance() const; + void clear_normalize_variance(); + static const int kNormalizeVarianceFieldNumber = 1; + bool normalize_variance() const; + void set_normalize_variance(bool value); + // optional float eps = 3 [default = 1e-09]; bool has_eps() const; void clear_eps(); @@ -8801,12 +9863,12 @@ class MVNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po // @@protoc_insertion_point(class_scope:opencv_caffe.MVNParameter) private: - inline void set_has_normalize_variance(); - inline void clear_has_normalize_variance(); - inline void set_has_across_channels(); - inline void clear_has_across_channels(); - inline void set_has_eps(); - inline void clear_has_eps(); + void set_has_normalize_variance(); + void clear_has_normalize_variance(); + void set_has_across_channels(); + void clear_has_across_channels(); + void set_has_eps(); + void clear_has_eps(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -8814,15 +9876,9 @@ class MVNParameter : public ::google::protobuf::Message /* @@protoc_insertion_po bool across_channels_; bool normalize_variance_; float eps_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMVNParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed MVNParameter_default_instance_; - // ------------------------------------------------------------------- class ParameterParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ParameterParameter) */ { @@ -8836,11 +9892,24 @@ class ParameterParameter : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + ParameterParameter(ParameterParameter&& from) noexcept + : ParameterParameter() { + *this = ::std::move(from); + } + inline ParameterParameter& operator=(ParameterParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -8848,49 +9917,54 @@ class ParameterParameter : public ::google::protobuf::Message /* @@protoc_insert static const ::google::protobuf::Descriptor* descriptor(); static const ParameterParameter& default_instance(); - static const ParameterParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterParameter* internal_default_instance() { + return reinterpret_cast( + &_ParameterParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 47; void Swap(ParameterParameter* other); + friend void swap(ParameterParameter& a, ParameterParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ParameterParameter* New() const { return New(NULL); } + inline ParameterParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ParameterParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ParameterParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ParameterParameter& from); void MergeFrom(const ParameterParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ParameterParameter* other); - void UnsafeMergeFrom(const ParameterParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -8901,28 +9975,22 @@ class ParameterParameter : public ::google::protobuf::Message /* @@protoc_insert void clear_shape(); static const int kShapeFieldNumber = 1; const ::opencv_caffe::BlobShape& shape() const; - ::opencv_caffe::BlobShape* mutable_shape(); ::opencv_caffe::BlobShape* release_shape(); + ::opencv_caffe::BlobShape* mutable_shape(); void set_allocated_shape(::opencv_caffe::BlobShape* shape); // @@protoc_insertion_point(class_scope:opencv_caffe.ParameterParameter) private: - inline void set_has_shape(); - inline void clear_has_shape(); + void set_has_shape(); + void clear_has_shape(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::opencv_caffe::BlobShape* shape_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParameterParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ParameterParameter_default_instance_; - // ------------------------------------------------------------------- class PoolingParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.PoolingParameter) */ { @@ -8936,11 +10004,24 @@ class PoolingParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + PoolingParameter(PoolingParameter&& from) noexcept + : PoolingParameter() { + *this = ::std::move(from); + } + inline PoolingParameter& operator=(PoolingParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -8948,49 +10029,54 @@ class PoolingParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const PoolingParameter& default_instance(); - static const PoolingParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PoolingParameter* internal_default_instance() { + return reinterpret_cast( + &_PoolingParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 48; void Swap(PoolingParameter* other); + friend void swap(PoolingParameter& a, PoolingParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PoolingParameter* New() const { return New(NULL); } + inline PoolingParameter* New() const PROTOBUF_FINAL { return New(NULL); } - PoolingParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + PoolingParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PoolingParameter& from); void MergeFrom(const PoolingParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PoolingParameter* other); - void UnsafeMergeFrom(const PoolingParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -9059,27 +10145,6 @@ class PoolingParameter : public ::google::protobuf::Message /* @@protoc_insertio ::opencv_caffe::PoolingParameter_PoolMethod pool() const; void set_pool(::opencv_caffe::PoolingParameter_PoolMethod value); - // optional uint32 pad = 4 [default = 0]; - bool has_pad() const; - void clear_pad(); - static const int kPadFieldNumber = 4; - ::google::protobuf::uint32 pad() const; - void set_pad(::google::protobuf::uint32 value); - - // optional uint32 pad_h = 9 [default = 0]; - bool has_pad_h() const; - void clear_pad_h(); - static const int kPadHFieldNumber = 9; - ::google::protobuf::uint32 pad_h() const; - void set_pad_h(::google::protobuf::uint32 value); - - // optional uint32 pad_w = 10 [default = 0]; - bool has_pad_w() const; - void clear_pad_w(); - static const int kPadWFieldNumber = 10; - ::google::protobuf::uint32 pad_w() const; - void set_pad_w(::google::protobuf::uint32 value); - // optional uint32 kernel_size = 2; bool has_kernel_size() const; void clear_kernel_size(); @@ -9087,6 +10152,13 @@ class PoolingParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::uint32 kernel_size() const; void set_kernel_size(::google::protobuf::uint32 value); + // optional uint32 pad = 4 [default = 0]; + bool has_pad() const; + void clear_pad(); + static const int kPadFieldNumber = 4; + ::google::protobuf::uint32 pad() const; + void set_pad(::google::protobuf::uint32 value); + // optional uint32 kernel_h = 5; bool has_kernel_h() const; void clear_kernel_h(); @@ -9101,13 +10173,6 @@ class PoolingParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::uint32 kernel_w() const; void set_kernel_w(::google::protobuf::uint32 value); - // optional uint32 stride = 3 [default = 1]; - bool has_stride() const; - void clear_stride(); - static const int kStrideFieldNumber = 3; - ::google::protobuf::uint32 stride() const; - void set_stride(::google::protobuf::uint32 value); - // optional uint32 stride_h = 7; bool has_stride_h() const; void clear_stride_h(); @@ -9122,6 +10187,20 @@ class PoolingParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::uint32 stride_w() const; void set_stride_w(::google::protobuf::uint32 value); + // optional uint32 pad_h = 9 [default = 0]; + bool has_pad_h() const; + void clear_pad_h(); + static const int kPadHFieldNumber = 9; + ::google::protobuf::uint32 pad_h() const; + void set_pad_h(::google::protobuf::uint32 value); + + // optional uint32 pad_w = 10 [default = 0]; + bool has_pad_w() const; + void clear_pad_w(); + static const int kPadWFieldNumber = 10; + ::google::protobuf::uint32 pad_w() const; + void set_pad_w(::google::protobuf::uint32 value); + // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; bool has_engine() const; void clear_engine(); @@ -9136,6 +10215,13 @@ class PoolingParameter : public ::google::protobuf::Message /* @@protoc_insertio bool global_pooling() const; void set_global_pooling(bool value); + // optional uint32 stride = 3 [default = 1]; + bool has_stride() const; + void clear_stride(); + static const int kStrideFieldNumber = 3; + ::google::protobuf::uint32 stride() const; + void set_stride(::google::protobuf::uint32 value); + // optional bool ceil_mode = 13 [default = true]; bool has_ceil_mode() const; void clear_ceil_mode(); @@ -9145,58 +10231,52 @@ class PoolingParameter : public ::google::protobuf::Message /* @@protoc_insertio // @@protoc_insertion_point(class_scope:opencv_caffe.PoolingParameter) private: - inline void set_has_pool(); - inline void clear_has_pool(); - inline void set_has_pad(); - inline void clear_has_pad(); - inline void set_has_pad_h(); - inline void clear_has_pad_h(); - inline void set_has_pad_w(); - inline void clear_has_pad_w(); - inline void set_has_kernel_size(); - inline void clear_has_kernel_size(); - inline void set_has_kernel_h(); - inline void clear_has_kernel_h(); - inline void set_has_kernel_w(); - inline void clear_has_kernel_w(); - inline void set_has_stride(); - inline void clear_has_stride(); - inline void set_has_stride_h(); - inline void clear_has_stride_h(); - inline void set_has_stride_w(); - inline void clear_has_stride_w(); - inline void set_has_engine(); - inline void clear_has_engine(); - inline void set_has_global_pooling(); - inline void clear_has_global_pooling(); - inline void set_has_ceil_mode(); - inline void clear_has_ceil_mode(); + void set_has_pool(); + void clear_has_pool(); + void set_has_pad(); + void clear_has_pad(); + void set_has_pad_h(); + void clear_has_pad_h(); + void set_has_pad_w(); + void clear_has_pad_w(); + void set_has_kernel_size(); + void clear_has_kernel_size(); + void set_has_kernel_h(); + void clear_has_kernel_h(); + void set_has_kernel_w(); + void clear_has_kernel_w(); + void set_has_stride(); + void clear_has_stride(); + void set_has_stride_h(); + void clear_has_stride_h(); + void set_has_stride_w(); + void clear_has_stride_w(); + void set_has_engine(); + void clear_has_engine(); + void set_has_global_pooling(); + void clear_has_global_pooling(); + void set_has_ceil_mode(); + void clear_has_ceil_mode(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; int pool_; - ::google::protobuf::uint32 pad_; - ::google::protobuf::uint32 pad_h_; - ::google::protobuf::uint32 pad_w_; ::google::protobuf::uint32 kernel_size_; + ::google::protobuf::uint32 pad_; ::google::protobuf::uint32 kernel_h_; ::google::protobuf::uint32 kernel_w_; ::google::protobuf::uint32 stride_h_; ::google::protobuf::uint32 stride_w_; + ::google::protobuf::uint32 pad_h_; + ::google::protobuf::uint32 pad_w_; int engine_; bool global_pooling_; ::google::protobuf::uint32 stride_; bool ceil_mode_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPoolingParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed PoolingParameter_default_instance_; - // ------------------------------------------------------------------- class PowerParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.PowerParameter) */ { @@ -9210,11 +10290,24 @@ class PowerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + PowerParameter(PowerParameter&& from) noexcept + : PowerParameter() { + *this = ::std::move(from); + } + inline PowerParameter& operator=(PowerParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -9222,54 +10315,66 @@ class PowerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ static const ::google::protobuf::Descriptor* descriptor(); static const PowerParameter& default_instance(); - static const PowerParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PowerParameter* internal_default_instance() { + return reinterpret_cast( + &_PowerParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 49; void Swap(PowerParameter* other); + friend void swap(PowerParameter& a, PowerParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PowerParameter* New() const { return New(NULL); } + inline PowerParameter* New() const PROTOBUF_FINAL { return New(NULL); } - PowerParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + PowerParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PowerParameter& from); void MergeFrom(const PowerParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PowerParameter* other); - void UnsafeMergeFrom(const PowerParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional float shift = 3 [default = 0]; + bool has_shift() const; + void clear_shift(); + static const int kShiftFieldNumber = 3; + float shift() const; + void set_shift(float value); + // optional float power = 1 [default = 1]; bool has_power() const; void clear_power(); @@ -9284,21 +10389,14 @@ class PowerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ float scale() const; void set_scale(float value); - // optional float shift = 3 [default = 0]; - bool has_shift() const; - void clear_shift(); - static const int kShiftFieldNumber = 3; - float shift() const; - void set_shift(float value); - // @@protoc_insertion_point(class_scope:opencv_caffe.PowerParameter) private: - inline void set_has_power(); - inline void clear_has_power(); - inline void set_has_scale(); - inline void clear_has_scale(); - inline void set_has_shift(); - inline void clear_has_shift(); + void set_has_power(); + void clear_has_power(); + void set_has_scale(); + void clear_has_scale(); + void set_has_shift(); + void clear_has_shift(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -9306,15 +10404,9 @@ class PowerParameter : public ::google::protobuf::Message /* @@protoc_insertion_ float shift_; float power_; float scale_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPowerParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed PowerParameter_default_instance_; - // ------------------------------------------------------------------- class PythonParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.PythonParameter) */ { @@ -9328,11 +10420,24 @@ class PythonParameter : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + PythonParameter(PythonParameter&& from) noexcept + : PythonParameter() { + *this = ::std::move(from); + } + inline PythonParameter& operator=(PythonParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -9340,49 +10445,54 @@ class PythonParameter : public ::google::protobuf::Message /* @@protoc_insertion static const ::google::protobuf::Descriptor* descriptor(); static const PythonParameter& default_instance(); - static const PythonParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PythonParameter* internal_default_instance() { + return reinterpret_cast( + &_PythonParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 50; void Swap(PythonParameter* other); + friend void swap(PythonParameter& a, PythonParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PythonParameter* New() const { return New(NULL); } + inline PythonParameter* New() const PROTOBUF_FINAL { return New(NULL); } - PythonParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + PythonParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PythonParameter& from); void MergeFrom(const PythonParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PythonParameter* other); - void UnsafeMergeFrom(const PythonParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -9394,6 +10504,9 @@ class PythonParameter : public ::google::protobuf::Message /* @@protoc_insertion static const int kModuleFieldNumber = 1; const ::std::string& module() const; void set_module(const ::std::string& value); + #if LANG_CXX11 + void set_module(::std::string&& value); + #endif void set_module(const char* value); void set_module(const char* value, size_t size); ::std::string* mutable_module(); @@ -9406,6 +10519,9 @@ class PythonParameter : public ::google::protobuf::Message /* @@protoc_insertion static const int kLayerFieldNumber = 2; const ::std::string& layer() const; void set_layer(const ::std::string& value); + #if LANG_CXX11 + void set_layer(::std::string&& value); + #endif void set_layer(const char* value); void set_layer(const char* value, size_t size); ::std::string* mutable_layer(); @@ -9418,6 +10534,9 @@ class PythonParameter : public ::google::protobuf::Message /* @@protoc_insertion static const int kParamStrFieldNumber = 3; const ::std::string& param_str() const; void set_param_str(const ::std::string& value); + #if LANG_CXX11 + void set_param_str(::std::string&& value); + #endif void set_param_str(const char* value); void set_param_str(const char* value, size_t size); ::std::string* mutable_param_str(); @@ -9433,14 +10552,14 @@ class PythonParameter : public ::google::protobuf::Message /* @@protoc_insertion // @@protoc_insertion_point(class_scope:opencv_caffe.PythonParameter) private: - inline void set_has_module(); - inline void clear_has_module(); - inline void set_has_layer(); - inline void clear_has_layer(); - inline void set_has_param_str(); - inline void clear_has_param_str(); - inline void set_has_share_in_parallel(); - inline void clear_has_share_in_parallel(); + void set_has_module(); + void clear_has_module(); + void set_has_layer(); + void clear_has_layer(); + void set_has_param_str(); + void clear_has_param_str(); + void set_has_share_in_parallel(); + void clear_has_share_in_parallel(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -9449,15 +10568,9 @@ class PythonParameter : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::internal::ArenaStringPtr layer_; ::google::protobuf::internal::ArenaStringPtr param_str_; bool share_in_parallel_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPythonParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed PythonParameter_default_instance_; - // ------------------------------------------------------------------- class RecurrentParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.RecurrentParameter) */ { @@ -9471,11 +10584,24 @@ class RecurrentParameter : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + RecurrentParameter(RecurrentParameter&& from) noexcept + : RecurrentParameter() { + *this = ::std::move(from); + } + inline RecurrentParameter& operator=(RecurrentParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -9483,68 +10609,66 @@ class RecurrentParameter : public ::google::protobuf::Message /* @@protoc_insert static const ::google::protobuf::Descriptor* descriptor(); static const RecurrentParameter& default_instance(); - static const RecurrentParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RecurrentParameter* internal_default_instance() { + return reinterpret_cast( + &_RecurrentParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 51; void Swap(RecurrentParameter* other); + friend void swap(RecurrentParameter& a, RecurrentParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline RecurrentParameter* New() const { return New(NULL); } + inline RecurrentParameter* New() const PROTOBUF_FINAL { return New(NULL); } - RecurrentParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + RecurrentParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const RecurrentParameter& from); void MergeFrom(const RecurrentParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(RecurrentParameter* other); - void UnsafeMergeFrom(const RecurrentParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional uint32 num_output = 1 [default = 0]; - bool has_num_output() const; - void clear_num_output(); - static const int kNumOutputFieldNumber = 1; - ::google::protobuf::uint32 num_output() const; - void set_num_output(::google::protobuf::uint32 value); - // optional .opencv_caffe.FillerParameter weight_filler = 2; bool has_weight_filler() const; void clear_weight_filler(); static const int kWeightFillerFieldNumber = 2; const ::opencv_caffe::FillerParameter& weight_filler() const; - ::opencv_caffe::FillerParameter* mutable_weight_filler(); ::opencv_caffe::FillerParameter* release_weight_filler(); + ::opencv_caffe::FillerParameter* mutable_weight_filler(); void set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler); // optional .opencv_caffe.FillerParameter bias_filler = 3; @@ -9552,10 +10676,17 @@ class RecurrentParameter : public ::google::protobuf::Message /* @@protoc_insert void clear_bias_filler(); static const int kBiasFillerFieldNumber = 3; const ::opencv_caffe::FillerParameter& bias_filler() const; - ::opencv_caffe::FillerParameter* mutable_bias_filler(); ::opencv_caffe::FillerParameter* release_bias_filler(); + ::opencv_caffe::FillerParameter* mutable_bias_filler(); void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); + // optional uint32 num_output = 1 [default = 0]; + bool has_num_output() const; + void clear_num_output(); + static const int kNumOutputFieldNumber = 1; + ::google::protobuf::uint32 num_output() const; + void set_num_output(::google::protobuf::uint32 value); + // optional bool debug_info = 4 [default = false]; bool has_debug_info() const; void clear_debug_info(); @@ -9572,16 +10703,16 @@ class RecurrentParameter : public ::google::protobuf::Message /* @@protoc_insert // @@protoc_insertion_point(class_scope:opencv_caffe.RecurrentParameter) private: - inline void set_has_num_output(); - inline void clear_has_num_output(); - inline void set_has_weight_filler(); - inline void clear_has_weight_filler(); - inline void set_has_bias_filler(); - inline void clear_has_bias_filler(); - inline void set_has_debug_info(); - inline void clear_has_debug_info(); - inline void set_has_expose_hidden(); - inline void clear_has_expose_hidden(); + void set_has_num_output(); + void clear_has_num_output(); + void set_has_weight_filler(); + void clear_has_weight_filler(); + void set_has_bias_filler(); + void clear_has_bias_filler(); + void set_has_debug_info(); + void clear_has_debug_info(); + void set_has_expose_hidden(); + void clear_has_expose_hidden(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -9591,15 +10722,9 @@ class RecurrentParameter : public ::google::protobuf::Message /* @@protoc_insert ::google::protobuf::uint32 num_output_; bool debug_info_; bool expose_hidden_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsRecurrentParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed RecurrentParameter_default_instance_; - // ------------------------------------------------------------------- class ReductionParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ReductionParameter) */ { @@ -9613,11 +10738,24 @@ class ReductionParameter : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + ReductionParameter(ReductionParameter&& from) noexcept + : ReductionParameter() { + *this = ::std::move(from); + } + inline ReductionParameter& operator=(ReductionParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -9625,49 +10763,54 @@ class ReductionParameter : public ::google::protobuf::Message /* @@protoc_insert static const ::google::protobuf::Descriptor* descriptor(); static const ReductionParameter& default_instance(); - static const ReductionParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ReductionParameter* internal_default_instance() { + return reinterpret_cast( + &_ReductionParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 52; void Swap(ReductionParameter* other); + friend void swap(ReductionParameter& a, ReductionParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ReductionParameter* New() const { return New(NULL); } + inline ReductionParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ReductionParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ReductionParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ReductionParameter& from); void MergeFrom(const ReductionParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ReductionParameter* other); - void UnsafeMergeFrom(const ReductionParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -9703,13 +10846,6 @@ class ReductionParameter : public ::google::protobuf::Message /* @@protoc_insert // accessors ------------------------------------------------------- - // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; - bool has_operation() const; - void clear_operation(); - static const int kOperationFieldNumber = 1; - ::opencv_caffe::ReductionParameter_ReductionOp operation() const; - void set_operation(::opencv_caffe::ReductionParameter_ReductionOp value); - // optional int32 axis = 2 [default = 0]; bool has_axis() const; void clear_axis(); @@ -9717,6 +10853,13 @@ class ReductionParameter : public ::google::protobuf::Message /* @@protoc_insert ::google::protobuf::int32 axis() const; void set_axis(::google::protobuf::int32 value); + // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; + bool has_operation() const; + void clear_operation(); + static const int kOperationFieldNumber = 1; + ::opencv_caffe::ReductionParameter_ReductionOp operation() const; + void set_operation(::opencv_caffe::ReductionParameter_ReductionOp value); + // optional float coeff = 3 [default = 1]; bool has_coeff() const; void clear_coeff(); @@ -9726,12 +10869,12 @@ class ReductionParameter : public ::google::protobuf::Message /* @@protoc_insert // @@protoc_insertion_point(class_scope:opencv_caffe.ReductionParameter) private: - inline void set_has_operation(); - inline void clear_has_operation(); - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_coeff(); - inline void clear_has_coeff(); + void set_has_operation(); + void clear_has_operation(); + void set_has_axis(); + void clear_has_axis(); + void set_has_coeff(); + void clear_has_coeff(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -9739,15 +10882,9 @@ class ReductionParameter : public ::google::protobuf::Message /* @@protoc_insert ::google::protobuf::int32 axis_; int operation_; float coeff_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReductionParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ReductionParameter_default_instance_; - // ------------------------------------------------------------------- class ReLUParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ReLUParameter) */ { @@ -9761,11 +10898,24 @@ class ReLUParameter : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + ReLUParameter(ReLUParameter&& from) noexcept + : ReLUParameter() { + *this = ::std::move(from); + } + inline ReLUParameter& operator=(ReLUParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -9773,49 +10923,54 @@ class ReLUParameter : public ::google::protobuf::Message /* @@protoc_insertion_p static const ::google::protobuf::Descriptor* descriptor(); static const ReLUParameter& default_instance(); - static const ReLUParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ReLUParameter* internal_default_instance() { + return reinterpret_cast( + &_ReLUParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 53; void Swap(ReLUParameter* other); + friend void swap(ReLUParameter& a, ReLUParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ReLUParameter* New() const { return New(NULL); } + inline ReLUParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ReLUParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ReLUParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ReLUParameter& from); void MergeFrom(const ReLUParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ReLUParameter* other); - void UnsafeMergeFrom(const ReLUParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -9865,25 +11020,19 @@ class ReLUParameter : public ::google::protobuf::Message /* @@protoc_insertion_p // @@protoc_insertion_point(class_scope:opencv_caffe.ReLUParameter) private: - inline void set_has_negative_slope(); - inline void clear_has_negative_slope(); - inline void set_has_engine(); - inline void clear_has_engine(); + void set_has_negative_slope(); + void clear_has_negative_slope(); + void set_has_engine(); + void clear_has_engine(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; float negative_slope_; int engine_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReLUParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ReLUParameter_default_instance_; - // ------------------------------------------------------------------- class ReshapeParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ReshapeParameter) */ { @@ -9897,11 +11046,24 @@ class ReshapeParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + ReshapeParameter(ReshapeParameter&& from) noexcept + : ReshapeParameter() { + *this = ::std::move(from); + } + inline ReshapeParameter& operator=(ReshapeParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -9909,49 +11071,54 @@ class ReshapeParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const ReshapeParameter& default_instance(); - static const ReshapeParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ReshapeParameter* internal_default_instance() { + return reinterpret_cast( + &_ReshapeParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 54; void Swap(ReshapeParameter* other); + friend void swap(ReshapeParameter& a, ReshapeParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ReshapeParameter* New() const { return New(NULL); } + inline ReshapeParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ReshapeParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ReshapeParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ReshapeParameter& from); void MergeFrom(const ReshapeParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ReshapeParameter* other); - void UnsafeMergeFrom(const ReshapeParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -9962,8 +11129,8 @@ class ReshapeParameter : public ::google::protobuf::Message /* @@protoc_insertio void clear_shape(); static const int kShapeFieldNumber = 1; const ::opencv_caffe::BlobShape& shape() const; - ::opencv_caffe::BlobShape* mutable_shape(); ::opencv_caffe::BlobShape* release_shape(); + ::opencv_caffe::BlobShape* mutable_shape(); void set_allocated_shape(::opencv_caffe::BlobShape* shape); // optional int32 axis = 2 [default = 0]; @@ -9982,12 +11149,12 @@ class ReshapeParameter : public ::google::protobuf::Message /* @@protoc_insertio // @@protoc_insertion_point(class_scope:opencv_caffe.ReshapeParameter) private: - inline void set_has_shape(); - inline void clear_has_shape(); - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_num_axes(); - inline void clear_has_num_axes(); + void set_has_shape(); + void clear_has_shape(); + void set_has_axis(); + void clear_has_axis(); + void set_has_num_axes(); + void clear_has_num_axes(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -9995,15 +11162,9 @@ class ReshapeParameter : public ::google::protobuf::Message /* @@protoc_insertio ::opencv_caffe::BlobShape* shape_; ::google::protobuf::int32 axis_; ::google::protobuf::int32 num_axes_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReshapeParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ReshapeParameter_default_instance_; - // ------------------------------------------------------------------- class ScaleParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ScaleParameter) */ { @@ -10017,11 +11178,24 @@ class ScaleParameter : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + ScaleParameter(ScaleParameter&& from) noexcept + : ScaleParameter() { + *this = ::std::move(from); + } + inline ScaleParameter& operator=(ScaleParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -10029,54 +11203,84 @@ class ScaleParameter : public ::google::protobuf::Message /* @@protoc_insertion_ static const ::google::protobuf::Descriptor* descriptor(); static const ScaleParameter& default_instance(); - static const ScaleParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ScaleParameter* internal_default_instance() { + return reinterpret_cast( + &_ScaleParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 55; void Swap(ScaleParameter* other); + friend void swap(ScaleParameter& a, ScaleParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ScaleParameter* New() const { return New(NULL); } + inline ScaleParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ScaleParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ScaleParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ScaleParameter& from); void MergeFrom(const ScaleParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ScaleParameter* other); - void UnsafeMergeFrom(const ScaleParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + // optional .opencv_caffe.FillerParameter filler = 3; + bool has_filler() const; + void clear_filler(); + static const int kFillerFieldNumber = 3; + const ::opencv_caffe::FillerParameter& filler() const; + ::opencv_caffe::FillerParameter* release_filler(); + ::opencv_caffe::FillerParameter* mutable_filler(); + void set_allocated_filler(::opencv_caffe::FillerParameter* filler); + + // optional .opencv_caffe.FillerParameter bias_filler = 5; + bool has_bias_filler() const; + void clear_bias_filler(); + static const int kBiasFillerFieldNumber = 5; + const ::opencv_caffe::FillerParameter& bias_filler() const; + ::opencv_caffe::FillerParameter* release_bias_filler(); + ::opencv_caffe::FillerParameter* mutable_bias_filler(); + void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); + + // optional bool bias_term = 4 [default = false]; + bool has_bias_term() const; + void clear_bias_term(); + static const int kBiasTermFieldNumber = 4; + bool bias_term() const; + void set_bias_term(bool value); + // optional int32 axis = 1 [default = 1]; bool has_axis() const; void clear_axis(); @@ -10091,43 +11295,18 @@ class ScaleParameter : public ::google::protobuf::Message /* @@protoc_insertion_ ::google::protobuf::int32 num_axes() const; void set_num_axes(::google::protobuf::int32 value); - // optional .opencv_caffe.FillerParameter filler = 3; - bool has_filler() const; - void clear_filler(); - static const int kFillerFieldNumber = 3; - const ::opencv_caffe::FillerParameter& filler() const; - ::opencv_caffe::FillerParameter* mutable_filler(); - ::opencv_caffe::FillerParameter* release_filler(); - void set_allocated_filler(::opencv_caffe::FillerParameter* filler); - - // optional bool bias_term = 4 [default = false]; - bool has_bias_term() const; - void clear_bias_term(); - static const int kBiasTermFieldNumber = 4; - bool bias_term() const; - void set_bias_term(bool value); - - // optional .opencv_caffe.FillerParameter bias_filler = 5; - bool has_bias_filler() const; - void clear_bias_filler(); - static const int kBiasFillerFieldNumber = 5; - const ::opencv_caffe::FillerParameter& bias_filler() const; - ::opencv_caffe::FillerParameter* mutable_bias_filler(); - ::opencv_caffe::FillerParameter* release_bias_filler(); - void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); - // @@protoc_insertion_point(class_scope:opencv_caffe.ScaleParameter) private: - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_num_axes(); - inline void clear_has_num_axes(); - inline void set_has_filler(); - inline void clear_has_filler(); - inline void set_has_bias_term(); - inline void clear_has_bias_term(); - inline void set_has_bias_filler(); - inline void clear_has_bias_filler(); + void set_has_axis(); + void clear_has_axis(); + void set_has_num_axes(); + void clear_has_num_axes(); + void set_has_filler(); + void clear_has_filler(); + void set_has_bias_term(); + void clear_has_bias_term(); + void set_has_bias_filler(); + void clear_has_bias_filler(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -10137,15 +11316,9 @@ class ScaleParameter : public ::google::protobuf::Message /* @@protoc_insertion_ bool bias_term_; ::google::protobuf::int32 axis_; ::google::protobuf::int32 num_axes_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsScaleParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ScaleParameter_default_instance_; - // ------------------------------------------------------------------- class SigmoidParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.SigmoidParameter) */ { @@ -10159,11 +11332,24 @@ class SigmoidParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + SigmoidParameter(SigmoidParameter&& from) noexcept + : SigmoidParameter() { + *this = ::std::move(from); + } + inline SigmoidParameter& operator=(SigmoidParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -10171,49 +11357,54 @@ class SigmoidParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const SigmoidParameter& default_instance(); - static const SigmoidParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SigmoidParameter* internal_default_instance() { + return reinterpret_cast( + &_SigmoidParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 56; void Swap(SigmoidParameter* other); + friend void swap(SigmoidParameter& a, SigmoidParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SigmoidParameter* New() const { return New(NULL); } + inline SigmoidParameter* New() const PROTOBUF_FINAL { return New(NULL); } - SigmoidParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SigmoidParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SigmoidParameter& from); void MergeFrom(const SigmoidParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SigmoidParameter* other); - void UnsafeMergeFrom(const SigmoidParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -10256,22 +11447,16 @@ class SigmoidParameter : public ::google::protobuf::Message /* @@protoc_insertio // @@protoc_insertion_point(class_scope:opencv_caffe.SigmoidParameter) private: - inline void set_has_engine(); - inline void clear_has_engine(); + void set_has_engine(); + void clear_has_engine(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; int engine_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSigmoidParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed SigmoidParameter_default_instance_; - // ------------------------------------------------------------------- class SliceParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.SliceParameter) */ { @@ -10285,11 +11470,24 @@ class SliceParameter : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + SliceParameter(SliceParameter&& from) noexcept + : SliceParameter() { + *this = ::std::move(from); + } + inline SliceParameter& operator=(SliceParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -10297,61 +11495,59 @@ class SliceParameter : public ::google::protobuf::Message /* @@protoc_insertion_ static const ::google::protobuf::Descriptor* descriptor(); static const SliceParameter& default_instance(); - static const SliceParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SliceParameter* internal_default_instance() { + return reinterpret_cast( + &_SliceParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 57; void Swap(SliceParameter* other); + friend void swap(SliceParameter& a, SliceParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SliceParameter* New() const { return New(NULL); } + inline SliceParameter* New() const PROTOBUF_FINAL { return New(NULL); } - SliceParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SliceParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SliceParameter& from); void MergeFrom(const SliceParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SliceParameter* other); - void UnsafeMergeFrom(const SliceParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int32 axis = 3 [default = 1]; - bool has_axis() const; - void clear_axis(); - static const int kAxisFieldNumber = 3; - ::google::protobuf::int32 axis() const; - void set_axis(::google::protobuf::int32 value); - // repeated uint32 slice_point = 2; int slice_point_size() const; void clear_slice_point(); @@ -10371,28 +11567,29 @@ class SliceParameter : public ::google::protobuf::Message /* @@protoc_insertion_ ::google::protobuf::uint32 slice_dim() const; void set_slice_dim(::google::protobuf::uint32 value); + // optional int32 axis = 3 [default = 1]; + bool has_axis() const; + void clear_axis(); + static const int kAxisFieldNumber = 3; + ::google::protobuf::int32 axis() const; + void set_axis(::google::protobuf::int32 value); + // @@protoc_insertion_point(class_scope:opencv_caffe.SliceParameter) private: - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_slice_dim(); - inline void clear_has_slice_dim(); + void set_has_axis(); + void clear_has_axis(); + void set_has_slice_dim(); + void clear_has_slice_dim(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > slice_point_; - ::google::protobuf::int32 axis_; ::google::protobuf::uint32 slice_dim_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + ::google::protobuf::int32 axis_; + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSliceParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed SliceParameter_default_instance_; - // ------------------------------------------------------------------- class SoftmaxParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.SoftmaxParameter) */ { @@ -10406,11 +11603,24 @@ class SoftmaxParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + SoftmaxParameter(SoftmaxParameter&& from) noexcept + : SoftmaxParameter() { + *this = ::std::move(from); + } + inline SoftmaxParameter& operator=(SoftmaxParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -10418,49 +11628,54 @@ class SoftmaxParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const SoftmaxParameter& default_instance(); - static const SoftmaxParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SoftmaxParameter* internal_default_instance() { + return reinterpret_cast( + &_SoftmaxParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 58; void Swap(SoftmaxParameter* other); + friend void swap(SoftmaxParameter& a, SoftmaxParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SoftmaxParameter* New() const { return New(NULL); } + inline SoftmaxParameter* New() const PROTOBUF_FINAL { return New(NULL); } - SoftmaxParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SoftmaxParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SoftmaxParameter& from); void MergeFrom(const SoftmaxParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SoftmaxParameter* other); - void UnsafeMergeFrom(const SoftmaxParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -10510,25 +11725,19 @@ class SoftmaxParameter : public ::google::protobuf::Message /* @@protoc_insertio // @@protoc_insertion_point(class_scope:opencv_caffe.SoftmaxParameter) private: - inline void set_has_engine(); - inline void clear_has_engine(); - inline void set_has_axis(); - inline void clear_has_axis(); + void set_has_engine(); + void clear_has_engine(); + void set_has_axis(); + void clear_has_axis(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; int engine_; ::google::protobuf::int32 axis_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSoftmaxParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed SoftmaxParameter_default_instance_; - // ------------------------------------------------------------------- class TanHParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.TanHParameter) */ { @@ -10542,11 +11751,24 @@ class TanHParameter : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + TanHParameter(TanHParameter&& from) noexcept + : TanHParameter() { + *this = ::std::move(from); + } + inline TanHParameter& operator=(TanHParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -10554,49 +11776,54 @@ class TanHParameter : public ::google::protobuf::Message /* @@protoc_insertion_p static const ::google::protobuf::Descriptor* descriptor(); static const TanHParameter& default_instance(); - static const TanHParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TanHParameter* internal_default_instance() { + return reinterpret_cast( + &_TanHParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 59; void Swap(TanHParameter* other); + friend void swap(TanHParameter& a, TanHParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline TanHParameter* New() const { return New(NULL); } + inline TanHParameter* New() const PROTOBUF_FINAL { return New(NULL); } - TanHParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + TanHParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const TanHParameter& from); void MergeFrom(const TanHParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(TanHParameter* other); - void UnsafeMergeFrom(const TanHParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -10639,22 +11866,16 @@ class TanHParameter : public ::google::protobuf::Message /* @@protoc_insertion_p // @@protoc_insertion_point(class_scope:opencv_caffe.TanHParameter) private: - inline void set_has_engine(); - inline void clear_has_engine(); + void set_has_engine(); + void clear_has_engine(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; int engine_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTanHParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed TanHParameter_default_instance_; - // ------------------------------------------------------------------- class TileParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.TileParameter) */ { @@ -10668,11 +11889,24 @@ class TileParameter : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + TileParameter(TileParameter&& from) noexcept + : TileParameter() { + *this = ::std::move(from); + } + inline TileParameter& operator=(TileParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -10680,61 +11914,59 @@ class TileParameter : public ::google::protobuf::Message /* @@protoc_insertion_p static const ::google::protobuf::Descriptor* descriptor(); static const TileParameter& default_instance(); - static const TileParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TileParameter* internal_default_instance() { + return reinterpret_cast( + &_TileParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 60; void Swap(TileParameter* other); + friend void swap(TileParameter& a, TileParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline TileParameter* New() const { return New(NULL); } + inline TileParameter* New() const PROTOBUF_FINAL { return New(NULL); } - TileParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + TileParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const TileParameter& from); void MergeFrom(const TileParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(TileParameter* other); - void UnsafeMergeFrom(const TileParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int32 axis = 1 [default = 1]; - bool has_axis() const; - void clear_axis(); - static const int kAxisFieldNumber = 1; - ::google::protobuf::int32 axis() const; - void set_axis(::google::protobuf::int32 value); - // optional int32 tiles = 2; bool has_tiles() const; void clear_tiles(); @@ -10742,27 +11974,28 @@ class TileParameter : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::int32 tiles() const; void set_tiles(::google::protobuf::int32 value); + // optional int32 axis = 1 [default = 1]; + bool has_axis() const; + void clear_axis(); + static const int kAxisFieldNumber = 1; + ::google::protobuf::int32 axis() const; + void set_axis(::google::protobuf::int32 value); + // @@protoc_insertion_point(class_scope:opencv_caffe.TileParameter) private: - inline void set_has_axis(); - inline void clear_has_axis(); - inline void set_has_tiles(); - inline void clear_has_tiles(); + void set_has_axis(); + void clear_has_axis(); + void set_has_tiles(); + void clear_has_tiles(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::int32 tiles_; ::google::protobuf::int32 axis_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTileParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed TileParameter_default_instance_; - // ------------------------------------------------------------------- class ThresholdParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ThresholdParameter) */ { @@ -10776,11 +12009,24 @@ class ThresholdParameter : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + ThresholdParameter(ThresholdParameter&& from) noexcept + : ThresholdParameter() { + *this = ::std::move(from); + } + inline ThresholdParameter& operator=(ThresholdParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -10788,49 +12034,54 @@ class ThresholdParameter : public ::google::protobuf::Message /* @@protoc_insert static const ::google::protobuf::Descriptor* descriptor(); static const ThresholdParameter& default_instance(); - static const ThresholdParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ThresholdParameter* internal_default_instance() { + return reinterpret_cast( + &_ThresholdParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 61; void Swap(ThresholdParameter* other); + friend void swap(ThresholdParameter& a, ThresholdParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ThresholdParameter* New() const { return New(NULL); } + inline ThresholdParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ThresholdParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ThresholdParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ThresholdParameter& from); void MergeFrom(const ThresholdParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ThresholdParameter* other); - void UnsafeMergeFrom(const ThresholdParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -10845,22 +12096,16 @@ class ThresholdParameter : public ::google::protobuf::Message /* @@protoc_insert // @@protoc_insertion_point(class_scope:opencv_caffe.ThresholdParameter) private: - inline void set_has_threshold(); - inline void clear_has_threshold(); + void set_has_threshold(); + void clear_has_threshold(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; float threshold_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsThresholdParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ThresholdParameter_default_instance_; - // ------------------------------------------------------------------- class WindowDataParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.WindowDataParameter) */ { @@ -10874,11 +12119,24 @@ class WindowDataParameter : public ::google::protobuf::Message /* @@protoc_inser CopyFrom(from); return *this; } + #if LANG_CXX11 + WindowDataParameter(WindowDataParameter&& from) noexcept + : WindowDataParameter() { + *this = ::std::move(from); + } + inline WindowDataParameter& operator=(WindowDataParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -10886,49 +12144,54 @@ class WindowDataParameter : public ::google::protobuf::Message /* @@protoc_inser static const ::google::protobuf::Descriptor* descriptor(); static const WindowDataParameter& default_instance(); - static const WindowDataParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WindowDataParameter* internal_default_instance() { + return reinterpret_cast( + &_WindowDataParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 62; void Swap(WindowDataParameter* other); + friend void swap(WindowDataParameter& a, WindowDataParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline WindowDataParameter* New() const { return New(NULL); } + inline WindowDataParameter* New() const PROTOBUF_FINAL { return New(NULL); } - WindowDataParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + WindowDataParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const WindowDataParameter& from); void MergeFrom(const WindowDataParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(WindowDataParameter* other); - void UnsafeMergeFrom(const WindowDataParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -10940,31 +12203,60 @@ class WindowDataParameter : public ::google::protobuf::Message /* @@protoc_inser static const int kSourceFieldNumber = 1; const ::std::string& source() const; void set_source(const ::std::string& value); + #if LANG_CXX11 + void set_source(::std::string&& value); + #endif void set_source(const char* value); void set_source(const char* value, size_t size); ::std::string* mutable_source(); ::std::string* release_source(); void set_allocated_source(::std::string* source); - // optional float scale = 2 [default = 1]; - bool has_scale() const; - void clear_scale(); - static const int kScaleFieldNumber = 2; - float scale() const; - void set_scale(float value); - // optional string mean_file = 3; bool has_mean_file() const; void clear_mean_file(); static const int kMeanFileFieldNumber = 3; const ::std::string& mean_file() const; void set_mean_file(const ::std::string& value); + #if LANG_CXX11 + void set_mean_file(::std::string&& value); + #endif void set_mean_file(const char* value); void set_mean_file(const char* value, size_t size); ::std::string* mutable_mean_file(); ::std::string* release_mean_file(); void set_allocated_mean_file(::std::string* mean_file); + // optional string crop_mode = 11 [default = "warp"]; + bool has_crop_mode() const; + void clear_crop_mode(); + static const int kCropModeFieldNumber = 11; + const ::std::string& crop_mode() const; + void set_crop_mode(const ::std::string& value); + #if LANG_CXX11 + void set_crop_mode(::std::string&& value); + #endif + void set_crop_mode(const char* value); + void set_crop_mode(const char* value, size_t size); + ::std::string* mutable_crop_mode(); + ::std::string* release_crop_mode(); + void set_allocated_crop_mode(::std::string* crop_mode); + + // optional string root_folder = 13 [default = ""]; + bool has_root_folder() const; + void clear_root_folder(); + static const int kRootFolderFieldNumber = 13; + const ::std::string& root_folder() const; + void set_root_folder(const ::std::string& value); + #if LANG_CXX11 + void set_root_folder(::std::string&& value); + #endif + void set_root_folder(const char* value); + void set_root_folder(const char* value, size_t size); + ::std::string* mutable_root_folder(); + ::std::string* release_root_folder(); + void set_allocated_root_folder(::std::string* root_folder); + // optional uint32 batch_size = 4; bool has_batch_size() const; void clear_batch_size(); @@ -10986,6 +12278,27 @@ class WindowDataParameter : public ::google::protobuf::Message /* @@protoc_inser bool mirror() const; void set_mirror(bool value); + // optional bool cache_images = 12 [default = false]; + bool has_cache_images() const; + void clear_cache_images(); + static const int kCacheImagesFieldNumber = 12; + bool cache_images() const; + void set_cache_images(bool value); + + // optional uint32 context_pad = 10 [default = 0]; + bool has_context_pad() const; + void clear_context_pad(); + static const int kContextPadFieldNumber = 10; + ::google::protobuf::uint32 context_pad() const; + void set_context_pad(::google::protobuf::uint32 value); + + // optional float scale = 2 [default = 1]; + bool has_scale() const; + void clear_scale(); + static const int kScaleFieldNumber = 2; + float scale() const; + void set_scale(float value); + // optional float fg_threshold = 7 [default = 0.5]; bool has_fg_threshold() const; void clear_fg_threshold(); @@ -11007,79 +12320,41 @@ class WindowDataParameter : public ::google::protobuf::Message /* @@protoc_inser float fg_fraction() const; void set_fg_fraction(float value); - // optional uint32 context_pad = 10 [default = 0]; - bool has_context_pad() const; - void clear_context_pad(); - static const int kContextPadFieldNumber = 10; - ::google::protobuf::uint32 context_pad() const; - void set_context_pad(::google::protobuf::uint32 value); - - // optional string crop_mode = 11 [default = "warp"]; - bool has_crop_mode() const; - void clear_crop_mode(); - static const int kCropModeFieldNumber = 11; - const ::std::string& crop_mode() const; - void set_crop_mode(const ::std::string& value); - void set_crop_mode(const char* value); - void set_crop_mode(const char* value, size_t size); - ::std::string* mutable_crop_mode(); - ::std::string* release_crop_mode(); - void set_allocated_crop_mode(::std::string* crop_mode); - - // optional bool cache_images = 12 [default = false]; - bool has_cache_images() const; - void clear_cache_images(); - static const int kCacheImagesFieldNumber = 12; - bool cache_images() const; - void set_cache_images(bool value); - - // optional string root_folder = 13 [default = ""]; - bool has_root_folder() const; - void clear_root_folder(); - static const int kRootFolderFieldNumber = 13; - const ::std::string& root_folder() const; - void set_root_folder(const ::std::string& value); - void set_root_folder(const char* value); - void set_root_folder(const char* value, size_t size); - ::std::string* mutable_root_folder(); - ::std::string* release_root_folder(); - void set_allocated_root_folder(::std::string* root_folder); - // @@protoc_insertion_point(class_scope:opencv_caffe.WindowDataParameter) private: - inline void set_has_source(); - inline void clear_has_source(); - inline void set_has_scale(); - inline void clear_has_scale(); - inline void set_has_mean_file(); - inline void clear_has_mean_file(); - inline void set_has_batch_size(); - inline void clear_has_batch_size(); - inline void set_has_crop_size(); - inline void clear_has_crop_size(); - inline void set_has_mirror(); - inline void clear_has_mirror(); - inline void set_has_fg_threshold(); - inline void clear_has_fg_threshold(); - inline void set_has_bg_threshold(); - inline void clear_has_bg_threshold(); - inline void set_has_fg_fraction(); - inline void clear_has_fg_fraction(); - inline void set_has_context_pad(); - inline void clear_has_context_pad(); - inline void set_has_crop_mode(); - inline void clear_has_crop_mode(); - inline void set_has_cache_images(); - inline void clear_has_cache_images(); - inline void set_has_root_folder(); - inline void clear_has_root_folder(); + void set_has_source(); + void clear_has_source(); + void set_has_scale(); + void clear_has_scale(); + void set_has_mean_file(); + void clear_has_mean_file(); + void set_has_batch_size(); + void clear_has_batch_size(); + void set_has_crop_size(); + void clear_has_crop_size(); + void set_has_mirror(); + void clear_has_mirror(); + void set_has_fg_threshold(); + void clear_has_fg_threshold(); + void set_has_bg_threshold(); + void clear_has_bg_threshold(); + void set_has_fg_fraction(); + void clear_has_fg_fraction(); + void set_has_context_pad(); + void clear_has_context_pad(); + void set_has_crop_mode(); + void clear_has_crop_mode(); + void set_has_cache_images(); + void clear_has_cache_images(); + void set_has_root_folder(); + void clear_has_root_folder(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::google::protobuf::internal::ArenaStringPtr source_; ::google::protobuf::internal::ArenaStringPtr mean_file_; - static ::std::string* _default_crop_mode_; + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_crop_mode_; ::google::protobuf::internal::ArenaStringPtr crop_mode_; ::google::protobuf::internal::ArenaStringPtr root_folder_; ::google::protobuf::uint32 batch_size_; @@ -11091,15 +12366,9 @@ class WindowDataParameter : public ::google::protobuf::Message /* @@protoc_inser float fg_threshold_; float bg_threshold_; float fg_fraction_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsWindowDataParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed WindowDataParameter_default_instance_; - // ------------------------------------------------------------------- class SPPParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.SPPParameter) */ { @@ -11113,11 +12382,24 @@ class SPPParameter : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + SPPParameter(SPPParameter&& from) noexcept + : SPPParameter() { + *this = ::std::move(from); + } + inline SPPParameter& operator=(SPPParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -11125,49 +12407,54 @@ class SPPParameter : public ::google::protobuf::Message /* @@protoc_insertion_po static const ::google::protobuf::Descriptor* descriptor(); static const SPPParameter& default_instance(); - static const SPPParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SPPParameter* internal_default_instance() { + return reinterpret_cast( + &_SPPParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 63; void Swap(SPPParameter* other); + friend void swap(SPPParameter& a, SPPParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SPPParameter* New() const { return New(NULL); } + inline SPPParameter* New() const PROTOBUF_FINAL { return New(NULL); } - SPPParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + SPPParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SPPParameter& from); void MergeFrom(const SPPParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SPPParameter* other); - void UnsafeMergeFrom(const SPPParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -11252,12 +12539,12 @@ class SPPParameter : public ::google::protobuf::Message /* @@protoc_insertion_po // @@protoc_insertion_point(class_scope:opencv_caffe.SPPParameter) private: - inline void set_has_pyramid_height(); - inline void clear_has_pyramid_height(); - inline void set_has_pool(); - inline void clear_has_pool(); - inline void set_has_engine(); - inline void clear_has_engine(); + void set_has_pyramid_height(); + void clear_has_pyramid_height(); + void set_has_pool(); + void clear_has_pool(); + void set_has_engine(); + void clear_has_engine(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -11265,15 +12552,9 @@ class SPPParameter : public ::google::protobuf::Message /* @@protoc_insertion_po ::google::protobuf::uint32 pyramid_height_; int pool_; int engine_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSPPParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed SPPParameter_default_instance_; - // ------------------------------------------------------------------- class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.V1LayerParameter) */ { @@ -11287,11 +12568,24 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + V1LayerParameter(V1LayerParameter&& from) noexcept + : V1LayerParameter() { + *this = ::std::move(from); + } + inline V1LayerParameter& operator=(V1LayerParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -11299,49 +12593,54 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const V1LayerParameter& default_instance(); - static const V1LayerParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const V1LayerParameter* internal_default_instance() { + return reinterpret_cast( + &_V1LayerParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 64; void Swap(V1LayerParameter* other); + friend void swap(V1LayerParameter& a, V1LayerParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline V1LayerParameter* New() const { return New(NULL); } + inline V1LayerParameter* New() const PROTOBUF_FINAL { return New(NULL); } - V1LayerParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + V1LayerParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const V1LayerParameter& from); void MergeFrom(const V1LayerParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(V1LayerParameter* other); - void UnsafeMergeFrom(const V1LayerParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -11482,10 +12781,16 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio const ::std::string& bottom(int index) const; ::std::string* mutable_bottom(int index); void set_bottom(int index, const ::std::string& value); + #if LANG_CXX11 + void set_bottom(int index, ::std::string&& value); + #endif void set_bottom(int index, const char* value); void set_bottom(int index, const char* value, size_t size); ::std::string* add_bottom(); void add_bottom(const ::std::string& value); + #if LANG_CXX11 + void add_bottom(::std::string&& value); + #endif void add_bottom(const char* value); void add_bottom(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& bottom() const; @@ -11498,58 +12803,21 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio const ::std::string& top(int index) const; ::std::string* mutable_top(int index); void set_top(int index, const ::std::string& value); + #if LANG_CXX11 + void set_top(int index, ::std::string&& value); + #endif void set_top(int index, const char* value); void set_top(int index, const char* value, size_t size); ::std::string* add_top(); void add_top(const ::std::string& value); + #if LANG_CXX11 + void add_top(::std::string&& value); + #endif void add_top(const char* value); void add_top(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& top() const; ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_top(); - // optional string name = 4; - bool has_name() const; - void clear_name(); - static const int kNameFieldNumber = 4; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // repeated .opencv_caffe.NetStateRule include = 32; - int include_size() const; - void clear_include(); - static const int kIncludeFieldNumber = 32; - const ::opencv_caffe::NetStateRule& include(int index) const; - ::opencv_caffe::NetStateRule* mutable_include(int index); - ::opencv_caffe::NetStateRule* add_include(); - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >* - mutable_include(); - const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >& - include() const; - - // repeated .opencv_caffe.NetStateRule exclude = 33; - int exclude_size() const; - void clear_exclude(); - static const int kExcludeFieldNumber = 33; - const ::opencv_caffe::NetStateRule& exclude(int index) const; - ::opencv_caffe::NetStateRule* mutable_exclude(int index); - ::opencv_caffe::NetStateRule* add_exclude(); - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >* - mutable_exclude(); - const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >& - exclude() const; - - // optional .opencv_caffe.V1LayerParameter.LayerType type = 5; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 5; - ::opencv_caffe::V1LayerParameter_LayerType type() const; - void set_type(::opencv_caffe::V1LayerParameter_LayerType value); - // repeated .opencv_caffe.BlobProto blobs = 6; int blobs_size() const; void clear_blobs(); @@ -11562,32 +12830,6 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto >& blobs() const; - // repeated string param = 1001; - int param_size() const; - void clear_param(); - static const int kParamFieldNumber = 1001; - const ::std::string& param(int index) const; - ::std::string* mutable_param(int index); - void set_param(int index, const ::std::string& value); - void set_param(int index, const char* value); - void set_param(int index, const char* value, size_t size); - ::std::string* add_param(); - void add_param(const ::std::string& value); - void add_param(const char* value); - void add_param(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& param() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_param(); - - // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; - int blob_share_mode_size() const; - void clear_blob_share_mode(); - static const int kBlobShareModeFieldNumber = 1002; - ::opencv_caffe::V1LayerParameter_DimCheckMode blob_share_mode(int index) const; - void set_blob_share_mode(int index, ::opencv_caffe::V1LayerParameter_DimCheckMode value); - void add_blob_share_mode(::opencv_caffe::V1LayerParameter_DimCheckMode value); - const ::google::protobuf::RepeatedField& blob_share_mode() const; - ::google::protobuf::RepeatedField* mutable_blob_share_mode(); - // repeated float blobs_lr = 7; int blobs_lr_size() const; void clear_blobs_lr(); @@ -11612,6 +12854,30 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::RepeatedField< float >* mutable_weight_decay(); + // repeated .opencv_caffe.NetStateRule include = 32; + int include_size() const; + void clear_include(); + static const int kIncludeFieldNumber = 32; + const ::opencv_caffe::NetStateRule& include(int index) const; + ::opencv_caffe::NetStateRule* mutable_include(int index); + ::opencv_caffe::NetStateRule* add_include(); + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >* + mutable_include(); + const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >& + include() const; + + // repeated .opencv_caffe.NetStateRule exclude = 33; + int exclude_size() const; + void clear_exclude(); + static const int kExcludeFieldNumber = 33; + const ::opencv_caffe::NetStateRule& exclude(int index) const; + ::opencv_caffe::NetStateRule* mutable_exclude(int index); + ::opencv_caffe::NetStateRule* add_exclude(); + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >* + mutable_exclude(); + const ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule >& + exclude() const; + // repeated float loss_weight = 35; int loss_weight_size() const; void clear_loss_weight(); @@ -11624,49 +12890,78 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::RepeatedField< float >* mutable_loss_weight(); - // optional .opencv_caffe.AccuracyParameter accuracy_param = 27; - bool has_accuracy_param() const; - void clear_accuracy_param(); - static const int kAccuracyParamFieldNumber = 27; - const ::opencv_caffe::AccuracyParameter& accuracy_param() const; - ::opencv_caffe::AccuracyParameter* mutable_accuracy_param(); - ::opencv_caffe::AccuracyParameter* release_accuracy_param(); - void set_allocated_accuracy_param(::opencv_caffe::AccuracyParameter* accuracy_param); + // repeated string param = 1001; + int param_size() const; + void clear_param(); + static const int kParamFieldNumber = 1001; + const ::std::string& param(int index) const; + ::std::string* mutable_param(int index); + void set_param(int index, const ::std::string& value); + #if LANG_CXX11 + void set_param(int index, ::std::string&& value); + #endif + void set_param(int index, const char* value); + void set_param(int index, const char* value, size_t size); + ::std::string* add_param(); + void add_param(const ::std::string& value); + #if LANG_CXX11 + void add_param(::std::string&& value); + #endif + void add_param(const char* value); + void add_param(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& param() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_param(); - // optional .opencv_caffe.ArgMaxParameter argmax_param = 23; - bool has_argmax_param() const; - void clear_argmax_param(); - static const int kArgmaxParamFieldNumber = 23; - const ::opencv_caffe::ArgMaxParameter& argmax_param() const; - ::opencv_caffe::ArgMaxParameter* mutable_argmax_param(); - ::opencv_caffe::ArgMaxParameter* release_argmax_param(); - void set_allocated_argmax_param(::opencv_caffe::ArgMaxParameter* argmax_param); + // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002; + int blob_share_mode_size() const; + void clear_blob_share_mode(); + static const int kBlobShareModeFieldNumber = 1002; + ::opencv_caffe::V1LayerParameter_DimCheckMode blob_share_mode(int index) const; + void set_blob_share_mode(int index, ::opencv_caffe::V1LayerParameter_DimCheckMode value); + void add_blob_share_mode(::opencv_caffe::V1LayerParameter_DimCheckMode value); + const ::google::protobuf::RepeatedField& blob_share_mode() const; + ::google::protobuf::RepeatedField* mutable_blob_share_mode(); + + // optional string name = 4; + bool has_name() const; + void clear_name(); + static const int kNameFieldNumber = 4; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // optional .opencv_caffe.V0LayerParameter layer = 1; + bool has_layer() const; + void clear_layer(); + static const int kLayerFieldNumber = 1; + const ::opencv_caffe::V0LayerParameter& layer() const; + ::opencv_caffe::V0LayerParameter* release_layer(); + ::opencv_caffe::V0LayerParameter* mutable_layer(); + void set_allocated_layer(::opencv_caffe::V0LayerParameter* layer); // optional .opencv_caffe.ConcatParameter concat_param = 9; bool has_concat_param() const; void clear_concat_param(); static const int kConcatParamFieldNumber = 9; const ::opencv_caffe::ConcatParameter& concat_param() const; - ::opencv_caffe::ConcatParameter* mutable_concat_param(); ::opencv_caffe::ConcatParameter* release_concat_param(); + ::opencv_caffe::ConcatParameter* mutable_concat_param(); void set_allocated_concat_param(::opencv_caffe::ConcatParameter* concat_param); - // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40; - bool has_contrastive_loss_param() const; - void clear_contrastive_loss_param(); - static const int kContrastiveLossParamFieldNumber = 40; - const ::opencv_caffe::ContrastiveLossParameter& contrastive_loss_param() const; - ::opencv_caffe::ContrastiveLossParameter* mutable_contrastive_loss_param(); - ::opencv_caffe::ContrastiveLossParameter* release_contrastive_loss_param(); - void set_allocated_contrastive_loss_param(::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param); - // optional .opencv_caffe.ConvolutionParameter convolution_param = 10; bool has_convolution_param() const; void clear_convolution_param(); static const int kConvolutionParamFieldNumber = 10; const ::opencv_caffe::ConvolutionParameter& convolution_param() const; - ::opencv_caffe::ConvolutionParameter* mutable_convolution_param(); ::opencv_caffe::ConvolutionParameter* release_convolution_param(); + ::opencv_caffe::ConvolutionParameter* mutable_convolution_param(); void set_allocated_convolution_param(::opencv_caffe::ConvolutionParameter* convolution_param); // optional .opencv_caffe.DataParameter data_param = 11; @@ -11674,8 +12969,8 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio void clear_data_param(); static const int kDataParamFieldNumber = 11; const ::opencv_caffe::DataParameter& data_param() const; - ::opencv_caffe::DataParameter* mutable_data_param(); ::opencv_caffe::DataParameter* release_data_param(); + ::opencv_caffe::DataParameter* mutable_data_param(); void set_allocated_data_param(::opencv_caffe::DataParameter* data_param); // optional .opencv_caffe.DropoutParameter dropout_param = 12; @@ -11683,44 +12978,17 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio void clear_dropout_param(); static const int kDropoutParamFieldNumber = 12; const ::opencv_caffe::DropoutParameter& dropout_param() const; - ::opencv_caffe::DropoutParameter* mutable_dropout_param(); ::opencv_caffe::DropoutParameter* release_dropout_param(); + ::opencv_caffe::DropoutParameter* mutable_dropout_param(); void set_allocated_dropout_param(::opencv_caffe::DropoutParameter* dropout_param); - // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26; - bool has_dummy_data_param() const; - void clear_dummy_data_param(); - static const int kDummyDataParamFieldNumber = 26; - const ::opencv_caffe::DummyDataParameter& dummy_data_param() const; - ::opencv_caffe::DummyDataParameter* mutable_dummy_data_param(); - ::opencv_caffe::DummyDataParameter* release_dummy_data_param(); - void set_allocated_dummy_data_param(::opencv_caffe::DummyDataParameter* dummy_data_param); - - // optional .opencv_caffe.EltwiseParameter eltwise_param = 24; - bool has_eltwise_param() const; - void clear_eltwise_param(); - static const int kEltwiseParamFieldNumber = 24; - const ::opencv_caffe::EltwiseParameter& eltwise_param() const; - ::opencv_caffe::EltwiseParameter* mutable_eltwise_param(); - ::opencv_caffe::EltwiseParameter* release_eltwise_param(); - void set_allocated_eltwise_param(::opencv_caffe::EltwiseParameter* eltwise_param); - - // optional .opencv_caffe.ExpParameter exp_param = 41; - bool has_exp_param() const; - void clear_exp_param(); - static const int kExpParamFieldNumber = 41; - const ::opencv_caffe::ExpParameter& exp_param() const; - ::opencv_caffe::ExpParameter* mutable_exp_param(); - ::opencv_caffe::ExpParameter* release_exp_param(); - void set_allocated_exp_param(::opencv_caffe::ExpParameter* exp_param); - // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13; bool has_hdf5_data_param() const; void clear_hdf5_data_param(); static const int kHdf5DataParamFieldNumber = 13; const ::opencv_caffe::HDF5DataParameter& hdf5_data_param() const; - ::opencv_caffe::HDF5DataParameter* mutable_hdf5_data_param(); ::opencv_caffe::HDF5DataParameter* release_hdf5_data_param(); + ::opencv_caffe::HDF5DataParameter* mutable_hdf5_data_param(); void set_allocated_hdf5_data_param(::opencv_caffe::HDF5DataParameter* hdf5_data_param); // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14; @@ -11728,26 +12996,17 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio void clear_hdf5_output_param(); static const int kHdf5OutputParamFieldNumber = 14; const ::opencv_caffe::HDF5OutputParameter& hdf5_output_param() const; - ::opencv_caffe::HDF5OutputParameter* mutable_hdf5_output_param(); ::opencv_caffe::HDF5OutputParameter* release_hdf5_output_param(); + ::opencv_caffe::HDF5OutputParameter* mutable_hdf5_output_param(); void set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param); - // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29; - bool has_hinge_loss_param() const; - void clear_hinge_loss_param(); - static const int kHingeLossParamFieldNumber = 29; - const ::opencv_caffe::HingeLossParameter& hinge_loss_param() const; - ::opencv_caffe::HingeLossParameter* mutable_hinge_loss_param(); - ::opencv_caffe::HingeLossParameter* release_hinge_loss_param(); - void set_allocated_hinge_loss_param(::opencv_caffe::HingeLossParameter* hinge_loss_param); - // optional .opencv_caffe.ImageDataParameter image_data_param = 15; bool has_image_data_param() const; void clear_image_data_param(); static const int kImageDataParamFieldNumber = 15; const ::opencv_caffe::ImageDataParameter& image_data_param() const; - ::opencv_caffe::ImageDataParameter* mutable_image_data_param(); ::opencv_caffe::ImageDataParameter* release_image_data_param(); + ::opencv_caffe::ImageDataParameter* mutable_image_data_param(); void set_allocated_image_data_param(::opencv_caffe::ImageDataParameter* image_data_param); // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16; @@ -11755,8 +13014,8 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio void clear_infogain_loss_param(); static const int kInfogainLossParamFieldNumber = 16; const ::opencv_caffe::InfogainLossParameter& infogain_loss_param() const; - ::opencv_caffe::InfogainLossParameter* mutable_infogain_loss_param(); ::opencv_caffe::InfogainLossParameter* release_infogain_loss_param(); + ::opencv_caffe::InfogainLossParameter* mutable_infogain_loss_param(); void set_allocated_infogain_loss_param(::opencv_caffe::InfogainLossParameter* infogain_loss_param); // optional .opencv_caffe.InnerProductParameter inner_product_param = 17; @@ -11764,8 +13023,8 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio void clear_inner_product_param(); static const int kInnerProductParamFieldNumber = 17; const ::opencv_caffe::InnerProductParameter& inner_product_param() const; - ::opencv_caffe::InnerProductParameter* mutable_inner_product_param(); ::opencv_caffe::InnerProductParameter* release_inner_product_param(); + ::opencv_caffe::InnerProductParameter* mutable_inner_product_param(); void set_allocated_inner_product_param(::opencv_caffe::InnerProductParameter* inner_product_param); // optional .opencv_caffe.LRNParameter lrn_param = 18; @@ -11773,62 +13032,152 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio void clear_lrn_param(); static const int kLrnParamFieldNumber = 18; const ::opencv_caffe::LRNParameter& lrn_param() const; - ::opencv_caffe::LRNParameter* mutable_lrn_param(); ::opencv_caffe::LRNParameter* release_lrn_param(); + ::opencv_caffe::LRNParameter* mutable_lrn_param(); void set_allocated_lrn_param(::opencv_caffe::LRNParameter* lrn_param); - // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22; - bool has_memory_data_param() const; - void clear_memory_data_param(); - static const int kMemoryDataParamFieldNumber = 22; - const ::opencv_caffe::MemoryDataParameter& memory_data_param() const; - ::opencv_caffe::MemoryDataParameter* mutable_memory_data_param(); - ::opencv_caffe::MemoryDataParameter* release_memory_data_param(); - void set_allocated_memory_data_param(::opencv_caffe::MemoryDataParameter* memory_data_param); - - // optional .opencv_caffe.MVNParameter mvn_param = 34; - bool has_mvn_param() const; - void clear_mvn_param(); - static const int kMvnParamFieldNumber = 34; - const ::opencv_caffe::MVNParameter& mvn_param() const; - ::opencv_caffe::MVNParameter* mutable_mvn_param(); - ::opencv_caffe::MVNParameter* release_mvn_param(); - void set_allocated_mvn_param(::opencv_caffe::MVNParameter* mvn_param); - // optional .opencv_caffe.PoolingParameter pooling_param = 19; bool has_pooling_param() const; void clear_pooling_param(); static const int kPoolingParamFieldNumber = 19; const ::opencv_caffe::PoolingParameter& pooling_param() const; - ::opencv_caffe::PoolingParameter* mutable_pooling_param(); ::opencv_caffe::PoolingParameter* release_pooling_param(); + ::opencv_caffe::PoolingParameter* mutable_pooling_param(); void set_allocated_pooling_param(::opencv_caffe::PoolingParameter* pooling_param); + // optional .opencv_caffe.WindowDataParameter window_data_param = 20; + bool has_window_data_param() const; + void clear_window_data_param(); + static const int kWindowDataParamFieldNumber = 20; + const ::opencv_caffe::WindowDataParameter& window_data_param() const; + ::opencv_caffe::WindowDataParameter* release_window_data_param(); + ::opencv_caffe::WindowDataParameter* mutable_window_data_param(); + void set_allocated_window_data_param(::opencv_caffe::WindowDataParameter* window_data_param); + // optional .opencv_caffe.PowerParameter power_param = 21; bool has_power_param() const; void clear_power_param(); static const int kPowerParamFieldNumber = 21; const ::opencv_caffe::PowerParameter& power_param() const; - ::opencv_caffe::PowerParameter* mutable_power_param(); ::opencv_caffe::PowerParameter* release_power_param(); + ::opencv_caffe::PowerParameter* mutable_power_param(); void set_allocated_power_param(::opencv_caffe::PowerParameter* power_param); + // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22; + bool has_memory_data_param() const; + void clear_memory_data_param(); + static const int kMemoryDataParamFieldNumber = 22; + const ::opencv_caffe::MemoryDataParameter& memory_data_param() const; + ::opencv_caffe::MemoryDataParameter* release_memory_data_param(); + ::opencv_caffe::MemoryDataParameter* mutable_memory_data_param(); + void set_allocated_memory_data_param(::opencv_caffe::MemoryDataParameter* memory_data_param); + + // optional .opencv_caffe.ArgMaxParameter argmax_param = 23; + bool has_argmax_param() const; + void clear_argmax_param(); + static const int kArgmaxParamFieldNumber = 23; + const ::opencv_caffe::ArgMaxParameter& argmax_param() const; + ::opencv_caffe::ArgMaxParameter* release_argmax_param(); + ::opencv_caffe::ArgMaxParameter* mutable_argmax_param(); + void set_allocated_argmax_param(::opencv_caffe::ArgMaxParameter* argmax_param); + + // optional .opencv_caffe.EltwiseParameter eltwise_param = 24; + bool has_eltwise_param() const; + void clear_eltwise_param(); + static const int kEltwiseParamFieldNumber = 24; + const ::opencv_caffe::EltwiseParameter& eltwise_param() const; + ::opencv_caffe::EltwiseParameter* release_eltwise_param(); + ::opencv_caffe::EltwiseParameter* mutable_eltwise_param(); + void set_allocated_eltwise_param(::opencv_caffe::EltwiseParameter* eltwise_param); + + // optional .opencv_caffe.ThresholdParameter threshold_param = 25; + bool has_threshold_param() const; + void clear_threshold_param(); + static const int kThresholdParamFieldNumber = 25; + const ::opencv_caffe::ThresholdParameter& threshold_param() const; + ::opencv_caffe::ThresholdParameter* release_threshold_param(); + ::opencv_caffe::ThresholdParameter* mutable_threshold_param(); + void set_allocated_threshold_param(::opencv_caffe::ThresholdParameter* threshold_param); + + // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26; + bool has_dummy_data_param() const; + void clear_dummy_data_param(); + static const int kDummyDataParamFieldNumber = 26; + const ::opencv_caffe::DummyDataParameter& dummy_data_param() const; + ::opencv_caffe::DummyDataParameter* release_dummy_data_param(); + ::opencv_caffe::DummyDataParameter* mutable_dummy_data_param(); + void set_allocated_dummy_data_param(::opencv_caffe::DummyDataParameter* dummy_data_param); + + // optional .opencv_caffe.AccuracyParameter accuracy_param = 27; + bool has_accuracy_param() const; + void clear_accuracy_param(); + static const int kAccuracyParamFieldNumber = 27; + const ::opencv_caffe::AccuracyParameter& accuracy_param() const; + ::opencv_caffe::AccuracyParameter* release_accuracy_param(); + ::opencv_caffe::AccuracyParameter* mutable_accuracy_param(); + void set_allocated_accuracy_param(::opencv_caffe::AccuracyParameter* accuracy_param); + + // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29; + bool has_hinge_loss_param() const; + void clear_hinge_loss_param(); + static const int kHingeLossParamFieldNumber = 29; + const ::opencv_caffe::HingeLossParameter& hinge_loss_param() const; + ::opencv_caffe::HingeLossParameter* release_hinge_loss_param(); + ::opencv_caffe::HingeLossParameter* mutable_hinge_loss_param(); + void set_allocated_hinge_loss_param(::opencv_caffe::HingeLossParameter* hinge_loss_param); + // optional .opencv_caffe.ReLUParameter relu_param = 30; bool has_relu_param() const; void clear_relu_param(); static const int kReluParamFieldNumber = 30; const ::opencv_caffe::ReLUParameter& relu_param() const; - ::opencv_caffe::ReLUParameter* mutable_relu_param(); ::opencv_caffe::ReLUParameter* release_relu_param(); + ::opencv_caffe::ReLUParameter* mutable_relu_param(); void set_allocated_relu_param(::opencv_caffe::ReLUParameter* relu_param); + // optional .opencv_caffe.SliceParameter slice_param = 31; + bool has_slice_param() const; + void clear_slice_param(); + static const int kSliceParamFieldNumber = 31; + const ::opencv_caffe::SliceParameter& slice_param() const; + ::opencv_caffe::SliceParameter* release_slice_param(); + ::opencv_caffe::SliceParameter* mutable_slice_param(); + void set_allocated_slice_param(::opencv_caffe::SliceParameter* slice_param); + + // optional .opencv_caffe.MVNParameter mvn_param = 34; + bool has_mvn_param() const; + void clear_mvn_param(); + static const int kMvnParamFieldNumber = 34; + const ::opencv_caffe::MVNParameter& mvn_param() const; + ::opencv_caffe::MVNParameter* release_mvn_param(); + ::opencv_caffe::MVNParameter* mutable_mvn_param(); + void set_allocated_mvn_param(::opencv_caffe::MVNParameter* mvn_param); + + // optional .opencv_caffe.TransformationParameter transform_param = 36; + bool has_transform_param() const; + void clear_transform_param(); + static const int kTransformParamFieldNumber = 36; + const ::opencv_caffe::TransformationParameter& transform_param() const; + ::opencv_caffe::TransformationParameter* release_transform_param(); + ::opencv_caffe::TransformationParameter* mutable_transform_param(); + void set_allocated_transform_param(::opencv_caffe::TransformationParameter* transform_param); + + // optional .opencv_caffe.TanHParameter tanh_param = 37; + bool has_tanh_param() const; + void clear_tanh_param(); + static const int kTanhParamFieldNumber = 37; + const ::opencv_caffe::TanHParameter& tanh_param() const; + ::opencv_caffe::TanHParameter* release_tanh_param(); + ::opencv_caffe::TanHParameter* mutable_tanh_param(); + void set_allocated_tanh_param(::opencv_caffe::TanHParameter* tanh_param); + // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38; bool has_sigmoid_param() const; void clear_sigmoid_param(); static const int kSigmoidParamFieldNumber = 38; const ::opencv_caffe::SigmoidParameter& sigmoid_param() const; - ::opencv_caffe::SigmoidParameter* mutable_sigmoid_param(); ::opencv_caffe::SigmoidParameter* release_sigmoid_param(); + ::opencv_caffe::SigmoidParameter* mutable_sigmoid_param(); void set_allocated_sigmoid_param(::opencv_caffe::SigmoidParameter* sigmoid_param); // optional .opencv_caffe.SoftmaxParameter softmax_param = 39; @@ -11836,197 +13185,162 @@ class V1LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio void clear_softmax_param(); static const int kSoftmaxParamFieldNumber = 39; const ::opencv_caffe::SoftmaxParameter& softmax_param() const; - ::opencv_caffe::SoftmaxParameter* mutable_softmax_param(); ::opencv_caffe::SoftmaxParameter* release_softmax_param(); + ::opencv_caffe::SoftmaxParameter* mutable_softmax_param(); void set_allocated_softmax_param(::opencv_caffe::SoftmaxParameter* softmax_param); - // optional .opencv_caffe.SliceParameter slice_param = 31; - bool has_slice_param() const; - void clear_slice_param(); - static const int kSliceParamFieldNumber = 31; - const ::opencv_caffe::SliceParameter& slice_param() const; - ::opencv_caffe::SliceParameter* mutable_slice_param(); - ::opencv_caffe::SliceParameter* release_slice_param(); - void set_allocated_slice_param(::opencv_caffe::SliceParameter* slice_param); + // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40; + bool has_contrastive_loss_param() const; + void clear_contrastive_loss_param(); + static const int kContrastiveLossParamFieldNumber = 40; + const ::opencv_caffe::ContrastiveLossParameter& contrastive_loss_param() const; + ::opencv_caffe::ContrastiveLossParameter* release_contrastive_loss_param(); + ::opencv_caffe::ContrastiveLossParameter* mutable_contrastive_loss_param(); + void set_allocated_contrastive_loss_param(::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param); - // optional .opencv_caffe.TanHParameter tanh_param = 37; - bool has_tanh_param() const; - void clear_tanh_param(); - static const int kTanhParamFieldNumber = 37; - const ::opencv_caffe::TanHParameter& tanh_param() const; - ::opencv_caffe::TanHParameter* mutable_tanh_param(); - ::opencv_caffe::TanHParameter* release_tanh_param(); - void set_allocated_tanh_param(::opencv_caffe::TanHParameter* tanh_param); - - // optional .opencv_caffe.ThresholdParameter threshold_param = 25; - bool has_threshold_param() const; - void clear_threshold_param(); - static const int kThresholdParamFieldNumber = 25; - const ::opencv_caffe::ThresholdParameter& threshold_param() const; - ::opencv_caffe::ThresholdParameter* mutable_threshold_param(); - ::opencv_caffe::ThresholdParameter* release_threshold_param(); - void set_allocated_threshold_param(::opencv_caffe::ThresholdParameter* threshold_param); - - // optional .opencv_caffe.WindowDataParameter window_data_param = 20; - bool has_window_data_param() const; - void clear_window_data_param(); - static const int kWindowDataParamFieldNumber = 20; - const ::opencv_caffe::WindowDataParameter& window_data_param() const; - ::opencv_caffe::WindowDataParameter* mutable_window_data_param(); - ::opencv_caffe::WindowDataParameter* release_window_data_param(); - void set_allocated_window_data_param(::opencv_caffe::WindowDataParameter* window_data_param); - - // optional .opencv_caffe.TransformationParameter transform_param = 36; - bool has_transform_param() const; - void clear_transform_param(); - static const int kTransformParamFieldNumber = 36; - const ::opencv_caffe::TransformationParameter& transform_param() const; - ::opencv_caffe::TransformationParameter* mutable_transform_param(); - ::opencv_caffe::TransformationParameter* release_transform_param(); - void set_allocated_transform_param(::opencv_caffe::TransformationParameter* transform_param); + // optional .opencv_caffe.ExpParameter exp_param = 41; + bool has_exp_param() const; + void clear_exp_param(); + static const int kExpParamFieldNumber = 41; + const ::opencv_caffe::ExpParameter& exp_param() const; + ::opencv_caffe::ExpParameter* release_exp_param(); + ::opencv_caffe::ExpParameter* mutable_exp_param(); + void set_allocated_exp_param(::opencv_caffe::ExpParameter* exp_param); // optional .opencv_caffe.LossParameter loss_param = 42; bool has_loss_param() const; void clear_loss_param(); static const int kLossParamFieldNumber = 42; const ::opencv_caffe::LossParameter& loss_param() const; - ::opencv_caffe::LossParameter* mutable_loss_param(); ::opencv_caffe::LossParameter* release_loss_param(); + ::opencv_caffe::LossParameter* mutable_loss_param(); void set_allocated_loss_param(::opencv_caffe::LossParameter* loss_param); - // optional .opencv_caffe.V0LayerParameter layer = 1; - bool has_layer() const; - void clear_layer(); - static const int kLayerFieldNumber = 1; - const ::opencv_caffe::V0LayerParameter& layer() const; - ::opencv_caffe::V0LayerParameter* mutable_layer(); - ::opencv_caffe::V0LayerParameter* release_layer(); - void set_allocated_layer(::opencv_caffe::V0LayerParameter* layer); + // optional .opencv_caffe.V1LayerParameter.LayerType type = 5; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 5; + ::opencv_caffe::V1LayerParameter_LayerType type() const; + void set_type(::opencv_caffe::V1LayerParameter_LayerType value); // @@protoc_insertion_point(class_scope:opencv_caffe.V1LayerParameter) private: - inline void set_has_name(); - inline void clear_has_name(); - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_accuracy_param(); - inline void clear_has_accuracy_param(); - inline void set_has_argmax_param(); - inline void clear_has_argmax_param(); - inline void set_has_concat_param(); - inline void clear_has_concat_param(); - inline void set_has_contrastive_loss_param(); - inline void clear_has_contrastive_loss_param(); - inline void set_has_convolution_param(); - inline void clear_has_convolution_param(); - inline void set_has_data_param(); - inline void clear_has_data_param(); - inline void set_has_dropout_param(); - inline void clear_has_dropout_param(); - inline void set_has_dummy_data_param(); - inline void clear_has_dummy_data_param(); - inline void set_has_eltwise_param(); - inline void clear_has_eltwise_param(); - inline void set_has_exp_param(); - inline void clear_has_exp_param(); - inline void set_has_hdf5_data_param(); - inline void clear_has_hdf5_data_param(); - inline void set_has_hdf5_output_param(); - inline void clear_has_hdf5_output_param(); - inline void set_has_hinge_loss_param(); - inline void clear_has_hinge_loss_param(); - inline void set_has_image_data_param(); - inline void clear_has_image_data_param(); - inline void set_has_infogain_loss_param(); - inline void clear_has_infogain_loss_param(); - inline void set_has_inner_product_param(); - inline void clear_has_inner_product_param(); - inline void set_has_lrn_param(); - inline void clear_has_lrn_param(); - inline void set_has_memory_data_param(); - inline void clear_has_memory_data_param(); - inline void set_has_mvn_param(); - inline void clear_has_mvn_param(); - inline void set_has_pooling_param(); - inline void clear_has_pooling_param(); - inline void set_has_power_param(); - inline void clear_has_power_param(); - inline void set_has_relu_param(); - inline void clear_has_relu_param(); - inline void set_has_sigmoid_param(); - inline void clear_has_sigmoid_param(); - inline void set_has_softmax_param(); - inline void clear_has_softmax_param(); - inline void set_has_slice_param(); - inline void clear_has_slice_param(); - inline void set_has_tanh_param(); - inline void clear_has_tanh_param(); - inline void set_has_threshold_param(); - inline void clear_has_threshold_param(); - inline void set_has_window_data_param(); - inline void clear_has_window_data_param(); - inline void set_has_transform_param(); - inline void clear_has_transform_param(); - inline void set_has_loss_param(); - inline void clear_has_loss_param(); - inline void set_has_layer(); - inline void clear_has_layer(); + void set_has_name(); + void clear_has_name(); + void set_has_type(); + void clear_has_type(); + void set_has_accuracy_param(); + void clear_has_accuracy_param(); + void set_has_argmax_param(); + void clear_has_argmax_param(); + void set_has_concat_param(); + void clear_has_concat_param(); + void set_has_contrastive_loss_param(); + void clear_has_contrastive_loss_param(); + void set_has_convolution_param(); + void clear_has_convolution_param(); + void set_has_data_param(); + void clear_has_data_param(); + void set_has_dropout_param(); + void clear_has_dropout_param(); + void set_has_dummy_data_param(); + void clear_has_dummy_data_param(); + void set_has_eltwise_param(); + void clear_has_eltwise_param(); + void set_has_exp_param(); + void clear_has_exp_param(); + void set_has_hdf5_data_param(); + void clear_has_hdf5_data_param(); + void set_has_hdf5_output_param(); + void clear_has_hdf5_output_param(); + void set_has_hinge_loss_param(); + void clear_has_hinge_loss_param(); + void set_has_image_data_param(); + void clear_has_image_data_param(); + void set_has_infogain_loss_param(); + void clear_has_infogain_loss_param(); + void set_has_inner_product_param(); + void clear_has_inner_product_param(); + void set_has_lrn_param(); + void clear_has_lrn_param(); + void set_has_memory_data_param(); + void clear_has_memory_data_param(); + void set_has_mvn_param(); + void clear_has_mvn_param(); + void set_has_pooling_param(); + void clear_has_pooling_param(); + void set_has_power_param(); + void clear_has_power_param(); + void set_has_relu_param(); + void clear_has_relu_param(); + void set_has_sigmoid_param(); + void clear_has_sigmoid_param(); + void set_has_softmax_param(); + void clear_has_softmax_param(); + void set_has_slice_param(); + void clear_has_slice_param(); + void set_has_tanh_param(); + void clear_has_tanh_param(); + void set_has_threshold_param(); + void clear_has_threshold_param(); + void set_has_window_data_param(); + void clear_has_window_data_param(); + void set_has_transform_param(); + void clear_has_transform_param(); + void set_has_loss_param(); + void clear_has_loss_param(); + void set_has_layer(); + void clear_has_layer(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<2> _has_bits_; ::google::protobuf::RepeatedPtrField< ::std::string> bottom_; ::google::protobuf::RepeatedPtrField< ::std::string> top_; - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule > include_; - ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule > exclude_; ::google::protobuf::RepeatedPtrField< ::opencv_caffe::BlobProto > blobs_; - ::google::protobuf::RepeatedPtrField< ::std::string> param_; - ::google::protobuf::RepeatedField blob_share_mode_; ::google::protobuf::RepeatedField< float > blobs_lr_; ::google::protobuf::RepeatedField< float > weight_decay_; + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule > include_; + ::google::protobuf::RepeatedPtrField< ::opencv_caffe::NetStateRule > exclude_; ::google::protobuf::RepeatedField< float > loss_weight_; + ::google::protobuf::RepeatedPtrField< ::std::string> param_; + ::google::protobuf::RepeatedField blob_share_mode_; ::google::protobuf::internal::ArenaStringPtr name_; - ::opencv_caffe::AccuracyParameter* accuracy_param_; - ::opencv_caffe::ArgMaxParameter* argmax_param_; + ::opencv_caffe::V0LayerParameter* layer_; ::opencv_caffe::ConcatParameter* concat_param_; - ::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param_; ::opencv_caffe::ConvolutionParameter* convolution_param_; ::opencv_caffe::DataParameter* data_param_; ::opencv_caffe::DropoutParameter* dropout_param_; - ::opencv_caffe::DummyDataParameter* dummy_data_param_; - ::opencv_caffe::EltwiseParameter* eltwise_param_; - ::opencv_caffe::ExpParameter* exp_param_; ::opencv_caffe::HDF5DataParameter* hdf5_data_param_; ::opencv_caffe::HDF5OutputParameter* hdf5_output_param_; - ::opencv_caffe::HingeLossParameter* hinge_loss_param_; ::opencv_caffe::ImageDataParameter* image_data_param_; ::opencv_caffe::InfogainLossParameter* infogain_loss_param_; ::opencv_caffe::InnerProductParameter* inner_product_param_; ::opencv_caffe::LRNParameter* lrn_param_; - ::opencv_caffe::MemoryDataParameter* memory_data_param_; - ::opencv_caffe::MVNParameter* mvn_param_; ::opencv_caffe::PoolingParameter* pooling_param_; + ::opencv_caffe::WindowDataParameter* window_data_param_; ::opencv_caffe::PowerParameter* power_param_; + ::opencv_caffe::MemoryDataParameter* memory_data_param_; + ::opencv_caffe::ArgMaxParameter* argmax_param_; + ::opencv_caffe::EltwiseParameter* eltwise_param_; + ::opencv_caffe::ThresholdParameter* threshold_param_; + ::opencv_caffe::DummyDataParameter* dummy_data_param_; + ::opencv_caffe::AccuracyParameter* accuracy_param_; + ::opencv_caffe::HingeLossParameter* hinge_loss_param_; ::opencv_caffe::ReLUParameter* relu_param_; + ::opencv_caffe::SliceParameter* slice_param_; + ::opencv_caffe::MVNParameter* mvn_param_; + ::opencv_caffe::TransformationParameter* transform_param_; + ::opencv_caffe::TanHParameter* tanh_param_; ::opencv_caffe::SigmoidParameter* sigmoid_param_; ::opencv_caffe::SoftmaxParameter* softmax_param_; - ::opencv_caffe::SliceParameter* slice_param_; - ::opencv_caffe::TanHParameter* tanh_param_; - ::opencv_caffe::ThresholdParameter* threshold_param_; - ::opencv_caffe::WindowDataParameter* window_data_param_; - ::opencv_caffe::TransformationParameter* transform_param_; + ::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param_; + ::opencv_caffe::ExpParameter* exp_param_; ::opencv_caffe::LossParameter* loss_param_; - ::opencv_caffe::V0LayerParameter* layer_; int type_; mutable int _cached_size_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV1LayerParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed V1LayerParameter_default_instance_; - // ------------------------------------------------------------------- class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.V0LayerParameter) */ { @@ -12040,11 +13354,24 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + V0LayerParameter(V0LayerParameter&& from) noexcept + : V0LayerParameter() { + *this = ::std::move(from); + } + inline V0LayerParameter& operator=(V0LayerParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -12052,49 +13379,54 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const V0LayerParameter& default_instance(); - static const V0LayerParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const V0LayerParameter* internal_default_instance() { + return reinterpret_cast( + &_V0LayerParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 65; void Swap(V0LayerParameter* other); + friend void swap(V0LayerParameter& a, V0LayerParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline V0LayerParameter* New() const { return New(NULL); } + inline V0LayerParameter* New() const PROTOBUF_FINAL { return New(NULL); } - V0LayerParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + V0LayerParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const V0LayerParameter& from); void MergeFrom(const V0LayerParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(V0LayerParameter* other); - void UnsafeMergeFrom(const V0LayerParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -12128,184 +13460,6 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio // accessors ------------------------------------------------------- - // optional string name = 1; - bool has_name() const; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // optional string type = 2; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::std::string& type() const; - void set_type(const ::std::string& value); - void set_type(const char* value); - void set_type(const char* value, size_t size); - ::std::string* mutable_type(); - ::std::string* release_type(); - void set_allocated_type(::std::string* type); - - // optional uint32 num_output = 3; - bool has_num_output() const; - void clear_num_output(); - static const int kNumOutputFieldNumber = 3; - ::google::protobuf::uint32 num_output() const; - void set_num_output(::google::protobuf::uint32 value); - - // optional bool biasterm = 4 [default = true]; - bool has_biasterm() const; - void clear_biasterm(); - static const int kBiastermFieldNumber = 4; - bool biasterm() const; - void set_biasterm(bool value); - - // optional .opencv_caffe.FillerParameter weight_filler = 5; - bool has_weight_filler() const; - void clear_weight_filler(); - static const int kWeightFillerFieldNumber = 5; - const ::opencv_caffe::FillerParameter& weight_filler() const; - ::opencv_caffe::FillerParameter* mutable_weight_filler(); - ::opencv_caffe::FillerParameter* release_weight_filler(); - void set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler); - - // optional .opencv_caffe.FillerParameter bias_filler = 6; - bool has_bias_filler() const; - void clear_bias_filler(); - static const int kBiasFillerFieldNumber = 6; - const ::opencv_caffe::FillerParameter& bias_filler() const; - ::opencv_caffe::FillerParameter* mutable_bias_filler(); - ::opencv_caffe::FillerParameter* release_bias_filler(); - void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); - - // optional uint32 pad = 7 [default = 0]; - bool has_pad() const; - void clear_pad(); - static const int kPadFieldNumber = 7; - ::google::protobuf::uint32 pad() const; - void set_pad(::google::protobuf::uint32 value); - - // optional uint32 kernelsize = 8; - bool has_kernelsize() const; - void clear_kernelsize(); - static const int kKernelsizeFieldNumber = 8; - ::google::protobuf::uint32 kernelsize() const; - void set_kernelsize(::google::protobuf::uint32 value); - - // optional uint32 group = 9 [default = 1]; - bool has_group() const; - void clear_group(); - static const int kGroupFieldNumber = 9; - ::google::protobuf::uint32 group() const; - void set_group(::google::protobuf::uint32 value); - - // optional uint32 stride = 10 [default = 1]; - bool has_stride() const; - void clear_stride(); - static const int kStrideFieldNumber = 10; - ::google::protobuf::uint32 stride() const; - void set_stride(::google::protobuf::uint32 value); - - // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; - bool has_pool() const; - void clear_pool(); - static const int kPoolFieldNumber = 11; - ::opencv_caffe::V0LayerParameter_PoolMethod pool() const; - void set_pool(::opencv_caffe::V0LayerParameter_PoolMethod value); - - // optional float dropout_ratio = 12 [default = 0.5]; - bool has_dropout_ratio() const; - void clear_dropout_ratio(); - static const int kDropoutRatioFieldNumber = 12; - float dropout_ratio() const; - void set_dropout_ratio(float value); - - // optional uint32 local_size = 13 [default = 5]; - bool has_local_size() const; - void clear_local_size(); - static const int kLocalSizeFieldNumber = 13; - ::google::protobuf::uint32 local_size() const; - void set_local_size(::google::protobuf::uint32 value); - - // optional float alpha = 14 [default = 1]; - bool has_alpha() const; - void clear_alpha(); - static const int kAlphaFieldNumber = 14; - float alpha() const; - void set_alpha(float value); - - // optional float beta = 15 [default = 0.75]; - bool has_beta() const; - void clear_beta(); - static const int kBetaFieldNumber = 15; - float beta() const; - void set_beta(float value); - - // optional float k = 22 [default = 1]; - bool has_k() const; - void clear_k(); - static const int kKFieldNumber = 22; - float k() const; - void set_k(float value); - - // optional string source = 16; - bool has_source() const; - void clear_source(); - static const int kSourceFieldNumber = 16; - const ::std::string& source() const; - void set_source(const ::std::string& value); - void set_source(const char* value); - void set_source(const char* value, size_t size); - ::std::string* mutable_source(); - ::std::string* release_source(); - void set_allocated_source(::std::string* source); - - // optional float scale = 17 [default = 1]; - bool has_scale() const; - void clear_scale(); - static const int kScaleFieldNumber = 17; - float scale() const; - void set_scale(float value); - - // optional string meanfile = 18; - bool has_meanfile() const; - void clear_meanfile(); - static const int kMeanfileFieldNumber = 18; - const ::std::string& meanfile() const; - void set_meanfile(const ::std::string& value); - void set_meanfile(const char* value); - void set_meanfile(const char* value, size_t size); - ::std::string* mutable_meanfile(); - ::std::string* release_meanfile(); - void set_allocated_meanfile(::std::string* meanfile); - - // optional uint32 batchsize = 19; - bool has_batchsize() const; - void clear_batchsize(); - static const int kBatchsizeFieldNumber = 19; - ::google::protobuf::uint32 batchsize() const; - void set_batchsize(::google::protobuf::uint32 value); - - // optional uint32 cropsize = 20 [default = 0]; - bool has_cropsize() const; - void clear_cropsize(); - static const int kCropsizeFieldNumber = 20; - ::google::protobuf::uint32 cropsize() const; - void set_cropsize(::google::protobuf::uint32 value); - - // optional bool mirror = 21 [default = false]; - bool has_mirror() const; - void clear_mirror(); - static const int kMirrorFieldNumber = 21; - bool mirror() const; - void set_mirror(bool value); - // repeated .opencv_caffe.BlobProto blobs = 50; int blobs_size() const; void clear_blobs(); @@ -12342,40 +13496,65 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::RepeatedField< float >* mutable_weight_decay(); - // optional uint32 rand_skip = 53 [default = 0]; - bool has_rand_skip() const; - void clear_rand_skip(); - static const int kRandSkipFieldNumber = 53; - ::google::protobuf::uint32 rand_skip() const; - void set_rand_skip(::google::protobuf::uint32 value); + // optional string name = 1; + bool has_name() const; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); - // optional float det_fg_threshold = 54 [default = 0.5]; - bool has_det_fg_threshold() const; - void clear_det_fg_threshold(); - static const int kDetFgThresholdFieldNumber = 54; - float det_fg_threshold() const; - void set_det_fg_threshold(float value); + // optional string type = 2; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 2; + const ::std::string& type() const; + void set_type(const ::std::string& value); + #if LANG_CXX11 + void set_type(::std::string&& value); + #endif + void set_type(const char* value); + void set_type(const char* value, size_t size); + ::std::string* mutable_type(); + ::std::string* release_type(); + void set_allocated_type(::std::string* type); - // optional float det_bg_threshold = 55 [default = 0.5]; - bool has_det_bg_threshold() const; - void clear_det_bg_threshold(); - static const int kDetBgThresholdFieldNumber = 55; - float det_bg_threshold() const; - void set_det_bg_threshold(float value); + // optional string source = 16; + bool has_source() const; + void clear_source(); + static const int kSourceFieldNumber = 16; + const ::std::string& source() const; + void set_source(const ::std::string& value); + #if LANG_CXX11 + void set_source(::std::string&& value); + #endif + void set_source(const char* value); + void set_source(const char* value, size_t size); + ::std::string* mutable_source(); + ::std::string* release_source(); + void set_allocated_source(::std::string* source); - // optional float det_fg_fraction = 56 [default = 0.25]; - bool has_det_fg_fraction() const; - void clear_det_fg_fraction(); - static const int kDetFgFractionFieldNumber = 56; - float det_fg_fraction() const; - void set_det_fg_fraction(float value); - - // optional uint32 det_context_pad = 58 [default = 0]; - bool has_det_context_pad() const; - void clear_det_context_pad(); - static const int kDetContextPadFieldNumber = 58; - ::google::protobuf::uint32 det_context_pad() const; - void set_det_context_pad(::google::protobuf::uint32 value); + // optional string meanfile = 18; + bool has_meanfile() const; + void clear_meanfile(); + static const int kMeanfileFieldNumber = 18; + const ::std::string& meanfile() const; + void set_meanfile(const ::std::string& value); + #if LANG_CXX11 + void set_meanfile(::std::string&& value); + #endif + void set_meanfile(const char* value); + void set_meanfile(const char* value, size_t size); + ::std::string* mutable_meanfile(); + ::std::string* release_meanfile(); + void set_allocated_meanfile(::std::string* meanfile); // optional string det_crop_mode = 59 [default = "warp"]; bool has_det_crop_mode() const; @@ -12383,12 +13562,119 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio static const int kDetCropModeFieldNumber = 59; const ::std::string& det_crop_mode() const; void set_det_crop_mode(const ::std::string& value); + #if LANG_CXX11 + void set_det_crop_mode(::std::string&& value); + #endif void set_det_crop_mode(const char* value); void set_det_crop_mode(const char* value, size_t size); ::std::string* mutable_det_crop_mode(); ::std::string* release_det_crop_mode(); void set_allocated_det_crop_mode(::std::string* det_crop_mode); + // optional .opencv_caffe.FillerParameter weight_filler = 5; + bool has_weight_filler() const; + void clear_weight_filler(); + static const int kWeightFillerFieldNumber = 5; + const ::opencv_caffe::FillerParameter& weight_filler() const; + ::opencv_caffe::FillerParameter* release_weight_filler(); + ::opencv_caffe::FillerParameter* mutable_weight_filler(); + void set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler); + + // optional .opencv_caffe.FillerParameter bias_filler = 6; + bool has_bias_filler() const; + void clear_bias_filler(); + static const int kBiasFillerFieldNumber = 6; + const ::opencv_caffe::FillerParameter& bias_filler() const; + ::opencv_caffe::FillerParameter* release_bias_filler(); + ::opencv_caffe::FillerParameter* mutable_bias_filler(); + void set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler); + + // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001; + bool has_hdf5_output_param() const; + void clear_hdf5_output_param(); + static const int kHdf5OutputParamFieldNumber = 1001; + const ::opencv_caffe::HDF5OutputParameter& hdf5_output_param() const; + ::opencv_caffe::HDF5OutputParameter* release_hdf5_output_param(); + ::opencv_caffe::HDF5OutputParameter* mutable_hdf5_output_param(); + void set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param); + + // optional uint32 num_output = 3; + bool has_num_output() const; + void clear_num_output(); + static const int kNumOutputFieldNumber = 3; + ::google::protobuf::uint32 num_output() const; + void set_num_output(::google::protobuf::uint32 value); + + // optional uint32 pad = 7 [default = 0]; + bool has_pad() const; + void clear_pad(); + static const int kPadFieldNumber = 7; + ::google::protobuf::uint32 pad() const; + void set_pad(::google::protobuf::uint32 value); + + // optional uint32 kernelsize = 8; + bool has_kernelsize() const; + void clear_kernelsize(); + static const int kKernelsizeFieldNumber = 8; + ::google::protobuf::uint32 kernelsize() const; + void set_kernelsize(::google::protobuf::uint32 value); + + // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; + bool has_pool() const; + void clear_pool(); + static const int kPoolFieldNumber = 11; + ::opencv_caffe::V0LayerParameter_PoolMethod pool() const; + void set_pool(::opencv_caffe::V0LayerParameter_PoolMethod value); + + // optional uint32 batchsize = 19; + bool has_batchsize() const; + void clear_batchsize(); + static const int kBatchsizeFieldNumber = 19; + ::google::protobuf::uint32 batchsize() const; + void set_batchsize(::google::protobuf::uint32 value); + + // optional uint32 cropsize = 20 [default = 0]; + bool has_cropsize() const; + void clear_cropsize(); + static const int kCropsizeFieldNumber = 20; + ::google::protobuf::uint32 cropsize() const; + void set_cropsize(::google::protobuf::uint32 value); + + // optional int32 new_width = 63 [default = 0]; + bool has_new_width() const; + void clear_new_width(); + static const int kNewWidthFieldNumber = 63; + ::google::protobuf::int32 new_width() const; + void set_new_width(::google::protobuf::int32 value); + + // optional bool mirror = 21 [default = false]; + bool has_mirror() const; + void clear_mirror(); + static const int kMirrorFieldNumber = 21; + bool mirror() const; + void set_mirror(bool value); + + // optional bool shuffle_images = 64 [default = false]; + bool has_shuffle_images() const; + void clear_shuffle_images(); + static const int kShuffleImagesFieldNumber = 64; + bool shuffle_images() const; + void set_shuffle_images(bool value); + + // optional uint32 rand_skip = 53 [default = 0]; + bool has_rand_skip() const; + void clear_rand_skip(); + static const int kRandSkipFieldNumber = 53; + ::google::protobuf::uint32 rand_skip() const; + void set_rand_skip(::google::protobuf::uint32 value); + + // optional uint32 det_context_pad = 58 [default = 0]; + bool has_det_context_pad() const; + void clear_det_context_pad(); + static const int kDetContextPadFieldNumber = 58; + ::google::protobuf::uint32 det_context_pad() const; + void set_det_context_pad(::google::protobuf::uint32 value); + // optional int32 new_num = 60 [default = 0]; bool has_new_num() const; void clear_new_num(); @@ -12410,20 +13696,6 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::int32 new_height() const; void set_new_height(::google::protobuf::int32 value); - // optional int32 new_width = 63 [default = 0]; - bool has_new_width() const; - void clear_new_width(); - static const int kNewWidthFieldNumber = 63; - ::google::protobuf::int32 new_width() const; - void set_new_width(::google::protobuf::int32 value); - - // optional bool shuffle_images = 64 [default = false]; - bool has_shuffle_images() const; - void clear_shuffle_images(); - static const int kShuffleImagesFieldNumber = 64; - bool shuffle_images() const; - void set_shuffle_images(bool value); - // optional uint32 concat_dim = 65 [default = 1]; bool has_concat_dim() const; void clear_concat_dim(); @@ -12431,87 +13703,162 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::uint32 concat_dim() const; void set_concat_dim(::google::protobuf::uint32 value); - // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001; - bool has_hdf5_output_param() const; - void clear_hdf5_output_param(); - static const int kHdf5OutputParamFieldNumber = 1001; - const ::opencv_caffe::HDF5OutputParameter& hdf5_output_param() const; - ::opencv_caffe::HDF5OutputParameter* mutable_hdf5_output_param(); - ::opencv_caffe::HDF5OutputParameter* release_hdf5_output_param(); - void set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param); + // optional bool biasterm = 4 [default = true]; + bool has_biasterm() const; + void clear_biasterm(); + static const int kBiastermFieldNumber = 4; + bool biasterm() const; + void set_biasterm(bool value); + + // optional uint32 group = 9 [default = 1]; + bool has_group() const; + void clear_group(); + static const int kGroupFieldNumber = 9; + ::google::protobuf::uint32 group() const; + void set_group(::google::protobuf::uint32 value); + + // optional uint32 stride = 10 [default = 1]; + bool has_stride() const; + void clear_stride(); + static const int kStrideFieldNumber = 10; + ::google::protobuf::uint32 stride() const; + void set_stride(::google::protobuf::uint32 value); + + // optional float dropout_ratio = 12 [default = 0.5]; + bool has_dropout_ratio() const; + void clear_dropout_ratio(); + static const int kDropoutRatioFieldNumber = 12; + float dropout_ratio() const; + void set_dropout_ratio(float value); + + // optional uint32 local_size = 13 [default = 5]; + bool has_local_size() const; + void clear_local_size(); + static const int kLocalSizeFieldNumber = 13; + ::google::protobuf::uint32 local_size() const; + void set_local_size(::google::protobuf::uint32 value); + + // optional float alpha = 14 [default = 1]; + bool has_alpha() const; + void clear_alpha(); + static const int kAlphaFieldNumber = 14; + float alpha() const; + void set_alpha(float value); + + // optional float beta = 15 [default = 0.75]; + bool has_beta() const; + void clear_beta(); + static const int kBetaFieldNumber = 15; + float beta() const; + void set_beta(float value); + + // optional float scale = 17 [default = 1]; + bool has_scale() const; + void clear_scale(); + static const int kScaleFieldNumber = 17; + float scale() const; + void set_scale(float value); + + // optional float k = 22 [default = 1]; + bool has_k() const; + void clear_k(); + static const int kKFieldNumber = 22; + float k() const; + void set_k(float value); + + // optional float det_fg_threshold = 54 [default = 0.5]; + bool has_det_fg_threshold() const; + void clear_det_fg_threshold(); + static const int kDetFgThresholdFieldNumber = 54; + float det_fg_threshold() const; + void set_det_fg_threshold(float value); + + // optional float det_bg_threshold = 55 [default = 0.5]; + bool has_det_bg_threshold() const; + void clear_det_bg_threshold(); + static const int kDetBgThresholdFieldNumber = 55; + float det_bg_threshold() const; + void set_det_bg_threshold(float value); + + // optional float det_fg_fraction = 56 [default = 0.25]; + bool has_det_fg_fraction() const; + void clear_det_fg_fraction(); + static const int kDetFgFractionFieldNumber = 56; + float det_fg_fraction() const; + void set_det_fg_fraction(float value); // @@protoc_insertion_point(class_scope:opencv_caffe.V0LayerParameter) private: - inline void set_has_name(); - inline void clear_has_name(); - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_num_output(); - inline void clear_has_num_output(); - inline void set_has_biasterm(); - inline void clear_has_biasterm(); - inline void set_has_weight_filler(); - inline void clear_has_weight_filler(); - inline void set_has_bias_filler(); - inline void clear_has_bias_filler(); - inline void set_has_pad(); - inline void clear_has_pad(); - inline void set_has_kernelsize(); - inline void clear_has_kernelsize(); - inline void set_has_group(); - inline void clear_has_group(); - inline void set_has_stride(); - inline void clear_has_stride(); - inline void set_has_pool(); - inline void clear_has_pool(); - inline void set_has_dropout_ratio(); - inline void clear_has_dropout_ratio(); - inline void set_has_local_size(); - inline void clear_has_local_size(); - inline void set_has_alpha(); - inline void clear_has_alpha(); - inline void set_has_beta(); - inline void clear_has_beta(); - inline void set_has_k(); - inline void clear_has_k(); - inline void set_has_source(); - inline void clear_has_source(); - inline void set_has_scale(); - inline void clear_has_scale(); - inline void set_has_meanfile(); - inline void clear_has_meanfile(); - inline void set_has_batchsize(); - inline void clear_has_batchsize(); - inline void set_has_cropsize(); - inline void clear_has_cropsize(); - inline void set_has_mirror(); - inline void clear_has_mirror(); - inline void set_has_rand_skip(); - inline void clear_has_rand_skip(); - inline void set_has_det_fg_threshold(); - inline void clear_has_det_fg_threshold(); - inline void set_has_det_bg_threshold(); - inline void clear_has_det_bg_threshold(); - inline void set_has_det_fg_fraction(); - inline void clear_has_det_fg_fraction(); - inline void set_has_det_context_pad(); - inline void clear_has_det_context_pad(); - inline void set_has_det_crop_mode(); - inline void clear_has_det_crop_mode(); - inline void set_has_new_num(); - inline void clear_has_new_num(); - inline void set_has_new_channels(); - inline void clear_has_new_channels(); - inline void set_has_new_height(); - inline void clear_has_new_height(); - inline void set_has_new_width(); - inline void clear_has_new_width(); - inline void set_has_shuffle_images(); - inline void clear_has_shuffle_images(); - inline void set_has_concat_dim(); - inline void clear_has_concat_dim(); - inline void set_has_hdf5_output_param(); - inline void clear_has_hdf5_output_param(); + void set_has_name(); + void clear_has_name(); + void set_has_type(); + void clear_has_type(); + void set_has_num_output(); + void clear_has_num_output(); + void set_has_biasterm(); + void clear_has_biasterm(); + void set_has_weight_filler(); + void clear_has_weight_filler(); + void set_has_bias_filler(); + void clear_has_bias_filler(); + void set_has_pad(); + void clear_has_pad(); + void set_has_kernelsize(); + void clear_has_kernelsize(); + void set_has_group(); + void clear_has_group(); + void set_has_stride(); + void clear_has_stride(); + void set_has_pool(); + void clear_has_pool(); + void set_has_dropout_ratio(); + void clear_has_dropout_ratio(); + void set_has_local_size(); + void clear_has_local_size(); + void set_has_alpha(); + void clear_has_alpha(); + void set_has_beta(); + void clear_has_beta(); + void set_has_k(); + void clear_has_k(); + void set_has_source(); + void clear_has_source(); + void set_has_scale(); + void clear_has_scale(); + void set_has_meanfile(); + void clear_has_meanfile(); + void set_has_batchsize(); + void clear_has_batchsize(); + void set_has_cropsize(); + void clear_has_cropsize(); + void set_has_mirror(); + void clear_has_mirror(); + void set_has_rand_skip(); + void clear_has_rand_skip(); + void set_has_det_fg_threshold(); + void clear_has_det_fg_threshold(); + void set_has_det_bg_threshold(); + void clear_has_det_bg_threshold(); + void set_has_det_fg_fraction(); + void clear_has_det_fg_fraction(); + void set_has_det_context_pad(); + void clear_has_det_context_pad(); + void set_has_det_crop_mode(); + void clear_has_det_crop_mode(); + void set_has_new_num(); + void clear_has_new_num(); + void set_has_new_channels(); + void clear_has_new_channels(); + void set_has_new_height(); + void clear_has_new_height(); + void set_has_new_width(); + void clear_has_new_width(); + void set_has_shuffle_images(); + void clear_has_shuffle_images(); + void set_has_concat_dim(); + void clear_has_concat_dim(); + void set_has_hdf5_output_param(); + void clear_has_hdf5_output_param(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<2> _has_bits_; @@ -12522,7 +13869,7 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::internal::ArenaStringPtr type_; ::google::protobuf::internal::ArenaStringPtr source_; ::google::protobuf::internal::ArenaStringPtr meanfile_; - static ::std::string* _default_det_crop_mode_; + static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _default_det_crop_mode_; ::google::protobuf::internal::ArenaStringPtr det_crop_mode_; ::opencv_caffe::FillerParameter* weight_filler_; ::opencv_caffe::FillerParameter* bias_filler_; @@ -12533,14 +13880,14 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio int pool_; ::google::protobuf::uint32 batchsize_; ::google::protobuf::uint32 cropsize_; - ::google::protobuf::uint32 rand_skip_; + ::google::protobuf::int32 new_width_; bool mirror_; bool shuffle_images_; + ::google::protobuf::uint32 rand_skip_; ::google::protobuf::uint32 det_context_pad_; ::google::protobuf::int32 new_num_; ::google::protobuf::int32 new_channels_; ::google::protobuf::int32 new_height_; - ::google::protobuf::int32 new_width_; ::google::protobuf::uint32 concat_dim_; bool biasterm_; ::google::protobuf::uint32 group_; @@ -12549,21 +13896,15 @@ class V0LayerParameter : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::uint32 local_size_; float alpha_; float beta_; - float k_; float scale_; + float k_; float det_fg_threshold_; float det_bg_threshold_; float det_fg_fraction_; mutable int _cached_size_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV0LayerParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed V0LayerParameter_default_instance_; - // ------------------------------------------------------------------- class PReLUParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.PReLUParameter) */ { @@ -12577,11 +13918,24 @@ class PReLUParameter : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + PReLUParameter(PReLUParameter&& from) noexcept + : PReLUParameter() { + *this = ::std::move(from); + } + inline PReLUParameter& operator=(PReLUParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -12589,49 +13943,54 @@ class PReLUParameter : public ::google::protobuf::Message /* @@protoc_insertion_ static const ::google::protobuf::Descriptor* descriptor(); static const PReLUParameter& default_instance(); - static const PReLUParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PReLUParameter* internal_default_instance() { + return reinterpret_cast( + &_PReLUParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 66; void Swap(PReLUParameter* other); + friend void swap(PReLUParameter& a, PReLUParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PReLUParameter* New() const { return New(NULL); } + inline PReLUParameter* New() const PROTOBUF_FINAL { return New(NULL); } - PReLUParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + PReLUParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PReLUParameter& from); void MergeFrom(const PReLUParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PReLUParameter* other); - void UnsafeMergeFrom(const PReLUParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -12642,8 +14001,8 @@ class PReLUParameter : public ::google::protobuf::Message /* @@protoc_insertion_ void clear_filler(); static const int kFillerFieldNumber = 1; const ::opencv_caffe::FillerParameter& filler() const; - ::opencv_caffe::FillerParameter* mutable_filler(); ::opencv_caffe::FillerParameter* release_filler(); + ::opencv_caffe::FillerParameter* mutable_filler(); void set_allocated_filler(::opencv_caffe::FillerParameter* filler); // optional bool channel_shared = 2 [default = false]; @@ -12655,25 +14014,19 @@ class PReLUParameter : public ::google::protobuf::Message /* @@protoc_insertion_ // @@protoc_insertion_point(class_scope:opencv_caffe.PReLUParameter) private: - inline void set_has_filler(); - inline void clear_has_filler(); - inline void set_has_channel_shared(); - inline void clear_has_channel_shared(); + void set_has_filler(); + void clear_has_filler(); + void set_has_channel_shared(); + void clear_has_channel_shared(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::opencv_caffe::FillerParameter* filler_; bool channel_shared_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPReLUParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed PReLUParameter_default_instance_; - // ------------------------------------------------------------------- class NormalizedBBox : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.NormalizedBBox) */ { @@ -12687,11 +14040,24 @@ class NormalizedBBox : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + NormalizedBBox(NormalizedBBox&& from) noexcept + : NormalizedBBox() { + *this = ::std::move(from); + } + inline NormalizedBBox& operator=(NormalizedBBox&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -12699,49 +14065,54 @@ class NormalizedBBox : public ::google::protobuf::Message /* @@protoc_insertion_ static const ::google::protobuf::Descriptor* descriptor(); static const NormalizedBBox& default_instance(); - static const NormalizedBBox* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NormalizedBBox* internal_default_instance() { + return reinterpret_cast( + &_NormalizedBBox_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 67; void Swap(NormalizedBBox* other); + friend void swap(NormalizedBBox& a, NormalizedBBox& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline NormalizedBBox* New() const { return New(NULL); } + inline NormalizedBBox* New() const PROTOBUF_FINAL { return New(NULL); } - NormalizedBBox* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + NormalizedBBox* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const NormalizedBBox& from); void MergeFrom(const NormalizedBBox& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(NormalizedBBox* other); - void UnsafeMergeFrom(const NormalizedBBox& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -12805,22 +14176,22 @@ class NormalizedBBox : public ::google::protobuf::Message /* @@protoc_insertion_ // @@protoc_insertion_point(class_scope:opencv_caffe.NormalizedBBox) private: - inline void set_has_xmin(); - inline void clear_has_xmin(); - inline void set_has_ymin(); - inline void clear_has_ymin(); - inline void set_has_xmax(); - inline void clear_has_xmax(); - inline void set_has_ymax(); - inline void clear_has_ymax(); - inline void set_has_label(); - inline void clear_has_label(); - inline void set_has_difficult(); - inline void clear_has_difficult(); - inline void set_has_score(); - inline void clear_has_score(); - inline void set_has_size(); - inline void clear_has_size(); + void set_has_xmin(); + void clear_has_xmin(); + void set_has_ymin(); + void clear_has_ymin(); + void set_has_xmax(); + void clear_has_xmax(); + void set_has_ymax(); + void clear_has_ymax(); + void set_has_label(); + void clear_has_label(); + void set_has_difficult(); + void clear_has_difficult(); + void set_has_score(); + void clear_has_score(); + void set_has_size(); + void clear_has_size(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -12833,15 +14204,9 @@ class NormalizedBBox : public ::google::protobuf::Message /* @@protoc_insertion_ bool difficult_; float score_; float size_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizedBBoxImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed NormalizedBBox_default_instance_; - // ------------------------------------------------------------------- class ROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ROIPoolingParameter) */ { @@ -12855,11 +14220,24 @@ class ROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_inser CopyFrom(from); return *this; } + #if LANG_CXX11 + ROIPoolingParameter(ROIPoolingParameter&& from) noexcept + : ROIPoolingParameter() { + *this = ::std::move(from); + } + inline ROIPoolingParameter& operator=(ROIPoolingParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -12867,49 +14245,54 @@ class ROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_inser static const ::google::protobuf::Descriptor* descriptor(); static const ROIPoolingParameter& default_instance(); - static const ROIPoolingParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ROIPoolingParameter* internal_default_instance() { + return reinterpret_cast( + &_ROIPoolingParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 68; void Swap(ROIPoolingParameter* other); + friend void swap(ROIPoolingParameter& a, ROIPoolingParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ROIPoolingParameter* New() const { return New(NULL); } + inline ROIPoolingParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ROIPoolingParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ROIPoolingParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ROIPoolingParameter& from); void MergeFrom(const ROIPoolingParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ROIPoolingParameter* other); - void UnsafeMergeFrom(const ROIPoolingParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -12938,12 +14321,12 @@ class ROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_inser // @@protoc_insertion_point(class_scope:opencv_caffe.ROIPoolingParameter) private: - inline void set_has_pooled_h(); - inline void clear_has_pooled_h(); - inline void set_has_pooled_w(); - inline void clear_has_pooled_w(); - inline void set_has_spatial_scale(); - inline void clear_has_spatial_scale(); + void set_has_pooled_h(); + void clear_has_pooled_h(); + void set_has_pooled_w(); + void clear_has_pooled_w(); + void set_has_spatial_scale(); + void clear_has_spatial_scale(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -12951,15 +14334,9 @@ class ROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_inser ::google::protobuf::uint32 pooled_h_; ::google::protobuf::uint32 pooled_w_; float spatial_scale_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsROIPoolingParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ROIPoolingParameter_default_instance_; - // ------------------------------------------------------------------- class ProposalParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.ProposalParameter) */ { @@ -12973,11 +14350,24 @@ class ProposalParameter : public ::google::protobuf::Message /* @@protoc_inserti CopyFrom(from); return *this; } + #if LANG_CXX11 + ProposalParameter(ProposalParameter&& from) noexcept + : ProposalParameter() { + *this = ::std::move(from); + } + inline ProposalParameter& operator=(ProposalParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -12985,75 +14375,59 @@ class ProposalParameter : public ::google::protobuf::Message /* @@protoc_inserti static const ::google::protobuf::Descriptor* descriptor(); static const ProposalParameter& default_instance(); - static const ProposalParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProposalParameter* internal_default_instance() { + return reinterpret_cast( + &_ProposalParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 69; void Swap(ProposalParameter* other); + friend void swap(ProposalParameter& a, ProposalParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ProposalParameter* New() const { return New(NULL); } + inline ProposalParameter* New() const PROTOBUF_FINAL { return New(NULL); } - ProposalParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + ProposalParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ProposalParameter& from); void MergeFrom(const ProposalParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ProposalParameter* other); - void UnsafeMergeFrom(const ProposalParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional uint32 feat_stride = 1 [default = 16]; - bool has_feat_stride() const; - void clear_feat_stride(); - static const int kFeatStrideFieldNumber = 1; - ::google::protobuf::uint32 feat_stride() const; - void set_feat_stride(::google::protobuf::uint32 value); - - // optional uint32 base_size = 2 [default = 16]; - bool has_base_size() const; - void clear_base_size(); - static const int kBaseSizeFieldNumber = 2; - ::google::protobuf::uint32 base_size() const; - void set_base_size(::google::protobuf::uint32 value); - - // optional uint32 min_size = 3 [default = 16]; - bool has_min_size() const; - void clear_min_size(); - static const int kMinSizeFieldNumber = 3; - ::google::protobuf::uint32 min_size() const; - void set_min_size(::google::protobuf::uint32 value); - // repeated float ratio = 4; int ratio_size() const; void clear_ratio(); @@ -13078,6 +14452,27 @@ class ProposalParameter : public ::google::protobuf::Message /* @@protoc_inserti ::google::protobuf::RepeatedField< float >* mutable_scale(); + // optional uint32 feat_stride = 1 [default = 16]; + bool has_feat_stride() const; + void clear_feat_stride(); + static const int kFeatStrideFieldNumber = 1; + ::google::protobuf::uint32 feat_stride() const; + void set_feat_stride(::google::protobuf::uint32 value); + + // optional uint32 base_size = 2 [default = 16]; + bool has_base_size() const; + void clear_base_size(); + static const int kBaseSizeFieldNumber = 2; + ::google::protobuf::uint32 base_size() const; + void set_base_size(::google::protobuf::uint32 value); + + // optional uint32 min_size = 3 [default = 16]; + bool has_min_size() const; + void clear_min_size(); + static const int kMinSizeFieldNumber = 3; + ::google::protobuf::uint32 min_size() const; + void set_min_size(::google::protobuf::uint32 value); + // optional uint32 pre_nms_topn = 6 [default = 6000]; bool has_pre_nms_topn() const; void clear_pre_nms_topn(); @@ -13101,18 +14496,18 @@ class ProposalParameter : public ::google::protobuf::Message /* @@protoc_inserti // @@protoc_insertion_point(class_scope:opencv_caffe.ProposalParameter) private: - inline void set_has_feat_stride(); - inline void clear_has_feat_stride(); - inline void set_has_base_size(); - inline void clear_has_base_size(); - inline void set_has_min_size(); - inline void clear_has_min_size(); - inline void set_has_pre_nms_topn(); - inline void clear_has_pre_nms_topn(); - inline void set_has_post_nms_topn(); - inline void clear_has_post_nms_topn(); - inline void set_has_nms_thresh(); - inline void clear_has_nms_thresh(); + void set_has_feat_stride(); + void clear_has_feat_stride(); + void set_has_base_size(); + void clear_has_base_size(); + void set_has_min_size(); + void clear_has_min_size(); + void set_has_pre_nms_topn(); + void clear_has_pre_nms_topn(); + void set_has_post_nms_topn(); + void clear_has_post_nms_topn(); + void set_has_nms_thresh(); + void clear_has_nms_thresh(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -13125,15 +14520,9 @@ class ProposalParameter : public ::google::protobuf::Message /* @@protoc_inserti ::google::protobuf::uint32 pre_nms_topn_; ::google::protobuf::uint32 post_nms_topn_; float nms_thresh_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsProposalParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed ProposalParameter_default_instance_; - // ------------------------------------------------------------------- class PSROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_caffe.PSROIPoolingParameter) */ { @@ -13147,11 +14536,24 @@ class PSROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_ins CopyFrom(from); return *this; } + #if LANG_CXX11 + PSROIPoolingParameter(PSROIPoolingParameter&& from) noexcept + : PSROIPoolingParameter() { + *this = ::std::move(from); + } + inline PSROIPoolingParameter& operator=(PSROIPoolingParameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } @@ -13159,49 +14561,54 @@ class PSROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_ins static const ::google::protobuf::Descriptor* descriptor(); static const PSROIPoolingParameter& default_instance(); - static const PSROIPoolingParameter* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PSROIPoolingParameter* internal_default_instance() { + return reinterpret_cast( + &_PSROIPoolingParameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 70; void Swap(PSROIPoolingParameter* other); + friend void swap(PSROIPoolingParameter& a, PSROIPoolingParameter& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PSROIPoolingParameter* New() const { return New(NULL); } + inline PSROIPoolingParameter* New() const PROTOBUF_FINAL { return New(NULL); } - PSROIPoolingParameter* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + PSROIPoolingParameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PSROIPoolingParameter& from); void MergeFrom(const PSROIPoolingParameter& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PSROIPoolingParameter* other); - void UnsafeMergeFrom(const PSROIPoolingParameter& from); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); + return NULL; } inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); + return NULL; } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -13230,12 +14637,12 @@ class PSROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_ins // @@protoc_insertion_point(class_scope:opencv_caffe.PSROIPoolingParameter) private: - inline void set_has_spatial_scale(); - inline void clear_has_spatial_scale(); - inline void set_has_output_dim(); - inline void clear_has_output_dim(); - inline void set_has_group_size(); - inline void clear_has_group_size(); + void set_has_spatial_scale(); + void clear_has_spatial_scale(); + void set_has_output_dim(); + void clear_has_output_dim(); + void set_has_group_size(); + void clear_has_group_size(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; @@ -13246,21 +14653,18 @@ class PSROIPoolingParameter : public ::google::protobuf::Message /* @@protoc_ins float spatial_scale_; ::google::protobuf::int32 output_dim_; ::google::protobuf::int32 group_size_; - friend void protobuf_InitDefaults_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AddDesc_opencv_2dcaffe_2eproto_impl(); - friend void protobuf_AssignDesc_opencv_2dcaffe_2eproto(); - friend void protobuf_ShutdownFile_opencv_2dcaffe_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_opencv_2dcaffe_2eproto::TableStruct; + friend void ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPSROIPoolingParameterImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed PSROIPoolingParameter_default_instance_; - // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // BlobShape // repeated int64 dim = 1 [packed = true]; @@ -13293,31 +14697,36 @@ BlobShape::mutable_dim() { return &dim_; } -inline const BlobShape* BlobShape::internal_default_instance() { - return &BlobShape_default_instance_.get(); -} // ------------------------------------------------------------------- // BlobProto // optional .opencv_caffe.BlobShape shape = 7; inline bool BlobProto::has_shape() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void BlobProto::set_has_shape() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void BlobProto::clear_has_shape() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void BlobProto::clear_shape() { - if (shape_ != NULL) shape_->::opencv_caffe::BlobShape::Clear(); + if (shape_ != NULL) shape_->Clear(); clear_has_shape(); } inline const ::opencv_caffe::BlobShape& BlobProto::shape() const { + const ::opencv_caffe::BlobShape* p = shape_; // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.shape) - return shape_ != NULL ? *shape_ - : *::opencv_caffe::BlobShape::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_BlobShape_default_instance_); +} +inline ::opencv_caffe::BlobShape* BlobProto::release_shape() { + // @@protoc_insertion_point(field_release:opencv_caffe.BlobProto.shape) + clear_has_shape(); + ::opencv_caffe::BlobShape* temp = shape_; + shape_ = NULL; + return temp; } inline ::opencv_caffe::BlobShape* BlobProto::mutable_shape() { set_has_shape(); @@ -13327,21 +14736,22 @@ inline ::opencv_caffe::BlobShape* BlobProto::mutable_shape() { // @@protoc_insertion_point(field_mutable:opencv_caffe.BlobProto.shape) return shape_; } -inline ::opencv_caffe::BlobShape* BlobProto::release_shape() { - // @@protoc_insertion_point(field_release:opencv_caffe.BlobProto.shape) - clear_has_shape(); - ::opencv_caffe::BlobShape* temp = shape_; - shape_ = NULL; - return temp; -} inline void BlobProto::set_allocated_shape(::opencv_caffe::BlobShape* shape) { - delete shape_; - shape_ = shape; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete shape_; + } if (shape) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + shape = ::google::protobuf::internal::GetOwnedMessage( + message_arena, shape, submessage_arena); + } set_has_shape(); } else { clear_has_shape(); } + shape_ = shape; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.BlobProto.shape) } @@ -13467,13 +14877,13 @@ BlobProto::mutable_double_diff() { // optional .opencv_caffe.Type raw_data_type = 10; inline bool BlobProto::has_raw_data_type() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void BlobProto::set_has_raw_data_type() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000040u; } inline void BlobProto::clear_has_raw_data_type() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000040u; } inline void BlobProto::clear_raw_data_type() { raw_data_type_ = 0; @@ -13492,13 +14902,13 @@ inline void BlobProto::set_raw_data_type(::opencv_caffe::Type value) { // optional bytes raw_data = 12 [packed = false]; inline bool BlobProto::has_raw_data() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void BlobProto::set_has_raw_data() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000001u; } inline void BlobProto::clear_has_raw_data() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000001u; } inline void BlobProto::clear_raw_data() { raw_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -13506,14 +14916,23 @@ inline void BlobProto::clear_raw_data() { } inline const ::std::string& BlobProto::raw_data() const { // @@protoc_insertion_point(field_get:opencv_caffe.BlobProto.raw_data) - return raw_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return raw_data_.GetNoArena(); } inline void BlobProto::set_raw_data(const ::std::string& value) { set_has_raw_data(); raw_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.raw_data) } +#if LANG_CXX11 +inline void BlobProto::set_raw_data(::std::string&& value) { + set_has_raw_data(); + raw_data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.BlobProto.raw_data) +} +#endif inline void BlobProto::set_raw_data(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_raw_data(); raw_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.BlobProto.raw_data) @@ -13546,13 +14965,13 @@ inline void BlobProto::set_allocated_raw_data(::std::string* raw_data) { // optional int32 num = 1 [default = 0]; inline bool BlobProto::has_num() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void BlobProto::set_has_num() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000004u; } inline void BlobProto::clear_has_num() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000004u; } inline void BlobProto::clear_num() { num_ = 0; @@ -13570,13 +14989,13 @@ inline void BlobProto::set_num(::google::protobuf::int32 value) { // optional int32 channels = 2 [default = 0]; inline bool BlobProto::has_channels() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void BlobProto::set_has_channels() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000008u; } inline void BlobProto::clear_has_channels() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000008u; } inline void BlobProto::clear_channels() { channels_ = 0; @@ -13594,13 +15013,13 @@ inline void BlobProto::set_channels(::google::protobuf::int32 value) { // optional int32 height = 3 [default = 0]; inline bool BlobProto::has_height() const { - return (_has_bits_[0] & 0x00000200u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void BlobProto::set_has_height() { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x00000010u; } inline void BlobProto::clear_has_height() { - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x00000010u; } inline void BlobProto::clear_height() { height_ = 0; @@ -13618,13 +15037,13 @@ inline void BlobProto::set_height(::google::protobuf::int32 value) { // optional int32 width = 4 [default = 0]; inline bool BlobProto::has_width() const { - return (_has_bits_[0] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void BlobProto::set_has_width() { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00000020u; } inline void BlobProto::clear_has_width() { - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000020u; } inline void BlobProto::clear_width() { width_ = 0; @@ -13640,9 +15059,6 @@ inline void BlobProto::set_width(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.BlobProto.width) } -inline const BlobProto* BlobProto::internal_default_instance() { - return &BlobProto_default_instance_.get(); -} // ------------------------------------------------------------------- // BlobProtoVector @@ -13677,9 +15093,6 @@ BlobProtoVector::blobs() const { return blobs_; } -inline const BlobProtoVector* BlobProtoVector::internal_default_instance() { - return &BlobProtoVector_default_instance_.get(); -} // ------------------------------------------------------------------- // PermuteParameter @@ -13714,22 +15127,19 @@ PermuteParameter::mutable_order() { return &order_; } -inline const PermuteParameter* PermuteParameter::internal_default_instance() { - return &PermuteParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // NormalizeBBoxParameter // optional bool across_spatial = 1 [default = true]; inline bool NormalizeBBoxParameter::has_across_spatial() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void NormalizeBBoxParameter::set_has_across_spatial() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void NormalizeBBoxParameter::clear_has_across_spatial() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void NormalizeBBoxParameter::clear_across_spatial() { across_spatial_ = true; @@ -13747,22 +15157,30 @@ inline void NormalizeBBoxParameter::set_across_spatial(bool value) { // optional .opencv_caffe.FillerParameter scale_filler = 2; inline bool NormalizeBBoxParameter::has_scale_filler() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void NormalizeBBoxParameter::set_has_scale_filler() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void NormalizeBBoxParameter::clear_has_scale_filler() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void NormalizeBBoxParameter::clear_scale_filler() { - if (scale_filler_ != NULL) scale_filler_->::opencv_caffe::FillerParameter::Clear(); + if (scale_filler_ != NULL) scale_filler_->Clear(); clear_has_scale_filler(); } inline const ::opencv_caffe::FillerParameter& NormalizeBBoxParameter::scale_filler() const { + const ::opencv_caffe::FillerParameter* p = scale_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.NormalizeBBoxParameter.scale_filler) - return scale_filler_ != NULL ? *scale_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* NormalizeBBoxParameter::release_scale_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.NormalizeBBoxParameter.scale_filler) + clear_has_scale_filler(); + ::opencv_caffe::FillerParameter* temp = scale_filler_; + scale_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* NormalizeBBoxParameter::mutable_scale_filler() { set_has_scale_filler(); @@ -13772,21 +15190,22 @@ inline ::opencv_caffe::FillerParameter* NormalizeBBoxParameter::mutable_scale_fi // @@protoc_insertion_point(field_mutable:opencv_caffe.NormalizeBBoxParameter.scale_filler) return scale_filler_; } -inline ::opencv_caffe::FillerParameter* NormalizeBBoxParameter::release_scale_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.NormalizeBBoxParameter.scale_filler) - clear_has_scale_filler(); - ::opencv_caffe::FillerParameter* temp = scale_filler_; - scale_filler_ = NULL; - return temp; -} inline void NormalizeBBoxParameter::set_allocated_scale_filler(::opencv_caffe::FillerParameter* scale_filler) { - delete scale_filler_; - scale_filler_ = scale_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete scale_filler_; + } if (scale_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + scale_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scale_filler, submessage_arena); + } set_has_scale_filler(); } else { clear_has_scale_filler(); } + scale_filler_ = scale_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.NormalizeBBoxParameter.scale_filler) } @@ -13838,9 +15257,6 @@ inline void NormalizeBBoxParameter::set_eps(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.NormalizeBBoxParameter.eps) } -inline const NormalizeBBoxParameter* NormalizeBBoxParameter::internal_default_instance() { - return &NormalizeBBoxParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // PriorBoxParameter @@ -13925,13 +15341,13 @@ PriorBoxParameter::mutable_aspect_ratio() { // optional bool flip = 4 [default = true]; inline bool PriorBoxParameter::has_flip() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void PriorBoxParameter::set_has_flip() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000100u; } inline void PriorBoxParameter::clear_has_flip() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000100u; } inline void PriorBoxParameter::clear_flip() { flip_ = true; @@ -13949,13 +15365,13 @@ inline void PriorBoxParameter::set_flip(bool value) { // optional bool clip = 5 [default = true]; inline bool PriorBoxParameter::has_clip() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void PriorBoxParameter::set_has_clip() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000200u; } inline void PriorBoxParameter::clear_has_clip() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000200u; } inline void PriorBoxParameter::clear_clip() { clip_ = true; @@ -14003,13 +15419,13 @@ PriorBoxParameter::mutable_variance() { // optional uint32 img_size = 7; inline bool PriorBoxParameter::has_img_size() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void PriorBoxParameter::set_has_img_size() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000004u; } inline void PriorBoxParameter::clear_has_img_size() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000004u; } inline void PriorBoxParameter::clear_img_size() { img_size_ = 0u; @@ -14027,13 +15443,13 @@ inline void PriorBoxParameter::set_img_size(::google::protobuf::uint32 value) { // optional uint32 img_h = 8; inline bool PriorBoxParameter::has_img_h() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void PriorBoxParameter::set_has_img_h() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000008u; } inline void PriorBoxParameter::clear_has_img_h() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000008u; } inline void PriorBoxParameter::clear_img_h() { img_h_ = 0u; @@ -14051,13 +15467,13 @@ inline void PriorBoxParameter::set_img_h(::google::protobuf::uint32 value) { // optional uint32 img_w = 9; inline bool PriorBoxParameter::has_img_w() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void PriorBoxParameter::set_has_img_w() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000010u; } inline void PriorBoxParameter::clear_has_img_w() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000010u; } inline void PriorBoxParameter::clear_img_w() { img_w_ = 0u; @@ -14075,13 +15491,13 @@ inline void PriorBoxParameter::set_img_w(::google::protobuf::uint32 value) { // optional float step = 10; inline bool PriorBoxParameter::has_step() const { - return (_has_bits_[0] & 0x00000200u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void PriorBoxParameter::set_has_step() { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x00000020u; } inline void PriorBoxParameter::clear_has_step() { - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x00000020u; } inline void PriorBoxParameter::clear_step() { step_ = 0; @@ -14099,13 +15515,13 @@ inline void PriorBoxParameter::set_step(float value) { // optional float step_h = 11; inline bool PriorBoxParameter::has_step_h() const { - return (_has_bits_[0] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void PriorBoxParameter::set_has_step_h() { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00000040u; } inline void PriorBoxParameter::clear_has_step_h() { - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000040u; } inline void PriorBoxParameter::clear_step_h() { step_h_ = 0; @@ -14123,13 +15539,13 @@ inline void PriorBoxParameter::set_step_h(float value) { // optional float step_w = 12; inline bool PriorBoxParameter::has_step_w() const { - return (_has_bits_[0] & 0x00000800u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void PriorBoxParameter::set_has_step_w() { - _has_bits_[0] |= 0x00000800u; + _has_bits_[0] |= 0x00000080u; } inline void PriorBoxParameter::clear_has_step_w() { - _has_bits_[0] &= ~0x00000800u; + _has_bits_[0] &= ~0x00000080u; } inline void PriorBoxParameter::clear_step_w() { step_w_ = 0; @@ -14147,13 +15563,13 @@ inline void PriorBoxParameter::set_step_w(float value) { // optional float offset = 13 [default = 0.5]; inline bool PriorBoxParameter::has_offset() const { - return (_has_bits_[0] & 0x00001000u) != 0; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void PriorBoxParameter::set_has_offset() { - _has_bits_[0] |= 0x00001000u; + _has_bits_[0] |= 0x00000400u; } inline void PriorBoxParameter::clear_has_offset() { - _has_bits_[0] &= ~0x00001000u; + _has_bits_[0] &= ~0x00000400u; } inline void PriorBoxParameter::clear_offset() { offset_ = 0.5f; @@ -14289,22 +15705,19 @@ PriorBoxParameter::mutable_height() { return &height_; } -inline const PriorBoxParameter* PriorBoxParameter::internal_default_instance() { - return &PriorBoxParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // DetectionOutputParameter // optional uint32 num_classes = 1; inline bool DetectionOutputParameter::has_num_classes() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void DetectionOutputParameter::set_has_num_classes() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000004u; } inline void DetectionOutputParameter::clear_has_num_classes() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000004u; } inline void DetectionOutputParameter::clear_num_classes() { num_classes_ = 0u; @@ -14322,13 +15735,13 @@ inline void DetectionOutputParameter::set_num_classes(::google::protobuf::uint32 // optional bool share_location = 2 [default = true]; inline bool DetectionOutputParameter::has_share_location() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void DetectionOutputParameter::set_has_share_location() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000100u; } inline void DetectionOutputParameter::clear_has_share_location() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000100u; } inline void DetectionOutputParameter::clear_share_location() { share_location_ = true; @@ -14346,13 +15759,13 @@ inline void DetectionOutputParameter::set_share_location(bool value) { // optional int32 background_label_id = 3 [default = 0]; inline bool DetectionOutputParameter::has_background_label_id() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void DetectionOutputParameter::set_has_background_label_id() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000008u; } inline void DetectionOutputParameter::clear_has_background_label_id() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000008u; } inline void DetectionOutputParameter::clear_background_label_id() { background_label_id_ = 0; @@ -14370,22 +15783,30 @@ inline void DetectionOutputParameter::set_background_label_id(::google::protobuf // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4; inline bool DetectionOutputParameter::has_nms_param() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void DetectionOutputParameter::set_has_nms_param() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000001u; } inline void DetectionOutputParameter::clear_has_nms_param() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000001u; } inline void DetectionOutputParameter::clear_nms_param() { - if (nms_param_ != NULL) nms_param_->::opencv_caffe::NonMaximumSuppressionParameter::Clear(); + if (nms_param_ != NULL) nms_param_->Clear(); clear_has_nms_param(); } inline const ::opencv_caffe::NonMaximumSuppressionParameter& DetectionOutputParameter::nms_param() const { + const ::opencv_caffe::NonMaximumSuppressionParameter* p = nms_param_; // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.nms_param) - return nms_param_ != NULL ? *nms_param_ - : *::opencv_caffe::NonMaximumSuppressionParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_NonMaximumSuppressionParameter_default_instance_); +} +inline ::opencv_caffe::NonMaximumSuppressionParameter* DetectionOutputParameter::release_nms_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.DetectionOutputParameter.nms_param) + clear_has_nms_param(); + ::opencv_caffe::NonMaximumSuppressionParameter* temp = nms_param_; + nms_param_ = NULL; + return temp; } inline ::opencv_caffe::NonMaximumSuppressionParameter* DetectionOutputParameter::mutable_nms_param() { set_has_nms_param(); @@ -14395,42 +15816,51 @@ inline ::opencv_caffe::NonMaximumSuppressionParameter* DetectionOutputParameter: // @@protoc_insertion_point(field_mutable:opencv_caffe.DetectionOutputParameter.nms_param) return nms_param_; } -inline ::opencv_caffe::NonMaximumSuppressionParameter* DetectionOutputParameter::release_nms_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.DetectionOutputParameter.nms_param) - clear_has_nms_param(); - ::opencv_caffe::NonMaximumSuppressionParameter* temp = nms_param_; - nms_param_ = NULL; - return temp; -} inline void DetectionOutputParameter::set_allocated_nms_param(::opencv_caffe::NonMaximumSuppressionParameter* nms_param) { - delete nms_param_; - nms_param_ = nms_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete nms_param_; + } if (nms_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + nms_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, nms_param, submessage_arena); + } set_has_nms_param(); } else { clear_has_nms_param(); } + nms_param_ = nms_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.DetectionOutputParameter.nms_param) } // optional .opencv_caffe.SaveOutputParameter save_output_param = 5; inline bool DetectionOutputParameter::has_save_output_param() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void DetectionOutputParameter::set_has_save_output_param() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000002u; } inline void DetectionOutputParameter::clear_has_save_output_param() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000002u; } inline void DetectionOutputParameter::clear_save_output_param() { - if (save_output_param_ != NULL) save_output_param_->::opencv_caffe::SaveOutputParameter::Clear(); + if (save_output_param_ != NULL) save_output_param_->Clear(); clear_has_save_output_param(); } inline const ::opencv_caffe::SaveOutputParameter& DetectionOutputParameter::save_output_param() const { + const ::opencv_caffe::SaveOutputParameter* p = save_output_param_; // @@protoc_insertion_point(field_get:opencv_caffe.DetectionOutputParameter.save_output_param) - return save_output_param_ != NULL ? *save_output_param_ - : *::opencv_caffe::SaveOutputParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_SaveOutputParameter_default_instance_); +} +inline ::opencv_caffe::SaveOutputParameter* DetectionOutputParameter::release_save_output_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.DetectionOutputParameter.save_output_param) + clear_has_save_output_param(); + ::opencv_caffe::SaveOutputParameter* temp = save_output_param_; + save_output_param_ = NULL; + return temp; } inline ::opencv_caffe::SaveOutputParameter* DetectionOutputParameter::mutable_save_output_param() { set_has_save_output_param(); @@ -14440,33 +15870,34 @@ inline ::opencv_caffe::SaveOutputParameter* DetectionOutputParameter::mutable_sa // @@protoc_insertion_point(field_mutable:opencv_caffe.DetectionOutputParameter.save_output_param) return save_output_param_; } -inline ::opencv_caffe::SaveOutputParameter* DetectionOutputParameter::release_save_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.DetectionOutputParameter.save_output_param) - clear_has_save_output_param(); - ::opencv_caffe::SaveOutputParameter* temp = save_output_param_; - save_output_param_ = NULL; - return temp; -} inline void DetectionOutputParameter::set_allocated_save_output_param(::opencv_caffe::SaveOutputParameter* save_output_param) { - delete save_output_param_; - save_output_param_ = save_output_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete save_output_param_; + } if (save_output_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + save_output_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, save_output_param, submessage_arena); + } set_has_save_output_param(); } else { clear_has_save_output_param(); } + save_output_param_ = save_output_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.DetectionOutputParameter.save_output_param) } // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER]; inline bool DetectionOutputParameter::has_code_type() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void DetectionOutputParameter::set_has_code_type() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000080u; } inline void DetectionOutputParameter::clear_has_code_type() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000080u; } inline void DetectionOutputParameter::clear_code_type() { code_type_ = 1; @@ -14485,13 +15916,13 @@ inline void DetectionOutputParameter::set_code_type(::opencv_caffe::PriorBoxPara // optional bool variance_encoded_in_target = 8 [default = false]; inline bool DetectionOutputParameter::has_variance_encoded_in_target() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void DetectionOutputParameter::set_has_variance_encoded_in_target() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000010u; } inline void DetectionOutputParameter::clear_has_variance_encoded_in_target() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000010u; } inline void DetectionOutputParameter::clear_variance_encoded_in_target() { variance_encoded_in_target_ = false; @@ -14509,13 +15940,13 @@ inline void DetectionOutputParameter::set_variance_encoded_in_target(bool value) // optional int32 keep_top_k = 7 [default = -1]; inline bool DetectionOutputParameter::has_keep_top_k() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void DetectionOutputParameter::set_has_keep_top_k() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000040u; } inline void DetectionOutputParameter::clear_has_keep_top_k() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000040u; } inline void DetectionOutputParameter::clear_keep_top_k() { keep_top_k_ = -1; @@ -14533,13 +15964,13 @@ inline void DetectionOutputParameter::set_keep_top_k(::google::protobuf::int32 v // optional float confidence_threshold = 9; inline bool DetectionOutputParameter::has_confidence_threshold() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void DetectionOutputParameter::set_has_confidence_threshold() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000020u; } inline void DetectionOutputParameter::clear_has_confidence_threshold() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000020u; } inline void DetectionOutputParameter::clear_confidence_threshold() { confidence_threshold_ = 0; @@ -14579,22 +16010,19 @@ inline void DetectionOutputParameter::set_normalized_bbox(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.DetectionOutputParameter.normalized_bbox) } -inline const DetectionOutputParameter* DetectionOutputParameter::internal_default_instance() { - return &DetectionOutputParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // Datum // optional int32 channels = 1; inline bool Datum::has_channels() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void Datum::set_has_channels() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void Datum::clear_has_channels() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void Datum::clear_channels() { channels_ = 0; @@ -14612,13 +16040,13 @@ inline void Datum::set_channels(::google::protobuf::int32 value) { // optional int32 height = 2; inline bool Datum::has_height() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void Datum::set_has_height() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void Datum::clear_has_height() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void Datum::clear_height() { height_ = 0; @@ -14636,13 +16064,13 @@ inline void Datum::set_height(::google::protobuf::int32 value) { // optional int32 width = 3; inline bool Datum::has_width() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void Datum::set_has_width() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000008u; } inline void Datum::clear_has_width() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000008u; } inline void Datum::clear_width() { width_ = 0; @@ -14660,13 +16088,13 @@ inline void Datum::set_width(::google::protobuf::int32 value) { // optional bytes data = 4; inline bool Datum::has_data() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void Datum::set_has_data() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000001u; } inline void Datum::clear_has_data() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000001u; } inline void Datum::clear_data() { data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -14674,14 +16102,23 @@ inline void Datum::clear_data() { } inline const ::std::string& Datum::data() const { // @@protoc_insertion_point(field_get:opencv_caffe.Datum.data) - return data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return data_.GetNoArena(); } inline void Datum::set_data(const ::std::string& value) { set_has_data(); data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.Datum.data) } +#if LANG_CXX11 +inline void Datum::set_data(::std::string&& value) { + set_has_data(); + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.Datum.data) +} +#endif inline void Datum::set_data(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_data(); data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.Datum.data) @@ -14768,13 +16205,13 @@ Datum::mutable_float_data() { // optional bool encoded = 7 [default = false]; inline bool Datum::has_encoded() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void Datum::set_has_encoded() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000020u; } inline void Datum::clear_has_encoded() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000020u; } inline void Datum::clear_encoded() { encoded_ = false; @@ -14790,9 +16227,6 @@ inline void Datum::set_encoded(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.Datum.encoded) } -inline const Datum* Datum::internal_default_instance() { - return &Datum_default_instance_.get(); -} // ------------------------------------------------------------------- // FillerParameter @@ -14808,38 +16242,47 @@ inline void FillerParameter::clear_has_type() { _has_bits_[0] &= ~0x00000001u; } inline void FillerParameter::clear_type() { - type_.ClearToDefaultNoArena(_default_type_); + type_.ClearToDefaultNoArena(&::opencv_caffe::FillerParameter::_default_type_.get()); clear_has_type(); } inline const ::std::string& FillerParameter::type() const { // @@protoc_insertion_point(field_get:opencv_caffe.FillerParameter.type) - return type_.GetNoArena(_default_type_); + return type_.GetNoArena(); } inline void FillerParameter::set_type(const ::std::string& value) { set_has_type(); - type_.SetNoArena(_default_type_, value); + type_.SetNoArena(&::opencv_caffe::FillerParameter::_default_type_.get(), value); // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.type) } -inline void FillerParameter::set_type(const char* value) { +#if LANG_CXX11 +inline void FillerParameter::set_type(::std::string&& value) { set_has_type(); - type_.SetNoArena(_default_type_, ::std::string(value)); + type_.SetNoArena( + &::opencv_caffe::FillerParameter::_default_type_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.FillerParameter.type) +} +#endif +inline void FillerParameter::set_type(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_type(); + type_.SetNoArena(&::opencv_caffe::FillerParameter::_default_type_.get(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.FillerParameter.type) } inline void FillerParameter::set_type(const char* value, size_t size) { set_has_type(); - type_.SetNoArena(_default_type_, + type_.SetNoArena(&::opencv_caffe::FillerParameter::_default_type_.get(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:opencv_caffe.FillerParameter.type) } inline ::std::string* FillerParameter::mutable_type() { set_has_type(); // @@protoc_insertion_point(field_mutable:opencv_caffe.FillerParameter.type) - return type_.MutableNoArena(_default_type_); + return type_.MutableNoArena(&::opencv_caffe::FillerParameter::_default_type_.get()); } inline ::std::string* FillerParameter::release_type() { // @@protoc_insertion_point(field_release:opencv_caffe.FillerParameter.type) clear_has_type(); - return type_.ReleaseNoArena(_default_type_); + return type_.ReleaseNoArena(&::opencv_caffe::FillerParameter::_default_type_.get()); } inline void FillerParameter::set_allocated_type(::std::string* type) { if (type != NULL) { @@ -14847,7 +16290,7 @@ inline void FillerParameter::set_allocated_type(::std::string* type) { } else { clear_has_type(); } - type_.SetAllocatedNoArena(_default_type_, type); + type_.SetAllocatedNoArena(&::opencv_caffe::FillerParameter::_default_type_.get(), type); // @@protoc_insertion_point(field_set_allocated:opencv_caffe.FillerParameter.type) } @@ -14901,13 +16344,13 @@ inline void FillerParameter::set_min(float value) { // optional float max = 4 [default = 1]; inline bool FillerParameter::has_max() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void FillerParameter::set_has_max() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000040u; } inline void FillerParameter::clear_has_max() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000040u; } inline void FillerParameter::clear_max() { max_ = 1; @@ -14925,13 +16368,13 @@ inline void FillerParameter::set_max(float value) { // optional float mean = 5 [default = 0]; inline bool FillerParameter::has_mean() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void FillerParameter::set_has_mean() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000008u; } inline void FillerParameter::clear_has_mean() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000008u; } inline void FillerParameter::clear_mean() { mean_ = 0; @@ -14949,13 +16392,13 @@ inline void FillerParameter::set_mean(float value) { // optional float std = 6 [default = 1]; inline bool FillerParameter::has_std() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void FillerParameter::set_has_std() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000080u; } inline void FillerParameter::clear_has_std() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000080u; } inline void FillerParameter::clear_std() { std_ = 1; @@ -14973,13 +16416,13 @@ inline void FillerParameter::set_std(float value) { // optional int32 sparse = 7 [default = -1]; inline bool FillerParameter::has_sparse() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void FillerParameter::set_has_sparse() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000020u; } inline void FillerParameter::clear_has_sparse() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000020u; } inline void FillerParameter::clear_sparse() { sparse_ = -1; @@ -14997,13 +16440,13 @@ inline void FillerParameter::set_sparse(::google::protobuf::int32 value) { // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN]; inline bool FillerParameter::has_variance_norm() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void FillerParameter::set_has_variance_norm() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000010u; } inline void FillerParameter::clear_has_variance_norm() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000010u; } inline void FillerParameter::clear_variance_norm() { variance_norm_ = 0; @@ -15020,9 +16463,6 @@ inline void FillerParameter::set_variance_norm(::opencv_caffe::FillerParameter_V // @@protoc_insertion_point(field_set:opencv_caffe.FillerParameter.variance_norm) } -inline const FillerParameter* FillerParameter::internal_default_instance() { - return &FillerParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // NetParameter @@ -15043,14 +16483,23 @@ inline void NetParameter::clear_name() { } inline const ::std::string& NetParameter::name() const { // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.GetNoArena(); } inline void NetParameter::set_name(const ::std::string& value) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.NetParameter.name) } +#if LANG_CXX11 +inline void NetParameter::set_name(::std::string&& value) { + set_has_name(); + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.NetParameter.name) +} +#endif inline void NetParameter::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.NetParameter.name) @@ -15100,7 +16549,14 @@ inline void NetParameter::set_input(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:opencv_caffe.NetParameter.input) input_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void NetParameter::set_input(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.NetParameter.input) + input_.Mutable(index)->assign(std::move(value)); +} +#endif inline void NetParameter::set_input(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); input_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.NetParameter.input) } @@ -15117,7 +16573,14 @@ inline void NetParameter::add_input(const ::std::string& value) { input_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.NetParameter.input) } +#if LANG_CXX11 +inline void NetParameter::add_input(::std::string&& value) { + input_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.NetParameter.input) +} +#endif inline void NetParameter::add_input(const char* value) { + GOOGLE_DCHECK(value != NULL); input_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.NetParameter.input) } @@ -15198,13 +16661,13 @@ NetParameter::mutable_input_dim() { // optional bool force_backward = 5 [default = false]; inline bool NetParameter::has_force_backward() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void NetParameter::set_has_force_backward() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000004u; } inline void NetParameter::clear_has_force_backward() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000004u; } inline void NetParameter::clear_force_backward() { force_backward_ = false; @@ -15222,22 +16685,30 @@ inline void NetParameter::set_force_backward(bool value) { // optional .opencv_caffe.NetState state = 6; inline bool NetParameter::has_state() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void NetParameter::set_has_state() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000002u; } inline void NetParameter::clear_has_state() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000002u; } inline void NetParameter::clear_state() { - if (state_ != NULL) state_->::opencv_caffe::NetState::Clear(); + if (state_ != NULL) state_->Clear(); clear_has_state(); } inline const ::opencv_caffe::NetState& NetParameter::state() const { + const ::opencv_caffe::NetState* p = state_; // @@protoc_insertion_point(field_get:opencv_caffe.NetParameter.state) - return state_ != NULL ? *state_ - : *::opencv_caffe::NetState::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_NetState_default_instance_); +} +inline ::opencv_caffe::NetState* NetParameter::release_state() { + // @@protoc_insertion_point(field_release:opencv_caffe.NetParameter.state) + clear_has_state(); + ::opencv_caffe::NetState* temp = state_; + state_ = NULL; + return temp; } inline ::opencv_caffe::NetState* NetParameter::mutable_state() { set_has_state(); @@ -15247,33 +16718,34 @@ inline ::opencv_caffe::NetState* NetParameter::mutable_state() { // @@protoc_insertion_point(field_mutable:opencv_caffe.NetParameter.state) return state_; } -inline ::opencv_caffe::NetState* NetParameter::release_state() { - // @@protoc_insertion_point(field_release:opencv_caffe.NetParameter.state) - clear_has_state(); - ::opencv_caffe::NetState* temp = state_; - state_ = NULL; - return temp; -} inline void NetParameter::set_allocated_state(::opencv_caffe::NetState* state) { - delete state_; - state_ = state; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete state_; + } if (state) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + state = ::google::protobuf::internal::GetOwnedMessage( + message_arena, state, submessage_arena); + } set_has_state(); } else { clear_has_state(); } + state_ = state; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.NetParameter.state) } // optional bool debug_info = 7 [default = false]; inline bool NetParameter::has_debug_info() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void NetParameter::set_has_debug_info() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000008u; } inline void NetParameter::clear_has_debug_info() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000008u; } inline void NetParameter::clear_debug_info() { debug_info_ = false; @@ -15349,22 +16821,19 @@ NetParameter::layers() const { return layers_; } -inline const NetParameter* NetParameter::internal_default_instance() { - return &NetParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // SolverParameter // optional string net = 24; inline bool SolverParameter::has_net() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void SolverParameter::set_has_net() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000008u; } inline void SolverParameter::clear_has_net() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000008u; } inline void SolverParameter::clear_net() { net_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -15372,14 +16841,23 @@ inline void SolverParameter::clear_net() { } inline const ::std::string& SolverParameter::net() const { // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.net) - return net_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return net_.GetNoArena(); } inline void SolverParameter::set_net(const ::std::string& value) { set_has_net(); net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.net) } +#if LANG_CXX11 +inline void SolverParameter::set_net(::std::string&& value) { + set_has_net(); + net_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SolverParameter.net) +} +#endif inline void SolverParameter::set_net(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_net(); net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.net) @@ -15412,22 +16890,30 @@ inline void SolverParameter::set_allocated_net(::std::string* net) { // optional .opencv_caffe.NetParameter net_param = 25; inline bool SolverParameter::has_net_param() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void SolverParameter::set_has_net_param() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000080u; } inline void SolverParameter::clear_has_net_param() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000080u; } inline void SolverParameter::clear_net_param() { - if (net_param_ != NULL) net_param_->::opencv_caffe::NetParameter::Clear(); + if (net_param_ != NULL) net_param_->Clear(); clear_has_net_param(); } inline const ::opencv_caffe::NetParameter& SolverParameter::net_param() const { + const ::opencv_caffe::NetParameter* p = net_param_; // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.net_param) - return net_param_ != NULL ? *net_param_ - : *::opencv_caffe::NetParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_NetParameter_default_instance_); +} +inline ::opencv_caffe::NetParameter* SolverParameter::release_net_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.net_param) + clear_has_net_param(); + ::opencv_caffe::NetParameter* temp = net_param_; + net_param_ = NULL; + return temp; } inline ::opencv_caffe::NetParameter* SolverParameter::mutable_net_param() { set_has_net_param(); @@ -15437,33 +16923,34 @@ inline ::opencv_caffe::NetParameter* SolverParameter::mutable_net_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.net_param) return net_param_; } -inline ::opencv_caffe::NetParameter* SolverParameter::release_net_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.net_param) - clear_has_net_param(); - ::opencv_caffe::NetParameter* temp = net_param_; - net_param_ = NULL; - return temp; -} inline void SolverParameter::set_allocated_net_param(::opencv_caffe::NetParameter* net_param) { - delete net_param_; - net_param_ = net_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete net_param_; + } if (net_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + net_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, net_param, submessage_arena); + } set_has_net_param(); } else { clear_has_net_param(); } + net_param_ = net_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.net_param) } // optional string train_net = 1; inline bool SolverParameter::has_train_net() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void SolverParameter::set_has_train_net() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void SolverParameter::clear_has_train_net() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void SolverParameter::clear_train_net() { train_net_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -15471,14 +16958,23 @@ inline void SolverParameter::clear_train_net() { } inline const ::std::string& SolverParameter::train_net() const { // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.train_net) - return train_net_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return train_net_.GetNoArena(); } inline void SolverParameter::set_train_net(const ::std::string& value) { set_has_train_net(); train_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.train_net) } +#if LANG_CXX11 +inline void SolverParameter::set_train_net(::std::string&& value) { + set_has_train_net(); + train_net_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SolverParameter.train_net) +} +#endif inline void SolverParameter::set_train_net(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_train_net(); train_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.train_net) @@ -15528,7 +17024,14 @@ inline void SolverParameter::set_test_net(int index, const ::std::string& value) // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.test_net) test_net_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void SolverParameter::set_test_net(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.test_net) + test_net_.Mutable(index)->assign(std::move(value)); +} +#endif inline void SolverParameter::set_test_net(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); test_net_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.test_net) } @@ -15545,7 +17048,14 @@ inline void SolverParameter::add_test_net(const ::std::string& value) { test_net_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.SolverParameter.test_net) } +#if LANG_CXX11 +inline void SolverParameter::add_test_net(::std::string&& value) { + test_net_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.SolverParameter.test_net) +} +#endif inline void SolverParameter::add_test_net(const char* value) { + GOOGLE_DCHECK(value != NULL); test_net_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.SolverParameter.test_net) } @@ -15566,22 +17076,30 @@ SolverParameter::mutable_test_net() { // optional .opencv_caffe.NetParameter train_net_param = 21; inline bool SolverParameter::has_train_net_param() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void SolverParameter::set_has_train_net_param() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000040u; } inline void SolverParameter::clear_has_train_net_param() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000040u; } inline void SolverParameter::clear_train_net_param() { - if (train_net_param_ != NULL) train_net_param_->::opencv_caffe::NetParameter::Clear(); + if (train_net_param_ != NULL) train_net_param_->Clear(); clear_has_train_net_param(); } inline const ::opencv_caffe::NetParameter& SolverParameter::train_net_param() const { + const ::opencv_caffe::NetParameter* p = train_net_param_; // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.train_net_param) - return train_net_param_ != NULL ? *train_net_param_ - : *::opencv_caffe::NetParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_NetParameter_default_instance_); +} +inline ::opencv_caffe::NetParameter* SolverParameter::release_train_net_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.train_net_param) + clear_has_train_net_param(); + ::opencv_caffe::NetParameter* temp = train_net_param_; + train_net_param_ = NULL; + return temp; } inline ::opencv_caffe::NetParameter* SolverParameter::mutable_train_net_param() { set_has_train_net_param(); @@ -15591,21 +17109,22 @@ inline ::opencv_caffe::NetParameter* SolverParameter::mutable_train_net_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.train_net_param) return train_net_param_; } -inline ::opencv_caffe::NetParameter* SolverParameter::release_train_net_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.train_net_param) - clear_has_train_net_param(); - ::opencv_caffe::NetParameter* temp = train_net_param_; - train_net_param_ = NULL; - return temp; -} inline void SolverParameter::set_allocated_train_net_param(::opencv_caffe::NetParameter* train_net_param) { - delete train_net_param_; - train_net_param_ = train_net_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete train_net_param_; + } if (train_net_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + train_net_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, train_net_param, submessage_arena); + } set_has_train_net_param(); } else { clear_has_train_net_param(); } + train_net_param_ = train_net_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.train_net_param) } @@ -15641,22 +17160,30 @@ SolverParameter::test_net_param() const { // optional .opencv_caffe.NetState train_state = 26; inline bool SolverParameter::has_train_state() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void SolverParameter::set_has_train_state() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000100u; } inline void SolverParameter::clear_has_train_state() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000100u; } inline void SolverParameter::clear_train_state() { - if (train_state_ != NULL) train_state_->::opencv_caffe::NetState::Clear(); + if (train_state_ != NULL) train_state_->Clear(); clear_has_train_state(); } inline const ::opencv_caffe::NetState& SolverParameter::train_state() const { + const ::opencv_caffe::NetState* p = train_state_; // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.train_state) - return train_state_ != NULL ? *train_state_ - : *::opencv_caffe::NetState::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_NetState_default_instance_); +} +inline ::opencv_caffe::NetState* SolverParameter::release_train_state() { + // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.train_state) + clear_has_train_state(); + ::opencv_caffe::NetState* temp = train_state_; + train_state_ = NULL; + return temp; } inline ::opencv_caffe::NetState* SolverParameter::mutable_train_state() { set_has_train_state(); @@ -15666,21 +17193,22 @@ inline ::opencv_caffe::NetState* SolverParameter::mutable_train_state() { // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.train_state) return train_state_; } -inline ::opencv_caffe::NetState* SolverParameter::release_train_state() { - // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.train_state) - clear_has_train_state(); - ::opencv_caffe::NetState* temp = train_state_; - train_state_ = NULL; - return temp; -} inline void SolverParameter::set_allocated_train_state(::opencv_caffe::NetState* train_state) { - delete train_state_; - train_state_ = train_state; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete train_state_; + } if (train_state) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + train_state = ::google::protobuf::internal::GetOwnedMessage( + message_arena, train_state, submessage_arena); + } set_has_train_state(); } else { clear_has_train_state(); } + train_state_ = train_state; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.train_state) } @@ -15770,13 +17298,13 @@ inline void SolverParameter::set_test_interval(::google::protobuf::int32 value) // optional bool test_compute_loss = 19 [default = false]; inline bool SolverParameter::has_test_compute_loss() const { - return (_has_bits_[0] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00100000u) != 0; } inline void SolverParameter::set_has_test_compute_loss() { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00100000u; } inline void SolverParameter::clear_has_test_compute_loss() { - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00100000u; } inline void SolverParameter::clear_test_compute_loss() { test_compute_loss_ = false; @@ -15794,13 +17322,13 @@ inline void SolverParameter::set_test_compute_loss(bool value) { // optional bool test_initialization = 32 [default = true]; inline bool SolverParameter::has_test_initialization() const { - return (_has_bits_[0] & 0x00000800u) != 0; + return (_has_bits_[0] & 0x08000000u) != 0; } inline void SolverParameter::set_has_test_initialization() { - _has_bits_[0] |= 0x00000800u; + _has_bits_[0] |= 0x08000000u; } inline void SolverParameter::clear_has_test_initialization() { - _has_bits_[0] &= ~0x00000800u; + _has_bits_[0] &= ~0x08000000u; } inline void SolverParameter::clear_test_initialization() { test_initialization_ = true; @@ -15818,13 +17346,13 @@ inline void SolverParameter::set_test_initialization(bool value) { // optional float base_lr = 5; inline bool SolverParameter::has_base_lr() const { - return (_has_bits_[0] & 0x00001000u) != 0; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void SolverParameter::set_has_base_lr() { - _has_bits_[0] |= 0x00001000u; + _has_bits_[0] |= 0x00000400u; } inline void SolverParameter::clear_has_base_lr() { - _has_bits_[0] &= ~0x00001000u; + _has_bits_[0] &= ~0x00000400u; } inline void SolverParameter::clear_base_lr() { base_lr_ = 0; @@ -15842,13 +17370,13 @@ inline void SolverParameter::set_base_lr(float value) { // optional int32 display = 6; inline bool SolverParameter::has_display() const { - return (_has_bits_[0] & 0x00002000u) != 0; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void SolverParameter::set_has_display() { - _has_bits_[0] |= 0x00002000u; + _has_bits_[0] |= 0x00000800u; } inline void SolverParameter::clear_has_display() { - _has_bits_[0] &= ~0x00002000u; + _has_bits_[0] &= ~0x00000800u; } inline void SolverParameter::clear_display() { display_ = 0; @@ -15866,13 +17394,13 @@ inline void SolverParameter::set_display(::google::protobuf::int32 value) { // optional int32 average_loss = 33 [default = 1]; inline bool SolverParameter::has_average_loss() const { - return (_has_bits_[0] & 0x00004000u) != 0; + return (_has_bits_[0] & 0x40000000u) != 0; } inline void SolverParameter::set_has_average_loss() { - _has_bits_[0] |= 0x00004000u; + _has_bits_[0] |= 0x40000000u; } inline void SolverParameter::clear_has_average_loss() { - _has_bits_[0] &= ~0x00004000u; + _has_bits_[0] &= ~0x40000000u; } inline void SolverParameter::clear_average_loss() { average_loss_ = 1; @@ -15890,13 +17418,13 @@ inline void SolverParameter::set_average_loss(::google::protobuf::int32 value) { // optional int32 max_iter = 7; inline bool SolverParameter::has_max_iter() const { - return (_has_bits_[0] & 0x00008000u) != 0; + return (_has_bits_[0] & 0x00001000u) != 0; } inline void SolverParameter::set_has_max_iter() { - _has_bits_[0] |= 0x00008000u; + _has_bits_[0] |= 0x00001000u; } inline void SolverParameter::clear_has_max_iter() { - _has_bits_[0] &= ~0x00008000u; + _has_bits_[0] &= ~0x00001000u; } inline void SolverParameter::clear_max_iter() { max_iter_ = 0; @@ -15914,13 +17442,13 @@ inline void SolverParameter::set_max_iter(::google::protobuf::int32 value) { // optional int32 iter_size = 36 [default = 1]; inline bool SolverParameter::has_iter_size() const { - return (_has_bits_[0] & 0x00010000u) != 0; + return (_has_bits_[1] & 0x00000001u) != 0; } inline void SolverParameter::set_has_iter_size() { - _has_bits_[0] |= 0x00010000u; + _has_bits_[1] |= 0x00000001u; } inline void SolverParameter::clear_has_iter_size() { - _has_bits_[0] &= ~0x00010000u; + _has_bits_[1] &= ~0x00000001u; } inline void SolverParameter::clear_iter_size() { iter_size_ = 1; @@ -15938,13 +17466,13 @@ inline void SolverParameter::set_iter_size(::google::protobuf::int32 value) { // optional string lr_policy = 8; inline bool SolverParameter::has_lr_policy() const { - return (_has_bits_[0] & 0x00020000u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void SolverParameter::set_has_lr_policy() { - _has_bits_[0] |= 0x00020000u; + _has_bits_[0] |= 0x00000002u; } inline void SolverParameter::clear_has_lr_policy() { - _has_bits_[0] &= ~0x00020000u; + _has_bits_[0] &= ~0x00000002u; } inline void SolverParameter::clear_lr_policy() { lr_policy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -15952,14 +17480,23 @@ inline void SolverParameter::clear_lr_policy() { } inline const ::std::string& SolverParameter::lr_policy() const { // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.lr_policy) - return lr_policy_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return lr_policy_.GetNoArena(); } inline void SolverParameter::set_lr_policy(const ::std::string& value) { set_has_lr_policy(); lr_policy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.lr_policy) } +#if LANG_CXX11 +inline void SolverParameter::set_lr_policy(::std::string&& value) { + set_has_lr_policy(); + lr_policy_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SolverParameter.lr_policy) +} +#endif inline void SolverParameter::set_lr_policy(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_lr_policy(); lr_policy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.lr_policy) @@ -15992,13 +17529,13 @@ inline void SolverParameter::set_allocated_lr_policy(::std::string* lr_policy) { // optional float gamma = 9; inline bool SolverParameter::has_gamma() const { - return (_has_bits_[0] & 0x00040000u) != 0; + return (_has_bits_[0] & 0x00002000u) != 0; } inline void SolverParameter::set_has_gamma() { - _has_bits_[0] |= 0x00040000u; + _has_bits_[0] |= 0x00002000u; } inline void SolverParameter::clear_has_gamma() { - _has_bits_[0] &= ~0x00040000u; + _has_bits_[0] &= ~0x00002000u; } inline void SolverParameter::clear_gamma() { gamma_ = 0; @@ -16016,13 +17553,13 @@ inline void SolverParameter::set_gamma(float value) { // optional float power = 10; inline bool SolverParameter::has_power() const { - return (_has_bits_[0] & 0x00080000u) != 0; + return (_has_bits_[0] & 0x00004000u) != 0; } inline void SolverParameter::set_has_power() { - _has_bits_[0] |= 0x00080000u; + _has_bits_[0] |= 0x00004000u; } inline void SolverParameter::clear_has_power() { - _has_bits_[0] &= ~0x00080000u; + _has_bits_[0] &= ~0x00004000u; } inline void SolverParameter::clear_power() { power_ = 0; @@ -16040,13 +17577,13 @@ inline void SolverParameter::set_power(float value) { // optional float momentum = 11; inline bool SolverParameter::has_momentum() const { - return (_has_bits_[0] & 0x00100000u) != 0; + return (_has_bits_[0] & 0x00008000u) != 0; } inline void SolverParameter::set_has_momentum() { - _has_bits_[0] |= 0x00100000u; + _has_bits_[0] |= 0x00008000u; } inline void SolverParameter::clear_has_momentum() { - _has_bits_[0] &= ~0x00100000u; + _has_bits_[0] &= ~0x00008000u; } inline void SolverParameter::clear_momentum() { momentum_ = 0; @@ -16064,13 +17601,13 @@ inline void SolverParameter::set_momentum(float value) { // optional float weight_decay = 12; inline bool SolverParameter::has_weight_decay() const { - return (_has_bits_[0] & 0x00200000u) != 0; + return (_has_bits_[0] & 0x00010000u) != 0; } inline void SolverParameter::set_has_weight_decay() { - _has_bits_[0] |= 0x00200000u; + _has_bits_[0] |= 0x00010000u; } inline void SolverParameter::clear_has_weight_decay() { - _has_bits_[0] &= ~0x00200000u; + _has_bits_[0] &= ~0x00010000u; } inline void SolverParameter::clear_weight_decay() { weight_decay_ = 0; @@ -16088,47 +17625,56 @@ inline void SolverParameter::set_weight_decay(float value) { // optional string regularization_type = 29 [default = "L2"]; inline bool SolverParameter::has_regularization_type() const { - return (_has_bits_[0] & 0x00400000u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void SolverParameter::set_has_regularization_type() { - _has_bits_[0] |= 0x00400000u; + _has_bits_[0] |= 0x00000010u; } inline void SolverParameter::clear_has_regularization_type() { - _has_bits_[0] &= ~0x00400000u; + _has_bits_[0] &= ~0x00000010u; } inline void SolverParameter::clear_regularization_type() { - regularization_type_.ClearToDefaultNoArena(_default_regularization_type_); + regularization_type_.ClearToDefaultNoArena(&::opencv_caffe::SolverParameter::_default_regularization_type_.get()); clear_has_regularization_type(); } inline const ::std::string& SolverParameter::regularization_type() const { // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.regularization_type) - return regularization_type_.GetNoArena(_default_regularization_type_); + return regularization_type_.GetNoArena(); } inline void SolverParameter::set_regularization_type(const ::std::string& value) { set_has_regularization_type(); - regularization_type_.SetNoArena(_default_regularization_type_, value); + regularization_type_.SetNoArena(&::opencv_caffe::SolverParameter::_default_regularization_type_.get(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.regularization_type) } -inline void SolverParameter::set_regularization_type(const char* value) { +#if LANG_CXX11 +inline void SolverParameter::set_regularization_type(::std::string&& value) { set_has_regularization_type(); - regularization_type_.SetNoArena(_default_regularization_type_, ::std::string(value)); + regularization_type_.SetNoArena( + &::opencv_caffe::SolverParameter::_default_regularization_type_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SolverParameter.regularization_type) +} +#endif +inline void SolverParameter::set_regularization_type(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_regularization_type(); + regularization_type_.SetNoArena(&::opencv_caffe::SolverParameter::_default_regularization_type_.get(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.regularization_type) } inline void SolverParameter::set_regularization_type(const char* value, size_t size) { set_has_regularization_type(); - regularization_type_.SetNoArena(_default_regularization_type_, + regularization_type_.SetNoArena(&::opencv_caffe::SolverParameter::_default_regularization_type_.get(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverParameter.regularization_type) } inline ::std::string* SolverParameter::mutable_regularization_type() { set_has_regularization_type(); // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.regularization_type) - return regularization_type_.MutableNoArena(_default_regularization_type_); + return regularization_type_.MutableNoArena(&::opencv_caffe::SolverParameter::_default_regularization_type_.get()); } inline ::std::string* SolverParameter::release_regularization_type() { // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.regularization_type) clear_has_regularization_type(); - return regularization_type_.ReleaseNoArena(_default_regularization_type_); + return regularization_type_.ReleaseNoArena(&::opencv_caffe::SolverParameter::_default_regularization_type_.get()); } inline void SolverParameter::set_allocated_regularization_type(::std::string* regularization_type) { if (regularization_type != NULL) { @@ -16136,19 +17682,19 @@ inline void SolverParameter::set_allocated_regularization_type(::std::string* re } else { clear_has_regularization_type(); } - regularization_type_.SetAllocatedNoArena(_default_regularization_type_, regularization_type); + regularization_type_.SetAllocatedNoArena(&::opencv_caffe::SolverParameter::_default_regularization_type_.get(), regularization_type); // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.regularization_type) } // optional int32 stepsize = 13; inline bool SolverParameter::has_stepsize() const { - return (_has_bits_[0] & 0x00800000u) != 0; + return (_has_bits_[0] & 0x00020000u) != 0; } inline void SolverParameter::set_has_stepsize() { - _has_bits_[0] |= 0x00800000u; + _has_bits_[0] |= 0x00020000u; } inline void SolverParameter::clear_has_stepsize() { - _has_bits_[0] &= ~0x00800000u; + _has_bits_[0] &= ~0x00020000u; } inline void SolverParameter::clear_stepsize() { stepsize_ = 0; @@ -16196,13 +17742,13 @@ SolverParameter::mutable_stepvalue() { // optional float clip_gradients = 35 [default = -1]; inline bool SolverParameter::has_clip_gradients() const { - return (_has_bits_[0] & 0x02000000u) != 0; + return (_has_bits_[0] & 0x80000000u) != 0; } inline void SolverParameter::set_has_clip_gradients() { - _has_bits_[0] |= 0x02000000u; + _has_bits_[0] |= 0x80000000u; } inline void SolverParameter::clear_has_clip_gradients() { - _has_bits_[0] &= ~0x02000000u; + _has_bits_[0] &= ~0x80000000u; } inline void SolverParameter::clear_clip_gradients() { clip_gradients_ = -1; @@ -16220,13 +17766,13 @@ inline void SolverParameter::set_clip_gradients(float value) { // optional int32 snapshot = 14 [default = 0]; inline bool SolverParameter::has_snapshot() const { - return (_has_bits_[0] & 0x04000000u) != 0; + return (_has_bits_[0] & 0x00040000u) != 0; } inline void SolverParameter::set_has_snapshot() { - _has_bits_[0] |= 0x04000000u; + _has_bits_[0] |= 0x00040000u; } inline void SolverParameter::clear_has_snapshot() { - _has_bits_[0] &= ~0x04000000u; + _has_bits_[0] &= ~0x00040000u; } inline void SolverParameter::clear_snapshot() { snapshot_ = 0; @@ -16244,13 +17790,13 @@ inline void SolverParameter::set_snapshot(::google::protobuf::int32 value) { // optional string snapshot_prefix = 15; inline bool SolverParameter::has_snapshot_prefix() const { - return (_has_bits_[0] & 0x08000000u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void SolverParameter::set_has_snapshot_prefix() { - _has_bits_[0] |= 0x08000000u; + _has_bits_[0] |= 0x00000004u; } inline void SolverParameter::clear_has_snapshot_prefix() { - _has_bits_[0] &= ~0x08000000u; + _has_bits_[0] &= ~0x00000004u; } inline void SolverParameter::clear_snapshot_prefix() { snapshot_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -16258,14 +17804,23 @@ inline void SolverParameter::clear_snapshot_prefix() { } inline const ::std::string& SolverParameter::snapshot_prefix() const { // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.snapshot_prefix) - return snapshot_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return snapshot_prefix_.GetNoArena(); } inline void SolverParameter::set_snapshot_prefix(const ::std::string& value) { set_has_snapshot_prefix(); snapshot_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.snapshot_prefix) } +#if LANG_CXX11 +inline void SolverParameter::set_snapshot_prefix(::std::string&& value) { + set_has_snapshot_prefix(); + snapshot_prefix_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SolverParameter.snapshot_prefix) +} +#endif inline void SolverParameter::set_snapshot_prefix(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_snapshot_prefix(); snapshot_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.snapshot_prefix) @@ -16298,13 +17853,13 @@ inline void SolverParameter::set_allocated_snapshot_prefix(::std::string* snapsh // optional bool snapshot_diff = 16 [default = false]; inline bool SolverParameter::has_snapshot_diff() const { - return (_has_bits_[0] & 0x10000000u) != 0; + return (_has_bits_[0] & 0x00200000u) != 0; } inline void SolverParameter::set_has_snapshot_diff() { - _has_bits_[0] |= 0x10000000u; + _has_bits_[0] |= 0x00200000u; } inline void SolverParameter::clear_has_snapshot_diff() { - _has_bits_[0] &= ~0x10000000u; + _has_bits_[0] &= ~0x00200000u; } inline void SolverParameter::clear_snapshot_diff() { snapshot_diff_ = false; @@ -16322,13 +17877,13 @@ inline void SolverParameter::set_snapshot_diff(bool value) { // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO]; inline bool SolverParameter::has_snapshot_format() const { - return (_has_bits_[0] & 0x20000000u) != 0; + return (_has_bits_[1] & 0x00000002u) != 0; } inline void SolverParameter::set_has_snapshot_format() { - _has_bits_[0] |= 0x20000000u; + _has_bits_[1] |= 0x00000002u; } inline void SolverParameter::clear_has_snapshot_format() { - _has_bits_[0] &= ~0x20000000u; + _has_bits_[1] &= ~0x00000002u; } inline void SolverParameter::clear_snapshot_format() { snapshot_format_ = 1; @@ -16347,13 +17902,13 @@ inline void SolverParameter::set_snapshot_format(::opencv_caffe::SolverParameter // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU]; inline bool SolverParameter::has_solver_mode() const { - return (_has_bits_[0] & 0x40000000u) != 0; + return (_has_bits_[0] & 0x04000000u) != 0; } inline void SolverParameter::set_has_solver_mode() { - _has_bits_[0] |= 0x40000000u; + _has_bits_[0] |= 0x04000000u; } inline void SolverParameter::clear_has_solver_mode() { - _has_bits_[0] &= ~0x40000000u; + _has_bits_[0] &= ~0x04000000u; } inline void SolverParameter::clear_solver_mode() { solver_mode_ = 1; @@ -16372,13 +17927,13 @@ inline void SolverParameter::set_solver_mode(::opencv_caffe::SolverParameter_Sol // optional int32 device_id = 18 [default = 0]; inline bool SolverParameter::has_device_id() const { - return (_has_bits_[0] & 0x80000000u) != 0; + return (_has_bits_[0] & 0x00080000u) != 0; } inline void SolverParameter::set_has_device_id() { - _has_bits_[0] |= 0x80000000u; + _has_bits_[0] |= 0x00080000u; } inline void SolverParameter::clear_has_device_id() { - _has_bits_[0] &= ~0x80000000u; + _has_bits_[0] &= ~0x00080000u; } inline void SolverParameter::clear_device_id() { device_id_ = 0; @@ -16396,13 +17951,13 @@ inline void SolverParameter::set_device_id(::google::protobuf::int32 value) { // optional int64 random_seed = 20 [default = -1]; inline bool SolverParameter::has_random_seed() const { - return (_has_bits_[1] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x02000000u) != 0; } inline void SolverParameter::set_has_random_seed() { - _has_bits_[1] |= 0x00000001u; + _has_bits_[0] |= 0x02000000u; } inline void SolverParameter::clear_has_random_seed() { - _has_bits_[1] &= ~0x00000001u; + _has_bits_[0] &= ~0x02000000u; } inline void SolverParameter::clear_random_seed() { random_seed_ = GOOGLE_LONGLONG(-1); @@ -16420,47 +17975,56 @@ inline void SolverParameter::set_random_seed(::google::protobuf::int64 value) { // optional string type = 40 [default = "SGD"]; inline bool SolverParameter::has_type() const { - return (_has_bits_[1] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void SolverParameter::set_has_type() { - _has_bits_[1] |= 0x00000002u; + _has_bits_[0] |= 0x00000020u; } inline void SolverParameter::clear_has_type() { - _has_bits_[1] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000020u; } inline void SolverParameter::clear_type() { - type_.ClearToDefaultNoArena(_default_type_); + type_.ClearToDefaultNoArena(&::opencv_caffe::SolverParameter::_default_type_.get()); clear_has_type(); } inline const ::std::string& SolverParameter::type() const { // @@protoc_insertion_point(field_get:opencv_caffe.SolverParameter.type) - return type_.GetNoArena(_default_type_); + return type_.GetNoArena(); } inline void SolverParameter::set_type(const ::std::string& value) { set_has_type(); - type_.SetNoArena(_default_type_, value); + type_.SetNoArena(&::opencv_caffe::SolverParameter::_default_type_.get(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.type) } -inline void SolverParameter::set_type(const char* value) { +#if LANG_CXX11 +inline void SolverParameter::set_type(::std::string&& value) { set_has_type(); - type_.SetNoArena(_default_type_, ::std::string(value)); + type_.SetNoArena( + &::opencv_caffe::SolverParameter::_default_type_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SolverParameter.type) +} +#endif +inline void SolverParameter::set_type(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_type(); + type_.SetNoArena(&::opencv_caffe::SolverParameter::_default_type_.get(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverParameter.type) } inline void SolverParameter::set_type(const char* value, size_t size) { set_has_type(); - type_.SetNoArena(_default_type_, + type_.SetNoArena(&::opencv_caffe::SolverParameter::_default_type_.get(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:opencv_caffe.SolverParameter.type) } inline ::std::string* SolverParameter::mutable_type() { set_has_type(); // @@protoc_insertion_point(field_mutable:opencv_caffe.SolverParameter.type) - return type_.MutableNoArena(_default_type_); + return type_.MutableNoArena(&::opencv_caffe::SolverParameter::_default_type_.get()); } inline ::std::string* SolverParameter::release_type() { // @@protoc_insertion_point(field_release:opencv_caffe.SolverParameter.type) clear_has_type(); - return type_.ReleaseNoArena(_default_type_); + return type_.ReleaseNoArena(&::opencv_caffe::SolverParameter::_default_type_.get()); } inline void SolverParameter::set_allocated_type(::std::string* type) { if (type != NULL) { @@ -16468,19 +18032,19 @@ inline void SolverParameter::set_allocated_type(::std::string* type) { } else { clear_has_type(); } - type_.SetAllocatedNoArena(_default_type_, type); + type_.SetAllocatedNoArena(&::opencv_caffe::SolverParameter::_default_type_.get(), type); // @@protoc_insertion_point(field_set_allocated:opencv_caffe.SolverParameter.type) } // optional float delta = 31 [default = 1e-08]; inline bool SolverParameter::has_delta() const { - return (_has_bits_[1] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x20000000u) != 0; } inline void SolverParameter::set_has_delta() { - _has_bits_[1] |= 0x00000004u; + _has_bits_[0] |= 0x20000000u; } inline void SolverParameter::clear_has_delta() { - _has_bits_[1] &= ~0x00000004u; + _has_bits_[0] &= ~0x20000000u; } inline void SolverParameter::clear_delta() { delta_ = 1e-08f; @@ -16498,13 +18062,13 @@ inline void SolverParameter::set_delta(float value) { // optional float momentum2 = 39 [default = 0.999]; inline bool SolverParameter::has_momentum2() const { - return (_has_bits_[1] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x01000000u) != 0; } inline void SolverParameter::set_has_momentum2() { - _has_bits_[1] |= 0x00000008u; + _has_bits_[0] |= 0x01000000u; } inline void SolverParameter::clear_has_momentum2() { - _has_bits_[1] &= ~0x00000008u; + _has_bits_[0] &= ~0x01000000u; } inline void SolverParameter::clear_momentum2() { momentum2_ = 0.999f; @@ -16522,13 +18086,13 @@ inline void SolverParameter::set_momentum2(float value) { // optional float rms_decay = 38 [default = 0.99]; inline bool SolverParameter::has_rms_decay() const { - return (_has_bits_[1] & 0x00000010u) != 0; + return (_has_bits_[1] & 0x00000004u) != 0; } inline void SolverParameter::set_has_rms_decay() { - _has_bits_[1] |= 0x00000010u; + _has_bits_[1] |= 0x00000004u; } inline void SolverParameter::clear_has_rms_decay() { - _has_bits_[1] &= ~0x00000010u; + _has_bits_[1] &= ~0x00000004u; } inline void SolverParameter::clear_rms_decay() { rms_decay_ = 0.99f; @@ -16546,13 +18110,13 @@ inline void SolverParameter::set_rms_decay(float value) { // optional bool debug_info = 23 [default = false]; inline bool SolverParameter::has_debug_info() const { - return (_has_bits_[1] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00400000u) != 0; } inline void SolverParameter::set_has_debug_info() { - _has_bits_[1] |= 0x00000020u; + _has_bits_[0] |= 0x00400000u; } inline void SolverParameter::clear_has_debug_info() { - _has_bits_[1] &= ~0x00000020u; + _has_bits_[0] &= ~0x00400000u; } inline void SolverParameter::clear_debug_info() { debug_info_ = false; @@ -16570,13 +18134,13 @@ inline void SolverParameter::set_debug_info(bool value) { // optional bool snapshot_after_train = 28 [default = true]; inline bool SolverParameter::has_snapshot_after_train() const { - return (_has_bits_[1] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x10000000u) != 0; } inline void SolverParameter::set_has_snapshot_after_train() { - _has_bits_[1] |= 0x00000040u; + _has_bits_[0] |= 0x10000000u; } inline void SolverParameter::clear_has_snapshot_after_train() { - _has_bits_[1] &= ~0x00000040u; + _has_bits_[0] &= ~0x10000000u; } inline void SolverParameter::clear_snapshot_after_train() { snapshot_after_train_ = true; @@ -16594,13 +18158,13 @@ inline void SolverParameter::set_snapshot_after_train(bool value) { // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD]; inline bool SolverParameter::has_solver_type() const { - return (_has_bits_[1] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00800000u) != 0; } inline void SolverParameter::set_has_solver_type() { - _has_bits_[1] |= 0x00000080u; + _has_bits_[0] |= 0x00800000u; } inline void SolverParameter::clear_has_solver_type() { - _has_bits_[1] &= ~0x00000080u; + _has_bits_[0] &= ~0x00800000u; } inline void SolverParameter::clear_solver_type() { solver_type_ = 0; @@ -16617,22 +18181,19 @@ inline void SolverParameter::set_solver_type(::opencv_caffe::SolverParameter_Sol // @@protoc_insertion_point(field_set:opencv_caffe.SolverParameter.solver_type) } -inline const SolverParameter* SolverParameter::internal_default_instance() { - return &SolverParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // SolverState // optional int32 iter = 1; inline bool SolverState::has_iter() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void SolverState::set_has_iter() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void SolverState::clear_has_iter() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void SolverState::clear_iter() { iter_ = 0; @@ -16650,13 +18211,13 @@ inline void SolverState::set_iter(::google::protobuf::int32 value) { // optional string learned_net = 2; inline bool SolverState::has_learned_net() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void SolverState::set_has_learned_net() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void SolverState::clear_has_learned_net() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void SolverState::clear_learned_net() { learned_net_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -16664,14 +18225,23 @@ inline void SolverState::clear_learned_net() { } inline const ::std::string& SolverState::learned_net() const { // @@protoc_insertion_point(field_get:opencv_caffe.SolverState.learned_net) - return learned_net_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return learned_net_.GetNoArena(); } inline void SolverState::set_learned_net(const ::std::string& value) { set_has_learned_net(); learned_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SolverState.learned_net) } +#if LANG_CXX11 +inline void SolverState::set_learned_net(::std::string&& value) { + set_has_learned_net(); + learned_net_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SolverState.learned_net) +} +#endif inline void SolverState::set_learned_net(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_learned_net(); learned_net_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SolverState.learned_net) @@ -16734,13 +18304,13 @@ SolverState::history() const { // optional int32 current_step = 4 [default = 0]; inline bool SolverState::has_current_step() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void SolverState::set_has_current_step() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000004u; } inline void SolverState::clear_has_current_step() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000004u; } inline void SolverState::clear_current_step() { current_step_ = 0; @@ -16756,22 +18326,19 @@ inline void SolverState::set_current_step(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.SolverState.current_step) } -inline const SolverState* SolverState::internal_default_instance() { - return &SolverState_default_instance_.get(); -} // ------------------------------------------------------------------- // NetState // optional .opencv_caffe.Phase phase = 1 [default = TEST]; inline bool NetState::has_phase() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void NetState::set_has_phase() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void NetState::clear_has_phase() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void NetState::clear_phase() { phase_ = 1; @@ -16790,13 +18357,13 @@ inline void NetState::set_phase(::opencv_caffe::Phase value) { // optional int32 level = 2 [default = 0]; inline bool NetState::has_level() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void NetState::set_has_level() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void NetState::clear_has_level() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void NetState::clear_level() { level_ = 0; @@ -16831,7 +18398,14 @@ inline void NetState::set_stage(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:opencv_caffe.NetState.stage) stage_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void NetState::set_stage(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.NetState.stage) + stage_.Mutable(index)->assign(std::move(value)); +} +#endif inline void NetState::set_stage(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); stage_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.NetState.stage) } @@ -16848,7 +18422,14 @@ inline void NetState::add_stage(const ::std::string& value) { stage_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.NetState.stage) } +#if LANG_CXX11 +inline void NetState::add_stage(::std::string&& value) { + stage_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.NetState.stage) +} +#endif inline void NetState::add_stage(const char* value) { + GOOGLE_DCHECK(value != NULL); stage_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.NetState.stage) } @@ -16867,9 +18448,6 @@ NetState::mutable_stage() { return &stage_; } -inline const NetState* NetState::internal_default_instance() { - return &NetState_default_instance_.get(); -} // ------------------------------------------------------------------- // NetStateRule @@ -16966,7 +18544,14 @@ inline void NetStateRule::set_stage(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:opencv_caffe.NetStateRule.stage) stage_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void NetStateRule::set_stage(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.NetStateRule.stage) + stage_.Mutable(index)->assign(std::move(value)); +} +#endif inline void NetStateRule::set_stage(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); stage_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.NetStateRule.stage) } @@ -16983,7 +18568,14 @@ inline void NetStateRule::add_stage(const ::std::string& value) { stage_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.NetStateRule.stage) } +#if LANG_CXX11 +inline void NetStateRule::add_stage(::std::string&& value) { + stage_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.NetStateRule.stage) +} +#endif inline void NetStateRule::add_stage(const char* value) { + GOOGLE_DCHECK(value != NULL); stage_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.NetStateRule.stage) } @@ -17021,7 +18613,14 @@ inline void NetStateRule::set_not_stage(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:opencv_caffe.NetStateRule.not_stage) not_stage_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void NetStateRule::set_not_stage(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.NetStateRule.not_stage) + not_stage_.Mutable(index)->assign(std::move(value)); +} +#endif inline void NetStateRule::set_not_stage(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); not_stage_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.NetStateRule.not_stage) } @@ -17038,7 +18637,14 @@ inline void NetStateRule::add_not_stage(const ::std::string& value) { not_stage_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.NetStateRule.not_stage) } +#if LANG_CXX11 +inline void NetStateRule::add_not_stage(::std::string&& value) { + not_stage_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.NetStateRule.not_stage) +} +#endif inline void NetStateRule::add_not_stage(const char* value) { + GOOGLE_DCHECK(value != NULL); not_stage_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.NetStateRule.not_stage) } @@ -17057,9 +18663,6 @@ NetStateRule::mutable_not_stage() { return ¬_stage_; } -inline const NetStateRule* NetStateRule::internal_default_instance() { - return &NetStateRule_default_instance_.get(); -} // ------------------------------------------------------------------- // ParamSpec @@ -17080,14 +18683,23 @@ inline void ParamSpec::clear_name() { } inline const ::std::string& ParamSpec::name() const { // @@protoc_insertion_point(field_get:opencv_caffe.ParamSpec.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.GetNoArena(); } inline void ParamSpec::set_name(const ::std::string& value) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.ParamSpec.name) } +#if LANG_CXX11 +inline void ParamSpec::set_name(::std::string&& value) { + set_has_name(); + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.ParamSpec.name) +} +#endif inline void ParamSpec::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.ParamSpec.name) @@ -17191,9 +18803,6 @@ inline void ParamSpec::set_decay_mult(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.ParamSpec.decay_mult) } -inline const ParamSpec* ParamSpec::internal_default_instance() { - return &ParamSpec_default_instance_.get(); -} // ------------------------------------------------------------------- // LayerParameter @@ -17214,14 +18823,23 @@ inline void LayerParameter::clear_name() { } inline const ::std::string& LayerParameter::name() const { // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.GetNoArena(); } inline void LayerParameter::set_name(const ::std::string& value) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.name) } +#if LANG_CXX11 +inline void LayerParameter::set_name(::std::string&& value) { + set_has_name(); + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.LayerParameter.name) +} +#endif inline void LayerParameter::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.LayerParameter.name) @@ -17268,14 +18886,23 @@ inline void LayerParameter::clear_type() { } inline const ::std::string& LayerParameter::type() const { // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.type) - return type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return type_.GetNoArena(); } inline void LayerParameter::set_type(const ::std::string& value) { set_has_type(); type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.type) } +#if LANG_CXX11 +inline void LayerParameter::set_type(::std::string&& value) { + set_has_type(); + type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.LayerParameter.type) +} +#endif inline void LayerParameter::set_type(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_type(); type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.LayerParameter.type) @@ -17325,7 +18952,14 @@ inline void LayerParameter::set_bottom(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.bottom) bottom_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void LayerParameter::set_bottom(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.bottom) + bottom_.Mutable(index)->assign(std::move(value)); +} +#endif inline void LayerParameter::set_bottom(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); bottom_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.LayerParameter.bottom) } @@ -17342,7 +18976,14 @@ inline void LayerParameter::add_bottom(const ::std::string& value) { bottom_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.bottom) } +#if LANG_CXX11 +inline void LayerParameter::add_bottom(::std::string&& value) { + bottom_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.bottom) +} +#endif inline void LayerParameter::add_bottom(const char* value) { + GOOGLE_DCHECK(value != NULL); bottom_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.LayerParameter.bottom) } @@ -17380,7 +19021,14 @@ inline void LayerParameter::set_top(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.top) top_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void LayerParameter::set_top(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.LayerParameter.top) + top_.Mutable(index)->assign(std::move(value)); +} +#endif inline void LayerParameter::set_top(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); top_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.LayerParameter.top) } @@ -17397,7 +19045,14 @@ inline void LayerParameter::add_top(const ::std::string& value) { top_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.top) } +#if LANG_CXX11 +inline void LayerParameter::add_top(::std::string&& value) { + top_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.LayerParameter.top) +} +#endif inline void LayerParameter::add_top(const char* value) { + GOOGLE_DCHECK(value != NULL); top_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.LayerParameter.top) } @@ -17418,13 +19073,13 @@ LayerParameter::mutable_top() { // optional .opencv_caffe.Phase phase = 10; inline bool LayerParameter::has_phase() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[1] & 0x01000000u) != 0; } inline void LayerParameter::set_has_phase() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[1] |= 0x01000000u; } inline void LayerParameter::clear_has_phase() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[1] &= ~0x01000000u; } inline void LayerParameter::clear_phase() { phase_ = 0; @@ -17623,22 +19278,30 @@ LayerParameter::exclude() const { // optional .opencv_caffe.TransformationParameter transform_param = 100; inline bool LayerParameter::has_transform_param() const { - return (_has_bits_[0] & 0x00000800u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void LayerParameter::set_has_transform_param() { - _has_bits_[0] |= 0x00000800u; + _has_bits_[0] |= 0x00000004u; } inline void LayerParameter::clear_has_transform_param() { - _has_bits_[0] &= ~0x00000800u; + _has_bits_[0] &= ~0x00000004u; } inline void LayerParameter::clear_transform_param() { - if (transform_param_ != NULL) transform_param_->::opencv_caffe::TransformationParameter::Clear(); + if (transform_param_ != NULL) transform_param_->Clear(); clear_has_transform_param(); } inline const ::opencv_caffe::TransformationParameter& LayerParameter::transform_param() const { + const ::opencv_caffe::TransformationParameter* p = transform_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.transform_param) - return transform_param_ != NULL ? *transform_param_ - : *::opencv_caffe::TransformationParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_TransformationParameter_default_instance_); +} +inline ::opencv_caffe::TransformationParameter* LayerParameter::release_transform_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.transform_param) + clear_has_transform_param(); + ::opencv_caffe::TransformationParameter* temp = transform_param_; + transform_param_ = NULL; + return temp; } inline ::opencv_caffe::TransformationParameter* LayerParameter::mutable_transform_param() { set_has_transform_param(); @@ -17648,42 +19311,51 @@ inline ::opencv_caffe::TransformationParameter* LayerParameter::mutable_transfor // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.transform_param) return transform_param_; } -inline ::opencv_caffe::TransformationParameter* LayerParameter::release_transform_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.transform_param) - clear_has_transform_param(); - ::opencv_caffe::TransformationParameter* temp = transform_param_; - transform_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_transform_param(::opencv_caffe::TransformationParameter* transform_param) { - delete transform_param_; - transform_param_ = transform_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transform_param_; + } if (transform_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transform_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transform_param, submessage_arena); + } set_has_transform_param(); } else { clear_has_transform_param(); } + transform_param_ = transform_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.transform_param) } // optional .opencv_caffe.LossParameter loss_param = 101; inline bool LayerParameter::has_loss_param() const { - return (_has_bits_[0] & 0x00001000u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void LayerParameter::set_has_loss_param() { - _has_bits_[0] |= 0x00001000u; + _has_bits_[0] |= 0x00000008u; } inline void LayerParameter::clear_has_loss_param() { - _has_bits_[0] &= ~0x00001000u; + _has_bits_[0] &= ~0x00000008u; } inline void LayerParameter::clear_loss_param() { - if (loss_param_ != NULL) loss_param_->::opencv_caffe::LossParameter::Clear(); + if (loss_param_ != NULL) loss_param_->Clear(); clear_has_loss_param(); } inline const ::opencv_caffe::LossParameter& LayerParameter::loss_param() const { + const ::opencv_caffe::LossParameter* p = loss_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.loss_param) - return loss_param_ != NULL ? *loss_param_ - : *::opencv_caffe::LossParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_LossParameter_default_instance_); +} +inline ::opencv_caffe::LossParameter* LayerParameter::release_loss_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.loss_param) + clear_has_loss_param(); + ::opencv_caffe::LossParameter* temp = loss_param_; + loss_param_ = NULL; + return temp; } inline ::opencv_caffe::LossParameter* LayerParameter::mutable_loss_param() { set_has_loss_param(); @@ -17693,42 +19365,51 @@ inline ::opencv_caffe::LossParameter* LayerParameter::mutable_loss_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.loss_param) return loss_param_; } -inline ::opencv_caffe::LossParameter* LayerParameter::release_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.loss_param) - clear_has_loss_param(); - ::opencv_caffe::LossParameter* temp = loss_param_; - loss_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_loss_param(::opencv_caffe::LossParameter* loss_param) { - delete loss_param_; - loss_param_ = loss_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete loss_param_; + } if (loss_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + loss_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, loss_param, submessage_arena); + } set_has_loss_param(); } else { clear_has_loss_param(); } + loss_param_ = loss_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.loss_param) } // optional .opencv_caffe.AccuracyParameter accuracy_param = 102; inline bool LayerParameter::has_accuracy_param() const { - return (_has_bits_[0] & 0x00002000u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void LayerParameter::set_has_accuracy_param() { - _has_bits_[0] |= 0x00002000u; + _has_bits_[0] |= 0x00000010u; } inline void LayerParameter::clear_has_accuracy_param() { - _has_bits_[0] &= ~0x00002000u; + _has_bits_[0] &= ~0x00000010u; } inline void LayerParameter::clear_accuracy_param() { - if (accuracy_param_ != NULL) accuracy_param_->::opencv_caffe::AccuracyParameter::Clear(); + if (accuracy_param_ != NULL) accuracy_param_->Clear(); clear_has_accuracy_param(); } inline const ::opencv_caffe::AccuracyParameter& LayerParameter::accuracy_param() const { + const ::opencv_caffe::AccuracyParameter* p = accuracy_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.accuracy_param) - return accuracy_param_ != NULL ? *accuracy_param_ - : *::opencv_caffe::AccuracyParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_AccuracyParameter_default_instance_); +} +inline ::opencv_caffe::AccuracyParameter* LayerParameter::release_accuracy_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.accuracy_param) + clear_has_accuracy_param(); + ::opencv_caffe::AccuracyParameter* temp = accuracy_param_; + accuracy_param_ = NULL; + return temp; } inline ::opencv_caffe::AccuracyParameter* LayerParameter::mutable_accuracy_param() { set_has_accuracy_param(); @@ -17738,42 +19419,51 @@ inline ::opencv_caffe::AccuracyParameter* LayerParameter::mutable_accuracy_param // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.accuracy_param) return accuracy_param_; } -inline ::opencv_caffe::AccuracyParameter* LayerParameter::release_accuracy_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.accuracy_param) - clear_has_accuracy_param(); - ::opencv_caffe::AccuracyParameter* temp = accuracy_param_; - accuracy_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_accuracy_param(::opencv_caffe::AccuracyParameter* accuracy_param) { - delete accuracy_param_; - accuracy_param_ = accuracy_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete accuracy_param_; + } if (accuracy_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + accuracy_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, accuracy_param, submessage_arena); + } set_has_accuracy_param(); } else { clear_has_accuracy_param(); } + accuracy_param_ = accuracy_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.accuracy_param) } // optional .opencv_caffe.ArgMaxParameter argmax_param = 103; inline bool LayerParameter::has_argmax_param() const { - return (_has_bits_[0] & 0x00004000u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void LayerParameter::set_has_argmax_param() { - _has_bits_[0] |= 0x00004000u; + _has_bits_[0] |= 0x00000020u; } inline void LayerParameter::clear_has_argmax_param() { - _has_bits_[0] &= ~0x00004000u; + _has_bits_[0] &= ~0x00000020u; } inline void LayerParameter::clear_argmax_param() { - if (argmax_param_ != NULL) argmax_param_->::opencv_caffe::ArgMaxParameter::Clear(); + if (argmax_param_ != NULL) argmax_param_->Clear(); clear_has_argmax_param(); } inline const ::opencv_caffe::ArgMaxParameter& LayerParameter::argmax_param() const { + const ::opencv_caffe::ArgMaxParameter* p = argmax_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.argmax_param) - return argmax_param_ != NULL ? *argmax_param_ - : *::opencv_caffe::ArgMaxParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ArgMaxParameter_default_instance_); +} +inline ::opencv_caffe::ArgMaxParameter* LayerParameter::release_argmax_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.argmax_param) + clear_has_argmax_param(); + ::opencv_caffe::ArgMaxParameter* temp = argmax_param_; + argmax_param_ = NULL; + return temp; } inline ::opencv_caffe::ArgMaxParameter* LayerParameter::mutable_argmax_param() { set_has_argmax_param(); @@ -17783,42 +19473,51 @@ inline ::opencv_caffe::ArgMaxParameter* LayerParameter::mutable_argmax_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.argmax_param) return argmax_param_; } -inline ::opencv_caffe::ArgMaxParameter* LayerParameter::release_argmax_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.argmax_param) - clear_has_argmax_param(); - ::opencv_caffe::ArgMaxParameter* temp = argmax_param_; - argmax_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_argmax_param(::opencv_caffe::ArgMaxParameter* argmax_param) { - delete argmax_param_; - argmax_param_ = argmax_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete argmax_param_; + } if (argmax_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + argmax_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, argmax_param, submessage_arena); + } set_has_argmax_param(); } else { clear_has_argmax_param(); } + argmax_param_ = argmax_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.argmax_param) } // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139; inline bool LayerParameter::has_batch_norm_param() const { - return (_has_bits_[0] & 0x00008000u) != 0; + return (_has_bits_[1] & 0x00000200u) != 0; } inline void LayerParameter::set_has_batch_norm_param() { - _has_bits_[0] |= 0x00008000u; + _has_bits_[1] |= 0x00000200u; } inline void LayerParameter::clear_has_batch_norm_param() { - _has_bits_[0] &= ~0x00008000u; + _has_bits_[1] &= ~0x00000200u; } inline void LayerParameter::clear_batch_norm_param() { - if (batch_norm_param_ != NULL) batch_norm_param_->::opencv_caffe::BatchNormParameter::Clear(); + if (batch_norm_param_ != NULL) batch_norm_param_->Clear(); clear_has_batch_norm_param(); } inline const ::opencv_caffe::BatchNormParameter& LayerParameter::batch_norm_param() const { + const ::opencv_caffe::BatchNormParameter* p = batch_norm_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.batch_norm_param) - return batch_norm_param_ != NULL ? *batch_norm_param_ - : *::opencv_caffe::BatchNormParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_BatchNormParameter_default_instance_); +} +inline ::opencv_caffe::BatchNormParameter* LayerParameter::release_batch_norm_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.batch_norm_param) + clear_has_batch_norm_param(); + ::opencv_caffe::BatchNormParameter* temp = batch_norm_param_; + batch_norm_param_ = NULL; + return temp; } inline ::opencv_caffe::BatchNormParameter* LayerParameter::mutable_batch_norm_param() { set_has_batch_norm_param(); @@ -17828,42 +19527,51 @@ inline ::opencv_caffe::BatchNormParameter* LayerParameter::mutable_batch_norm_pa // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.batch_norm_param) return batch_norm_param_; } -inline ::opencv_caffe::BatchNormParameter* LayerParameter::release_batch_norm_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.batch_norm_param) - clear_has_batch_norm_param(); - ::opencv_caffe::BatchNormParameter* temp = batch_norm_param_; - batch_norm_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_batch_norm_param(::opencv_caffe::BatchNormParameter* batch_norm_param) { - delete batch_norm_param_; - batch_norm_param_ = batch_norm_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete batch_norm_param_; + } if (batch_norm_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + batch_norm_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, batch_norm_param, submessage_arena); + } set_has_batch_norm_param(); } else { clear_has_batch_norm_param(); } + batch_norm_param_ = batch_norm_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.batch_norm_param) } // optional .opencv_caffe.BiasParameter bias_param = 141; inline bool LayerParameter::has_bias_param() const { - return (_has_bits_[0] & 0x00010000u) != 0; + return (_has_bits_[1] & 0x00000800u) != 0; } inline void LayerParameter::set_has_bias_param() { - _has_bits_[0] |= 0x00010000u; + _has_bits_[1] |= 0x00000800u; } inline void LayerParameter::clear_has_bias_param() { - _has_bits_[0] &= ~0x00010000u; + _has_bits_[1] &= ~0x00000800u; } inline void LayerParameter::clear_bias_param() { - if (bias_param_ != NULL) bias_param_->::opencv_caffe::BiasParameter::Clear(); + if (bias_param_ != NULL) bias_param_->Clear(); clear_has_bias_param(); } inline const ::opencv_caffe::BiasParameter& LayerParameter::bias_param() const { + const ::opencv_caffe::BiasParameter* p = bias_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.bias_param) - return bias_param_ != NULL ? *bias_param_ - : *::opencv_caffe::BiasParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_BiasParameter_default_instance_); +} +inline ::opencv_caffe::BiasParameter* LayerParameter::release_bias_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.bias_param) + clear_has_bias_param(); + ::opencv_caffe::BiasParameter* temp = bias_param_; + bias_param_ = NULL; + return temp; } inline ::opencv_caffe::BiasParameter* LayerParameter::mutable_bias_param() { set_has_bias_param(); @@ -17873,42 +19581,51 @@ inline ::opencv_caffe::BiasParameter* LayerParameter::mutable_bias_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.bias_param) return bias_param_; } -inline ::opencv_caffe::BiasParameter* LayerParameter::release_bias_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.bias_param) - clear_has_bias_param(); - ::opencv_caffe::BiasParameter* temp = bias_param_; - bias_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_bias_param(::opencv_caffe::BiasParameter* bias_param) { - delete bias_param_; - bias_param_ = bias_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete bias_param_; + } if (bias_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + bias_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, bias_param, submessage_arena); + } set_has_bias_param(); } else { clear_has_bias_param(); } + bias_param_ = bias_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.bias_param) } // optional .opencv_caffe.ConcatParameter concat_param = 104; inline bool LayerParameter::has_concat_param() const { - return (_has_bits_[0] & 0x00020000u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void LayerParameter::set_has_concat_param() { - _has_bits_[0] |= 0x00020000u; + _has_bits_[0] |= 0x00000040u; } inline void LayerParameter::clear_has_concat_param() { - _has_bits_[0] &= ~0x00020000u; + _has_bits_[0] &= ~0x00000040u; } inline void LayerParameter::clear_concat_param() { - if (concat_param_ != NULL) concat_param_->::opencv_caffe::ConcatParameter::Clear(); + if (concat_param_ != NULL) concat_param_->Clear(); clear_has_concat_param(); } inline const ::opencv_caffe::ConcatParameter& LayerParameter::concat_param() const { + const ::opencv_caffe::ConcatParameter* p = concat_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.concat_param) - return concat_param_ != NULL ? *concat_param_ - : *::opencv_caffe::ConcatParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ConcatParameter_default_instance_); +} +inline ::opencv_caffe::ConcatParameter* LayerParameter::release_concat_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.concat_param) + clear_has_concat_param(); + ::opencv_caffe::ConcatParameter* temp = concat_param_; + concat_param_ = NULL; + return temp; } inline ::opencv_caffe::ConcatParameter* LayerParameter::mutable_concat_param() { set_has_concat_param(); @@ -17918,42 +19635,51 @@ inline ::opencv_caffe::ConcatParameter* LayerParameter::mutable_concat_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.concat_param) return concat_param_; } -inline ::opencv_caffe::ConcatParameter* LayerParameter::release_concat_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.concat_param) - clear_has_concat_param(); - ::opencv_caffe::ConcatParameter* temp = concat_param_; - concat_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_concat_param(::opencv_caffe::ConcatParameter* concat_param) { - delete concat_param_; - concat_param_ = concat_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete concat_param_; + } if (concat_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + concat_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, concat_param, submessage_arena); + } set_has_concat_param(); } else { clear_has_concat_param(); } + concat_param_ = concat_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.concat_param) } // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105; inline bool LayerParameter::has_contrastive_loss_param() const { - return (_has_bits_[0] & 0x00040000u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void LayerParameter::set_has_contrastive_loss_param() { - _has_bits_[0] |= 0x00040000u; + _has_bits_[0] |= 0x00000080u; } inline void LayerParameter::clear_has_contrastive_loss_param() { - _has_bits_[0] &= ~0x00040000u; + _has_bits_[0] &= ~0x00000080u; } inline void LayerParameter::clear_contrastive_loss_param() { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::opencv_caffe::ContrastiveLossParameter::Clear(); + if (contrastive_loss_param_ != NULL) contrastive_loss_param_->Clear(); clear_has_contrastive_loss_param(); } inline const ::opencv_caffe::ContrastiveLossParameter& LayerParameter::contrastive_loss_param() const { + const ::opencv_caffe::ContrastiveLossParameter* p = contrastive_loss_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.contrastive_loss_param) - return contrastive_loss_param_ != NULL ? *contrastive_loss_param_ - : *::opencv_caffe::ContrastiveLossParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ContrastiveLossParameter_default_instance_); +} +inline ::opencv_caffe::ContrastiveLossParameter* LayerParameter::release_contrastive_loss_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.contrastive_loss_param) + clear_has_contrastive_loss_param(); + ::opencv_caffe::ContrastiveLossParameter* temp = contrastive_loss_param_; + contrastive_loss_param_ = NULL; + return temp; } inline ::opencv_caffe::ContrastiveLossParameter* LayerParameter::mutable_contrastive_loss_param() { set_has_contrastive_loss_param(); @@ -17963,42 +19689,51 @@ inline ::opencv_caffe::ContrastiveLossParameter* LayerParameter::mutable_contras // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.contrastive_loss_param) return contrastive_loss_param_; } -inline ::opencv_caffe::ContrastiveLossParameter* LayerParameter::release_contrastive_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.contrastive_loss_param) - clear_has_contrastive_loss_param(); - ::opencv_caffe::ContrastiveLossParameter* temp = contrastive_loss_param_; - contrastive_loss_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_contrastive_loss_param(::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param) { - delete contrastive_loss_param_; - contrastive_loss_param_ = contrastive_loss_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete contrastive_loss_param_; + } if (contrastive_loss_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + contrastive_loss_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, contrastive_loss_param, submessage_arena); + } set_has_contrastive_loss_param(); } else { clear_has_contrastive_loss_param(); } + contrastive_loss_param_ = contrastive_loss_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.contrastive_loss_param) } // optional .opencv_caffe.ConvolutionParameter convolution_param = 106; inline bool LayerParameter::has_convolution_param() const { - return (_has_bits_[0] & 0x00080000u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void LayerParameter::set_has_convolution_param() { - _has_bits_[0] |= 0x00080000u; + _has_bits_[0] |= 0x00000100u; } inline void LayerParameter::clear_has_convolution_param() { - _has_bits_[0] &= ~0x00080000u; + _has_bits_[0] &= ~0x00000100u; } inline void LayerParameter::clear_convolution_param() { - if (convolution_param_ != NULL) convolution_param_->::opencv_caffe::ConvolutionParameter::Clear(); + if (convolution_param_ != NULL) convolution_param_->Clear(); clear_has_convolution_param(); } inline const ::opencv_caffe::ConvolutionParameter& LayerParameter::convolution_param() const { + const ::opencv_caffe::ConvolutionParameter* p = convolution_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.convolution_param) - return convolution_param_ != NULL ? *convolution_param_ - : *::opencv_caffe::ConvolutionParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ConvolutionParameter_default_instance_); +} +inline ::opencv_caffe::ConvolutionParameter* LayerParameter::release_convolution_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.convolution_param) + clear_has_convolution_param(); + ::opencv_caffe::ConvolutionParameter* temp = convolution_param_; + convolution_param_ = NULL; + return temp; } inline ::opencv_caffe::ConvolutionParameter* LayerParameter::mutable_convolution_param() { set_has_convolution_param(); @@ -18008,42 +19743,51 @@ inline ::opencv_caffe::ConvolutionParameter* LayerParameter::mutable_convolution // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.convolution_param) return convolution_param_; } -inline ::opencv_caffe::ConvolutionParameter* LayerParameter::release_convolution_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.convolution_param) - clear_has_convolution_param(); - ::opencv_caffe::ConvolutionParameter* temp = convolution_param_; - convolution_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_convolution_param(::opencv_caffe::ConvolutionParameter* convolution_param) { - delete convolution_param_; - convolution_param_ = convolution_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete convolution_param_; + } if (convolution_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + convolution_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, convolution_param, submessage_arena); + } set_has_convolution_param(); } else { clear_has_convolution_param(); } + convolution_param_ = convolution_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.convolution_param) } // optional .opencv_caffe.CropParameter crop_param = 144; inline bool LayerParameter::has_crop_param() const { - return (_has_bits_[0] & 0x00100000u) != 0; + return (_has_bits_[1] & 0x00004000u) != 0; } inline void LayerParameter::set_has_crop_param() { - _has_bits_[0] |= 0x00100000u; + _has_bits_[1] |= 0x00004000u; } inline void LayerParameter::clear_has_crop_param() { - _has_bits_[0] &= ~0x00100000u; + _has_bits_[1] &= ~0x00004000u; } inline void LayerParameter::clear_crop_param() { - if (crop_param_ != NULL) crop_param_->::opencv_caffe::CropParameter::Clear(); + if (crop_param_ != NULL) crop_param_->Clear(); clear_has_crop_param(); } inline const ::opencv_caffe::CropParameter& LayerParameter::crop_param() const { + const ::opencv_caffe::CropParameter* p = crop_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.crop_param) - return crop_param_ != NULL ? *crop_param_ - : *::opencv_caffe::CropParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_CropParameter_default_instance_); +} +inline ::opencv_caffe::CropParameter* LayerParameter::release_crop_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.crop_param) + clear_has_crop_param(); + ::opencv_caffe::CropParameter* temp = crop_param_; + crop_param_ = NULL; + return temp; } inline ::opencv_caffe::CropParameter* LayerParameter::mutable_crop_param() { set_has_crop_param(); @@ -18053,42 +19797,51 @@ inline ::opencv_caffe::CropParameter* LayerParameter::mutable_crop_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.crop_param) return crop_param_; } -inline ::opencv_caffe::CropParameter* LayerParameter::release_crop_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.crop_param) - clear_has_crop_param(); - ::opencv_caffe::CropParameter* temp = crop_param_; - crop_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_crop_param(::opencv_caffe::CropParameter* crop_param) { - delete crop_param_; - crop_param_ = crop_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete crop_param_; + } if (crop_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + crop_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, crop_param, submessage_arena); + } set_has_crop_param(); } else { clear_has_crop_param(); } + crop_param_ = crop_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.crop_param) } // optional .opencv_caffe.DataParameter data_param = 107; inline bool LayerParameter::has_data_param() const { - return (_has_bits_[0] & 0x00200000u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void LayerParameter::set_has_data_param() { - _has_bits_[0] |= 0x00200000u; + _has_bits_[0] |= 0x00000200u; } inline void LayerParameter::clear_has_data_param() { - _has_bits_[0] &= ~0x00200000u; + _has_bits_[0] &= ~0x00000200u; } inline void LayerParameter::clear_data_param() { - if (data_param_ != NULL) data_param_->::opencv_caffe::DataParameter::Clear(); + if (data_param_ != NULL) data_param_->Clear(); clear_has_data_param(); } inline const ::opencv_caffe::DataParameter& LayerParameter::data_param() const { + const ::opencv_caffe::DataParameter* p = data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.data_param) - return data_param_ != NULL ? *data_param_ - : *::opencv_caffe::DataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_DataParameter_default_instance_); +} +inline ::opencv_caffe::DataParameter* LayerParameter::release_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.data_param) + clear_has_data_param(); + ::opencv_caffe::DataParameter* temp = data_param_; + data_param_ = NULL; + return temp; } inline ::opencv_caffe::DataParameter* LayerParameter::mutable_data_param() { set_has_data_param(); @@ -18098,42 +19851,51 @@ inline ::opencv_caffe::DataParameter* LayerParameter::mutable_data_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.data_param) return data_param_; } -inline ::opencv_caffe::DataParameter* LayerParameter::release_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.data_param) - clear_has_data_param(); - ::opencv_caffe::DataParameter* temp = data_param_; - data_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_data_param(::opencv_caffe::DataParameter* data_param) { - delete data_param_; - data_param_ = data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete data_param_; + } if (data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, data_param, submessage_arena); + } set_has_data_param(); } else { clear_has_data_param(); } + data_param_ = data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.data_param) } // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147; inline bool LayerParameter::has_detection_output_param() const { - return (_has_bits_[0] & 0x00400000u) != 0; + return (_has_bits_[1] & 0x00020000u) != 0; } inline void LayerParameter::set_has_detection_output_param() { - _has_bits_[0] |= 0x00400000u; + _has_bits_[1] |= 0x00020000u; } inline void LayerParameter::clear_has_detection_output_param() { - _has_bits_[0] &= ~0x00400000u; + _has_bits_[1] &= ~0x00020000u; } inline void LayerParameter::clear_detection_output_param() { - if (detection_output_param_ != NULL) detection_output_param_->::opencv_caffe::DetectionOutputParameter::Clear(); + if (detection_output_param_ != NULL) detection_output_param_->Clear(); clear_has_detection_output_param(); } inline const ::opencv_caffe::DetectionOutputParameter& LayerParameter::detection_output_param() const { + const ::opencv_caffe::DetectionOutputParameter* p = detection_output_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.detection_output_param) - return detection_output_param_ != NULL ? *detection_output_param_ - : *::opencv_caffe::DetectionOutputParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_DetectionOutputParameter_default_instance_); +} +inline ::opencv_caffe::DetectionOutputParameter* LayerParameter::release_detection_output_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.detection_output_param) + clear_has_detection_output_param(); + ::opencv_caffe::DetectionOutputParameter* temp = detection_output_param_; + detection_output_param_ = NULL; + return temp; } inline ::opencv_caffe::DetectionOutputParameter* LayerParameter::mutable_detection_output_param() { set_has_detection_output_param(); @@ -18143,42 +19905,51 @@ inline ::opencv_caffe::DetectionOutputParameter* LayerParameter::mutable_detecti // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.detection_output_param) return detection_output_param_; } -inline ::opencv_caffe::DetectionOutputParameter* LayerParameter::release_detection_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.detection_output_param) - clear_has_detection_output_param(); - ::opencv_caffe::DetectionOutputParameter* temp = detection_output_param_; - detection_output_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_detection_output_param(::opencv_caffe::DetectionOutputParameter* detection_output_param) { - delete detection_output_param_; - detection_output_param_ = detection_output_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete detection_output_param_; + } if (detection_output_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + detection_output_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, detection_output_param, submessage_arena); + } set_has_detection_output_param(); } else { clear_has_detection_output_param(); } + detection_output_param_ = detection_output_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.detection_output_param) } // optional .opencv_caffe.DropoutParameter dropout_param = 108; inline bool LayerParameter::has_dropout_param() const { - return (_has_bits_[0] & 0x00800000u) != 0; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void LayerParameter::set_has_dropout_param() { - _has_bits_[0] |= 0x00800000u; + _has_bits_[0] |= 0x00000400u; } inline void LayerParameter::clear_has_dropout_param() { - _has_bits_[0] &= ~0x00800000u; + _has_bits_[0] &= ~0x00000400u; } inline void LayerParameter::clear_dropout_param() { - if (dropout_param_ != NULL) dropout_param_->::opencv_caffe::DropoutParameter::Clear(); + if (dropout_param_ != NULL) dropout_param_->Clear(); clear_has_dropout_param(); } inline const ::opencv_caffe::DropoutParameter& LayerParameter::dropout_param() const { + const ::opencv_caffe::DropoutParameter* p = dropout_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.dropout_param) - return dropout_param_ != NULL ? *dropout_param_ - : *::opencv_caffe::DropoutParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_DropoutParameter_default_instance_); +} +inline ::opencv_caffe::DropoutParameter* LayerParameter::release_dropout_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.dropout_param) + clear_has_dropout_param(); + ::opencv_caffe::DropoutParameter* temp = dropout_param_; + dropout_param_ = NULL; + return temp; } inline ::opencv_caffe::DropoutParameter* LayerParameter::mutable_dropout_param() { set_has_dropout_param(); @@ -18188,42 +19959,51 @@ inline ::opencv_caffe::DropoutParameter* LayerParameter::mutable_dropout_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.dropout_param) return dropout_param_; } -inline ::opencv_caffe::DropoutParameter* LayerParameter::release_dropout_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.dropout_param) - clear_has_dropout_param(); - ::opencv_caffe::DropoutParameter* temp = dropout_param_; - dropout_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_dropout_param(::opencv_caffe::DropoutParameter* dropout_param) { - delete dropout_param_; - dropout_param_ = dropout_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete dropout_param_; + } if (dropout_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + dropout_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dropout_param, submessage_arena); + } set_has_dropout_param(); } else { clear_has_dropout_param(); } + dropout_param_ = dropout_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.dropout_param) } // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109; inline bool LayerParameter::has_dummy_data_param() const { - return (_has_bits_[0] & 0x01000000u) != 0; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void LayerParameter::set_has_dummy_data_param() { - _has_bits_[0] |= 0x01000000u; + _has_bits_[0] |= 0x00000800u; } inline void LayerParameter::clear_has_dummy_data_param() { - _has_bits_[0] &= ~0x01000000u; + _has_bits_[0] &= ~0x00000800u; } inline void LayerParameter::clear_dummy_data_param() { - if (dummy_data_param_ != NULL) dummy_data_param_->::opencv_caffe::DummyDataParameter::Clear(); + if (dummy_data_param_ != NULL) dummy_data_param_->Clear(); clear_has_dummy_data_param(); } inline const ::opencv_caffe::DummyDataParameter& LayerParameter::dummy_data_param() const { + const ::opencv_caffe::DummyDataParameter* p = dummy_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.dummy_data_param) - return dummy_data_param_ != NULL ? *dummy_data_param_ - : *::opencv_caffe::DummyDataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_DummyDataParameter_default_instance_); +} +inline ::opencv_caffe::DummyDataParameter* LayerParameter::release_dummy_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.dummy_data_param) + clear_has_dummy_data_param(); + ::opencv_caffe::DummyDataParameter* temp = dummy_data_param_; + dummy_data_param_ = NULL; + return temp; } inline ::opencv_caffe::DummyDataParameter* LayerParameter::mutable_dummy_data_param() { set_has_dummy_data_param(); @@ -18233,42 +20013,51 @@ inline ::opencv_caffe::DummyDataParameter* LayerParameter::mutable_dummy_data_pa // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.dummy_data_param) return dummy_data_param_; } -inline ::opencv_caffe::DummyDataParameter* LayerParameter::release_dummy_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.dummy_data_param) - clear_has_dummy_data_param(); - ::opencv_caffe::DummyDataParameter* temp = dummy_data_param_; - dummy_data_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_dummy_data_param(::opencv_caffe::DummyDataParameter* dummy_data_param) { - delete dummy_data_param_; - dummy_data_param_ = dummy_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete dummy_data_param_; + } if (dummy_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + dummy_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dummy_data_param, submessage_arena); + } set_has_dummy_data_param(); } else { clear_has_dummy_data_param(); } + dummy_data_param_ = dummy_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.dummy_data_param) } // optional .opencv_caffe.EltwiseParameter eltwise_param = 110; inline bool LayerParameter::has_eltwise_param() const { - return (_has_bits_[0] & 0x02000000u) != 0; + return (_has_bits_[0] & 0x00001000u) != 0; } inline void LayerParameter::set_has_eltwise_param() { - _has_bits_[0] |= 0x02000000u; + _has_bits_[0] |= 0x00001000u; } inline void LayerParameter::clear_has_eltwise_param() { - _has_bits_[0] &= ~0x02000000u; + _has_bits_[0] &= ~0x00001000u; } inline void LayerParameter::clear_eltwise_param() { - if (eltwise_param_ != NULL) eltwise_param_->::opencv_caffe::EltwiseParameter::Clear(); + if (eltwise_param_ != NULL) eltwise_param_->Clear(); clear_has_eltwise_param(); } inline const ::opencv_caffe::EltwiseParameter& LayerParameter::eltwise_param() const { + const ::opencv_caffe::EltwiseParameter* p = eltwise_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.eltwise_param) - return eltwise_param_ != NULL ? *eltwise_param_ - : *::opencv_caffe::EltwiseParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_EltwiseParameter_default_instance_); +} +inline ::opencv_caffe::EltwiseParameter* LayerParameter::release_eltwise_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.eltwise_param) + clear_has_eltwise_param(); + ::opencv_caffe::EltwiseParameter* temp = eltwise_param_; + eltwise_param_ = NULL; + return temp; } inline ::opencv_caffe::EltwiseParameter* LayerParameter::mutable_eltwise_param() { set_has_eltwise_param(); @@ -18278,42 +20067,51 @@ inline ::opencv_caffe::EltwiseParameter* LayerParameter::mutable_eltwise_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.eltwise_param) return eltwise_param_; } -inline ::opencv_caffe::EltwiseParameter* LayerParameter::release_eltwise_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.eltwise_param) - clear_has_eltwise_param(); - ::opencv_caffe::EltwiseParameter* temp = eltwise_param_; - eltwise_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_eltwise_param(::opencv_caffe::EltwiseParameter* eltwise_param) { - delete eltwise_param_; - eltwise_param_ = eltwise_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete eltwise_param_; + } if (eltwise_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + eltwise_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, eltwise_param, submessage_arena); + } set_has_eltwise_param(); } else { clear_has_eltwise_param(); } + eltwise_param_ = eltwise_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.eltwise_param) } // optional .opencv_caffe.ELUParameter elu_param = 140; inline bool LayerParameter::has_elu_param() const { - return (_has_bits_[0] & 0x04000000u) != 0; + return (_has_bits_[1] & 0x00000400u) != 0; } inline void LayerParameter::set_has_elu_param() { - _has_bits_[0] |= 0x04000000u; + _has_bits_[1] |= 0x00000400u; } inline void LayerParameter::clear_has_elu_param() { - _has_bits_[0] &= ~0x04000000u; + _has_bits_[1] &= ~0x00000400u; } inline void LayerParameter::clear_elu_param() { - if (elu_param_ != NULL) elu_param_->::opencv_caffe::ELUParameter::Clear(); + if (elu_param_ != NULL) elu_param_->Clear(); clear_has_elu_param(); } inline const ::opencv_caffe::ELUParameter& LayerParameter::elu_param() const { + const ::opencv_caffe::ELUParameter* p = elu_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.elu_param) - return elu_param_ != NULL ? *elu_param_ - : *::opencv_caffe::ELUParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ELUParameter_default_instance_); +} +inline ::opencv_caffe::ELUParameter* LayerParameter::release_elu_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.elu_param) + clear_has_elu_param(); + ::opencv_caffe::ELUParameter* temp = elu_param_; + elu_param_ = NULL; + return temp; } inline ::opencv_caffe::ELUParameter* LayerParameter::mutable_elu_param() { set_has_elu_param(); @@ -18323,42 +20121,51 @@ inline ::opencv_caffe::ELUParameter* LayerParameter::mutable_elu_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.elu_param) return elu_param_; } -inline ::opencv_caffe::ELUParameter* LayerParameter::release_elu_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.elu_param) - clear_has_elu_param(); - ::opencv_caffe::ELUParameter* temp = elu_param_; - elu_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_elu_param(::opencv_caffe::ELUParameter* elu_param) { - delete elu_param_; - elu_param_ = elu_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete elu_param_; + } if (elu_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + elu_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, elu_param, submessage_arena); + } set_has_elu_param(); } else { clear_has_elu_param(); } + elu_param_ = elu_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.elu_param) } // optional .opencv_caffe.EmbedParameter embed_param = 137; inline bool LayerParameter::has_embed_param() const { - return (_has_bits_[0] & 0x08000000u) != 0; + return (_has_bits_[1] & 0x00000080u) != 0; } inline void LayerParameter::set_has_embed_param() { - _has_bits_[0] |= 0x08000000u; + _has_bits_[1] |= 0x00000080u; } inline void LayerParameter::clear_has_embed_param() { - _has_bits_[0] &= ~0x08000000u; + _has_bits_[1] &= ~0x00000080u; } inline void LayerParameter::clear_embed_param() { - if (embed_param_ != NULL) embed_param_->::opencv_caffe::EmbedParameter::Clear(); + if (embed_param_ != NULL) embed_param_->Clear(); clear_has_embed_param(); } inline const ::opencv_caffe::EmbedParameter& LayerParameter::embed_param() const { + const ::opencv_caffe::EmbedParameter* p = embed_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.embed_param) - return embed_param_ != NULL ? *embed_param_ - : *::opencv_caffe::EmbedParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_EmbedParameter_default_instance_); +} +inline ::opencv_caffe::EmbedParameter* LayerParameter::release_embed_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.embed_param) + clear_has_embed_param(); + ::opencv_caffe::EmbedParameter* temp = embed_param_; + embed_param_ = NULL; + return temp; } inline ::opencv_caffe::EmbedParameter* LayerParameter::mutable_embed_param() { set_has_embed_param(); @@ -18368,42 +20175,51 @@ inline ::opencv_caffe::EmbedParameter* LayerParameter::mutable_embed_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.embed_param) return embed_param_; } -inline ::opencv_caffe::EmbedParameter* LayerParameter::release_embed_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.embed_param) - clear_has_embed_param(); - ::opencv_caffe::EmbedParameter* temp = embed_param_; - embed_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_embed_param(::opencv_caffe::EmbedParameter* embed_param) { - delete embed_param_; - embed_param_ = embed_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete embed_param_; + } if (embed_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + embed_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, embed_param, submessage_arena); + } set_has_embed_param(); } else { clear_has_embed_param(); } + embed_param_ = embed_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.embed_param) } // optional .opencv_caffe.ExpParameter exp_param = 111; inline bool LayerParameter::has_exp_param() const { - return (_has_bits_[0] & 0x10000000u) != 0; + return (_has_bits_[0] & 0x00002000u) != 0; } inline void LayerParameter::set_has_exp_param() { - _has_bits_[0] |= 0x10000000u; + _has_bits_[0] |= 0x00002000u; } inline void LayerParameter::clear_has_exp_param() { - _has_bits_[0] &= ~0x10000000u; + _has_bits_[0] &= ~0x00002000u; } inline void LayerParameter::clear_exp_param() { - if (exp_param_ != NULL) exp_param_->::opencv_caffe::ExpParameter::Clear(); + if (exp_param_ != NULL) exp_param_->Clear(); clear_has_exp_param(); } inline const ::opencv_caffe::ExpParameter& LayerParameter::exp_param() const { + const ::opencv_caffe::ExpParameter* p = exp_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.exp_param) - return exp_param_ != NULL ? *exp_param_ - : *::opencv_caffe::ExpParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ExpParameter_default_instance_); +} +inline ::opencv_caffe::ExpParameter* LayerParameter::release_exp_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.exp_param) + clear_has_exp_param(); + ::opencv_caffe::ExpParameter* temp = exp_param_; + exp_param_ = NULL; + return temp; } inline ::opencv_caffe::ExpParameter* LayerParameter::mutable_exp_param() { set_has_exp_param(); @@ -18413,42 +20229,51 @@ inline ::opencv_caffe::ExpParameter* LayerParameter::mutable_exp_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.exp_param) return exp_param_; } -inline ::opencv_caffe::ExpParameter* LayerParameter::release_exp_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.exp_param) - clear_has_exp_param(); - ::opencv_caffe::ExpParameter* temp = exp_param_; - exp_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_exp_param(::opencv_caffe::ExpParameter* exp_param) { - delete exp_param_; - exp_param_ = exp_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete exp_param_; + } if (exp_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + exp_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, exp_param, submessage_arena); + } set_has_exp_param(); } else { clear_has_exp_param(); } + exp_param_ = exp_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.exp_param) } // optional .opencv_caffe.FlattenParameter flatten_param = 135; inline bool LayerParameter::has_flatten_param() const { - return (_has_bits_[0] & 0x20000000u) != 0; + return (_has_bits_[1] & 0x00000020u) != 0; } inline void LayerParameter::set_has_flatten_param() { - _has_bits_[0] |= 0x20000000u; + _has_bits_[1] |= 0x00000020u; } inline void LayerParameter::clear_has_flatten_param() { - _has_bits_[0] &= ~0x20000000u; + _has_bits_[1] &= ~0x00000020u; } inline void LayerParameter::clear_flatten_param() { - if (flatten_param_ != NULL) flatten_param_->::opencv_caffe::FlattenParameter::Clear(); + if (flatten_param_ != NULL) flatten_param_->Clear(); clear_has_flatten_param(); } inline const ::opencv_caffe::FlattenParameter& LayerParameter::flatten_param() const { + const ::opencv_caffe::FlattenParameter* p = flatten_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.flatten_param) - return flatten_param_ != NULL ? *flatten_param_ - : *::opencv_caffe::FlattenParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FlattenParameter_default_instance_); +} +inline ::opencv_caffe::FlattenParameter* LayerParameter::release_flatten_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.flatten_param) + clear_has_flatten_param(); + ::opencv_caffe::FlattenParameter* temp = flatten_param_; + flatten_param_ = NULL; + return temp; } inline ::opencv_caffe::FlattenParameter* LayerParameter::mutable_flatten_param() { set_has_flatten_param(); @@ -18458,42 +20283,51 @@ inline ::opencv_caffe::FlattenParameter* LayerParameter::mutable_flatten_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.flatten_param) return flatten_param_; } -inline ::opencv_caffe::FlattenParameter* LayerParameter::release_flatten_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.flatten_param) - clear_has_flatten_param(); - ::opencv_caffe::FlattenParameter* temp = flatten_param_; - flatten_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_flatten_param(::opencv_caffe::FlattenParameter* flatten_param) { - delete flatten_param_; - flatten_param_ = flatten_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete flatten_param_; + } if (flatten_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + flatten_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, flatten_param, submessage_arena); + } set_has_flatten_param(); } else { clear_has_flatten_param(); } + flatten_param_ = flatten_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.flatten_param) } // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112; inline bool LayerParameter::has_hdf5_data_param() const { - return (_has_bits_[0] & 0x40000000u) != 0; + return (_has_bits_[0] & 0x00004000u) != 0; } inline void LayerParameter::set_has_hdf5_data_param() { - _has_bits_[0] |= 0x40000000u; + _has_bits_[0] |= 0x00004000u; } inline void LayerParameter::clear_has_hdf5_data_param() { - _has_bits_[0] &= ~0x40000000u; + _has_bits_[0] &= ~0x00004000u; } inline void LayerParameter::clear_hdf5_data_param() { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::opencv_caffe::HDF5DataParameter::Clear(); + if (hdf5_data_param_ != NULL) hdf5_data_param_->Clear(); clear_has_hdf5_data_param(); } inline const ::opencv_caffe::HDF5DataParameter& LayerParameter::hdf5_data_param() const { + const ::opencv_caffe::HDF5DataParameter* p = hdf5_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.hdf5_data_param) - return hdf5_data_param_ != NULL ? *hdf5_data_param_ - : *::opencv_caffe::HDF5DataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_HDF5DataParameter_default_instance_); +} +inline ::opencv_caffe::HDF5DataParameter* LayerParameter::release_hdf5_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.hdf5_data_param) + clear_has_hdf5_data_param(); + ::opencv_caffe::HDF5DataParameter* temp = hdf5_data_param_; + hdf5_data_param_ = NULL; + return temp; } inline ::opencv_caffe::HDF5DataParameter* LayerParameter::mutable_hdf5_data_param() { set_has_hdf5_data_param(); @@ -18503,42 +20337,51 @@ inline ::opencv_caffe::HDF5DataParameter* LayerParameter::mutable_hdf5_data_para // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.hdf5_data_param) return hdf5_data_param_; } -inline ::opencv_caffe::HDF5DataParameter* LayerParameter::release_hdf5_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.hdf5_data_param) - clear_has_hdf5_data_param(); - ::opencv_caffe::HDF5DataParameter* temp = hdf5_data_param_; - hdf5_data_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_hdf5_data_param(::opencv_caffe::HDF5DataParameter* hdf5_data_param) { - delete hdf5_data_param_; - hdf5_data_param_ = hdf5_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete hdf5_data_param_; + } if (hdf5_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + hdf5_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hdf5_data_param, submessage_arena); + } set_has_hdf5_data_param(); } else { clear_has_hdf5_data_param(); } + hdf5_data_param_ = hdf5_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.hdf5_data_param) } // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113; inline bool LayerParameter::has_hdf5_output_param() const { - return (_has_bits_[0] & 0x80000000u) != 0; + return (_has_bits_[0] & 0x00008000u) != 0; } inline void LayerParameter::set_has_hdf5_output_param() { - _has_bits_[0] |= 0x80000000u; + _has_bits_[0] |= 0x00008000u; } inline void LayerParameter::clear_has_hdf5_output_param() { - _has_bits_[0] &= ~0x80000000u; + _has_bits_[0] &= ~0x00008000u; } inline void LayerParameter::clear_hdf5_output_param() { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::opencv_caffe::HDF5OutputParameter::Clear(); + if (hdf5_output_param_ != NULL) hdf5_output_param_->Clear(); clear_has_hdf5_output_param(); } inline const ::opencv_caffe::HDF5OutputParameter& LayerParameter::hdf5_output_param() const { + const ::opencv_caffe::HDF5OutputParameter* p = hdf5_output_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.hdf5_output_param) - return hdf5_output_param_ != NULL ? *hdf5_output_param_ - : *::opencv_caffe::HDF5OutputParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_HDF5OutputParameter_default_instance_); +} +inline ::opencv_caffe::HDF5OutputParameter* LayerParameter::release_hdf5_output_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.hdf5_output_param) + clear_has_hdf5_output_param(); + ::opencv_caffe::HDF5OutputParameter* temp = hdf5_output_param_; + hdf5_output_param_ = NULL; + return temp; } inline ::opencv_caffe::HDF5OutputParameter* LayerParameter::mutable_hdf5_output_param() { set_has_hdf5_output_param(); @@ -18548,42 +20391,51 @@ inline ::opencv_caffe::HDF5OutputParameter* LayerParameter::mutable_hdf5_output_ // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.hdf5_output_param) return hdf5_output_param_; } -inline ::opencv_caffe::HDF5OutputParameter* LayerParameter::release_hdf5_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.hdf5_output_param) - clear_has_hdf5_output_param(); - ::opencv_caffe::HDF5OutputParameter* temp = hdf5_output_param_; - hdf5_output_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param) { - delete hdf5_output_param_; - hdf5_output_param_ = hdf5_output_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete hdf5_output_param_; + } if (hdf5_output_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + hdf5_output_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hdf5_output_param, submessage_arena); + } set_has_hdf5_output_param(); } else { clear_has_hdf5_output_param(); } + hdf5_output_param_ = hdf5_output_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.hdf5_output_param) } // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114; inline bool LayerParameter::has_hinge_loss_param() const { - return (_has_bits_[1] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00010000u) != 0; } inline void LayerParameter::set_has_hinge_loss_param() { - _has_bits_[1] |= 0x00000001u; + _has_bits_[0] |= 0x00010000u; } inline void LayerParameter::clear_has_hinge_loss_param() { - _has_bits_[1] &= ~0x00000001u; + _has_bits_[0] &= ~0x00010000u; } inline void LayerParameter::clear_hinge_loss_param() { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::opencv_caffe::HingeLossParameter::Clear(); + if (hinge_loss_param_ != NULL) hinge_loss_param_->Clear(); clear_has_hinge_loss_param(); } inline const ::opencv_caffe::HingeLossParameter& LayerParameter::hinge_loss_param() const { + const ::opencv_caffe::HingeLossParameter* p = hinge_loss_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.hinge_loss_param) - return hinge_loss_param_ != NULL ? *hinge_loss_param_ - : *::opencv_caffe::HingeLossParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_HingeLossParameter_default_instance_); +} +inline ::opencv_caffe::HingeLossParameter* LayerParameter::release_hinge_loss_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.hinge_loss_param) + clear_has_hinge_loss_param(); + ::opencv_caffe::HingeLossParameter* temp = hinge_loss_param_; + hinge_loss_param_ = NULL; + return temp; } inline ::opencv_caffe::HingeLossParameter* LayerParameter::mutable_hinge_loss_param() { set_has_hinge_loss_param(); @@ -18593,42 +20445,51 @@ inline ::opencv_caffe::HingeLossParameter* LayerParameter::mutable_hinge_loss_pa // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.hinge_loss_param) return hinge_loss_param_; } -inline ::opencv_caffe::HingeLossParameter* LayerParameter::release_hinge_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.hinge_loss_param) - clear_has_hinge_loss_param(); - ::opencv_caffe::HingeLossParameter* temp = hinge_loss_param_; - hinge_loss_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_hinge_loss_param(::opencv_caffe::HingeLossParameter* hinge_loss_param) { - delete hinge_loss_param_; - hinge_loss_param_ = hinge_loss_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete hinge_loss_param_; + } if (hinge_loss_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + hinge_loss_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hinge_loss_param, submessage_arena); + } set_has_hinge_loss_param(); } else { clear_has_hinge_loss_param(); } + hinge_loss_param_ = hinge_loss_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.hinge_loss_param) } // optional .opencv_caffe.ImageDataParameter image_data_param = 115; inline bool LayerParameter::has_image_data_param() const { - return (_has_bits_[1] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00020000u) != 0; } inline void LayerParameter::set_has_image_data_param() { - _has_bits_[1] |= 0x00000002u; + _has_bits_[0] |= 0x00020000u; } inline void LayerParameter::clear_has_image_data_param() { - _has_bits_[1] &= ~0x00000002u; + _has_bits_[0] &= ~0x00020000u; } inline void LayerParameter::clear_image_data_param() { - if (image_data_param_ != NULL) image_data_param_->::opencv_caffe::ImageDataParameter::Clear(); + if (image_data_param_ != NULL) image_data_param_->Clear(); clear_has_image_data_param(); } inline const ::opencv_caffe::ImageDataParameter& LayerParameter::image_data_param() const { + const ::opencv_caffe::ImageDataParameter* p = image_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.image_data_param) - return image_data_param_ != NULL ? *image_data_param_ - : *::opencv_caffe::ImageDataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ImageDataParameter_default_instance_); +} +inline ::opencv_caffe::ImageDataParameter* LayerParameter::release_image_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.image_data_param) + clear_has_image_data_param(); + ::opencv_caffe::ImageDataParameter* temp = image_data_param_; + image_data_param_ = NULL; + return temp; } inline ::opencv_caffe::ImageDataParameter* LayerParameter::mutable_image_data_param() { set_has_image_data_param(); @@ -18638,42 +20499,51 @@ inline ::opencv_caffe::ImageDataParameter* LayerParameter::mutable_image_data_pa // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.image_data_param) return image_data_param_; } -inline ::opencv_caffe::ImageDataParameter* LayerParameter::release_image_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.image_data_param) - clear_has_image_data_param(); - ::opencv_caffe::ImageDataParameter* temp = image_data_param_; - image_data_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_image_data_param(::opencv_caffe::ImageDataParameter* image_data_param) { - delete image_data_param_; - image_data_param_ = image_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete image_data_param_; + } if (image_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + image_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, image_data_param, submessage_arena); + } set_has_image_data_param(); } else { clear_has_image_data_param(); } + image_data_param_ = image_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.image_data_param) } // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116; inline bool LayerParameter::has_infogain_loss_param() const { - return (_has_bits_[1] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00040000u) != 0; } inline void LayerParameter::set_has_infogain_loss_param() { - _has_bits_[1] |= 0x00000004u; + _has_bits_[0] |= 0x00040000u; } inline void LayerParameter::clear_has_infogain_loss_param() { - _has_bits_[1] &= ~0x00000004u; + _has_bits_[0] &= ~0x00040000u; } inline void LayerParameter::clear_infogain_loss_param() { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::opencv_caffe::InfogainLossParameter::Clear(); + if (infogain_loss_param_ != NULL) infogain_loss_param_->Clear(); clear_has_infogain_loss_param(); } inline const ::opencv_caffe::InfogainLossParameter& LayerParameter::infogain_loss_param() const { + const ::opencv_caffe::InfogainLossParameter* p = infogain_loss_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.infogain_loss_param) - return infogain_loss_param_ != NULL ? *infogain_loss_param_ - : *::opencv_caffe::InfogainLossParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_InfogainLossParameter_default_instance_); +} +inline ::opencv_caffe::InfogainLossParameter* LayerParameter::release_infogain_loss_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.infogain_loss_param) + clear_has_infogain_loss_param(); + ::opencv_caffe::InfogainLossParameter* temp = infogain_loss_param_; + infogain_loss_param_ = NULL; + return temp; } inline ::opencv_caffe::InfogainLossParameter* LayerParameter::mutable_infogain_loss_param() { set_has_infogain_loss_param(); @@ -18683,42 +20553,51 @@ inline ::opencv_caffe::InfogainLossParameter* LayerParameter::mutable_infogain_l // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.infogain_loss_param) return infogain_loss_param_; } -inline ::opencv_caffe::InfogainLossParameter* LayerParameter::release_infogain_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.infogain_loss_param) - clear_has_infogain_loss_param(); - ::opencv_caffe::InfogainLossParameter* temp = infogain_loss_param_; - infogain_loss_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_infogain_loss_param(::opencv_caffe::InfogainLossParameter* infogain_loss_param) { - delete infogain_loss_param_; - infogain_loss_param_ = infogain_loss_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete infogain_loss_param_; + } if (infogain_loss_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + infogain_loss_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, infogain_loss_param, submessage_arena); + } set_has_infogain_loss_param(); } else { clear_has_infogain_loss_param(); } + infogain_loss_param_ = infogain_loss_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.infogain_loss_param) } // optional .opencv_caffe.InnerProductParameter inner_product_param = 117; inline bool LayerParameter::has_inner_product_param() const { - return (_has_bits_[1] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00080000u) != 0; } inline void LayerParameter::set_has_inner_product_param() { - _has_bits_[1] |= 0x00000008u; + _has_bits_[0] |= 0x00080000u; } inline void LayerParameter::clear_has_inner_product_param() { - _has_bits_[1] &= ~0x00000008u; + _has_bits_[0] &= ~0x00080000u; } inline void LayerParameter::clear_inner_product_param() { - if (inner_product_param_ != NULL) inner_product_param_->::opencv_caffe::InnerProductParameter::Clear(); + if (inner_product_param_ != NULL) inner_product_param_->Clear(); clear_has_inner_product_param(); } inline const ::opencv_caffe::InnerProductParameter& LayerParameter::inner_product_param() const { + const ::opencv_caffe::InnerProductParameter* p = inner_product_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.inner_product_param) - return inner_product_param_ != NULL ? *inner_product_param_ - : *::opencv_caffe::InnerProductParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_InnerProductParameter_default_instance_); +} +inline ::opencv_caffe::InnerProductParameter* LayerParameter::release_inner_product_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.inner_product_param) + clear_has_inner_product_param(); + ::opencv_caffe::InnerProductParameter* temp = inner_product_param_; + inner_product_param_ = NULL; + return temp; } inline ::opencv_caffe::InnerProductParameter* LayerParameter::mutable_inner_product_param() { set_has_inner_product_param(); @@ -18728,42 +20607,51 @@ inline ::opencv_caffe::InnerProductParameter* LayerParameter::mutable_inner_prod // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.inner_product_param) return inner_product_param_; } -inline ::opencv_caffe::InnerProductParameter* LayerParameter::release_inner_product_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.inner_product_param) - clear_has_inner_product_param(); - ::opencv_caffe::InnerProductParameter* temp = inner_product_param_; - inner_product_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_inner_product_param(::opencv_caffe::InnerProductParameter* inner_product_param) { - delete inner_product_param_; - inner_product_param_ = inner_product_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete inner_product_param_; + } if (inner_product_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + inner_product_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inner_product_param, submessage_arena); + } set_has_inner_product_param(); } else { clear_has_inner_product_param(); } + inner_product_param_ = inner_product_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.inner_product_param) } // optional .opencv_caffe.InputParameter input_param = 143; inline bool LayerParameter::has_input_param() const { - return (_has_bits_[1] & 0x00000010u) != 0; + return (_has_bits_[1] & 0x00002000u) != 0; } inline void LayerParameter::set_has_input_param() { - _has_bits_[1] |= 0x00000010u; + _has_bits_[1] |= 0x00002000u; } inline void LayerParameter::clear_has_input_param() { - _has_bits_[1] &= ~0x00000010u; + _has_bits_[1] &= ~0x00002000u; } inline void LayerParameter::clear_input_param() { - if (input_param_ != NULL) input_param_->::opencv_caffe::InputParameter::Clear(); + if (input_param_ != NULL) input_param_->Clear(); clear_has_input_param(); } inline const ::opencv_caffe::InputParameter& LayerParameter::input_param() const { + const ::opencv_caffe::InputParameter* p = input_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.input_param) - return input_param_ != NULL ? *input_param_ - : *::opencv_caffe::InputParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_InputParameter_default_instance_); +} +inline ::opencv_caffe::InputParameter* LayerParameter::release_input_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.input_param) + clear_has_input_param(); + ::opencv_caffe::InputParameter* temp = input_param_; + input_param_ = NULL; + return temp; } inline ::opencv_caffe::InputParameter* LayerParameter::mutable_input_param() { set_has_input_param(); @@ -18773,42 +20661,51 @@ inline ::opencv_caffe::InputParameter* LayerParameter::mutable_input_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.input_param) return input_param_; } -inline ::opencv_caffe::InputParameter* LayerParameter::release_input_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.input_param) - clear_has_input_param(); - ::opencv_caffe::InputParameter* temp = input_param_; - input_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_input_param(::opencv_caffe::InputParameter* input_param) { - delete input_param_; - input_param_ = input_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete input_param_; + } if (input_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + input_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, input_param, submessage_arena); + } set_has_input_param(); } else { clear_has_input_param(); } + input_param_ = input_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.input_param) } // optional .opencv_caffe.LogParameter log_param = 134; inline bool LayerParameter::has_log_param() const { - return (_has_bits_[1] & 0x00000020u) != 0; + return (_has_bits_[1] & 0x00000010u) != 0; } inline void LayerParameter::set_has_log_param() { - _has_bits_[1] |= 0x00000020u; + _has_bits_[1] |= 0x00000010u; } inline void LayerParameter::clear_has_log_param() { - _has_bits_[1] &= ~0x00000020u; + _has_bits_[1] &= ~0x00000010u; } inline void LayerParameter::clear_log_param() { - if (log_param_ != NULL) log_param_->::opencv_caffe::LogParameter::Clear(); + if (log_param_ != NULL) log_param_->Clear(); clear_has_log_param(); } inline const ::opencv_caffe::LogParameter& LayerParameter::log_param() const { + const ::opencv_caffe::LogParameter* p = log_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.log_param) - return log_param_ != NULL ? *log_param_ - : *::opencv_caffe::LogParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_LogParameter_default_instance_); +} +inline ::opencv_caffe::LogParameter* LayerParameter::release_log_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.log_param) + clear_has_log_param(); + ::opencv_caffe::LogParameter* temp = log_param_; + log_param_ = NULL; + return temp; } inline ::opencv_caffe::LogParameter* LayerParameter::mutable_log_param() { set_has_log_param(); @@ -18818,42 +20715,51 @@ inline ::opencv_caffe::LogParameter* LayerParameter::mutable_log_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.log_param) return log_param_; } -inline ::opencv_caffe::LogParameter* LayerParameter::release_log_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.log_param) - clear_has_log_param(); - ::opencv_caffe::LogParameter* temp = log_param_; - log_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_log_param(::opencv_caffe::LogParameter* log_param) { - delete log_param_; - log_param_ = log_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete log_param_; + } if (log_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + log_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, log_param, submessage_arena); + } set_has_log_param(); } else { clear_has_log_param(); } + log_param_ = log_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.log_param) } // optional .opencv_caffe.LRNParameter lrn_param = 118; inline bool LayerParameter::has_lrn_param() const { - return (_has_bits_[1] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00100000u) != 0; } inline void LayerParameter::set_has_lrn_param() { - _has_bits_[1] |= 0x00000040u; + _has_bits_[0] |= 0x00100000u; } inline void LayerParameter::clear_has_lrn_param() { - _has_bits_[1] &= ~0x00000040u; + _has_bits_[0] &= ~0x00100000u; } inline void LayerParameter::clear_lrn_param() { - if (lrn_param_ != NULL) lrn_param_->::opencv_caffe::LRNParameter::Clear(); + if (lrn_param_ != NULL) lrn_param_->Clear(); clear_has_lrn_param(); } inline const ::opencv_caffe::LRNParameter& LayerParameter::lrn_param() const { + const ::opencv_caffe::LRNParameter* p = lrn_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.lrn_param) - return lrn_param_ != NULL ? *lrn_param_ - : *::opencv_caffe::LRNParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_LRNParameter_default_instance_); +} +inline ::opencv_caffe::LRNParameter* LayerParameter::release_lrn_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.lrn_param) + clear_has_lrn_param(); + ::opencv_caffe::LRNParameter* temp = lrn_param_; + lrn_param_ = NULL; + return temp; } inline ::opencv_caffe::LRNParameter* LayerParameter::mutable_lrn_param() { set_has_lrn_param(); @@ -18863,42 +20769,51 @@ inline ::opencv_caffe::LRNParameter* LayerParameter::mutable_lrn_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.lrn_param) return lrn_param_; } -inline ::opencv_caffe::LRNParameter* LayerParameter::release_lrn_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.lrn_param) - clear_has_lrn_param(); - ::opencv_caffe::LRNParameter* temp = lrn_param_; - lrn_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_lrn_param(::opencv_caffe::LRNParameter* lrn_param) { - delete lrn_param_; - lrn_param_ = lrn_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete lrn_param_; + } if (lrn_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + lrn_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, lrn_param, submessage_arena); + } set_has_lrn_param(); } else { clear_has_lrn_param(); } + lrn_param_ = lrn_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.lrn_param) } // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119; inline bool LayerParameter::has_memory_data_param() const { - return (_has_bits_[1] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00200000u) != 0; } inline void LayerParameter::set_has_memory_data_param() { - _has_bits_[1] |= 0x00000080u; + _has_bits_[0] |= 0x00200000u; } inline void LayerParameter::clear_has_memory_data_param() { - _has_bits_[1] &= ~0x00000080u; + _has_bits_[0] &= ~0x00200000u; } inline void LayerParameter::clear_memory_data_param() { - if (memory_data_param_ != NULL) memory_data_param_->::opencv_caffe::MemoryDataParameter::Clear(); + if (memory_data_param_ != NULL) memory_data_param_->Clear(); clear_has_memory_data_param(); } inline const ::opencv_caffe::MemoryDataParameter& LayerParameter::memory_data_param() const { + const ::opencv_caffe::MemoryDataParameter* p = memory_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.memory_data_param) - return memory_data_param_ != NULL ? *memory_data_param_ - : *::opencv_caffe::MemoryDataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_MemoryDataParameter_default_instance_); +} +inline ::opencv_caffe::MemoryDataParameter* LayerParameter::release_memory_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.memory_data_param) + clear_has_memory_data_param(); + ::opencv_caffe::MemoryDataParameter* temp = memory_data_param_; + memory_data_param_ = NULL; + return temp; } inline ::opencv_caffe::MemoryDataParameter* LayerParameter::mutable_memory_data_param() { set_has_memory_data_param(); @@ -18908,42 +20823,51 @@ inline ::opencv_caffe::MemoryDataParameter* LayerParameter::mutable_memory_data_ // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.memory_data_param) return memory_data_param_; } -inline ::opencv_caffe::MemoryDataParameter* LayerParameter::release_memory_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.memory_data_param) - clear_has_memory_data_param(); - ::opencv_caffe::MemoryDataParameter* temp = memory_data_param_; - memory_data_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_memory_data_param(::opencv_caffe::MemoryDataParameter* memory_data_param) { - delete memory_data_param_; - memory_data_param_ = memory_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete memory_data_param_; + } if (memory_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + memory_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, memory_data_param, submessage_arena); + } set_has_memory_data_param(); } else { clear_has_memory_data_param(); } + memory_data_param_ = memory_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.memory_data_param) } // optional .opencv_caffe.MVNParameter mvn_param = 120; inline bool LayerParameter::has_mvn_param() const { - return (_has_bits_[1] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00400000u) != 0; } inline void LayerParameter::set_has_mvn_param() { - _has_bits_[1] |= 0x00000100u; + _has_bits_[0] |= 0x00400000u; } inline void LayerParameter::clear_has_mvn_param() { - _has_bits_[1] &= ~0x00000100u; + _has_bits_[0] &= ~0x00400000u; } inline void LayerParameter::clear_mvn_param() { - if (mvn_param_ != NULL) mvn_param_->::opencv_caffe::MVNParameter::Clear(); + if (mvn_param_ != NULL) mvn_param_->Clear(); clear_has_mvn_param(); } inline const ::opencv_caffe::MVNParameter& LayerParameter::mvn_param() const { + const ::opencv_caffe::MVNParameter* p = mvn_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.mvn_param) - return mvn_param_ != NULL ? *mvn_param_ - : *::opencv_caffe::MVNParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_MVNParameter_default_instance_); +} +inline ::opencv_caffe::MVNParameter* LayerParameter::release_mvn_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.mvn_param) + clear_has_mvn_param(); + ::opencv_caffe::MVNParameter* temp = mvn_param_; + mvn_param_ = NULL; + return temp; } inline ::opencv_caffe::MVNParameter* LayerParameter::mutable_mvn_param() { set_has_mvn_param(); @@ -18953,42 +20877,51 @@ inline ::opencv_caffe::MVNParameter* LayerParameter::mutable_mvn_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.mvn_param) return mvn_param_; } -inline ::opencv_caffe::MVNParameter* LayerParameter::release_mvn_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.mvn_param) - clear_has_mvn_param(); - ::opencv_caffe::MVNParameter* temp = mvn_param_; - mvn_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_mvn_param(::opencv_caffe::MVNParameter* mvn_param) { - delete mvn_param_; - mvn_param_ = mvn_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete mvn_param_; + } if (mvn_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + mvn_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, mvn_param, submessage_arena); + } set_has_mvn_param(); } else { clear_has_mvn_param(); } + mvn_param_ = mvn_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.mvn_param) } // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149; inline bool LayerParameter::has_norm_param() const { - return (_has_bits_[1] & 0x00000200u) != 0; + return (_has_bits_[1] & 0x00080000u) != 0; } inline void LayerParameter::set_has_norm_param() { - _has_bits_[1] |= 0x00000200u; + _has_bits_[1] |= 0x00080000u; } inline void LayerParameter::clear_has_norm_param() { - _has_bits_[1] &= ~0x00000200u; + _has_bits_[1] &= ~0x00080000u; } inline void LayerParameter::clear_norm_param() { - if (norm_param_ != NULL) norm_param_->::opencv_caffe::NormalizeBBoxParameter::Clear(); + if (norm_param_ != NULL) norm_param_->Clear(); clear_has_norm_param(); } inline const ::opencv_caffe::NormalizeBBoxParameter& LayerParameter::norm_param() const { + const ::opencv_caffe::NormalizeBBoxParameter* p = norm_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.norm_param) - return norm_param_ != NULL ? *norm_param_ - : *::opencv_caffe::NormalizeBBoxParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_NormalizeBBoxParameter_default_instance_); +} +inline ::opencv_caffe::NormalizeBBoxParameter* LayerParameter::release_norm_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.norm_param) + clear_has_norm_param(); + ::opencv_caffe::NormalizeBBoxParameter* temp = norm_param_; + norm_param_ = NULL; + return temp; } inline ::opencv_caffe::NormalizeBBoxParameter* LayerParameter::mutable_norm_param() { set_has_norm_param(); @@ -18998,42 +20931,51 @@ inline ::opencv_caffe::NormalizeBBoxParameter* LayerParameter::mutable_norm_para // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.norm_param) return norm_param_; } -inline ::opencv_caffe::NormalizeBBoxParameter* LayerParameter::release_norm_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.norm_param) - clear_has_norm_param(); - ::opencv_caffe::NormalizeBBoxParameter* temp = norm_param_; - norm_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_norm_param(::opencv_caffe::NormalizeBBoxParameter* norm_param) { - delete norm_param_; - norm_param_ = norm_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete norm_param_; + } if (norm_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + norm_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, norm_param, submessage_arena); + } set_has_norm_param(); } else { clear_has_norm_param(); } + norm_param_ = norm_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.norm_param) } // optional .opencv_caffe.PermuteParameter permute_param = 148; inline bool LayerParameter::has_permute_param() const { - return (_has_bits_[1] & 0x00000400u) != 0; + return (_has_bits_[1] & 0x00040000u) != 0; } inline void LayerParameter::set_has_permute_param() { - _has_bits_[1] |= 0x00000400u; + _has_bits_[1] |= 0x00040000u; } inline void LayerParameter::clear_has_permute_param() { - _has_bits_[1] &= ~0x00000400u; + _has_bits_[1] &= ~0x00040000u; } inline void LayerParameter::clear_permute_param() { - if (permute_param_ != NULL) permute_param_->::opencv_caffe::PermuteParameter::Clear(); + if (permute_param_ != NULL) permute_param_->Clear(); clear_has_permute_param(); } inline const ::opencv_caffe::PermuteParameter& LayerParameter::permute_param() const { + const ::opencv_caffe::PermuteParameter* p = permute_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.permute_param) - return permute_param_ != NULL ? *permute_param_ - : *::opencv_caffe::PermuteParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_PermuteParameter_default_instance_); +} +inline ::opencv_caffe::PermuteParameter* LayerParameter::release_permute_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.permute_param) + clear_has_permute_param(); + ::opencv_caffe::PermuteParameter* temp = permute_param_; + permute_param_ = NULL; + return temp; } inline ::opencv_caffe::PermuteParameter* LayerParameter::mutable_permute_param() { set_has_permute_param(); @@ -19043,42 +20985,51 @@ inline ::opencv_caffe::PermuteParameter* LayerParameter::mutable_permute_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.permute_param) return permute_param_; } -inline ::opencv_caffe::PermuteParameter* LayerParameter::release_permute_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.permute_param) - clear_has_permute_param(); - ::opencv_caffe::PermuteParameter* temp = permute_param_; - permute_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_permute_param(::opencv_caffe::PermuteParameter* permute_param) { - delete permute_param_; - permute_param_ = permute_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete permute_param_; + } if (permute_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + permute_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, permute_param, submessage_arena); + } set_has_permute_param(); } else { clear_has_permute_param(); } + permute_param_ = permute_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.permute_param) } // optional .opencv_caffe.ParameterParameter parameter_param = 145; inline bool LayerParameter::has_parameter_param() const { - return (_has_bits_[1] & 0x00000800u) != 0; + return (_has_bits_[1] & 0x00008000u) != 0; } inline void LayerParameter::set_has_parameter_param() { - _has_bits_[1] |= 0x00000800u; + _has_bits_[1] |= 0x00008000u; } inline void LayerParameter::clear_has_parameter_param() { - _has_bits_[1] &= ~0x00000800u; + _has_bits_[1] &= ~0x00008000u; } inline void LayerParameter::clear_parameter_param() { - if (parameter_param_ != NULL) parameter_param_->::opencv_caffe::ParameterParameter::Clear(); + if (parameter_param_ != NULL) parameter_param_->Clear(); clear_has_parameter_param(); } inline const ::opencv_caffe::ParameterParameter& LayerParameter::parameter_param() const { + const ::opencv_caffe::ParameterParameter* p = parameter_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.parameter_param) - return parameter_param_ != NULL ? *parameter_param_ - : *::opencv_caffe::ParameterParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ParameterParameter_default_instance_); +} +inline ::opencv_caffe::ParameterParameter* LayerParameter::release_parameter_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.parameter_param) + clear_has_parameter_param(); + ::opencv_caffe::ParameterParameter* temp = parameter_param_; + parameter_param_ = NULL; + return temp; } inline ::opencv_caffe::ParameterParameter* LayerParameter::mutable_parameter_param() { set_has_parameter_param(); @@ -19088,42 +21039,51 @@ inline ::opencv_caffe::ParameterParameter* LayerParameter::mutable_parameter_par // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.parameter_param) return parameter_param_; } -inline ::opencv_caffe::ParameterParameter* LayerParameter::release_parameter_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.parameter_param) - clear_has_parameter_param(); - ::opencv_caffe::ParameterParameter* temp = parameter_param_; - parameter_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_parameter_param(::opencv_caffe::ParameterParameter* parameter_param) { - delete parameter_param_; - parameter_param_ = parameter_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete parameter_param_; + } if (parameter_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + parameter_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parameter_param, submessage_arena); + } set_has_parameter_param(); } else { clear_has_parameter_param(); } + parameter_param_ = parameter_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.parameter_param) } // optional .opencv_caffe.PoolingParameter pooling_param = 121; inline bool LayerParameter::has_pooling_param() const { - return (_has_bits_[1] & 0x00001000u) != 0; + return (_has_bits_[0] & 0x00800000u) != 0; } inline void LayerParameter::set_has_pooling_param() { - _has_bits_[1] |= 0x00001000u; + _has_bits_[0] |= 0x00800000u; } inline void LayerParameter::clear_has_pooling_param() { - _has_bits_[1] &= ~0x00001000u; + _has_bits_[0] &= ~0x00800000u; } inline void LayerParameter::clear_pooling_param() { - if (pooling_param_ != NULL) pooling_param_->::opencv_caffe::PoolingParameter::Clear(); + if (pooling_param_ != NULL) pooling_param_->Clear(); clear_has_pooling_param(); } inline const ::opencv_caffe::PoolingParameter& LayerParameter::pooling_param() const { + const ::opencv_caffe::PoolingParameter* p = pooling_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.pooling_param) - return pooling_param_ != NULL ? *pooling_param_ - : *::opencv_caffe::PoolingParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_PoolingParameter_default_instance_); +} +inline ::opencv_caffe::PoolingParameter* LayerParameter::release_pooling_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.pooling_param) + clear_has_pooling_param(); + ::opencv_caffe::PoolingParameter* temp = pooling_param_; + pooling_param_ = NULL; + return temp; } inline ::opencv_caffe::PoolingParameter* LayerParameter::mutable_pooling_param() { set_has_pooling_param(); @@ -19133,42 +21093,51 @@ inline ::opencv_caffe::PoolingParameter* LayerParameter::mutable_pooling_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.pooling_param) return pooling_param_; } -inline ::opencv_caffe::PoolingParameter* LayerParameter::release_pooling_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.pooling_param) - clear_has_pooling_param(); - ::opencv_caffe::PoolingParameter* temp = pooling_param_; - pooling_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_pooling_param(::opencv_caffe::PoolingParameter* pooling_param) { - delete pooling_param_; - pooling_param_ = pooling_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete pooling_param_; + } if (pooling_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + pooling_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pooling_param, submessage_arena); + } set_has_pooling_param(); } else { clear_has_pooling_param(); } + pooling_param_ = pooling_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.pooling_param) } // optional .opencv_caffe.PowerParameter power_param = 122; inline bool LayerParameter::has_power_param() const { - return (_has_bits_[1] & 0x00002000u) != 0; + return (_has_bits_[0] & 0x01000000u) != 0; } inline void LayerParameter::set_has_power_param() { - _has_bits_[1] |= 0x00002000u; + _has_bits_[0] |= 0x01000000u; } inline void LayerParameter::clear_has_power_param() { - _has_bits_[1] &= ~0x00002000u; + _has_bits_[0] &= ~0x01000000u; } inline void LayerParameter::clear_power_param() { - if (power_param_ != NULL) power_param_->::opencv_caffe::PowerParameter::Clear(); + if (power_param_ != NULL) power_param_->Clear(); clear_has_power_param(); } inline const ::opencv_caffe::PowerParameter& LayerParameter::power_param() const { + const ::opencv_caffe::PowerParameter* p = power_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.power_param) - return power_param_ != NULL ? *power_param_ - : *::opencv_caffe::PowerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_PowerParameter_default_instance_); +} +inline ::opencv_caffe::PowerParameter* LayerParameter::release_power_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.power_param) + clear_has_power_param(); + ::opencv_caffe::PowerParameter* temp = power_param_; + power_param_ = NULL; + return temp; } inline ::opencv_caffe::PowerParameter* LayerParameter::mutable_power_param() { set_has_power_param(); @@ -19178,42 +21147,51 @@ inline ::opencv_caffe::PowerParameter* LayerParameter::mutable_power_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.power_param) return power_param_; } -inline ::opencv_caffe::PowerParameter* LayerParameter::release_power_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.power_param) - clear_has_power_param(); - ::opencv_caffe::PowerParameter* temp = power_param_; - power_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_power_param(::opencv_caffe::PowerParameter* power_param) { - delete power_param_; - power_param_ = power_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete power_param_; + } if (power_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + power_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, power_param, submessage_arena); + } set_has_power_param(); } else { clear_has_power_param(); } + power_param_ = power_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.power_param) } // optional .opencv_caffe.PReLUParameter prelu_param = 131; inline bool LayerParameter::has_prelu_param() const { - return (_has_bits_[1] & 0x00004000u) != 0; + return (_has_bits_[1] & 0x00000002u) != 0; } inline void LayerParameter::set_has_prelu_param() { - _has_bits_[1] |= 0x00004000u; + _has_bits_[1] |= 0x00000002u; } inline void LayerParameter::clear_has_prelu_param() { - _has_bits_[1] &= ~0x00004000u; + _has_bits_[1] &= ~0x00000002u; } inline void LayerParameter::clear_prelu_param() { - if (prelu_param_ != NULL) prelu_param_->::opencv_caffe::PReLUParameter::Clear(); + if (prelu_param_ != NULL) prelu_param_->Clear(); clear_has_prelu_param(); } inline const ::opencv_caffe::PReLUParameter& LayerParameter::prelu_param() const { + const ::opencv_caffe::PReLUParameter* p = prelu_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.prelu_param) - return prelu_param_ != NULL ? *prelu_param_ - : *::opencv_caffe::PReLUParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_PReLUParameter_default_instance_); +} +inline ::opencv_caffe::PReLUParameter* LayerParameter::release_prelu_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.prelu_param) + clear_has_prelu_param(); + ::opencv_caffe::PReLUParameter* temp = prelu_param_; + prelu_param_ = NULL; + return temp; } inline ::opencv_caffe::PReLUParameter* LayerParameter::mutable_prelu_param() { set_has_prelu_param(); @@ -19223,42 +21201,51 @@ inline ::opencv_caffe::PReLUParameter* LayerParameter::mutable_prelu_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.prelu_param) return prelu_param_; } -inline ::opencv_caffe::PReLUParameter* LayerParameter::release_prelu_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.prelu_param) - clear_has_prelu_param(); - ::opencv_caffe::PReLUParameter* temp = prelu_param_; - prelu_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_prelu_param(::opencv_caffe::PReLUParameter* prelu_param) { - delete prelu_param_; - prelu_param_ = prelu_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete prelu_param_; + } if (prelu_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + prelu_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, prelu_param, submessage_arena); + } set_has_prelu_param(); } else { clear_has_prelu_param(); } + prelu_param_ = prelu_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.prelu_param) } // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150; inline bool LayerParameter::has_prior_box_param() const { - return (_has_bits_[1] & 0x00008000u) != 0; + return (_has_bits_[1] & 0x00100000u) != 0; } inline void LayerParameter::set_has_prior_box_param() { - _has_bits_[1] |= 0x00008000u; + _has_bits_[1] |= 0x00100000u; } inline void LayerParameter::clear_has_prior_box_param() { - _has_bits_[1] &= ~0x00008000u; + _has_bits_[1] &= ~0x00100000u; } inline void LayerParameter::clear_prior_box_param() { - if (prior_box_param_ != NULL) prior_box_param_->::opencv_caffe::PriorBoxParameter::Clear(); + if (prior_box_param_ != NULL) prior_box_param_->Clear(); clear_has_prior_box_param(); } inline const ::opencv_caffe::PriorBoxParameter& LayerParameter::prior_box_param() const { + const ::opencv_caffe::PriorBoxParameter* p = prior_box_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.prior_box_param) - return prior_box_param_ != NULL ? *prior_box_param_ - : *::opencv_caffe::PriorBoxParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_PriorBoxParameter_default_instance_); +} +inline ::opencv_caffe::PriorBoxParameter* LayerParameter::release_prior_box_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.prior_box_param) + clear_has_prior_box_param(); + ::opencv_caffe::PriorBoxParameter* temp = prior_box_param_; + prior_box_param_ = NULL; + return temp; } inline ::opencv_caffe::PriorBoxParameter* LayerParameter::mutable_prior_box_param() { set_has_prior_box_param(); @@ -19268,42 +21255,51 @@ inline ::opencv_caffe::PriorBoxParameter* LayerParameter::mutable_prior_box_para // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.prior_box_param) return prior_box_param_; } -inline ::opencv_caffe::PriorBoxParameter* LayerParameter::release_prior_box_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.prior_box_param) - clear_has_prior_box_param(); - ::opencv_caffe::PriorBoxParameter* temp = prior_box_param_; - prior_box_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_prior_box_param(::opencv_caffe::PriorBoxParameter* prior_box_param) { - delete prior_box_param_; - prior_box_param_ = prior_box_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete prior_box_param_; + } if (prior_box_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + prior_box_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, prior_box_param, submessage_arena); + } set_has_prior_box_param(); } else { clear_has_prior_box_param(); } + prior_box_param_ = prior_box_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.prior_box_param) } // optional .opencv_caffe.ProposalParameter proposal_param = 201; inline bool LayerParameter::has_proposal_param() const { - return (_has_bits_[1] & 0x00010000u) != 0; + return (_has_bits_[1] & 0x00200000u) != 0; } inline void LayerParameter::set_has_proposal_param() { - _has_bits_[1] |= 0x00010000u; + _has_bits_[1] |= 0x00200000u; } inline void LayerParameter::clear_has_proposal_param() { - _has_bits_[1] &= ~0x00010000u; + _has_bits_[1] &= ~0x00200000u; } inline void LayerParameter::clear_proposal_param() { - if (proposal_param_ != NULL) proposal_param_->::opencv_caffe::ProposalParameter::Clear(); + if (proposal_param_ != NULL) proposal_param_->Clear(); clear_has_proposal_param(); } inline const ::opencv_caffe::ProposalParameter& LayerParameter::proposal_param() const { + const ::opencv_caffe::ProposalParameter* p = proposal_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.proposal_param) - return proposal_param_ != NULL ? *proposal_param_ - : *::opencv_caffe::ProposalParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ProposalParameter_default_instance_); +} +inline ::opencv_caffe::ProposalParameter* LayerParameter::release_proposal_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.proposal_param) + clear_has_proposal_param(); + ::opencv_caffe::ProposalParameter* temp = proposal_param_; + proposal_param_ = NULL; + return temp; } inline ::opencv_caffe::ProposalParameter* LayerParameter::mutable_proposal_param() { set_has_proposal_param(); @@ -19313,42 +21309,51 @@ inline ::opencv_caffe::ProposalParameter* LayerParameter::mutable_proposal_param // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.proposal_param) return proposal_param_; } -inline ::opencv_caffe::ProposalParameter* LayerParameter::release_proposal_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.proposal_param) - clear_has_proposal_param(); - ::opencv_caffe::ProposalParameter* temp = proposal_param_; - proposal_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_proposal_param(::opencv_caffe::ProposalParameter* proposal_param) { - delete proposal_param_; - proposal_param_ = proposal_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete proposal_param_; + } if (proposal_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + proposal_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, proposal_param, submessage_arena); + } set_has_proposal_param(); } else { clear_has_proposal_param(); } + proposal_param_ = proposal_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.proposal_param) } // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002; inline bool LayerParameter::has_psroi_pooling_param() const { - return (_has_bits_[1] & 0x00020000u) != 0; + return (_has_bits_[1] & 0x00400000u) != 0; } inline void LayerParameter::set_has_psroi_pooling_param() { - _has_bits_[1] |= 0x00020000u; + _has_bits_[1] |= 0x00400000u; } inline void LayerParameter::clear_has_psroi_pooling_param() { - _has_bits_[1] &= ~0x00020000u; + _has_bits_[1] &= ~0x00400000u; } inline void LayerParameter::clear_psroi_pooling_param() { - if (psroi_pooling_param_ != NULL) psroi_pooling_param_->::opencv_caffe::PSROIPoolingParameter::Clear(); + if (psroi_pooling_param_ != NULL) psroi_pooling_param_->Clear(); clear_has_psroi_pooling_param(); } inline const ::opencv_caffe::PSROIPoolingParameter& LayerParameter::psroi_pooling_param() const { + const ::opencv_caffe::PSROIPoolingParameter* p = psroi_pooling_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.psroi_pooling_param) - return psroi_pooling_param_ != NULL ? *psroi_pooling_param_ - : *::opencv_caffe::PSROIPoolingParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_PSROIPoolingParameter_default_instance_); +} +inline ::opencv_caffe::PSROIPoolingParameter* LayerParameter::release_psroi_pooling_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.psroi_pooling_param) + clear_has_psroi_pooling_param(); + ::opencv_caffe::PSROIPoolingParameter* temp = psroi_pooling_param_; + psroi_pooling_param_ = NULL; + return temp; } inline ::opencv_caffe::PSROIPoolingParameter* LayerParameter::mutable_psroi_pooling_param() { set_has_psroi_pooling_param(); @@ -19358,42 +21363,51 @@ inline ::opencv_caffe::PSROIPoolingParameter* LayerParameter::mutable_psroi_pool // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.psroi_pooling_param) return psroi_pooling_param_; } -inline ::opencv_caffe::PSROIPoolingParameter* LayerParameter::release_psroi_pooling_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.psroi_pooling_param) - clear_has_psroi_pooling_param(); - ::opencv_caffe::PSROIPoolingParameter* temp = psroi_pooling_param_; - psroi_pooling_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_psroi_pooling_param(::opencv_caffe::PSROIPoolingParameter* psroi_pooling_param) { - delete psroi_pooling_param_; - psroi_pooling_param_ = psroi_pooling_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete psroi_pooling_param_; + } if (psroi_pooling_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + psroi_pooling_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, psroi_pooling_param, submessage_arena); + } set_has_psroi_pooling_param(); } else { clear_has_psroi_pooling_param(); } + psroi_pooling_param_ = psroi_pooling_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.psroi_pooling_param) } // optional .opencv_caffe.PythonParameter python_param = 130; inline bool LayerParameter::has_python_param() const { - return (_has_bits_[1] & 0x00040000u) != 0; + return (_has_bits_[1] & 0x00000001u) != 0; } inline void LayerParameter::set_has_python_param() { - _has_bits_[1] |= 0x00040000u; + _has_bits_[1] |= 0x00000001u; } inline void LayerParameter::clear_has_python_param() { - _has_bits_[1] &= ~0x00040000u; + _has_bits_[1] &= ~0x00000001u; } inline void LayerParameter::clear_python_param() { - if (python_param_ != NULL) python_param_->::opencv_caffe::PythonParameter::Clear(); + if (python_param_ != NULL) python_param_->Clear(); clear_has_python_param(); } inline const ::opencv_caffe::PythonParameter& LayerParameter::python_param() const { + const ::opencv_caffe::PythonParameter* p = python_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.python_param) - return python_param_ != NULL ? *python_param_ - : *::opencv_caffe::PythonParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_PythonParameter_default_instance_); +} +inline ::opencv_caffe::PythonParameter* LayerParameter::release_python_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.python_param) + clear_has_python_param(); + ::opencv_caffe::PythonParameter* temp = python_param_; + python_param_ = NULL; + return temp; } inline ::opencv_caffe::PythonParameter* LayerParameter::mutable_python_param() { set_has_python_param(); @@ -19403,42 +21417,51 @@ inline ::opencv_caffe::PythonParameter* LayerParameter::mutable_python_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.python_param) return python_param_; } -inline ::opencv_caffe::PythonParameter* LayerParameter::release_python_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.python_param) - clear_has_python_param(); - ::opencv_caffe::PythonParameter* temp = python_param_; - python_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_python_param(::opencv_caffe::PythonParameter* python_param) { - delete python_param_; - python_param_ = python_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete python_param_; + } if (python_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + python_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, python_param, submessage_arena); + } set_has_python_param(); } else { clear_has_python_param(); } + python_param_ = python_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.python_param) } // optional .opencv_caffe.RecurrentParameter recurrent_param = 146; inline bool LayerParameter::has_recurrent_param() const { - return (_has_bits_[1] & 0x00080000u) != 0; + return (_has_bits_[1] & 0x00010000u) != 0; } inline void LayerParameter::set_has_recurrent_param() { - _has_bits_[1] |= 0x00080000u; + _has_bits_[1] |= 0x00010000u; } inline void LayerParameter::clear_has_recurrent_param() { - _has_bits_[1] &= ~0x00080000u; + _has_bits_[1] &= ~0x00010000u; } inline void LayerParameter::clear_recurrent_param() { - if (recurrent_param_ != NULL) recurrent_param_->::opencv_caffe::RecurrentParameter::Clear(); + if (recurrent_param_ != NULL) recurrent_param_->Clear(); clear_has_recurrent_param(); } inline const ::opencv_caffe::RecurrentParameter& LayerParameter::recurrent_param() const { + const ::opencv_caffe::RecurrentParameter* p = recurrent_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.recurrent_param) - return recurrent_param_ != NULL ? *recurrent_param_ - : *::opencv_caffe::RecurrentParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_RecurrentParameter_default_instance_); +} +inline ::opencv_caffe::RecurrentParameter* LayerParameter::release_recurrent_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.recurrent_param) + clear_has_recurrent_param(); + ::opencv_caffe::RecurrentParameter* temp = recurrent_param_; + recurrent_param_ = NULL; + return temp; } inline ::opencv_caffe::RecurrentParameter* LayerParameter::mutable_recurrent_param() { set_has_recurrent_param(); @@ -19448,42 +21471,51 @@ inline ::opencv_caffe::RecurrentParameter* LayerParameter::mutable_recurrent_par // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.recurrent_param) return recurrent_param_; } -inline ::opencv_caffe::RecurrentParameter* LayerParameter::release_recurrent_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.recurrent_param) - clear_has_recurrent_param(); - ::opencv_caffe::RecurrentParameter* temp = recurrent_param_; - recurrent_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_recurrent_param(::opencv_caffe::RecurrentParameter* recurrent_param) { - delete recurrent_param_; - recurrent_param_ = recurrent_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete recurrent_param_; + } if (recurrent_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + recurrent_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, recurrent_param, submessage_arena); + } set_has_recurrent_param(); } else { clear_has_recurrent_param(); } + recurrent_param_ = recurrent_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.recurrent_param) } // optional .opencv_caffe.ReductionParameter reduction_param = 136; inline bool LayerParameter::has_reduction_param() const { - return (_has_bits_[1] & 0x00100000u) != 0; + return (_has_bits_[1] & 0x00000040u) != 0; } inline void LayerParameter::set_has_reduction_param() { - _has_bits_[1] |= 0x00100000u; + _has_bits_[1] |= 0x00000040u; } inline void LayerParameter::clear_has_reduction_param() { - _has_bits_[1] &= ~0x00100000u; + _has_bits_[1] &= ~0x00000040u; } inline void LayerParameter::clear_reduction_param() { - if (reduction_param_ != NULL) reduction_param_->::opencv_caffe::ReductionParameter::Clear(); + if (reduction_param_ != NULL) reduction_param_->Clear(); clear_has_reduction_param(); } inline const ::opencv_caffe::ReductionParameter& LayerParameter::reduction_param() const { + const ::opencv_caffe::ReductionParameter* p = reduction_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.reduction_param) - return reduction_param_ != NULL ? *reduction_param_ - : *::opencv_caffe::ReductionParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ReductionParameter_default_instance_); +} +inline ::opencv_caffe::ReductionParameter* LayerParameter::release_reduction_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.reduction_param) + clear_has_reduction_param(); + ::opencv_caffe::ReductionParameter* temp = reduction_param_; + reduction_param_ = NULL; + return temp; } inline ::opencv_caffe::ReductionParameter* LayerParameter::mutable_reduction_param() { set_has_reduction_param(); @@ -19493,42 +21525,51 @@ inline ::opencv_caffe::ReductionParameter* LayerParameter::mutable_reduction_par // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.reduction_param) return reduction_param_; } -inline ::opencv_caffe::ReductionParameter* LayerParameter::release_reduction_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.reduction_param) - clear_has_reduction_param(); - ::opencv_caffe::ReductionParameter* temp = reduction_param_; - reduction_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_reduction_param(::opencv_caffe::ReductionParameter* reduction_param) { - delete reduction_param_; - reduction_param_ = reduction_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reduction_param_; + } if (reduction_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + reduction_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reduction_param, submessage_arena); + } set_has_reduction_param(); } else { clear_has_reduction_param(); } + reduction_param_ = reduction_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.reduction_param) } // optional .opencv_caffe.ReLUParameter relu_param = 123; inline bool LayerParameter::has_relu_param() const { - return (_has_bits_[1] & 0x00200000u) != 0; + return (_has_bits_[0] & 0x02000000u) != 0; } inline void LayerParameter::set_has_relu_param() { - _has_bits_[1] |= 0x00200000u; + _has_bits_[0] |= 0x02000000u; } inline void LayerParameter::clear_has_relu_param() { - _has_bits_[1] &= ~0x00200000u; + _has_bits_[0] &= ~0x02000000u; } inline void LayerParameter::clear_relu_param() { - if (relu_param_ != NULL) relu_param_->::opencv_caffe::ReLUParameter::Clear(); + if (relu_param_ != NULL) relu_param_->Clear(); clear_has_relu_param(); } inline const ::opencv_caffe::ReLUParameter& LayerParameter::relu_param() const { + const ::opencv_caffe::ReLUParameter* p = relu_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.relu_param) - return relu_param_ != NULL ? *relu_param_ - : *::opencv_caffe::ReLUParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ReLUParameter_default_instance_); +} +inline ::opencv_caffe::ReLUParameter* LayerParameter::release_relu_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.relu_param) + clear_has_relu_param(); + ::opencv_caffe::ReLUParameter* temp = relu_param_; + relu_param_ = NULL; + return temp; } inline ::opencv_caffe::ReLUParameter* LayerParameter::mutable_relu_param() { set_has_relu_param(); @@ -19538,42 +21579,51 @@ inline ::opencv_caffe::ReLUParameter* LayerParameter::mutable_relu_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.relu_param) return relu_param_; } -inline ::opencv_caffe::ReLUParameter* LayerParameter::release_relu_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.relu_param) - clear_has_relu_param(); - ::opencv_caffe::ReLUParameter* temp = relu_param_; - relu_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_relu_param(::opencv_caffe::ReLUParameter* relu_param) { - delete relu_param_; - relu_param_ = relu_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete relu_param_; + } if (relu_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + relu_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, relu_param, submessage_arena); + } set_has_relu_param(); } else { clear_has_relu_param(); } + relu_param_ = relu_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.relu_param) } // optional .opencv_caffe.ReshapeParameter reshape_param = 133; inline bool LayerParameter::has_reshape_param() const { - return (_has_bits_[1] & 0x00400000u) != 0; + return (_has_bits_[1] & 0x00000008u) != 0; } inline void LayerParameter::set_has_reshape_param() { - _has_bits_[1] |= 0x00400000u; + _has_bits_[1] |= 0x00000008u; } inline void LayerParameter::clear_has_reshape_param() { - _has_bits_[1] &= ~0x00400000u; + _has_bits_[1] &= ~0x00000008u; } inline void LayerParameter::clear_reshape_param() { - if (reshape_param_ != NULL) reshape_param_->::opencv_caffe::ReshapeParameter::Clear(); + if (reshape_param_ != NULL) reshape_param_->Clear(); clear_has_reshape_param(); } inline const ::opencv_caffe::ReshapeParameter& LayerParameter::reshape_param() const { + const ::opencv_caffe::ReshapeParameter* p = reshape_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.reshape_param) - return reshape_param_ != NULL ? *reshape_param_ - : *::opencv_caffe::ReshapeParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ReshapeParameter_default_instance_); +} +inline ::opencv_caffe::ReshapeParameter* LayerParameter::release_reshape_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.reshape_param) + clear_has_reshape_param(); + ::opencv_caffe::ReshapeParameter* temp = reshape_param_; + reshape_param_ = NULL; + return temp; } inline ::opencv_caffe::ReshapeParameter* LayerParameter::mutable_reshape_param() { set_has_reshape_param(); @@ -19583,21 +21633,22 @@ inline ::opencv_caffe::ReshapeParameter* LayerParameter::mutable_reshape_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.reshape_param) return reshape_param_; } -inline ::opencv_caffe::ReshapeParameter* LayerParameter::release_reshape_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.reshape_param) - clear_has_reshape_param(); - ::opencv_caffe::ReshapeParameter* temp = reshape_param_; - reshape_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_reshape_param(::opencv_caffe::ReshapeParameter* reshape_param) { - delete reshape_param_; - reshape_param_ = reshape_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reshape_param_; + } if (reshape_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + reshape_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reshape_param, submessage_arena); + } set_has_reshape_param(); } else { clear_has_reshape_param(); } + reshape_param_ = reshape_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.reshape_param) } @@ -19612,13 +21663,21 @@ inline void LayerParameter::clear_has_roi_pooling_param() { _has_bits_[1] &= ~0x00800000u; } inline void LayerParameter::clear_roi_pooling_param() { - if (roi_pooling_param_ != NULL) roi_pooling_param_->::opencv_caffe::ROIPoolingParameter::Clear(); + if (roi_pooling_param_ != NULL) roi_pooling_param_->Clear(); clear_has_roi_pooling_param(); } inline const ::opencv_caffe::ROIPoolingParameter& LayerParameter::roi_pooling_param() const { + const ::opencv_caffe::ROIPoolingParameter* p = roi_pooling_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.roi_pooling_param) - return roi_pooling_param_ != NULL ? *roi_pooling_param_ - : *::opencv_caffe::ROIPoolingParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ROIPoolingParameter_default_instance_); +} +inline ::opencv_caffe::ROIPoolingParameter* LayerParameter::release_roi_pooling_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.roi_pooling_param) + clear_has_roi_pooling_param(); + ::opencv_caffe::ROIPoolingParameter* temp = roi_pooling_param_; + roi_pooling_param_ = NULL; + return temp; } inline ::opencv_caffe::ROIPoolingParameter* LayerParameter::mutable_roi_pooling_param() { set_has_roi_pooling_param(); @@ -19628,42 +21687,51 @@ inline ::opencv_caffe::ROIPoolingParameter* LayerParameter::mutable_roi_pooling_ // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.roi_pooling_param) return roi_pooling_param_; } -inline ::opencv_caffe::ROIPoolingParameter* LayerParameter::release_roi_pooling_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.roi_pooling_param) - clear_has_roi_pooling_param(); - ::opencv_caffe::ROIPoolingParameter* temp = roi_pooling_param_; - roi_pooling_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_roi_pooling_param(::opencv_caffe::ROIPoolingParameter* roi_pooling_param) { - delete roi_pooling_param_; - roi_pooling_param_ = roi_pooling_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete roi_pooling_param_; + } if (roi_pooling_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + roi_pooling_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, roi_pooling_param, submessage_arena); + } set_has_roi_pooling_param(); } else { clear_has_roi_pooling_param(); } + roi_pooling_param_ = roi_pooling_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.roi_pooling_param) } // optional .opencv_caffe.ScaleParameter scale_param = 142; inline bool LayerParameter::has_scale_param() const { - return (_has_bits_[1] & 0x01000000u) != 0; + return (_has_bits_[1] & 0x00001000u) != 0; } inline void LayerParameter::set_has_scale_param() { - _has_bits_[1] |= 0x01000000u; + _has_bits_[1] |= 0x00001000u; } inline void LayerParameter::clear_has_scale_param() { - _has_bits_[1] &= ~0x01000000u; + _has_bits_[1] &= ~0x00001000u; } inline void LayerParameter::clear_scale_param() { - if (scale_param_ != NULL) scale_param_->::opencv_caffe::ScaleParameter::Clear(); + if (scale_param_ != NULL) scale_param_->Clear(); clear_has_scale_param(); } inline const ::opencv_caffe::ScaleParameter& LayerParameter::scale_param() const { + const ::opencv_caffe::ScaleParameter* p = scale_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.scale_param) - return scale_param_ != NULL ? *scale_param_ - : *::opencv_caffe::ScaleParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ScaleParameter_default_instance_); +} +inline ::opencv_caffe::ScaleParameter* LayerParameter::release_scale_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.scale_param) + clear_has_scale_param(); + ::opencv_caffe::ScaleParameter* temp = scale_param_; + scale_param_ = NULL; + return temp; } inline ::opencv_caffe::ScaleParameter* LayerParameter::mutable_scale_param() { set_has_scale_param(); @@ -19673,42 +21741,51 @@ inline ::opencv_caffe::ScaleParameter* LayerParameter::mutable_scale_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.scale_param) return scale_param_; } -inline ::opencv_caffe::ScaleParameter* LayerParameter::release_scale_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.scale_param) - clear_has_scale_param(); - ::opencv_caffe::ScaleParameter* temp = scale_param_; - scale_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_scale_param(::opencv_caffe::ScaleParameter* scale_param) { - delete scale_param_; - scale_param_ = scale_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete scale_param_; + } if (scale_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + scale_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scale_param, submessage_arena); + } set_has_scale_param(); } else { clear_has_scale_param(); } + scale_param_ = scale_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.scale_param) } // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124; inline bool LayerParameter::has_sigmoid_param() const { - return (_has_bits_[1] & 0x02000000u) != 0; + return (_has_bits_[0] & 0x04000000u) != 0; } inline void LayerParameter::set_has_sigmoid_param() { - _has_bits_[1] |= 0x02000000u; + _has_bits_[0] |= 0x04000000u; } inline void LayerParameter::clear_has_sigmoid_param() { - _has_bits_[1] &= ~0x02000000u; + _has_bits_[0] &= ~0x04000000u; } inline void LayerParameter::clear_sigmoid_param() { - if (sigmoid_param_ != NULL) sigmoid_param_->::opencv_caffe::SigmoidParameter::Clear(); + if (sigmoid_param_ != NULL) sigmoid_param_->Clear(); clear_has_sigmoid_param(); } inline const ::opencv_caffe::SigmoidParameter& LayerParameter::sigmoid_param() const { + const ::opencv_caffe::SigmoidParameter* p = sigmoid_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.sigmoid_param) - return sigmoid_param_ != NULL ? *sigmoid_param_ - : *::opencv_caffe::SigmoidParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_SigmoidParameter_default_instance_); +} +inline ::opencv_caffe::SigmoidParameter* LayerParameter::release_sigmoid_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.sigmoid_param) + clear_has_sigmoid_param(); + ::opencv_caffe::SigmoidParameter* temp = sigmoid_param_; + sigmoid_param_ = NULL; + return temp; } inline ::opencv_caffe::SigmoidParameter* LayerParameter::mutable_sigmoid_param() { set_has_sigmoid_param(); @@ -19718,42 +21795,51 @@ inline ::opencv_caffe::SigmoidParameter* LayerParameter::mutable_sigmoid_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.sigmoid_param) return sigmoid_param_; } -inline ::opencv_caffe::SigmoidParameter* LayerParameter::release_sigmoid_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.sigmoid_param) - clear_has_sigmoid_param(); - ::opencv_caffe::SigmoidParameter* temp = sigmoid_param_; - sigmoid_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_sigmoid_param(::opencv_caffe::SigmoidParameter* sigmoid_param) { - delete sigmoid_param_; - sigmoid_param_ = sigmoid_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete sigmoid_param_; + } if (sigmoid_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sigmoid_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sigmoid_param, submessage_arena); + } set_has_sigmoid_param(); } else { clear_has_sigmoid_param(); } + sigmoid_param_ = sigmoid_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.sigmoid_param) } // optional .opencv_caffe.SoftmaxParameter softmax_param = 125; inline bool LayerParameter::has_softmax_param() const { - return (_has_bits_[1] & 0x04000000u) != 0; + return (_has_bits_[0] & 0x08000000u) != 0; } inline void LayerParameter::set_has_softmax_param() { - _has_bits_[1] |= 0x04000000u; + _has_bits_[0] |= 0x08000000u; } inline void LayerParameter::clear_has_softmax_param() { - _has_bits_[1] &= ~0x04000000u; + _has_bits_[0] &= ~0x08000000u; } inline void LayerParameter::clear_softmax_param() { - if (softmax_param_ != NULL) softmax_param_->::opencv_caffe::SoftmaxParameter::Clear(); + if (softmax_param_ != NULL) softmax_param_->Clear(); clear_has_softmax_param(); } inline const ::opencv_caffe::SoftmaxParameter& LayerParameter::softmax_param() const { + const ::opencv_caffe::SoftmaxParameter* p = softmax_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.softmax_param) - return softmax_param_ != NULL ? *softmax_param_ - : *::opencv_caffe::SoftmaxParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_SoftmaxParameter_default_instance_); +} +inline ::opencv_caffe::SoftmaxParameter* LayerParameter::release_softmax_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.softmax_param) + clear_has_softmax_param(); + ::opencv_caffe::SoftmaxParameter* temp = softmax_param_; + softmax_param_ = NULL; + return temp; } inline ::opencv_caffe::SoftmaxParameter* LayerParameter::mutable_softmax_param() { set_has_softmax_param(); @@ -19763,42 +21849,51 @@ inline ::opencv_caffe::SoftmaxParameter* LayerParameter::mutable_softmax_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.softmax_param) return softmax_param_; } -inline ::opencv_caffe::SoftmaxParameter* LayerParameter::release_softmax_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.softmax_param) - clear_has_softmax_param(); - ::opencv_caffe::SoftmaxParameter* temp = softmax_param_; - softmax_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_softmax_param(::opencv_caffe::SoftmaxParameter* softmax_param) { - delete softmax_param_; - softmax_param_ = softmax_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete softmax_param_; + } if (softmax_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + softmax_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, softmax_param, submessage_arena); + } set_has_softmax_param(); } else { clear_has_softmax_param(); } + softmax_param_ = softmax_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.softmax_param) } // optional .opencv_caffe.SPPParameter spp_param = 132; inline bool LayerParameter::has_spp_param() const { - return (_has_bits_[1] & 0x08000000u) != 0; + return (_has_bits_[1] & 0x00000004u) != 0; } inline void LayerParameter::set_has_spp_param() { - _has_bits_[1] |= 0x08000000u; + _has_bits_[1] |= 0x00000004u; } inline void LayerParameter::clear_has_spp_param() { - _has_bits_[1] &= ~0x08000000u; + _has_bits_[1] &= ~0x00000004u; } inline void LayerParameter::clear_spp_param() { - if (spp_param_ != NULL) spp_param_->::opencv_caffe::SPPParameter::Clear(); + if (spp_param_ != NULL) spp_param_->Clear(); clear_has_spp_param(); } inline const ::opencv_caffe::SPPParameter& LayerParameter::spp_param() const { + const ::opencv_caffe::SPPParameter* p = spp_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.spp_param) - return spp_param_ != NULL ? *spp_param_ - : *::opencv_caffe::SPPParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_SPPParameter_default_instance_); +} +inline ::opencv_caffe::SPPParameter* LayerParameter::release_spp_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.spp_param) + clear_has_spp_param(); + ::opencv_caffe::SPPParameter* temp = spp_param_; + spp_param_ = NULL; + return temp; } inline ::opencv_caffe::SPPParameter* LayerParameter::mutable_spp_param() { set_has_spp_param(); @@ -19808,42 +21903,51 @@ inline ::opencv_caffe::SPPParameter* LayerParameter::mutable_spp_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.spp_param) return spp_param_; } -inline ::opencv_caffe::SPPParameter* LayerParameter::release_spp_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.spp_param) - clear_has_spp_param(); - ::opencv_caffe::SPPParameter* temp = spp_param_; - spp_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_spp_param(::opencv_caffe::SPPParameter* spp_param) { - delete spp_param_; - spp_param_ = spp_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete spp_param_; + } if (spp_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + spp_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spp_param, submessage_arena); + } set_has_spp_param(); } else { clear_has_spp_param(); } + spp_param_ = spp_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.spp_param) } // optional .opencv_caffe.SliceParameter slice_param = 126; inline bool LayerParameter::has_slice_param() const { - return (_has_bits_[1] & 0x10000000u) != 0; + return (_has_bits_[0] & 0x10000000u) != 0; } inline void LayerParameter::set_has_slice_param() { - _has_bits_[1] |= 0x10000000u; + _has_bits_[0] |= 0x10000000u; } inline void LayerParameter::clear_has_slice_param() { - _has_bits_[1] &= ~0x10000000u; + _has_bits_[0] &= ~0x10000000u; } inline void LayerParameter::clear_slice_param() { - if (slice_param_ != NULL) slice_param_->::opencv_caffe::SliceParameter::Clear(); + if (slice_param_ != NULL) slice_param_->Clear(); clear_has_slice_param(); } inline const ::opencv_caffe::SliceParameter& LayerParameter::slice_param() const { + const ::opencv_caffe::SliceParameter* p = slice_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.slice_param) - return slice_param_ != NULL ? *slice_param_ - : *::opencv_caffe::SliceParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_SliceParameter_default_instance_); +} +inline ::opencv_caffe::SliceParameter* LayerParameter::release_slice_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.slice_param) + clear_has_slice_param(); + ::opencv_caffe::SliceParameter* temp = slice_param_; + slice_param_ = NULL; + return temp; } inline ::opencv_caffe::SliceParameter* LayerParameter::mutable_slice_param() { set_has_slice_param(); @@ -19853,42 +21957,51 @@ inline ::opencv_caffe::SliceParameter* LayerParameter::mutable_slice_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.slice_param) return slice_param_; } -inline ::opencv_caffe::SliceParameter* LayerParameter::release_slice_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.slice_param) - clear_has_slice_param(); - ::opencv_caffe::SliceParameter* temp = slice_param_; - slice_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_slice_param(::opencv_caffe::SliceParameter* slice_param) { - delete slice_param_; - slice_param_ = slice_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete slice_param_; + } if (slice_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + slice_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, slice_param, submessage_arena); + } set_has_slice_param(); } else { clear_has_slice_param(); } + slice_param_ = slice_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.slice_param) } // optional .opencv_caffe.TanHParameter tanh_param = 127; inline bool LayerParameter::has_tanh_param() const { - return (_has_bits_[1] & 0x20000000u) != 0; + return (_has_bits_[0] & 0x20000000u) != 0; } inline void LayerParameter::set_has_tanh_param() { - _has_bits_[1] |= 0x20000000u; + _has_bits_[0] |= 0x20000000u; } inline void LayerParameter::clear_has_tanh_param() { - _has_bits_[1] &= ~0x20000000u; + _has_bits_[0] &= ~0x20000000u; } inline void LayerParameter::clear_tanh_param() { - if (tanh_param_ != NULL) tanh_param_->::opencv_caffe::TanHParameter::Clear(); + if (tanh_param_ != NULL) tanh_param_->Clear(); clear_has_tanh_param(); } inline const ::opencv_caffe::TanHParameter& LayerParameter::tanh_param() const { + const ::opencv_caffe::TanHParameter* p = tanh_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.tanh_param) - return tanh_param_ != NULL ? *tanh_param_ - : *::opencv_caffe::TanHParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_TanHParameter_default_instance_); +} +inline ::opencv_caffe::TanHParameter* LayerParameter::release_tanh_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.tanh_param) + clear_has_tanh_param(); + ::opencv_caffe::TanHParameter* temp = tanh_param_; + tanh_param_ = NULL; + return temp; } inline ::opencv_caffe::TanHParameter* LayerParameter::mutable_tanh_param() { set_has_tanh_param(); @@ -19898,42 +22011,51 @@ inline ::opencv_caffe::TanHParameter* LayerParameter::mutable_tanh_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.tanh_param) return tanh_param_; } -inline ::opencv_caffe::TanHParameter* LayerParameter::release_tanh_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.tanh_param) - clear_has_tanh_param(); - ::opencv_caffe::TanHParameter* temp = tanh_param_; - tanh_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_tanh_param(::opencv_caffe::TanHParameter* tanh_param) { - delete tanh_param_; - tanh_param_ = tanh_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete tanh_param_; + } if (tanh_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + tanh_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tanh_param, submessage_arena); + } set_has_tanh_param(); } else { clear_has_tanh_param(); } + tanh_param_ = tanh_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.tanh_param) } // optional .opencv_caffe.ThresholdParameter threshold_param = 128; inline bool LayerParameter::has_threshold_param() const { - return (_has_bits_[1] & 0x40000000u) != 0; + return (_has_bits_[0] & 0x40000000u) != 0; } inline void LayerParameter::set_has_threshold_param() { - _has_bits_[1] |= 0x40000000u; + _has_bits_[0] |= 0x40000000u; } inline void LayerParameter::clear_has_threshold_param() { - _has_bits_[1] &= ~0x40000000u; + _has_bits_[0] &= ~0x40000000u; } inline void LayerParameter::clear_threshold_param() { - if (threshold_param_ != NULL) threshold_param_->::opencv_caffe::ThresholdParameter::Clear(); + if (threshold_param_ != NULL) threshold_param_->Clear(); clear_has_threshold_param(); } inline const ::opencv_caffe::ThresholdParameter& LayerParameter::threshold_param() const { + const ::opencv_caffe::ThresholdParameter* p = threshold_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.threshold_param) - return threshold_param_ != NULL ? *threshold_param_ - : *::opencv_caffe::ThresholdParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ThresholdParameter_default_instance_); +} +inline ::opencv_caffe::ThresholdParameter* LayerParameter::release_threshold_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.threshold_param) + clear_has_threshold_param(); + ::opencv_caffe::ThresholdParameter* temp = threshold_param_; + threshold_param_ = NULL; + return temp; } inline ::opencv_caffe::ThresholdParameter* LayerParameter::mutable_threshold_param() { set_has_threshold_param(); @@ -19943,42 +22065,51 @@ inline ::opencv_caffe::ThresholdParameter* LayerParameter::mutable_threshold_par // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.threshold_param) return threshold_param_; } -inline ::opencv_caffe::ThresholdParameter* LayerParameter::release_threshold_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.threshold_param) - clear_has_threshold_param(); - ::opencv_caffe::ThresholdParameter* temp = threshold_param_; - threshold_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_threshold_param(::opencv_caffe::ThresholdParameter* threshold_param) { - delete threshold_param_; - threshold_param_ = threshold_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete threshold_param_; + } if (threshold_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + threshold_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, threshold_param, submessage_arena); + } set_has_threshold_param(); } else { clear_has_threshold_param(); } + threshold_param_ = threshold_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.threshold_param) } // optional .opencv_caffe.TileParameter tile_param = 138; inline bool LayerParameter::has_tile_param() const { - return (_has_bits_[1] & 0x80000000u) != 0; + return (_has_bits_[1] & 0x00000100u) != 0; } inline void LayerParameter::set_has_tile_param() { - _has_bits_[1] |= 0x80000000u; + _has_bits_[1] |= 0x00000100u; } inline void LayerParameter::clear_has_tile_param() { - _has_bits_[1] &= ~0x80000000u; + _has_bits_[1] &= ~0x00000100u; } inline void LayerParameter::clear_tile_param() { - if (tile_param_ != NULL) tile_param_->::opencv_caffe::TileParameter::Clear(); + if (tile_param_ != NULL) tile_param_->Clear(); clear_has_tile_param(); } inline const ::opencv_caffe::TileParameter& LayerParameter::tile_param() const { + const ::opencv_caffe::TileParameter* p = tile_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.tile_param) - return tile_param_ != NULL ? *tile_param_ - : *::opencv_caffe::TileParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_TileParameter_default_instance_); +} +inline ::opencv_caffe::TileParameter* LayerParameter::release_tile_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.tile_param) + clear_has_tile_param(); + ::opencv_caffe::TileParameter* temp = tile_param_; + tile_param_ = NULL; + return temp; } inline ::opencv_caffe::TileParameter* LayerParameter::mutable_tile_param() { set_has_tile_param(); @@ -19988,42 +22119,51 @@ inline ::opencv_caffe::TileParameter* LayerParameter::mutable_tile_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.tile_param) return tile_param_; } -inline ::opencv_caffe::TileParameter* LayerParameter::release_tile_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.tile_param) - clear_has_tile_param(); - ::opencv_caffe::TileParameter* temp = tile_param_; - tile_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_tile_param(::opencv_caffe::TileParameter* tile_param) { - delete tile_param_; - tile_param_ = tile_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete tile_param_; + } if (tile_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + tile_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tile_param, submessage_arena); + } set_has_tile_param(); } else { clear_has_tile_param(); } + tile_param_ = tile_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.tile_param) } // optional .opencv_caffe.WindowDataParameter window_data_param = 129; inline bool LayerParameter::has_window_data_param() const { - return (_has_bits_[2] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x80000000u) != 0; } inline void LayerParameter::set_has_window_data_param() { - _has_bits_[2] |= 0x00000001u; + _has_bits_[0] |= 0x80000000u; } inline void LayerParameter::clear_has_window_data_param() { - _has_bits_[2] &= ~0x00000001u; + _has_bits_[0] &= ~0x80000000u; } inline void LayerParameter::clear_window_data_param() { - if (window_data_param_ != NULL) window_data_param_->::opencv_caffe::WindowDataParameter::Clear(); + if (window_data_param_ != NULL) window_data_param_->Clear(); clear_has_window_data_param(); } inline const ::opencv_caffe::WindowDataParameter& LayerParameter::window_data_param() const { + const ::opencv_caffe::WindowDataParameter* p = window_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.LayerParameter.window_data_param) - return window_data_param_ != NULL ? *window_data_param_ - : *::opencv_caffe::WindowDataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_WindowDataParameter_default_instance_); +} +inline ::opencv_caffe::WindowDataParameter* LayerParameter::release_window_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.window_data_param) + clear_has_window_data_param(); + ::opencv_caffe::WindowDataParameter* temp = window_data_param_; + window_data_param_ = NULL; + return temp; } inline ::opencv_caffe::WindowDataParameter* LayerParameter::mutable_window_data_param() { set_has_window_data_param(); @@ -20033,40 +22173,38 @@ inline ::opencv_caffe::WindowDataParameter* LayerParameter::mutable_window_data_ // @@protoc_insertion_point(field_mutable:opencv_caffe.LayerParameter.window_data_param) return window_data_param_; } -inline ::opencv_caffe::WindowDataParameter* LayerParameter::release_window_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.LayerParameter.window_data_param) - clear_has_window_data_param(); - ::opencv_caffe::WindowDataParameter* temp = window_data_param_; - window_data_param_ = NULL; - return temp; -} inline void LayerParameter::set_allocated_window_data_param(::opencv_caffe::WindowDataParameter* window_data_param) { - delete window_data_param_; - window_data_param_ = window_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete window_data_param_; + } if (window_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + window_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, window_data_param, submessage_arena); + } set_has_window_data_param(); } else { clear_has_window_data_param(); } + window_data_param_ = window_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.LayerParameter.window_data_param) } -inline const LayerParameter* LayerParameter::internal_default_instance() { - return &LayerParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // TransformationParameter // optional float scale = 1 [default = 1]; inline bool TransformationParameter::has_scale() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void TransformationParameter::set_has_scale() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000020u; } inline void TransformationParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000020u; } inline void TransformationParameter::clear_scale() { scale_ = 1; @@ -20084,13 +22222,13 @@ inline void TransformationParameter::set_scale(float value) { // optional bool mirror = 2 [default = false]; inline bool TransformationParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void TransformationParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void TransformationParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void TransformationParameter::clear_mirror() { mirror_ = false; @@ -20108,13 +22246,13 @@ inline void TransformationParameter::set_mirror(bool value) { // optional uint32 crop_size = 3 [default = 0]; inline bool TransformationParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void TransformationParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000002u; } inline void TransformationParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000002u; } inline void TransformationParameter::clear_crop_size() { crop_size_ = 0u; @@ -20132,13 +22270,13 @@ inline void TransformationParameter::set_crop_size(::google::protobuf::uint32 va // optional string mean_file = 4; inline bool TransformationParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void TransformationParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000001u; } inline void TransformationParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000001u; } inline void TransformationParameter::clear_mean_file() { mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -20146,14 +22284,23 @@ inline void TransformationParameter::clear_mean_file() { } inline const ::std::string& TransformationParameter::mean_file() const { // @@protoc_insertion_point(field_get:opencv_caffe.TransformationParameter.mean_file) - return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return mean_file_.GetNoArena(); } inline void TransformationParameter::set_mean_file(const ::std::string& value) { set_has_mean_file(); mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.TransformationParameter.mean_file) } +#if LANG_CXX11 +inline void TransformationParameter::set_mean_file(::std::string&& value) { + set_has_mean_file(); + mean_file_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.TransformationParameter.mean_file) +} +#endif inline void TransformationParameter::set_mean_file(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_mean_file(); mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.TransformationParameter.mean_file) @@ -20216,13 +22363,13 @@ TransformationParameter::mutable_mean_value() { // optional bool force_color = 6 [default = false]; inline bool TransformationParameter::has_force_color() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void TransformationParameter::set_has_force_color() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000008u; } inline void TransformationParameter::clear_has_force_color() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000008u; } inline void TransformationParameter::clear_force_color() { force_color_ = false; @@ -20240,13 +22387,13 @@ inline void TransformationParameter::set_force_color(bool value) { // optional bool force_gray = 7 [default = false]; inline bool TransformationParameter::has_force_gray() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void TransformationParameter::set_has_force_gray() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000010u; } inline void TransformationParameter::clear_has_force_gray() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000010u; } inline void TransformationParameter::clear_force_gray() { force_gray_ = false; @@ -20262,9 +22409,6 @@ inline void TransformationParameter::set_force_gray(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.TransformationParameter.force_gray) } -inline const TransformationParameter* TransformationParameter::internal_default_instance() { - return &TransformationParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // LossParameter @@ -20295,13 +22439,13 @@ inline void LossParameter::set_ignore_label(::google::protobuf::int32 value) { // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID]; inline bool LossParameter::has_normalization() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void LossParameter::set_has_normalization() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void LossParameter::clear_has_normalization() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void LossParameter::clear_normalization() { normalization_ = 1; @@ -20320,13 +22464,13 @@ inline void LossParameter::set_normalization(::opencv_caffe::LossParameter_Norma // optional bool normalize = 2; inline bool LossParameter::has_normalize() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void LossParameter::set_has_normalize() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000002u; } inline void LossParameter::clear_has_normalize() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000002u; } inline void LossParameter::clear_normalize() { normalize_ = false; @@ -20342,22 +22486,19 @@ inline void LossParameter::set_normalize(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.LossParameter.normalize) } -inline const LossParameter* LossParameter::internal_default_instance() { - return &LossParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // AccuracyParameter // optional uint32 top_k = 1 [default = 1]; inline bool AccuracyParameter::has_top_k() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void AccuracyParameter::set_has_top_k() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void AccuracyParameter::clear_has_top_k() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void AccuracyParameter::clear_top_k() { top_k_ = 1u; @@ -20375,13 +22516,13 @@ inline void AccuracyParameter::set_top_k(::google::protobuf::uint32 value) { // optional int32 axis = 2 [default = 1]; inline bool AccuracyParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void AccuracyParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void AccuracyParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void AccuracyParameter::clear_axis() { axis_ = 1; @@ -20399,13 +22540,13 @@ inline void AccuracyParameter::set_axis(::google::protobuf::int32 value) { // optional int32 ignore_label = 3; inline bool AccuracyParameter::has_ignore_label() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void AccuracyParameter::set_has_ignore_label() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void AccuracyParameter::clear_has_ignore_label() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void AccuracyParameter::clear_ignore_label() { ignore_label_ = 0; @@ -20421,9 +22562,6 @@ inline void AccuracyParameter::set_ignore_label(::google::protobuf::int32 value) // @@protoc_insertion_point(field_set:opencv_caffe.AccuracyParameter.ignore_label) } -inline const AccuracyParameter* AccuracyParameter::internal_default_instance() { - return &AccuracyParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ArgMaxParameter @@ -20454,13 +22592,13 @@ inline void ArgMaxParameter::set_out_max_val(bool value) { // optional uint32 top_k = 2 [default = 1]; inline bool ArgMaxParameter::has_top_k() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void ArgMaxParameter::set_has_top_k() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void ArgMaxParameter::clear_has_top_k() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void ArgMaxParameter::clear_top_k() { top_k_ = 1u; @@ -20478,13 +22616,13 @@ inline void ArgMaxParameter::set_top_k(::google::protobuf::uint32 value) { // optional int32 axis = 3; inline bool ArgMaxParameter::has_axis() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ArgMaxParameter::set_has_axis() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000002u; } inline void ArgMaxParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000002u; } inline void ArgMaxParameter::clear_axis() { axis_ = 0; @@ -20500,22 +22638,19 @@ inline void ArgMaxParameter::set_axis(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.ArgMaxParameter.axis) } -inline const ArgMaxParameter* ArgMaxParameter::internal_default_instance() { - return &ArgMaxParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ConcatParameter // optional int32 axis = 2 [default = 1]; inline bool ConcatParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ConcatParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void ConcatParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void ConcatParameter::clear_axis() { axis_ = 1; @@ -20533,13 +22668,13 @@ inline void ConcatParameter::set_axis(::google::protobuf::int32 value) { // optional uint32 concat_dim = 1 [default = 1]; inline bool ConcatParameter::has_concat_dim() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ConcatParameter::set_has_concat_dim() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void ConcatParameter::clear_has_concat_dim() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void ConcatParameter::clear_concat_dim() { concat_dim_ = 1u; @@ -20555,9 +22690,6 @@ inline void ConcatParameter::set_concat_dim(::google::protobuf::uint32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.ConcatParameter.concat_dim) } -inline const ConcatParameter* ConcatParameter::internal_default_instance() { - return &ConcatParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // BatchNormParameter @@ -20634,22 +22766,19 @@ inline void BatchNormParameter::set_eps(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.BatchNormParameter.eps) } -inline const BatchNormParameter* BatchNormParameter::internal_default_instance() { - return &BatchNormParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // BiasParameter // optional int32 axis = 1 [default = 1]; inline bool BiasParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void BiasParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void BiasParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void BiasParameter::clear_axis() { axis_ = 1; @@ -20667,13 +22796,13 @@ inline void BiasParameter::set_axis(::google::protobuf::int32 value) { // optional int32 num_axes = 2 [default = 1]; inline bool BiasParameter::has_num_axes() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void BiasParameter::set_has_num_axes() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void BiasParameter::clear_has_num_axes() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void BiasParameter::clear_num_axes() { num_axes_ = 1; @@ -20691,22 +22820,30 @@ inline void BiasParameter::set_num_axes(::google::protobuf::int32 value) { // optional .opencv_caffe.FillerParameter filler = 3; inline bool BiasParameter::has_filler() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void BiasParameter::set_has_filler() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void BiasParameter::clear_has_filler() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void BiasParameter::clear_filler() { - if (filler_ != NULL) filler_->::opencv_caffe::FillerParameter::Clear(); + if (filler_ != NULL) filler_->Clear(); clear_has_filler(); } inline const ::opencv_caffe::FillerParameter& BiasParameter::filler() const { + const ::opencv_caffe::FillerParameter* p = filler_; // @@protoc_insertion_point(field_get:opencv_caffe.BiasParameter.filler) - return filler_ != NULL ? *filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* BiasParameter::release_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.BiasParameter.filler) + clear_has_filler(); + ::opencv_caffe::FillerParameter* temp = filler_; + filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* BiasParameter::mutable_filler() { set_has_filler(); @@ -20716,40 +22853,38 @@ inline ::opencv_caffe::FillerParameter* BiasParameter::mutable_filler() { // @@protoc_insertion_point(field_mutable:opencv_caffe.BiasParameter.filler) return filler_; } -inline ::opencv_caffe::FillerParameter* BiasParameter::release_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.BiasParameter.filler) - clear_has_filler(); - ::opencv_caffe::FillerParameter* temp = filler_; - filler_ = NULL; - return temp; -} inline void BiasParameter::set_allocated_filler(::opencv_caffe::FillerParameter* filler) { - delete filler_; - filler_ = filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete filler_; + } if (filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, filler, submessage_arena); + } set_has_filler(); } else { clear_has_filler(); } + filler_ = filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.BiasParameter.filler) } -inline const BiasParameter* BiasParameter::internal_default_instance() { - return &BiasParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ContrastiveLossParameter // optional float margin = 1 [default = 1]; inline bool ContrastiveLossParameter::has_margin() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ContrastiveLossParameter::set_has_margin() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void ContrastiveLossParameter::clear_has_margin() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void ContrastiveLossParameter::clear_margin() { margin_ = 1; @@ -20767,13 +22902,13 @@ inline void ContrastiveLossParameter::set_margin(float value) { // optional bool legacy_version = 2 [default = false]; inline bool ContrastiveLossParameter::has_legacy_version() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ContrastiveLossParameter::set_has_legacy_version() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void ContrastiveLossParameter::clear_has_legacy_version() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void ContrastiveLossParameter::clear_legacy_version() { legacy_version_ = false; @@ -20789,22 +22924,19 @@ inline void ContrastiveLossParameter::set_legacy_version(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.ContrastiveLossParameter.legacy_version) } -inline const ContrastiveLossParameter* ContrastiveLossParameter::internal_default_instance() { - return &ContrastiveLossParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ConvolutionParameter // optional uint32 num_output = 1; inline bool ConvolutionParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void ConvolutionParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000004u; } inline void ConvolutionParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000004u; } inline void ConvolutionParameter::clear_num_output() { num_output_ = 0u; @@ -20822,13 +22954,13 @@ inline void ConvolutionParameter::set_num_output(::google::protobuf::uint32 valu // optional bool bias_term = 2 [default = true]; inline bool ConvolutionParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00001000u) != 0; } inline void ConvolutionParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00001000u; } inline void ConvolutionParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00001000u; } inline void ConvolutionParameter::clear_bias_term() { bias_term_ = true; @@ -20966,13 +23098,13 @@ ConvolutionParameter::mutable_dilation() { // optional uint32 pad_h = 9 [default = 0]; inline bool ConvolutionParameter::has_pad_h() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void ConvolutionParameter::set_has_pad_h() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000008u; } inline void ConvolutionParameter::clear_has_pad_h() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000008u; } inline void ConvolutionParameter::clear_pad_h() { pad_h_ = 0u; @@ -20990,13 +23122,13 @@ inline void ConvolutionParameter::set_pad_h(::google::protobuf::uint32 value) { // optional uint32 pad_w = 10 [default = 0]; inline bool ConvolutionParameter::has_pad_w() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void ConvolutionParameter::set_has_pad_w() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000010u; } inline void ConvolutionParameter::clear_has_pad_w() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000010u; } inline void ConvolutionParameter::clear_pad_w() { pad_w_ = 0u; @@ -21014,13 +23146,13 @@ inline void ConvolutionParameter::set_pad_w(::google::protobuf::uint32 value) { // optional uint32 kernel_h = 11; inline bool ConvolutionParameter::has_kernel_h() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void ConvolutionParameter::set_has_kernel_h() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000020u; } inline void ConvolutionParameter::clear_has_kernel_h() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000020u; } inline void ConvolutionParameter::clear_kernel_h() { kernel_h_ = 0u; @@ -21038,13 +23170,13 @@ inline void ConvolutionParameter::set_kernel_h(::google::protobuf::uint32 value) // optional uint32 kernel_w = 12; inline bool ConvolutionParameter::has_kernel_w() const { - return (_has_bits_[0] & 0x00000200u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void ConvolutionParameter::set_has_kernel_w() { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x00000040u; } inline void ConvolutionParameter::clear_has_kernel_w() { - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x00000040u; } inline void ConvolutionParameter::clear_kernel_w() { kernel_w_ = 0u; @@ -21062,13 +23194,13 @@ inline void ConvolutionParameter::set_kernel_w(::google::protobuf::uint32 value) // optional uint32 stride_h = 13; inline bool ConvolutionParameter::has_stride_h() const { - return (_has_bits_[0] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void ConvolutionParameter::set_has_stride_h() { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00000080u; } inline void ConvolutionParameter::clear_has_stride_h() { - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000080u; } inline void ConvolutionParameter::clear_stride_h() { stride_h_ = 0u; @@ -21086,13 +23218,13 @@ inline void ConvolutionParameter::set_stride_h(::google::protobuf::uint32 value) // optional uint32 stride_w = 14; inline bool ConvolutionParameter::has_stride_w() const { - return (_has_bits_[0] & 0x00000800u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void ConvolutionParameter::set_has_stride_w() { - _has_bits_[0] |= 0x00000800u; + _has_bits_[0] |= 0x00000100u; } inline void ConvolutionParameter::clear_has_stride_w() { - _has_bits_[0] &= ~0x00000800u; + _has_bits_[0] &= ~0x00000100u; } inline void ConvolutionParameter::clear_stride_w() { stride_w_ = 0u; @@ -21110,13 +23242,13 @@ inline void ConvolutionParameter::set_stride_w(::google::protobuf::uint32 value) // optional uint32 group = 5 [default = 1]; inline bool ConvolutionParameter::has_group() const { - return (_has_bits_[0] & 0x00001000u) != 0; + return (_has_bits_[0] & 0x00002000u) != 0; } inline void ConvolutionParameter::set_has_group() { - _has_bits_[0] |= 0x00001000u; + _has_bits_[0] |= 0x00002000u; } inline void ConvolutionParameter::clear_has_group() { - _has_bits_[0] &= ~0x00001000u; + _has_bits_[0] &= ~0x00002000u; } inline void ConvolutionParameter::clear_group() { group_ = 1u; @@ -21134,22 +23266,30 @@ inline void ConvolutionParameter::set_group(::google::protobuf::uint32 value) { // optional .opencv_caffe.FillerParameter weight_filler = 7; inline bool ConvolutionParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00002000u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ConvolutionParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00002000u; + _has_bits_[0] |= 0x00000001u; } inline void ConvolutionParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00002000u; + _has_bits_[0] &= ~0x00000001u; } inline void ConvolutionParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); + if (weight_filler_ != NULL) weight_filler_->Clear(); clear_has_weight_filler(); } inline const ::opencv_caffe::FillerParameter& ConvolutionParameter::weight_filler() const { + const ::opencv_caffe::FillerParameter* p = weight_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* ConvolutionParameter::release_weight_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.ConvolutionParameter.weight_filler) + clear_has_weight_filler(); + ::opencv_caffe::FillerParameter* temp = weight_filler_; + weight_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* ConvolutionParameter::mutable_weight_filler() { set_has_weight_filler(); @@ -21159,42 +23299,51 @@ inline ::opencv_caffe::FillerParameter* ConvolutionParameter::mutable_weight_fil // @@protoc_insertion_point(field_mutable:opencv_caffe.ConvolutionParameter.weight_filler) return weight_filler_; } -inline ::opencv_caffe::FillerParameter* ConvolutionParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.ConvolutionParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} inline void ConvolutionParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete weight_filler_; + } if (weight_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + weight_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, weight_filler, submessage_arena); + } set_has_weight_filler(); } else { clear_has_weight_filler(); } + weight_filler_ = weight_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ConvolutionParameter.weight_filler) } // optional .opencv_caffe.FillerParameter bias_filler = 8; inline bool ConvolutionParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00004000u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ConvolutionParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00004000u; + _has_bits_[0] |= 0x00000002u; } inline void ConvolutionParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00004000u; + _has_bits_[0] &= ~0x00000002u; } inline void ConvolutionParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); + if (bias_filler_ != NULL) bias_filler_->Clear(); clear_has_bias_filler(); } inline const ::opencv_caffe::FillerParameter& ConvolutionParameter::bias_filler() const { + const ::opencv_caffe::FillerParameter* p = bias_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.ConvolutionParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* ConvolutionParameter::release_bias_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.ConvolutionParameter.bias_filler) + clear_has_bias_filler(); + ::opencv_caffe::FillerParameter* temp = bias_filler_; + bias_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* ConvolutionParameter::mutable_bias_filler() { set_has_bias_filler(); @@ -21204,33 +23353,34 @@ inline ::opencv_caffe::FillerParameter* ConvolutionParameter::mutable_bias_fille // @@protoc_insertion_point(field_mutable:opencv_caffe.ConvolutionParameter.bias_filler) return bias_filler_; } -inline ::opencv_caffe::FillerParameter* ConvolutionParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.ConvolutionParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} inline void ConvolutionParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete bias_filler_; + } if (bias_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + bias_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, bias_filler, submessage_arena); + } set_has_bias_filler(); } else { clear_has_bias_filler(); } + bias_filler_ = bias_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ConvolutionParameter.bias_filler) } // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT]; inline bool ConvolutionParameter::has_engine() const { - return (_has_bits_[0] & 0x00008000u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void ConvolutionParameter::set_has_engine() { - _has_bits_[0] |= 0x00008000u; + _has_bits_[0] |= 0x00000200u; } inline void ConvolutionParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00008000u; + _has_bits_[0] &= ~0x00000200u; } inline void ConvolutionParameter::clear_engine() { engine_ = 0; @@ -21249,13 +23399,13 @@ inline void ConvolutionParameter::set_engine(::opencv_caffe::ConvolutionParamete // optional int32 axis = 16 [default = 1]; inline bool ConvolutionParameter::has_axis() const { - return (_has_bits_[0] & 0x00010000u) != 0; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void ConvolutionParameter::set_has_axis() { - _has_bits_[0] |= 0x00010000u; + _has_bits_[0] |= 0x00000800u; } inline void ConvolutionParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00010000u; + _has_bits_[0] &= ~0x00000800u; } inline void ConvolutionParameter::clear_axis() { axis_ = 1; @@ -21273,13 +23423,13 @@ inline void ConvolutionParameter::set_axis(::google::protobuf::int32 value) { // optional bool force_nd_im2col = 17 [default = false]; inline bool ConvolutionParameter::has_force_nd_im2col() const { - return (_has_bits_[0] & 0x00020000u) != 0; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void ConvolutionParameter::set_has_force_nd_im2col() { - _has_bits_[0] |= 0x00020000u; + _has_bits_[0] |= 0x00000400u; } inline void ConvolutionParameter::clear_has_force_nd_im2col() { - _has_bits_[0] &= ~0x00020000u; + _has_bits_[0] &= ~0x00000400u; } inline void ConvolutionParameter::clear_force_nd_im2col() { force_nd_im2col_ = false; @@ -21295,9 +23445,6 @@ inline void ConvolutionParameter::set_force_nd_im2col(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.ConvolutionParameter.force_nd_im2col) } -inline const ConvolutionParameter* ConvolutionParameter::internal_default_instance() { - return &ConvolutionParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // CropParameter @@ -21356,9 +23503,6 @@ CropParameter::mutable_offset() { return &offset_; } -inline const CropParameter* CropParameter::internal_default_instance() { - return &CropParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // DataParameter @@ -21379,14 +23523,23 @@ inline void DataParameter::clear_source() { } inline const ::std::string& DataParameter::source() const { // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return source_.GetNoArena(); } inline void DataParameter::set_source(const ::std::string& value) { set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.source) } +#if LANG_CXX11 +inline void DataParameter::set_source(::std::string&& value) { + set_has_source(); + source_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.DataParameter.source) +} +#endif inline void DataParameter::set_source(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.DataParameter.source) @@ -21419,13 +23572,13 @@ inline void DataParameter::set_allocated_source(::std::string* source) { // optional uint32 batch_size = 4; inline bool DataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void DataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void DataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void DataParameter::clear_batch_size() { batch_size_ = 0u; @@ -21443,13 +23596,13 @@ inline void DataParameter::set_batch_size(::google::protobuf::uint32 value) { // optional uint32 rand_skip = 7 [default = 0]; inline bool DataParameter::has_rand_skip() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void DataParameter::set_has_rand_skip() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000010u; } inline void DataParameter::clear_has_rand_skip() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000010u; } inline void DataParameter::clear_rand_skip() { rand_skip_ = 0u; @@ -21467,13 +23620,13 @@ inline void DataParameter::set_rand_skip(::google::protobuf::uint32 value) { // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB]; inline bool DataParameter::has_backend() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void DataParameter::set_has_backend() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000080u; } inline void DataParameter::clear_has_backend() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000080u; } inline void DataParameter::clear_backend() { backend_ = 0; @@ -21492,13 +23645,13 @@ inline void DataParameter::set_backend(::opencv_caffe::DataParameter_DB value) { // optional float scale = 2 [default = 1]; inline bool DataParameter::has_scale() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void DataParameter::set_has_scale() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000100u; } inline void DataParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000100u; } inline void DataParameter::clear_scale() { scale_ = 1; @@ -21516,13 +23669,13 @@ inline void DataParameter::set_scale(float value) { // optional string mean_file = 3; inline bool DataParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void DataParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000002u; } inline void DataParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000002u; } inline void DataParameter::clear_mean_file() { mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -21530,14 +23683,23 @@ inline void DataParameter::clear_mean_file() { } inline const ::std::string& DataParameter::mean_file() const { // @@protoc_insertion_point(field_get:opencv_caffe.DataParameter.mean_file) - return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return mean_file_.GetNoArena(); } inline void DataParameter::set_mean_file(const ::std::string& value) { set_has_mean_file(); mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.mean_file) } +#if LANG_CXX11 +inline void DataParameter::set_mean_file(::std::string&& value) { + set_has_mean_file(); + mean_file_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.DataParameter.mean_file) +} +#endif inline void DataParameter::set_mean_file(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_mean_file(); mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.DataParameter.mean_file) @@ -21570,13 +23732,13 @@ inline void DataParameter::set_allocated_mean_file(::std::string* mean_file) { // optional uint32 crop_size = 5 [default = 0]; inline bool DataParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void DataParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000008u; } inline void DataParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000008u; } inline void DataParameter::clear_crop_size() { crop_size_ = 0u; @@ -21594,13 +23756,13 @@ inline void DataParameter::set_crop_size(::google::protobuf::uint32 value) { // optional bool mirror = 6 [default = false]; inline bool DataParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void DataParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000020u; } inline void DataParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000020u; } inline void DataParameter::clear_mirror() { mirror_ = false; @@ -21618,13 +23780,13 @@ inline void DataParameter::set_mirror(bool value) { // optional bool force_encoded_color = 9 [default = false]; inline bool DataParameter::has_force_encoded_color() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void DataParameter::set_has_force_encoded_color() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000040u; } inline void DataParameter::clear_has_force_encoded_color() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000040u; } inline void DataParameter::clear_force_encoded_color() { force_encoded_color_ = false; @@ -21664,22 +23826,19 @@ inline void DataParameter::set_prefetch(::google::protobuf::uint32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.DataParameter.prefetch) } -inline const DataParameter* DataParameter::internal_default_instance() { - return &DataParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // NonMaximumSuppressionParameter // optional float nms_threshold = 1 [default = 0.3]; inline bool NonMaximumSuppressionParameter::has_nms_threshold() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void NonMaximumSuppressionParameter::set_has_nms_threshold() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void NonMaximumSuppressionParameter::clear_has_nms_threshold() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void NonMaximumSuppressionParameter::clear_nms_threshold() { nms_threshold_ = 0.3f; @@ -21697,13 +23856,13 @@ inline void NonMaximumSuppressionParameter::set_nms_threshold(float value) { // optional int32 top_k = 2; inline bool NonMaximumSuppressionParameter::has_top_k() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void NonMaximumSuppressionParameter::set_has_top_k() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void NonMaximumSuppressionParameter::clear_has_top_k() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void NonMaximumSuppressionParameter::clear_top_k() { top_k_ = 0; @@ -21743,9 +23902,6 @@ inline void NonMaximumSuppressionParameter::set_eta(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.NonMaximumSuppressionParameter.eta) } -inline const NonMaximumSuppressionParameter* NonMaximumSuppressionParameter::internal_default_instance() { - return &NonMaximumSuppressionParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // SaveOutputParameter @@ -21766,14 +23922,23 @@ inline void SaveOutputParameter::clear_output_directory() { } inline const ::std::string& SaveOutputParameter::output_directory() const { // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.output_directory) - return output_directory_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return output_directory_.GetNoArena(); } inline void SaveOutputParameter::set_output_directory(const ::std::string& value) { set_has_output_directory(); output_directory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.output_directory) } +#if LANG_CXX11 +inline void SaveOutputParameter::set_output_directory(::std::string&& value) { + set_has_output_directory(); + output_directory_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SaveOutputParameter.output_directory) +} +#endif inline void SaveOutputParameter::set_output_directory(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_output_directory(); output_directory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.output_directory) @@ -21820,14 +23985,23 @@ inline void SaveOutputParameter::clear_output_name_prefix() { } inline const ::std::string& SaveOutputParameter::output_name_prefix() const { // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.output_name_prefix) - return output_name_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return output_name_prefix_.GetNoArena(); } inline void SaveOutputParameter::set_output_name_prefix(const ::std::string& value) { set_has_output_name_prefix(); output_name_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.output_name_prefix) } +#if LANG_CXX11 +inline void SaveOutputParameter::set_output_name_prefix(::std::string&& value) { + set_has_output_name_prefix(); + output_name_prefix_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SaveOutputParameter.output_name_prefix) +} +#endif inline void SaveOutputParameter::set_output_name_prefix(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_output_name_prefix(); output_name_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.output_name_prefix) @@ -21874,14 +24048,23 @@ inline void SaveOutputParameter::clear_output_format() { } inline const ::std::string& SaveOutputParameter::output_format() const { // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.output_format) - return output_format_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return output_format_.GetNoArena(); } inline void SaveOutputParameter::set_output_format(const ::std::string& value) { set_has_output_format(); output_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.output_format) } +#if LANG_CXX11 +inline void SaveOutputParameter::set_output_format(::std::string&& value) { + set_has_output_format(); + output_format_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SaveOutputParameter.output_format) +} +#endif inline void SaveOutputParameter::set_output_format(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_output_format(); output_format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.output_format) @@ -21928,14 +24111,23 @@ inline void SaveOutputParameter::clear_label_map_file() { } inline const ::std::string& SaveOutputParameter::label_map_file() const { // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.label_map_file) - return label_map_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return label_map_file_.GetNoArena(); } inline void SaveOutputParameter::set_label_map_file(const ::std::string& value) { set_has_label_map_file(); label_map_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.label_map_file) } +#if LANG_CXX11 +inline void SaveOutputParameter::set_label_map_file(::std::string&& value) { + set_has_label_map_file(); + label_map_file_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SaveOutputParameter.label_map_file) +} +#endif inline void SaveOutputParameter::set_label_map_file(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_label_map_file(); label_map_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.label_map_file) @@ -21982,14 +24174,23 @@ inline void SaveOutputParameter::clear_name_size_file() { } inline const ::std::string& SaveOutputParameter::name_size_file() const { // @@protoc_insertion_point(field_get:opencv_caffe.SaveOutputParameter.name_size_file) - return name_size_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_size_file_.GetNoArena(); } inline void SaveOutputParameter::set_name_size_file(const ::std::string& value) { set_has_name_size_file(); name_size_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.name_size_file) } +#if LANG_CXX11 +inline void SaveOutputParameter::set_name_size_file(::std::string&& value) { + set_has_name_size_file(); + name_size_file_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.SaveOutputParameter.name_size_file) +} +#endif inline void SaveOutputParameter::set_name_size_file(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_name_size_file(); name_size_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.SaveOutputParameter.name_size_file) @@ -22044,9 +24245,6 @@ inline void SaveOutputParameter::set_num_test_image(::google::protobuf::uint32 v // @@protoc_insertion_point(field_set:opencv_caffe.SaveOutputParameter.num_test_image) } -inline const SaveOutputParameter* SaveOutputParameter::internal_default_instance() { - return &SaveOutputParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // DropoutParameter @@ -22099,9 +24297,6 @@ inline void DropoutParameter::set_scale_train(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.DropoutParameter.scale_train) } -inline const DropoutParameter* DropoutParameter::internal_default_instance() { - return &DropoutParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // DummyDataParameter @@ -22286,9 +24481,6 @@ DummyDataParameter::mutable_width() { return &width_; } -inline const DummyDataParameter* DummyDataParameter::internal_default_instance() { - return &DummyDataParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // EltwiseParameter @@ -22350,13 +24542,13 @@ EltwiseParameter::mutable_coeff() { // optional bool stable_prod_grad = 3 [default = true]; inline bool EltwiseParameter::has_stable_prod_grad() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void EltwiseParameter::set_has_stable_prod_grad() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000002u; } inline void EltwiseParameter::clear_has_stable_prod_grad() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000002u; } inline void EltwiseParameter::clear_stable_prod_grad() { stable_prod_grad_ = true; @@ -22372,9 +24564,6 @@ inline void EltwiseParameter::set_stable_prod_grad(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.EltwiseParameter.stable_prod_grad) } -inline const EltwiseParameter* EltwiseParameter::internal_default_instance() { - return &EltwiseParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ELUParameter @@ -22403,22 +24592,19 @@ inline void ELUParameter::set_alpha(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.ELUParameter.alpha) } -inline const ELUParameter* ELUParameter::internal_default_instance() { - return &ELUParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // EmbedParameter // optional uint32 num_output = 1; inline bool EmbedParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void EmbedParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000004u; } inline void EmbedParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000004u; } inline void EmbedParameter::clear_num_output() { num_output_ = 0u; @@ -22436,13 +24622,13 @@ inline void EmbedParameter::set_num_output(::google::protobuf::uint32 value) { // optional uint32 input_dim = 2; inline bool EmbedParameter::has_input_dim() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void EmbedParameter::set_has_input_dim() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000008u; } inline void EmbedParameter::clear_has_input_dim() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000008u; } inline void EmbedParameter::clear_input_dim() { input_dim_ = 0u; @@ -22460,13 +24646,13 @@ inline void EmbedParameter::set_input_dim(::google::protobuf::uint32 value) { // optional bool bias_term = 3 [default = true]; inline bool EmbedParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void EmbedParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000010u; } inline void EmbedParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000010u; } inline void EmbedParameter::clear_bias_term() { bias_term_ = true; @@ -22484,22 +24670,30 @@ inline void EmbedParameter::set_bias_term(bool value) { // optional .opencv_caffe.FillerParameter weight_filler = 4; inline bool EmbedParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void EmbedParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000001u; } inline void EmbedParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000001u; } inline void EmbedParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); + if (weight_filler_ != NULL) weight_filler_->Clear(); clear_has_weight_filler(); } inline const ::opencv_caffe::FillerParameter& EmbedParameter::weight_filler() const { + const ::opencv_caffe::FillerParameter* p = weight_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.EmbedParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* EmbedParameter::release_weight_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.EmbedParameter.weight_filler) + clear_has_weight_filler(); + ::opencv_caffe::FillerParameter* temp = weight_filler_; + weight_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* EmbedParameter::mutable_weight_filler() { set_has_weight_filler(); @@ -22509,42 +24703,51 @@ inline ::opencv_caffe::FillerParameter* EmbedParameter::mutable_weight_filler() // @@protoc_insertion_point(field_mutable:opencv_caffe.EmbedParameter.weight_filler) return weight_filler_; } -inline ::opencv_caffe::FillerParameter* EmbedParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.EmbedParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} inline void EmbedParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete weight_filler_; + } if (weight_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + weight_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, weight_filler, submessage_arena); + } set_has_weight_filler(); } else { clear_has_weight_filler(); } + weight_filler_ = weight_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.EmbedParameter.weight_filler) } // optional .opencv_caffe.FillerParameter bias_filler = 5; inline bool EmbedParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void EmbedParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000002u; } inline void EmbedParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000002u; } inline void EmbedParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); + if (bias_filler_ != NULL) bias_filler_->Clear(); clear_has_bias_filler(); } inline const ::opencv_caffe::FillerParameter& EmbedParameter::bias_filler() const { + const ::opencv_caffe::FillerParameter* p = bias_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.EmbedParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* EmbedParameter::release_bias_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.EmbedParameter.bias_filler) + clear_has_bias_filler(); + ::opencv_caffe::FillerParameter* temp = bias_filler_; + bias_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* EmbedParameter::mutable_bias_filler() { set_has_bias_filler(); @@ -22554,40 +24757,38 @@ inline ::opencv_caffe::FillerParameter* EmbedParameter::mutable_bias_filler() { // @@protoc_insertion_point(field_mutable:opencv_caffe.EmbedParameter.bias_filler) return bias_filler_; } -inline ::opencv_caffe::FillerParameter* EmbedParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.EmbedParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} inline void EmbedParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete bias_filler_; + } if (bias_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + bias_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, bias_filler, submessage_arena); + } set_has_bias_filler(); } else { clear_has_bias_filler(); } + bias_filler_ = bias_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.EmbedParameter.bias_filler) } -inline const EmbedParameter* EmbedParameter::internal_default_instance() { - return &EmbedParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ExpParameter // optional float base = 1 [default = -1]; inline bool ExpParameter::has_base() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ExpParameter::set_has_base() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void ExpParameter::clear_has_base() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void ExpParameter::clear_base() { base_ = -1; @@ -22605,13 +24806,13 @@ inline void ExpParameter::set_base(float value) { // optional float scale = 2 [default = 1]; inline bool ExpParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void ExpParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void ExpParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void ExpParameter::clear_scale() { scale_ = 1; @@ -22629,13 +24830,13 @@ inline void ExpParameter::set_scale(float value) { // optional float shift = 3 [default = 0]; inline bool ExpParameter::has_shift() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ExpParameter::set_has_shift() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void ExpParameter::clear_has_shift() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void ExpParameter::clear_shift() { shift_ = 0; @@ -22651,9 +24852,6 @@ inline void ExpParameter::set_shift(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.ExpParameter.shift) } -inline const ExpParameter* ExpParameter::internal_default_instance() { - return &ExpParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // FlattenParameter @@ -22706,9 +24904,6 @@ inline void FlattenParameter::set_end_axis(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.FlattenParameter.end_axis) } -inline const FlattenParameter* FlattenParameter::internal_default_instance() { - return &FlattenParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // HDF5DataParameter @@ -22729,14 +24924,23 @@ inline void HDF5DataParameter::clear_source() { } inline const ::std::string& HDF5DataParameter::source() const { // @@protoc_insertion_point(field_get:opencv_caffe.HDF5DataParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return source_.GetNoArena(); } inline void HDF5DataParameter::set_source(const ::std::string& value) { set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.HDF5DataParameter.source) } +#if LANG_CXX11 +inline void HDF5DataParameter::set_source(::std::string&& value) { + set_has_source(); + source_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.HDF5DataParameter.source) +} +#endif inline void HDF5DataParameter::set_source(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.HDF5DataParameter.source) @@ -22815,9 +25019,6 @@ inline void HDF5DataParameter::set_shuffle(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.HDF5DataParameter.shuffle) } -inline const HDF5DataParameter* HDF5DataParameter::internal_default_instance() { - return &HDF5DataParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // HDF5OutputParameter @@ -22838,14 +25039,23 @@ inline void HDF5OutputParameter::clear_file_name() { } inline const ::std::string& HDF5OutputParameter::file_name() const { // @@protoc_insertion_point(field_get:opencv_caffe.HDF5OutputParameter.file_name) - return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return file_name_.GetNoArena(); } inline void HDF5OutputParameter::set_file_name(const ::std::string& value) { set_has_file_name(); file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.HDF5OutputParameter.file_name) } +#if LANG_CXX11 +inline void HDF5OutputParameter::set_file_name(::std::string&& value) { + set_has_file_name(); + file_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.HDF5OutputParameter.file_name) +} +#endif inline void HDF5OutputParameter::set_file_name(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_file_name(); file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.HDF5OutputParameter.file_name) @@ -22876,9 +25086,6 @@ inline void HDF5OutputParameter::set_allocated_file_name(::std::string* file_nam // @@protoc_insertion_point(field_set_allocated:opencv_caffe.HDF5OutputParameter.file_name) } -inline const HDF5OutputParameter* HDF5OutputParameter::internal_default_instance() { - return &HDF5OutputParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // HingeLossParameter @@ -22908,9 +25115,6 @@ inline void HingeLossParameter::set_norm(::opencv_caffe::HingeLossParameter_Norm // @@protoc_insertion_point(field_set:opencv_caffe.HingeLossParameter.norm) } -inline const HingeLossParameter* HingeLossParameter::internal_default_instance() { - return &HingeLossParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ImageDataParameter @@ -22931,14 +25135,23 @@ inline void ImageDataParameter::clear_source() { } inline const ::std::string& ImageDataParameter::source() const { // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return source_.GetNoArena(); } inline void ImageDataParameter::set_source(const ::std::string& value) { set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.source) } +#if LANG_CXX11 +inline void ImageDataParameter::set_source(::std::string&& value) { + set_has_source(); + source_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.ImageDataParameter.source) +} +#endif inline void ImageDataParameter::set_source(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.ImageDataParameter.source) @@ -22971,13 +25184,13 @@ inline void ImageDataParameter::set_allocated_source(::std::string* source) { // optional uint32 batch_size = 4 [default = 1]; inline bool ImageDataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void ImageDataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000800u; } inline void ImageDataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000800u; } inline void ImageDataParameter::clear_batch_size() { batch_size_ = 1u; @@ -22995,13 +25208,13 @@ inline void ImageDataParameter::set_batch_size(::google::protobuf::uint32 value) // optional uint32 rand_skip = 7 [default = 0]; inline bool ImageDataParameter::has_rand_skip() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void ImageDataParameter::set_has_rand_skip() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000010u; } inline void ImageDataParameter::clear_has_rand_skip() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000010u; } inline void ImageDataParameter::clear_rand_skip() { rand_skip_ = 0u; @@ -23019,13 +25232,13 @@ inline void ImageDataParameter::set_rand_skip(::google::protobuf::uint32 value) // optional bool shuffle = 8 [default = false]; inline bool ImageDataParameter::has_shuffle() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void ImageDataParameter::set_has_shuffle() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000020u; } inline void ImageDataParameter::clear_has_shuffle() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000020u; } inline void ImageDataParameter::clear_shuffle() { shuffle_ = false; @@ -23043,13 +25256,13 @@ inline void ImageDataParameter::set_shuffle(bool value) { // optional uint32 new_height = 9 [default = 0]; inline bool ImageDataParameter::has_new_height() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void ImageDataParameter::set_has_new_height() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000080u; } inline void ImageDataParameter::clear_has_new_height() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000080u; } inline void ImageDataParameter::clear_new_height() { new_height_ = 0u; @@ -23067,13 +25280,13 @@ inline void ImageDataParameter::set_new_height(::google::protobuf::uint32 value) // optional uint32 new_width = 10 [default = 0]; inline bool ImageDataParameter::has_new_width() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void ImageDataParameter::set_has_new_width() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000100u; } inline void ImageDataParameter::clear_has_new_width() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000100u; } inline void ImageDataParameter::clear_new_width() { new_width_ = 0u; @@ -23091,13 +25304,13 @@ inline void ImageDataParameter::set_new_width(::google::protobuf::uint32 value) // optional bool is_color = 11 [default = true]; inline bool ImageDataParameter::has_is_color() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void ImageDataParameter::set_has_is_color() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000200u; } inline void ImageDataParameter::clear_has_is_color() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000200u; } inline void ImageDataParameter::clear_is_color() { is_color_ = true; @@ -23115,13 +25328,13 @@ inline void ImageDataParameter::set_is_color(bool value) { // optional float scale = 2 [default = 1]; inline bool ImageDataParameter::has_scale() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void ImageDataParameter::set_has_scale() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000400u; } inline void ImageDataParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000400u; } inline void ImageDataParameter::clear_scale() { scale_ = 1; @@ -23139,13 +25352,13 @@ inline void ImageDataParameter::set_scale(float value) { // optional string mean_file = 3; inline bool ImageDataParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ImageDataParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000002u; } inline void ImageDataParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000002u; } inline void ImageDataParameter::clear_mean_file() { mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -23153,14 +25366,23 @@ inline void ImageDataParameter::clear_mean_file() { } inline const ::std::string& ImageDataParameter::mean_file() const { // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.mean_file) - return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return mean_file_.GetNoArena(); } inline void ImageDataParameter::set_mean_file(const ::std::string& value) { set_has_mean_file(); mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.mean_file) } +#if LANG_CXX11 +inline void ImageDataParameter::set_mean_file(::std::string&& value) { + set_has_mean_file(); + mean_file_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.ImageDataParameter.mean_file) +} +#endif inline void ImageDataParameter::set_mean_file(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_mean_file(); mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.ImageDataParameter.mean_file) @@ -23193,13 +25415,13 @@ inline void ImageDataParameter::set_allocated_mean_file(::std::string* mean_file // optional uint32 crop_size = 5 [default = 0]; inline bool ImageDataParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000200u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void ImageDataParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x00000008u; } inline void ImageDataParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x00000008u; } inline void ImageDataParameter::clear_crop_size() { crop_size_ = 0u; @@ -23217,13 +25439,13 @@ inline void ImageDataParameter::set_crop_size(::google::protobuf::uint32 value) // optional bool mirror = 6 [default = false]; inline bool ImageDataParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void ImageDataParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00000040u; } inline void ImageDataParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000040u; } inline void ImageDataParameter::clear_mirror() { mirror_ = false; @@ -23241,13 +25463,13 @@ inline void ImageDataParameter::set_mirror(bool value) { // optional string root_folder = 12 [default = ""]; inline bool ImageDataParameter::has_root_folder() const { - return (_has_bits_[0] & 0x00000800u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void ImageDataParameter::set_has_root_folder() { - _has_bits_[0] |= 0x00000800u; + _has_bits_[0] |= 0x00000004u; } inline void ImageDataParameter::clear_has_root_folder() { - _has_bits_[0] &= ~0x00000800u; + _has_bits_[0] &= ~0x00000004u; } inline void ImageDataParameter::clear_root_folder() { root_folder_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -23255,14 +25477,23 @@ inline void ImageDataParameter::clear_root_folder() { } inline const ::std::string& ImageDataParameter::root_folder() const { // @@protoc_insertion_point(field_get:opencv_caffe.ImageDataParameter.root_folder) - return root_folder_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return root_folder_.GetNoArena(); } inline void ImageDataParameter::set_root_folder(const ::std::string& value) { set_has_root_folder(); root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.ImageDataParameter.root_folder) } +#if LANG_CXX11 +inline void ImageDataParameter::set_root_folder(::std::string&& value) { + set_has_root_folder(); + root_folder_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.ImageDataParameter.root_folder) +} +#endif inline void ImageDataParameter::set_root_folder(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_root_folder(); root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.ImageDataParameter.root_folder) @@ -23293,9 +25524,6 @@ inline void ImageDataParameter::set_allocated_root_folder(::std::string* root_fo // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ImageDataParameter.root_folder) } -inline const ImageDataParameter* ImageDataParameter::internal_default_instance() { - return &ImageDataParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // InfogainLossParameter @@ -23316,14 +25544,23 @@ inline void InfogainLossParameter::clear_source() { } inline const ::std::string& InfogainLossParameter::source() const { // @@protoc_insertion_point(field_get:opencv_caffe.InfogainLossParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return source_.GetNoArena(); } inline void InfogainLossParameter::set_source(const ::std::string& value) { set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.InfogainLossParameter.source) } +#if LANG_CXX11 +inline void InfogainLossParameter::set_source(::std::string&& value) { + set_has_source(); + source_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.InfogainLossParameter.source) +} +#endif inline void InfogainLossParameter::set_source(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.InfogainLossParameter.source) @@ -23354,22 +25591,19 @@ inline void InfogainLossParameter::set_allocated_source(::std::string* source) { // @@protoc_insertion_point(field_set_allocated:opencv_caffe.InfogainLossParameter.source) } -inline const InfogainLossParameter* InfogainLossParameter::internal_default_instance() { - return &InfogainLossParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // InnerProductParameter // optional uint32 num_output = 1; inline bool InnerProductParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void InnerProductParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000004u; } inline void InnerProductParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000004u; } inline void InnerProductParameter::clear_num_output() { num_output_ = 0u; @@ -23387,13 +25621,13 @@ inline void InnerProductParameter::set_num_output(::google::protobuf::uint32 val // optional bool bias_term = 2 [default = true]; inline bool InnerProductParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void InnerProductParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000010u; } inline void InnerProductParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000010u; } inline void InnerProductParameter::clear_bias_term() { bias_term_ = true; @@ -23411,22 +25645,30 @@ inline void InnerProductParameter::set_bias_term(bool value) { // optional .opencv_caffe.FillerParameter weight_filler = 3; inline bool InnerProductParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void InnerProductParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void InnerProductParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void InnerProductParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); + if (weight_filler_ != NULL) weight_filler_->Clear(); clear_has_weight_filler(); } inline const ::opencv_caffe::FillerParameter& InnerProductParameter::weight_filler() const { + const ::opencv_caffe::FillerParameter* p = weight_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.InnerProductParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* InnerProductParameter::release_weight_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.InnerProductParameter.weight_filler) + clear_has_weight_filler(); + ::opencv_caffe::FillerParameter* temp = weight_filler_; + weight_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* InnerProductParameter::mutable_weight_filler() { set_has_weight_filler(); @@ -23436,42 +25678,51 @@ inline ::opencv_caffe::FillerParameter* InnerProductParameter::mutable_weight_fi // @@protoc_insertion_point(field_mutable:opencv_caffe.InnerProductParameter.weight_filler) return weight_filler_; } -inline ::opencv_caffe::FillerParameter* InnerProductParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.InnerProductParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} inline void InnerProductParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete weight_filler_; + } if (weight_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + weight_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, weight_filler, submessage_arena); + } set_has_weight_filler(); } else { clear_has_weight_filler(); } + weight_filler_ = weight_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.InnerProductParameter.weight_filler) } // optional .opencv_caffe.FillerParameter bias_filler = 4; inline bool InnerProductParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void InnerProductParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000002u; } inline void InnerProductParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000002u; } inline void InnerProductParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); + if (bias_filler_ != NULL) bias_filler_->Clear(); clear_has_bias_filler(); } inline const ::opencv_caffe::FillerParameter& InnerProductParameter::bias_filler() const { + const ::opencv_caffe::FillerParameter* p = bias_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.InnerProductParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* InnerProductParameter::release_bias_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.InnerProductParameter.bias_filler) + clear_has_bias_filler(); + ::opencv_caffe::FillerParameter* temp = bias_filler_; + bias_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* InnerProductParameter::mutable_bias_filler() { set_has_bias_filler(); @@ -23481,33 +25732,34 @@ inline ::opencv_caffe::FillerParameter* InnerProductParameter::mutable_bias_fill // @@protoc_insertion_point(field_mutable:opencv_caffe.InnerProductParameter.bias_filler) return bias_filler_; } -inline ::opencv_caffe::FillerParameter* InnerProductParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.InnerProductParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} inline void InnerProductParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete bias_filler_; + } if (bias_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + bias_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, bias_filler, submessage_arena); + } set_has_bias_filler(); } else { clear_has_bias_filler(); } + bias_filler_ = bias_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.InnerProductParameter.bias_filler) } // optional int32 axis = 5 [default = 1]; inline bool InnerProductParameter::has_axis() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void InnerProductParameter::set_has_axis() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000020u; } inline void InnerProductParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000020u; } inline void InnerProductParameter::clear_axis() { axis_ = 1; @@ -23525,13 +25777,13 @@ inline void InnerProductParameter::set_axis(::google::protobuf::int32 value) { // optional bool transpose = 6 [default = false]; inline bool InnerProductParameter::has_transpose() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void InnerProductParameter::set_has_transpose() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000008u; } inline void InnerProductParameter::clear_has_transpose() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000008u; } inline void InnerProductParameter::clear_transpose() { transpose_ = false; @@ -23547,9 +25799,6 @@ inline void InnerProductParameter::set_transpose(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.InnerProductParameter.transpose) } -inline const InnerProductParameter* InnerProductParameter::internal_default_instance() { - return &InnerProductParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // InputParameter @@ -23584,22 +25833,19 @@ InputParameter::shape() const { return shape_; } -inline const InputParameter* InputParameter::internal_default_instance() { - return &InputParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // LogParameter // optional float base = 1 [default = -1]; inline bool LogParameter::has_base() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void LogParameter::set_has_base() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void LogParameter::clear_has_base() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void LogParameter::clear_base() { base_ = -1; @@ -23617,13 +25863,13 @@ inline void LogParameter::set_base(float value) { // optional float scale = 2 [default = 1]; inline bool LogParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void LogParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void LogParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void LogParameter::clear_scale() { scale_ = 1; @@ -23641,13 +25887,13 @@ inline void LogParameter::set_scale(float value) { // optional float shift = 3 [default = 0]; inline bool LogParameter::has_shift() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void LogParameter::set_has_shift() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void LogParameter::clear_has_shift() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void LogParameter::clear_shift() { shift_ = 0; @@ -23663,22 +25909,19 @@ inline void LogParameter::set_shift(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.LogParameter.shift) } -inline const LogParameter* LogParameter::internal_default_instance() { - return &LogParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // LRNParameter // optional uint32 local_size = 1 [default = 5]; inline bool LRNParameter::has_local_size() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void LRNParameter::set_has_local_size() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000004u; } inline void LRNParameter::clear_has_local_size() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000004u; } inline void LRNParameter::clear_local_size() { local_size_ = 5u; @@ -23696,13 +25939,13 @@ inline void LRNParameter::set_local_size(::google::protobuf::uint32 value) { // optional float alpha = 2 [default = 1]; inline bool LRNParameter::has_alpha() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void LRNParameter::set_has_alpha() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000008u; } inline void LRNParameter::clear_has_alpha() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000008u; } inline void LRNParameter::clear_alpha() { alpha_ = 1; @@ -23720,13 +25963,13 @@ inline void LRNParameter::set_alpha(float value) { // optional float beta = 3 [default = 0.75]; inline bool LRNParameter::has_beta() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void LRNParameter::set_has_beta() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000010u; } inline void LRNParameter::clear_has_beta() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000010u; } inline void LRNParameter::clear_beta() { beta_ = 0.75f; @@ -23744,13 +25987,13 @@ inline void LRNParameter::set_beta(float value) { // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS]; inline bool LRNParameter::has_norm_region() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void LRNParameter::set_has_norm_region() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000001u; } inline void LRNParameter::clear_has_norm_region() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000001u; } inline void LRNParameter::clear_norm_region() { norm_region_ = 0; @@ -23769,13 +26012,13 @@ inline void LRNParameter::set_norm_region(::opencv_caffe::LRNParameter_NormRegio // optional float k = 5 [default = 1]; inline bool LRNParameter::has_k() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void LRNParameter::set_has_k() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000020u; } inline void LRNParameter::clear_has_k() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000020u; } inline void LRNParameter::clear_k() { k_ = 1; @@ -23793,13 +26036,13 @@ inline void LRNParameter::set_k(float value) { // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT]; inline bool LRNParameter::has_engine() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void LRNParameter::set_has_engine() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000002u; } inline void LRNParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000002u; } inline void LRNParameter::clear_engine() { engine_ = 0; @@ -23816,9 +26059,6 @@ inline void LRNParameter::set_engine(::opencv_caffe::LRNParameter_Engine value) // @@protoc_insertion_point(field_set:opencv_caffe.LRNParameter.engine) } -inline const LRNParameter* LRNParameter::internal_default_instance() { - return &LRNParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // MemoryDataParameter @@ -23919,22 +26159,19 @@ inline void MemoryDataParameter::set_width(::google::protobuf::uint32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.MemoryDataParameter.width) } -inline const MemoryDataParameter* MemoryDataParameter::internal_default_instance() { - return &MemoryDataParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // MVNParameter // optional bool normalize_variance = 1 [default = true]; inline bool MVNParameter::has_normalize_variance() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void MVNParameter::set_has_normalize_variance() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void MVNParameter::clear_has_normalize_variance() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void MVNParameter::clear_normalize_variance() { normalize_variance_ = true; @@ -23952,13 +26189,13 @@ inline void MVNParameter::set_normalize_variance(bool value) { // optional bool across_channels = 2 [default = false]; inline bool MVNParameter::has_across_channels() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void MVNParameter::set_has_across_channels() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void MVNParameter::clear_has_across_channels() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void MVNParameter::clear_across_channels() { across_channels_ = false; @@ -23998,9 +26235,6 @@ inline void MVNParameter::set_eps(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.MVNParameter.eps) } -inline const MVNParameter* MVNParameter::internal_default_instance() { - return &MVNParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ParameterParameter @@ -24016,13 +26250,21 @@ inline void ParameterParameter::clear_has_shape() { _has_bits_[0] &= ~0x00000001u; } inline void ParameterParameter::clear_shape() { - if (shape_ != NULL) shape_->::opencv_caffe::BlobShape::Clear(); + if (shape_ != NULL) shape_->Clear(); clear_has_shape(); } inline const ::opencv_caffe::BlobShape& ParameterParameter::shape() const { + const ::opencv_caffe::BlobShape* p = shape_; // @@protoc_insertion_point(field_get:opencv_caffe.ParameterParameter.shape) - return shape_ != NULL ? *shape_ - : *::opencv_caffe::BlobShape::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_BlobShape_default_instance_); +} +inline ::opencv_caffe::BlobShape* ParameterParameter::release_shape() { + // @@protoc_insertion_point(field_release:opencv_caffe.ParameterParameter.shape) + clear_has_shape(); + ::opencv_caffe::BlobShape* temp = shape_; + shape_ = NULL; + return temp; } inline ::opencv_caffe::BlobShape* ParameterParameter::mutable_shape() { set_has_shape(); @@ -24032,27 +26274,25 @@ inline ::opencv_caffe::BlobShape* ParameterParameter::mutable_shape() { // @@protoc_insertion_point(field_mutable:opencv_caffe.ParameterParameter.shape) return shape_; } -inline ::opencv_caffe::BlobShape* ParameterParameter::release_shape() { - // @@protoc_insertion_point(field_release:opencv_caffe.ParameterParameter.shape) - clear_has_shape(); - ::opencv_caffe::BlobShape* temp = shape_; - shape_ = NULL; - return temp; -} inline void ParameterParameter::set_allocated_shape(::opencv_caffe::BlobShape* shape) { - delete shape_; - shape_ = shape; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete shape_; + } if (shape) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + shape = ::google::protobuf::internal::GetOwnedMessage( + message_arena, shape, submessage_arena); + } set_has_shape(); } else { clear_has_shape(); } + shape_ = shape; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ParameterParameter.shape) } -inline const ParameterParameter* ParameterParameter::internal_default_instance() { - return &ParameterParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // PoolingParameter @@ -24084,13 +26324,13 @@ inline void PoolingParameter::set_pool(::opencv_caffe::PoolingParameter_PoolMeth // optional uint32 pad = 4 [default = 0]; inline bool PoolingParameter::has_pad() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void PoolingParameter::set_has_pad() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void PoolingParameter::clear_has_pad() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void PoolingParameter::clear_pad() { pad_ = 0u; @@ -24108,13 +26348,13 @@ inline void PoolingParameter::set_pad(::google::protobuf::uint32 value) { // optional uint32 pad_h = 9 [default = 0]; inline bool PoolingParameter::has_pad_h() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void PoolingParameter::set_has_pad_h() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000080u; } inline void PoolingParameter::clear_has_pad_h() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000080u; } inline void PoolingParameter::clear_pad_h() { pad_h_ = 0u; @@ -24132,13 +26372,13 @@ inline void PoolingParameter::set_pad_h(::google::protobuf::uint32 value) { // optional uint32 pad_w = 10 [default = 0]; inline bool PoolingParameter::has_pad_w() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void PoolingParameter::set_has_pad_w() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000100u; } inline void PoolingParameter::clear_has_pad_w() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000100u; } inline void PoolingParameter::clear_pad_w() { pad_w_ = 0u; @@ -24156,13 +26396,13 @@ inline void PoolingParameter::set_pad_w(::google::protobuf::uint32 value) { // optional uint32 kernel_size = 2; inline bool PoolingParameter::has_kernel_size() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void PoolingParameter::set_has_kernel_size() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000002u; } inline void PoolingParameter::clear_has_kernel_size() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000002u; } inline void PoolingParameter::clear_kernel_size() { kernel_size_ = 0u; @@ -24180,13 +26420,13 @@ inline void PoolingParameter::set_kernel_size(::google::protobuf::uint32 value) // optional uint32 kernel_h = 5; inline bool PoolingParameter::has_kernel_h() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void PoolingParameter::set_has_kernel_h() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000008u; } inline void PoolingParameter::clear_has_kernel_h() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000008u; } inline void PoolingParameter::clear_kernel_h() { kernel_h_ = 0u; @@ -24204,13 +26444,13 @@ inline void PoolingParameter::set_kernel_h(::google::protobuf::uint32 value) { // optional uint32 kernel_w = 6; inline bool PoolingParameter::has_kernel_w() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void PoolingParameter::set_has_kernel_w() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000010u; } inline void PoolingParameter::clear_has_kernel_w() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000010u; } inline void PoolingParameter::clear_kernel_w() { kernel_w_ = 0u; @@ -24228,13 +26468,13 @@ inline void PoolingParameter::set_kernel_w(::google::protobuf::uint32 value) { // optional uint32 stride = 3 [default = 1]; inline bool PoolingParameter::has_stride() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void PoolingParameter::set_has_stride() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000800u; } inline void PoolingParameter::clear_has_stride() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000800u; } inline void PoolingParameter::clear_stride() { stride_ = 1u; @@ -24252,13 +26492,13 @@ inline void PoolingParameter::set_stride(::google::protobuf::uint32 value) { // optional uint32 stride_h = 7; inline bool PoolingParameter::has_stride_h() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void PoolingParameter::set_has_stride_h() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000020u; } inline void PoolingParameter::clear_has_stride_h() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000020u; } inline void PoolingParameter::clear_stride_h() { stride_h_ = 0u; @@ -24276,13 +26516,13 @@ inline void PoolingParameter::set_stride_h(::google::protobuf::uint32 value) { // optional uint32 stride_w = 8; inline bool PoolingParameter::has_stride_w() const { - return (_has_bits_[0] & 0x00000200u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void PoolingParameter::set_has_stride_w() { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x00000040u; } inline void PoolingParameter::clear_has_stride_w() { - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x00000040u; } inline void PoolingParameter::clear_stride_w() { stride_w_ = 0u; @@ -24300,13 +26540,13 @@ inline void PoolingParameter::set_stride_w(::google::protobuf::uint32 value) { // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT]; inline bool PoolingParameter::has_engine() const { - return (_has_bits_[0] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void PoolingParameter::set_has_engine() { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00000200u; } inline void PoolingParameter::clear_has_engine() { - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000200u; } inline void PoolingParameter::clear_engine() { engine_ = 0; @@ -24325,13 +26565,13 @@ inline void PoolingParameter::set_engine(::opencv_caffe::PoolingParameter_Engine // optional bool global_pooling = 12 [default = false]; inline bool PoolingParameter::has_global_pooling() const { - return (_has_bits_[0] & 0x00000800u) != 0; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void PoolingParameter::set_has_global_pooling() { - _has_bits_[0] |= 0x00000800u; + _has_bits_[0] |= 0x00000400u; } inline void PoolingParameter::clear_has_global_pooling() { - _has_bits_[0] &= ~0x00000800u; + _has_bits_[0] &= ~0x00000400u; } inline void PoolingParameter::clear_global_pooling() { global_pooling_ = false; @@ -24371,22 +26611,19 @@ inline void PoolingParameter::set_ceil_mode(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.PoolingParameter.ceil_mode) } -inline const PoolingParameter* PoolingParameter::internal_default_instance() { - return &PoolingParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // PowerParameter // optional float power = 1 [default = 1]; inline bool PowerParameter::has_power() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void PowerParameter::set_has_power() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void PowerParameter::clear_has_power() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void PowerParameter::clear_power() { power_ = 1; @@ -24404,13 +26641,13 @@ inline void PowerParameter::set_power(float value) { // optional float scale = 2 [default = 1]; inline bool PowerParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void PowerParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000004u; } inline void PowerParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000004u; } inline void PowerParameter::clear_scale() { scale_ = 1; @@ -24428,13 +26665,13 @@ inline void PowerParameter::set_scale(float value) { // optional float shift = 3 [default = 0]; inline bool PowerParameter::has_shift() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void PowerParameter::set_has_shift() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void PowerParameter::clear_has_shift() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void PowerParameter::clear_shift() { shift_ = 0; @@ -24450,9 +26687,6 @@ inline void PowerParameter::set_shift(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.PowerParameter.shift) } -inline const PowerParameter* PowerParameter::internal_default_instance() { - return &PowerParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // PythonParameter @@ -24473,14 +26707,23 @@ inline void PythonParameter::clear_module() { } inline const ::std::string& PythonParameter::module() const { // @@protoc_insertion_point(field_get:opencv_caffe.PythonParameter.module) - return module_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return module_.GetNoArena(); } inline void PythonParameter::set_module(const ::std::string& value) { set_has_module(); module_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.PythonParameter.module) } +#if LANG_CXX11 +inline void PythonParameter::set_module(::std::string&& value) { + set_has_module(); + module_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.PythonParameter.module) +} +#endif inline void PythonParameter::set_module(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_module(); module_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.PythonParameter.module) @@ -24527,14 +26770,23 @@ inline void PythonParameter::clear_layer() { } inline const ::std::string& PythonParameter::layer() const { // @@protoc_insertion_point(field_get:opencv_caffe.PythonParameter.layer) - return layer_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return layer_.GetNoArena(); } inline void PythonParameter::set_layer(const ::std::string& value) { set_has_layer(); layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.PythonParameter.layer) } +#if LANG_CXX11 +inline void PythonParameter::set_layer(::std::string&& value) { + set_has_layer(); + layer_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.PythonParameter.layer) +} +#endif inline void PythonParameter::set_layer(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_layer(); layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.PythonParameter.layer) @@ -24581,14 +26833,23 @@ inline void PythonParameter::clear_param_str() { } inline const ::std::string& PythonParameter::param_str() const { // @@protoc_insertion_point(field_get:opencv_caffe.PythonParameter.param_str) - return param_str_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return param_str_.GetNoArena(); } inline void PythonParameter::set_param_str(const ::std::string& value) { set_has_param_str(); param_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.PythonParameter.param_str) } +#if LANG_CXX11 +inline void PythonParameter::set_param_str(::std::string&& value) { + set_has_param_str(); + param_str_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.PythonParameter.param_str) +} +#endif inline void PythonParameter::set_param_str(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_param_str(); param_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.PythonParameter.param_str) @@ -24643,22 +26904,19 @@ inline void PythonParameter::set_share_in_parallel(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.PythonParameter.share_in_parallel) } -inline const PythonParameter* PythonParameter::internal_default_instance() { - return &PythonParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // RecurrentParameter // optional uint32 num_output = 1 [default = 0]; inline bool RecurrentParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void RecurrentParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000004u; } inline void RecurrentParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000004u; } inline void RecurrentParameter::clear_num_output() { num_output_ = 0u; @@ -24676,22 +26934,30 @@ inline void RecurrentParameter::set_num_output(::google::protobuf::uint32 value) // optional .opencv_caffe.FillerParameter weight_filler = 2; inline bool RecurrentParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void RecurrentParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void RecurrentParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void RecurrentParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); + if (weight_filler_ != NULL) weight_filler_->Clear(); clear_has_weight_filler(); } inline const ::opencv_caffe::FillerParameter& RecurrentParameter::weight_filler() const { + const ::opencv_caffe::FillerParameter* p = weight_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.RecurrentParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* RecurrentParameter::release_weight_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.RecurrentParameter.weight_filler) + clear_has_weight_filler(); + ::opencv_caffe::FillerParameter* temp = weight_filler_; + weight_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* RecurrentParameter::mutable_weight_filler() { set_has_weight_filler(); @@ -24701,42 +26967,51 @@ inline ::opencv_caffe::FillerParameter* RecurrentParameter::mutable_weight_fille // @@protoc_insertion_point(field_mutable:opencv_caffe.RecurrentParameter.weight_filler) return weight_filler_; } -inline ::opencv_caffe::FillerParameter* RecurrentParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.RecurrentParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} inline void RecurrentParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete weight_filler_; + } if (weight_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + weight_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, weight_filler, submessage_arena); + } set_has_weight_filler(); } else { clear_has_weight_filler(); } + weight_filler_ = weight_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.RecurrentParameter.weight_filler) } // optional .opencv_caffe.FillerParameter bias_filler = 3; inline bool RecurrentParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void RecurrentParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000002u; } inline void RecurrentParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000002u; } inline void RecurrentParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); + if (bias_filler_ != NULL) bias_filler_->Clear(); clear_has_bias_filler(); } inline const ::opencv_caffe::FillerParameter& RecurrentParameter::bias_filler() const { + const ::opencv_caffe::FillerParameter* p = bias_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.RecurrentParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* RecurrentParameter::release_bias_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.RecurrentParameter.bias_filler) + clear_has_bias_filler(); + ::opencv_caffe::FillerParameter* temp = bias_filler_; + bias_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* RecurrentParameter::mutable_bias_filler() { set_has_bias_filler(); @@ -24746,21 +27021,22 @@ inline ::opencv_caffe::FillerParameter* RecurrentParameter::mutable_bias_filler( // @@protoc_insertion_point(field_mutable:opencv_caffe.RecurrentParameter.bias_filler) return bias_filler_; } -inline ::opencv_caffe::FillerParameter* RecurrentParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.RecurrentParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} inline void RecurrentParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete bias_filler_; + } if (bias_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + bias_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, bias_filler, submessage_arena); + } set_has_bias_filler(); } else { clear_has_bias_filler(); } + bias_filler_ = bias_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.RecurrentParameter.bias_filler) } @@ -24812,22 +27088,19 @@ inline void RecurrentParameter::set_expose_hidden(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.RecurrentParameter.expose_hidden) } -inline const RecurrentParameter* RecurrentParameter::internal_default_instance() { - return &RecurrentParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ReductionParameter // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM]; inline bool ReductionParameter::has_operation() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ReductionParameter::set_has_operation() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void ReductionParameter::clear_has_operation() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void ReductionParameter::clear_operation() { operation_ = 1; @@ -24846,13 +27119,13 @@ inline void ReductionParameter::set_operation(::opencv_caffe::ReductionParameter // optional int32 axis = 2 [default = 0]; inline bool ReductionParameter::has_axis() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ReductionParameter::set_has_axis() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void ReductionParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void ReductionParameter::clear_axis() { axis_ = 0; @@ -24892,9 +27165,6 @@ inline void ReductionParameter::set_coeff(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.ReductionParameter.coeff) } -inline const ReductionParameter* ReductionParameter::internal_default_instance() { - return &ReductionParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ReLUParameter @@ -24948,9 +27218,6 @@ inline void ReLUParameter::set_engine(::opencv_caffe::ReLUParameter_Engine value // @@protoc_insertion_point(field_set:opencv_caffe.ReLUParameter.engine) } -inline const ReLUParameter* ReLUParameter::internal_default_instance() { - return &ReLUParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ReshapeParameter @@ -24966,13 +27233,21 @@ inline void ReshapeParameter::clear_has_shape() { _has_bits_[0] &= ~0x00000001u; } inline void ReshapeParameter::clear_shape() { - if (shape_ != NULL) shape_->::opencv_caffe::BlobShape::Clear(); + if (shape_ != NULL) shape_->Clear(); clear_has_shape(); } inline const ::opencv_caffe::BlobShape& ReshapeParameter::shape() const { + const ::opencv_caffe::BlobShape* p = shape_; // @@protoc_insertion_point(field_get:opencv_caffe.ReshapeParameter.shape) - return shape_ != NULL ? *shape_ - : *::opencv_caffe::BlobShape::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_BlobShape_default_instance_); +} +inline ::opencv_caffe::BlobShape* ReshapeParameter::release_shape() { + // @@protoc_insertion_point(field_release:opencv_caffe.ReshapeParameter.shape) + clear_has_shape(); + ::opencv_caffe::BlobShape* temp = shape_; + shape_ = NULL; + return temp; } inline ::opencv_caffe::BlobShape* ReshapeParameter::mutable_shape() { set_has_shape(); @@ -24982,21 +27257,22 @@ inline ::opencv_caffe::BlobShape* ReshapeParameter::mutable_shape() { // @@protoc_insertion_point(field_mutable:opencv_caffe.ReshapeParameter.shape) return shape_; } -inline ::opencv_caffe::BlobShape* ReshapeParameter::release_shape() { - // @@protoc_insertion_point(field_release:opencv_caffe.ReshapeParameter.shape) - clear_has_shape(); - ::opencv_caffe::BlobShape* temp = shape_; - shape_ = NULL; - return temp; -} inline void ReshapeParameter::set_allocated_shape(::opencv_caffe::BlobShape* shape) { - delete shape_; - shape_ = shape; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete shape_; + } if (shape) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + shape = ::google::protobuf::internal::GetOwnedMessage( + message_arena, shape, submessage_arena); + } set_has_shape(); } else { clear_has_shape(); } + shape_ = shape; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ReshapeParameter.shape) } @@ -25048,22 +27324,19 @@ inline void ReshapeParameter::set_num_axes(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.ReshapeParameter.num_axes) } -inline const ReshapeParameter* ReshapeParameter::internal_default_instance() { - return &ReshapeParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ScaleParameter // optional int32 axis = 1 [default = 1]; inline bool ScaleParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void ScaleParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000008u; } inline void ScaleParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000008u; } inline void ScaleParameter::clear_axis() { axis_ = 1; @@ -25081,13 +27354,13 @@ inline void ScaleParameter::set_axis(::google::protobuf::int32 value) { // optional int32 num_axes = 2 [default = 1]; inline bool ScaleParameter::has_num_axes() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void ScaleParameter::set_has_num_axes() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000010u; } inline void ScaleParameter::clear_has_num_axes() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000010u; } inline void ScaleParameter::clear_num_axes() { num_axes_ = 1; @@ -25105,22 +27378,30 @@ inline void ScaleParameter::set_num_axes(::google::protobuf::int32 value) { // optional .opencv_caffe.FillerParameter filler = 3; inline bool ScaleParameter::has_filler() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ScaleParameter::set_has_filler() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void ScaleParameter::clear_has_filler() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void ScaleParameter::clear_filler() { - if (filler_ != NULL) filler_->::opencv_caffe::FillerParameter::Clear(); + if (filler_ != NULL) filler_->Clear(); clear_has_filler(); } inline const ::opencv_caffe::FillerParameter& ScaleParameter::filler() const { + const ::opencv_caffe::FillerParameter* p = filler_; // @@protoc_insertion_point(field_get:opencv_caffe.ScaleParameter.filler) - return filler_ != NULL ? *filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* ScaleParameter::release_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.ScaleParameter.filler) + clear_has_filler(); + ::opencv_caffe::FillerParameter* temp = filler_; + filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* ScaleParameter::mutable_filler() { set_has_filler(); @@ -25130,33 +27411,34 @@ inline ::opencv_caffe::FillerParameter* ScaleParameter::mutable_filler() { // @@protoc_insertion_point(field_mutable:opencv_caffe.ScaleParameter.filler) return filler_; } -inline ::opencv_caffe::FillerParameter* ScaleParameter::release_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.ScaleParameter.filler) - clear_has_filler(); - ::opencv_caffe::FillerParameter* temp = filler_; - filler_ = NULL; - return temp; -} inline void ScaleParameter::set_allocated_filler(::opencv_caffe::FillerParameter* filler) { - delete filler_; - filler_ = filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete filler_; + } if (filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, filler, submessage_arena); + } set_has_filler(); } else { clear_has_filler(); } + filler_ = filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ScaleParameter.filler) } // optional bool bias_term = 4 [default = false]; inline bool ScaleParameter::has_bias_term() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void ScaleParameter::set_has_bias_term() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000004u; } inline void ScaleParameter::clear_has_bias_term() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000004u; } inline void ScaleParameter::clear_bias_term() { bias_term_ = false; @@ -25174,22 +27456,30 @@ inline void ScaleParameter::set_bias_term(bool value) { // optional .opencv_caffe.FillerParameter bias_filler = 5; inline bool ScaleParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ScaleParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000002u; } inline void ScaleParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000002u; } inline void ScaleParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); + if (bias_filler_ != NULL) bias_filler_->Clear(); clear_has_bias_filler(); } inline const ::opencv_caffe::FillerParameter& ScaleParameter::bias_filler() const { + const ::opencv_caffe::FillerParameter* p = bias_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.ScaleParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* ScaleParameter::release_bias_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.ScaleParameter.bias_filler) + clear_has_bias_filler(); + ::opencv_caffe::FillerParameter* temp = bias_filler_; + bias_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* ScaleParameter::mutable_bias_filler() { set_has_bias_filler(); @@ -25199,27 +27489,25 @@ inline ::opencv_caffe::FillerParameter* ScaleParameter::mutable_bias_filler() { // @@protoc_insertion_point(field_mutable:opencv_caffe.ScaleParameter.bias_filler) return bias_filler_; } -inline ::opencv_caffe::FillerParameter* ScaleParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.ScaleParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} inline void ScaleParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete bias_filler_; + } if (bias_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + bias_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, bias_filler, submessage_arena); + } set_has_bias_filler(); } else { clear_has_bias_filler(); } + bias_filler_ = bias_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.ScaleParameter.bias_filler) } -inline const ScaleParameter* ScaleParameter::internal_default_instance() { - return &ScaleParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // SigmoidParameter @@ -25249,22 +27537,19 @@ inline void SigmoidParameter::set_engine(::opencv_caffe::SigmoidParameter_Engine // @@protoc_insertion_point(field_set:opencv_caffe.SigmoidParameter.engine) } -inline const SigmoidParameter* SigmoidParameter::internal_default_instance() { - return &SigmoidParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // SliceParameter // optional int32 axis = 3 [default = 1]; inline bool SliceParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void SliceParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void SliceParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void SliceParameter::clear_axis() { axis_ = 1; @@ -25312,13 +27597,13 @@ SliceParameter::mutable_slice_point() { // optional uint32 slice_dim = 1 [default = 1]; inline bool SliceParameter::has_slice_dim() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void SliceParameter::set_has_slice_dim() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void SliceParameter::clear_has_slice_dim() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void SliceParameter::clear_slice_dim() { slice_dim_ = 1u; @@ -25334,9 +27619,6 @@ inline void SliceParameter::set_slice_dim(::google::protobuf::uint32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.SliceParameter.slice_dim) } -inline const SliceParameter* SliceParameter::internal_default_instance() { - return &SliceParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // SoftmaxParameter @@ -25390,9 +27672,6 @@ inline void SoftmaxParameter::set_axis(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.SoftmaxParameter.axis) } -inline const SoftmaxParameter* SoftmaxParameter::internal_default_instance() { - return &SoftmaxParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // TanHParameter @@ -25422,22 +27701,19 @@ inline void TanHParameter::set_engine(::opencv_caffe::TanHParameter_Engine value // @@protoc_insertion_point(field_set:opencv_caffe.TanHParameter.engine) } -inline const TanHParameter* TanHParameter::internal_default_instance() { - return &TanHParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // TileParameter // optional int32 axis = 1 [default = 1]; inline bool TileParameter::has_axis() const { - return (_has_bits_[0] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void TileParameter::set_has_axis() { - _has_bits_[0] |= 0x00000001u; + _has_bits_[0] |= 0x00000002u; } inline void TileParameter::clear_has_axis() { - _has_bits_[0] &= ~0x00000001u; + _has_bits_[0] &= ~0x00000002u; } inline void TileParameter::clear_axis() { axis_ = 1; @@ -25455,13 +27731,13 @@ inline void TileParameter::set_axis(::google::protobuf::int32 value) { // optional int32 tiles = 2; inline bool TileParameter::has_tiles() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void TileParameter::set_has_tiles() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000001u; } inline void TileParameter::clear_has_tiles() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000001u; } inline void TileParameter::clear_tiles() { tiles_ = 0; @@ -25477,9 +27753,6 @@ inline void TileParameter::set_tiles(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:opencv_caffe.TileParameter.tiles) } -inline const TileParameter* TileParameter::internal_default_instance() { - return &TileParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ThresholdParameter @@ -25508,9 +27781,6 @@ inline void ThresholdParameter::set_threshold(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.ThresholdParameter.threshold) } -inline const ThresholdParameter* ThresholdParameter::internal_default_instance() { - return &ThresholdParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // WindowDataParameter @@ -25531,14 +27801,23 @@ inline void WindowDataParameter::clear_source() { } inline const ::std::string& WindowDataParameter::source() const { // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return source_.GetNoArena(); } inline void WindowDataParameter::set_source(const ::std::string& value) { set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.source) } +#if LANG_CXX11 +inline void WindowDataParameter::set_source(::std::string&& value) { + set_has_source(); + source_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.WindowDataParameter.source) +} +#endif inline void WindowDataParameter::set_source(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.WindowDataParameter.source) @@ -25571,13 +27850,13 @@ inline void WindowDataParameter::set_allocated_source(::std::string* source) { // optional float scale = 2 [default = 1]; inline bool WindowDataParameter::has_scale() const { - return (_has_bits_[0] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void WindowDataParameter::set_has_scale() { - _has_bits_[0] |= 0x00000002u; + _has_bits_[0] |= 0x00000200u; } inline void WindowDataParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00000002u; + _has_bits_[0] &= ~0x00000200u; } inline void WindowDataParameter::clear_scale() { scale_ = 1; @@ -25595,13 +27874,13 @@ inline void WindowDataParameter::set_scale(float value) { // optional string mean_file = 3; inline bool WindowDataParameter::has_mean_file() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void WindowDataParameter::set_has_mean_file() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000002u; } inline void WindowDataParameter::clear_has_mean_file() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000002u; } inline void WindowDataParameter::clear_mean_file() { mean_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -25609,14 +27888,23 @@ inline void WindowDataParameter::clear_mean_file() { } inline const ::std::string& WindowDataParameter::mean_file() const { // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.mean_file) - return mean_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return mean_file_.GetNoArena(); } inline void WindowDataParameter::set_mean_file(const ::std::string& value) { set_has_mean_file(); mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.mean_file) } +#if LANG_CXX11 +inline void WindowDataParameter::set_mean_file(::std::string&& value) { + set_has_mean_file(); + mean_file_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.WindowDataParameter.mean_file) +} +#endif inline void WindowDataParameter::set_mean_file(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_mean_file(); mean_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.WindowDataParameter.mean_file) @@ -25649,13 +27937,13 @@ inline void WindowDataParameter::set_allocated_mean_file(::std::string* mean_fil // optional uint32 batch_size = 4; inline bool WindowDataParameter::has_batch_size() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void WindowDataParameter::set_has_batch_size() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000010u; } inline void WindowDataParameter::clear_has_batch_size() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000010u; } inline void WindowDataParameter::clear_batch_size() { batch_size_ = 0u; @@ -25673,13 +27961,13 @@ inline void WindowDataParameter::set_batch_size(::google::protobuf::uint32 value // optional uint32 crop_size = 5 [default = 0]; inline bool WindowDataParameter::has_crop_size() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void WindowDataParameter::set_has_crop_size() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000020u; } inline void WindowDataParameter::clear_has_crop_size() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000020u; } inline void WindowDataParameter::clear_crop_size() { crop_size_ = 0u; @@ -25697,13 +27985,13 @@ inline void WindowDataParameter::set_crop_size(::google::protobuf::uint32 value) // optional bool mirror = 6 [default = false]; inline bool WindowDataParameter::has_mirror() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void WindowDataParameter::set_has_mirror() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000040u; } inline void WindowDataParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000040u; } inline void WindowDataParameter::clear_mirror() { mirror_ = false; @@ -25721,13 +28009,13 @@ inline void WindowDataParameter::set_mirror(bool value) { // optional float fg_threshold = 7 [default = 0.5]; inline bool WindowDataParameter::has_fg_threshold() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void WindowDataParameter::set_has_fg_threshold() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000400u; } inline void WindowDataParameter::clear_has_fg_threshold() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000400u; } inline void WindowDataParameter::clear_fg_threshold() { fg_threshold_ = 0.5f; @@ -25745,13 +28033,13 @@ inline void WindowDataParameter::set_fg_threshold(float value) { // optional float bg_threshold = 8 [default = 0.5]; inline bool WindowDataParameter::has_bg_threshold() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void WindowDataParameter::set_has_bg_threshold() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000800u; } inline void WindowDataParameter::clear_has_bg_threshold() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000800u; } inline void WindowDataParameter::clear_bg_threshold() { bg_threshold_ = 0.5f; @@ -25769,13 +28057,13 @@ inline void WindowDataParameter::set_bg_threshold(float value) { // optional float fg_fraction = 9 [default = 0.25]; inline bool WindowDataParameter::has_fg_fraction() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x00001000u) != 0; } inline void WindowDataParameter::set_has_fg_fraction() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00001000u; } inline void WindowDataParameter::clear_has_fg_fraction() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00001000u; } inline void WindowDataParameter::clear_fg_fraction() { fg_fraction_ = 0.25f; @@ -25793,13 +28081,13 @@ inline void WindowDataParameter::set_fg_fraction(float value) { // optional uint32 context_pad = 10 [default = 0]; inline bool WindowDataParameter::has_context_pad() const { - return (_has_bits_[0] & 0x00000200u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void WindowDataParameter::set_has_context_pad() { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x00000100u; } inline void WindowDataParameter::clear_has_context_pad() { - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x00000100u; } inline void WindowDataParameter::clear_context_pad() { context_pad_ = 0u; @@ -25817,47 +28105,56 @@ inline void WindowDataParameter::set_context_pad(::google::protobuf::uint32 valu // optional string crop_mode = 11 [default = "warp"]; inline bool WindowDataParameter::has_crop_mode() const { - return (_has_bits_[0] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void WindowDataParameter::set_has_crop_mode() { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00000004u; } inline void WindowDataParameter::clear_has_crop_mode() { - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000004u; } inline void WindowDataParameter::clear_crop_mode() { - crop_mode_.ClearToDefaultNoArena(_default_crop_mode_); + crop_mode_.ClearToDefaultNoArena(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get()); clear_has_crop_mode(); } inline const ::std::string& WindowDataParameter::crop_mode() const { // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.crop_mode) - return crop_mode_.GetNoArena(_default_crop_mode_); + return crop_mode_.GetNoArena(); } inline void WindowDataParameter::set_crop_mode(const ::std::string& value) { set_has_crop_mode(); - crop_mode_.SetNoArena(_default_crop_mode_, value); + crop_mode_.SetNoArena(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get(), value); // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.crop_mode) } -inline void WindowDataParameter::set_crop_mode(const char* value) { +#if LANG_CXX11 +inline void WindowDataParameter::set_crop_mode(::std::string&& value) { set_has_crop_mode(); - crop_mode_.SetNoArena(_default_crop_mode_, ::std::string(value)); + crop_mode_.SetNoArena( + &::opencv_caffe::WindowDataParameter::_default_crop_mode_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.WindowDataParameter.crop_mode) +} +#endif +inline void WindowDataParameter::set_crop_mode(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_crop_mode(); + crop_mode_.SetNoArena(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.WindowDataParameter.crop_mode) } inline void WindowDataParameter::set_crop_mode(const char* value, size_t size) { set_has_crop_mode(); - crop_mode_.SetNoArena(_default_crop_mode_, + crop_mode_.SetNoArena(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:opencv_caffe.WindowDataParameter.crop_mode) } inline ::std::string* WindowDataParameter::mutable_crop_mode() { set_has_crop_mode(); // @@protoc_insertion_point(field_mutable:opencv_caffe.WindowDataParameter.crop_mode) - return crop_mode_.MutableNoArena(_default_crop_mode_); + return crop_mode_.MutableNoArena(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get()); } inline ::std::string* WindowDataParameter::release_crop_mode() { // @@protoc_insertion_point(field_release:opencv_caffe.WindowDataParameter.crop_mode) clear_has_crop_mode(); - return crop_mode_.ReleaseNoArena(_default_crop_mode_); + return crop_mode_.ReleaseNoArena(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get()); } inline void WindowDataParameter::set_allocated_crop_mode(::std::string* crop_mode) { if (crop_mode != NULL) { @@ -25865,19 +28162,19 @@ inline void WindowDataParameter::set_allocated_crop_mode(::std::string* crop_mod } else { clear_has_crop_mode(); } - crop_mode_.SetAllocatedNoArena(_default_crop_mode_, crop_mode); + crop_mode_.SetAllocatedNoArena(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get(), crop_mode); // @@protoc_insertion_point(field_set_allocated:opencv_caffe.WindowDataParameter.crop_mode) } // optional bool cache_images = 12 [default = false]; inline bool WindowDataParameter::has_cache_images() const { - return (_has_bits_[0] & 0x00000800u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void WindowDataParameter::set_has_cache_images() { - _has_bits_[0] |= 0x00000800u; + _has_bits_[0] |= 0x00000080u; } inline void WindowDataParameter::clear_has_cache_images() { - _has_bits_[0] &= ~0x00000800u; + _has_bits_[0] &= ~0x00000080u; } inline void WindowDataParameter::clear_cache_images() { cache_images_ = false; @@ -25895,13 +28192,13 @@ inline void WindowDataParameter::set_cache_images(bool value) { // optional string root_folder = 13 [default = ""]; inline bool WindowDataParameter::has_root_folder() const { - return (_has_bits_[0] & 0x00001000u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void WindowDataParameter::set_has_root_folder() { - _has_bits_[0] |= 0x00001000u; + _has_bits_[0] |= 0x00000008u; } inline void WindowDataParameter::clear_has_root_folder() { - _has_bits_[0] &= ~0x00001000u; + _has_bits_[0] &= ~0x00000008u; } inline void WindowDataParameter::clear_root_folder() { root_folder_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -25909,14 +28206,23 @@ inline void WindowDataParameter::clear_root_folder() { } inline const ::std::string& WindowDataParameter::root_folder() const { // @@protoc_insertion_point(field_get:opencv_caffe.WindowDataParameter.root_folder) - return root_folder_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return root_folder_.GetNoArena(); } inline void WindowDataParameter::set_root_folder(const ::std::string& value) { set_has_root_folder(); root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.WindowDataParameter.root_folder) } +#if LANG_CXX11 +inline void WindowDataParameter::set_root_folder(::std::string&& value) { + set_has_root_folder(); + root_folder_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.WindowDataParameter.root_folder) +} +#endif inline void WindowDataParameter::set_root_folder(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_root_folder(); root_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.WindowDataParameter.root_folder) @@ -25947,9 +28253,6 @@ inline void WindowDataParameter::set_allocated_root_folder(::std::string* root_f // @@protoc_insertion_point(field_set_allocated:opencv_caffe.WindowDataParameter.root_folder) } -inline const WindowDataParameter* WindowDataParameter::internal_default_instance() { - return &WindowDataParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // SPPParameter @@ -26028,9 +28331,6 @@ inline void SPPParameter::set_engine(::opencv_caffe::SPPParameter_Engine value) // @@protoc_insertion_point(field_set:opencv_caffe.SPPParameter.engine) } -inline const SPPParameter* SPPParameter::internal_default_instance() { - return &SPPParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // V1LayerParameter @@ -26054,7 +28354,14 @@ inline void V1LayerParameter::set_bottom(int index, const ::std::string& value) // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.bottom) bottom_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void V1LayerParameter::set_bottom(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.bottom) + bottom_.Mutable(index)->assign(std::move(value)); +} +#endif inline void V1LayerParameter::set_bottom(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); bottom_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.V1LayerParameter.bottom) } @@ -26071,7 +28378,14 @@ inline void V1LayerParameter::add_bottom(const ::std::string& value) { bottom_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.bottom) } +#if LANG_CXX11 +inline void V1LayerParameter::add_bottom(::std::string&& value) { + bottom_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.bottom) +} +#endif inline void V1LayerParameter::add_bottom(const char* value) { + GOOGLE_DCHECK(value != NULL); bottom_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.V1LayerParameter.bottom) } @@ -26109,7 +28423,14 @@ inline void V1LayerParameter::set_top(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.top) top_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void V1LayerParameter::set_top(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.top) + top_.Mutable(index)->assign(std::move(value)); +} +#endif inline void V1LayerParameter::set_top(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); top_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.V1LayerParameter.top) } @@ -26126,7 +28447,14 @@ inline void V1LayerParameter::add_top(const ::std::string& value) { top_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.top) } +#if LANG_CXX11 +inline void V1LayerParameter::add_top(::std::string&& value) { + top_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.top) +} +#endif inline void V1LayerParameter::add_top(const char* value) { + GOOGLE_DCHECK(value != NULL); top_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.V1LayerParameter.top) } @@ -26147,13 +28475,13 @@ V1LayerParameter::mutable_top() { // optional string name = 4; inline bool V1LayerParameter::has_name() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void V1LayerParameter::set_has_name() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000001u; } inline void V1LayerParameter::clear_has_name() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000001u; } inline void V1LayerParameter::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -26161,14 +28489,23 @@ inline void V1LayerParameter::clear_name() { } inline const ::std::string& V1LayerParameter::name() const { // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.GetNoArena(); } inline void V1LayerParameter::set_name(const ::std::string& value) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.name) } +#if LANG_CXX11 +inline void V1LayerParameter::set_name(::std::string&& value) { + set_has_name(); + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.V1LayerParameter.name) +} +#endif inline void V1LayerParameter::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.V1LayerParameter.name) @@ -26261,13 +28598,13 @@ V1LayerParameter::exclude() const { // optional .opencv_caffe.V1LayerParameter.LayerType type = 5; inline bool V1LayerParameter::has_type() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[1] & 0x00000001u) != 0; } inline void V1LayerParameter::set_has_type() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[1] |= 0x00000001u; } inline void V1LayerParameter::clear_has_type() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[1] &= ~0x00000001u; } inline void V1LayerParameter::clear_type() { type_ = 0; @@ -26333,7 +28670,14 @@ inline void V1LayerParameter::set_param(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.param) param_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void V1LayerParameter::set_param(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:opencv_caffe.V1LayerParameter.param) + param_.Mutable(index)->assign(std::move(value)); +} +#endif inline void V1LayerParameter::set_param(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); param_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:opencv_caffe.V1LayerParameter.param) } @@ -26350,7 +28694,14 @@ inline void V1LayerParameter::add_param(const ::std::string& value) { param_.Add()->assign(value); // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.param) } +#if LANG_CXX11 +inline void V1LayerParameter::add_param(::std::string&& value) { + param_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:opencv_caffe.V1LayerParameter.param) +} +#endif inline void V1LayerParameter::add_param(const char* value) { + GOOGLE_DCHECK(value != NULL); param_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:opencv_caffe.V1LayerParameter.param) } @@ -26493,22 +28844,30 @@ V1LayerParameter::mutable_loss_weight() { // optional .opencv_caffe.AccuracyParameter accuracy_param = 27; inline bool V1LayerParameter::has_accuracy_param() const { - return (_has_bits_[0] & 0x00001000u) != 0; + return (_has_bits_[0] & 0x00100000u) != 0; } inline void V1LayerParameter::set_has_accuracy_param() { - _has_bits_[0] |= 0x00001000u; + _has_bits_[0] |= 0x00100000u; } inline void V1LayerParameter::clear_has_accuracy_param() { - _has_bits_[0] &= ~0x00001000u; + _has_bits_[0] &= ~0x00100000u; } inline void V1LayerParameter::clear_accuracy_param() { - if (accuracy_param_ != NULL) accuracy_param_->::opencv_caffe::AccuracyParameter::Clear(); + if (accuracy_param_ != NULL) accuracy_param_->Clear(); clear_has_accuracy_param(); } inline const ::opencv_caffe::AccuracyParameter& V1LayerParameter::accuracy_param() const { + const ::opencv_caffe::AccuracyParameter* p = accuracy_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.accuracy_param) - return accuracy_param_ != NULL ? *accuracy_param_ - : *::opencv_caffe::AccuracyParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_AccuracyParameter_default_instance_); +} +inline ::opencv_caffe::AccuracyParameter* V1LayerParameter::release_accuracy_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.accuracy_param) + clear_has_accuracy_param(); + ::opencv_caffe::AccuracyParameter* temp = accuracy_param_; + accuracy_param_ = NULL; + return temp; } inline ::opencv_caffe::AccuracyParameter* V1LayerParameter::mutable_accuracy_param() { set_has_accuracy_param(); @@ -26518,42 +28877,51 @@ inline ::opencv_caffe::AccuracyParameter* V1LayerParameter::mutable_accuracy_par // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.accuracy_param) return accuracy_param_; } -inline ::opencv_caffe::AccuracyParameter* V1LayerParameter::release_accuracy_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.accuracy_param) - clear_has_accuracy_param(); - ::opencv_caffe::AccuracyParameter* temp = accuracy_param_; - accuracy_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_accuracy_param(::opencv_caffe::AccuracyParameter* accuracy_param) { - delete accuracy_param_; - accuracy_param_ = accuracy_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete accuracy_param_; + } if (accuracy_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + accuracy_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, accuracy_param, submessage_arena); + } set_has_accuracy_param(); } else { clear_has_accuracy_param(); } + accuracy_param_ = accuracy_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.accuracy_param) } // optional .opencv_caffe.ArgMaxParameter argmax_param = 23; inline bool V1LayerParameter::has_argmax_param() const { - return (_has_bits_[0] & 0x00002000u) != 0; + return (_has_bits_[0] & 0x00010000u) != 0; } inline void V1LayerParameter::set_has_argmax_param() { - _has_bits_[0] |= 0x00002000u; + _has_bits_[0] |= 0x00010000u; } inline void V1LayerParameter::clear_has_argmax_param() { - _has_bits_[0] &= ~0x00002000u; + _has_bits_[0] &= ~0x00010000u; } inline void V1LayerParameter::clear_argmax_param() { - if (argmax_param_ != NULL) argmax_param_->::opencv_caffe::ArgMaxParameter::Clear(); + if (argmax_param_ != NULL) argmax_param_->Clear(); clear_has_argmax_param(); } inline const ::opencv_caffe::ArgMaxParameter& V1LayerParameter::argmax_param() const { + const ::opencv_caffe::ArgMaxParameter* p = argmax_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.argmax_param) - return argmax_param_ != NULL ? *argmax_param_ - : *::opencv_caffe::ArgMaxParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ArgMaxParameter_default_instance_); +} +inline ::opencv_caffe::ArgMaxParameter* V1LayerParameter::release_argmax_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.argmax_param) + clear_has_argmax_param(); + ::opencv_caffe::ArgMaxParameter* temp = argmax_param_; + argmax_param_ = NULL; + return temp; } inline ::opencv_caffe::ArgMaxParameter* V1LayerParameter::mutable_argmax_param() { set_has_argmax_param(); @@ -26563,42 +28931,51 @@ inline ::opencv_caffe::ArgMaxParameter* V1LayerParameter::mutable_argmax_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.argmax_param) return argmax_param_; } -inline ::opencv_caffe::ArgMaxParameter* V1LayerParameter::release_argmax_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.argmax_param) - clear_has_argmax_param(); - ::opencv_caffe::ArgMaxParameter* temp = argmax_param_; - argmax_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_argmax_param(::opencv_caffe::ArgMaxParameter* argmax_param) { - delete argmax_param_; - argmax_param_ = argmax_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete argmax_param_; + } if (argmax_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + argmax_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, argmax_param, submessage_arena); + } set_has_argmax_param(); } else { clear_has_argmax_param(); } + argmax_param_ = argmax_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.argmax_param) } // optional .opencv_caffe.ConcatParameter concat_param = 9; inline bool V1LayerParameter::has_concat_param() const { - return (_has_bits_[0] & 0x00004000u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void V1LayerParameter::set_has_concat_param() { - _has_bits_[0] |= 0x00004000u; + _has_bits_[0] |= 0x00000004u; } inline void V1LayerParameter::clear_has_concat_param() { - _has_bits_[0] &= ~0x00004000u; + _has_bits_[0] &= ~0x00000004u; } inline void V1LayerParameter::clear_concat_param() { - if (concat_param_ != NULL) concat_param_->::opencv_caffe::ConcatParameter::Clear(); + if (concat_param_ != NULL) concat_param_->Clear(); clear_has_concat_param(); } inline const ::opencv_caffe::ConcatParameter& V1LayerParameter::concat_param() const { + const ::opencv_caffe::ConcatParameter* p = concat_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.concat_param) - return concat_param_ != NULL ? *concat_param_ - : *::opencv_caffe::ConcatParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ConcatParameter_default_instance_); +} +inline ::opencv_caffe::ConcatParameter* V1LayerParameter::release_concat_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.concat_param) + clear_has_concat_param(); + ::opencv_caffe::ConcatParameter* temp = concat_param_; + concat_param_ = NULL; + return temp; } inline ::opencv_caffe::ConcatParameter* V1LayerParameter::mutable_concat_param() { set_has_concat_param(); @@ -26608,42 +28985,51 @@ inline ::opencv_caffe::ConcatParameter* V1LayerParameter::mutable_concat_param() // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.concat_param) return concat_param_; } -inline ::opencv_caffe::ConcatParameter* V1LayerParameter::release_concat_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.concat_param) - clear_has_concat_param(); - ::opencv_caffe::ConcatParameter* temp = concat_param_; - concat_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_concat_param(::opencv_caffe::ConcatParameter* concat_param) { - delete concat_param_; - concat_param_ = concat_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete concat_param_; + } if (concat_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + concat_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, concat_param, submessage_arena); + } set_has_concat_param(); } else { clear_has_concat_param(); } + concat_param_ = concat_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.concat_param) } // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40; inline bool V1LayerParameter::has_contrastive_loss_param() const { - return (_has_bits_[0] & 0x00008000u) != 0; + return (_has_bits_[0] & 0x20000000u) != 0; } inline void V1LayerParameter::set_has_contrastive_loss_param() { - _has_bits_[0] |= 0x00008000u; + _has_bits_[0] |= 0x20000000u; } inline void V1LayerParameter::clear_has_contrastive_loss_param() { - _has_bits_[0] &= ~0x00008000u; + _has_bits_[0] &= ~0x20000000u; } inline void V1LayerParameter::clear_contrastive_loss_param() { - if (contrastive_loss_param_ != NULL) contrastive_loss_param_->::opencv_caffe::ContrastiveLossParameter::Clear(); + if (contrastive_loss_param_ != NULL) contrastive_loss_param_->Clear(); clear_has_contrastive_loss_param(); } inline const ::opencv_caffe::ContrastiveLossParameter& V1LayerParameter::contrastive_loss_param() const { + const ::opencv_caffe::ContrastiveLossParameter* p = contrastive_loss_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.contrastive_loss_param) - return contrastive_loss_param_ != NULL ? *contrastive_loss_param_ - : *::opencv_caffe::ContrastiveLossParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ContrastiveLossParameter_default_instance_); +} +inline ::opencv_caffe::ContrastiveLossParameter* V1LayerParameter::release_contrastive_loss_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.contrastive_loss_param) + clear_has_contrastive_loss_param(); + ::opencv_caffe::ContrastiveLossParameter* temp = contrastive_loss_param_; + contrastive_loss_param_ = NULL; + return temp; } inline ::opencv_caffe::ContrastiveLossParameter* V1LayerParameter::mutable_contrastive_loss_param() { set_has_contrastive_loss_param(); @@ -26653,42 +29039,51 @@ inline ::opencv_caffe::ContrastiveLossParameter* V1LayerParameter::mutable_contr // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.contrastive_loss_param) return contrastive_loss_param_; } -inline ::opencv_caffe::ContrastiveLossParameter* V1LayerParameter::release_contrastive_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.contrastive_loss_param) - clear_has_contrastive_loss_param(); - ::opencv_caffe::ContrastiveLossParameter* temp = contrastive_loss_param_; - contrastive_loss_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_contrastive_loss_param(::opencv_caffe::ContrastiveLossParameter* contrastive_loss_param) { - delete contrastive_loss_param_; - contrastive_loss_param_ = contrastive_loss_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete contrastive_loss_param_; + } if (contrastive_loss_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + contrastive_loss_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, contrastive_loss_param, submessage_arena); + } set_has_contrastive_loss_param(); } else { clear_has_contrastive_loss_param(); } + contrastive_loss_param_ = contrastive_loss_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.contrastive_loss_param) } // optional .opencv_caffe.ConvolutionParameter convolution_param = 10; inline bool V1LayerParameter::has_convolution_param() const { - return (_has_bits_[0] & 0x00010000u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void V1LayerParameter::set_has_convolution_param() { - _has_bits_[0] |= 0x00010000u; + _has_bits_[0] |= 0x00000008u; } inline void V1LayerParameter::clear_has_convolution_param() { - _has_bits_[0] &= ~0x00010000u; + _has_bits_[0] &= ~0x00000008u; } inline void V1LayerParameter::clear_convolution_param() { - if (convolution_param_ != NULL) convolution_param_->::opencv_caffe::ConvolutionParameter::Clear(); + if (convolution_param_ != NULL) convolution_param_->Clear(); clear_has_convolution_param(); } inline const ::opencv_caffe::ConvolutionParameter& V1LayerParameter::convolution_param() const { + const ::opencv_caffe::ConvolutionParameter* p = convolution_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.convolution_param) - return convolution_param_ != NULL ? *convolution_param_ - : *::opencv_caffe::ConvolutionParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ConvolutionParameter_default_instance_); +} +inline ::opencv_caffe::ConvolutionParameter* V1LayerParameter::release_convolution_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.convolution_param) + clear_has_convolution_param(); + ::opencv_caffe::ConvolutionParameter* temp = convolution_param_; + convolution_param_ = NULL; + return temp; } inline ::opencv_caffe::ConvolutionParameter* V1LayerParameter::mutable_convolution_param() { set_has_convolution_param(); @@ -26698,42 +29093,51 @@ inline ::opencv_caffe::ConvolutionParameter* V1LayerParameter::mutable_convoluti // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.convolution_param) return convolution_param_; } -inline ::opencv_caffe::ConvolutionParameter* V1LayerParameter::release_convolution_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.convolution_param) - clear_has_convolution_param(); - ::opencv_caffe::ConvolutionParameter* temp = convolution_param_; - convolution_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_convolution_param(::opencv_caffe::ConvolutionParameter* convolution_param) { - delete convolution_param_; - convolution_param_ = convolution_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete convolution_param_; + } if (convolution_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + convolution_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, convolution_param, submessage_arena); + } set_has_convolution_param(); } else { clear_has_convolution_param(); } + convolution_param_ = convolution_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.convolution_param) } // optional .opencv_caffe.DataParameter data_param = 11; inline bool V1LayerParameter::has_data_param() const { - return (_has_bits_[0] & 0x00020000u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void V1LayerParameter::set_has_data_param() { - _has_bits_[0] |= 0x00020000u; + _has_bits_[0] |= 0x00000010u; } inline void V1LayerParameter::clear_has_data_param() { - _has_bits_[0] &= ~0x00020000u; + _has_bits_[0] &= ~0x00000010u; } inline void V1LayerParameter::clear_data_param() { - if (data_param_ != NULL) data_param_->::opencv_caffe::DataParameter::Clear(); + if (data_param_ != NULL) data_param_->Clear(); clear_has_data_param(); } inline const ::opencv_caffe::DataParameter& V1LayerParameter::data_param() const { + const ::opencv_caffe::DataParameter* p = data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.data_param) - return data_param_ != NULL ? *data_param_ - : *::opencv_caffe::DataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_DataParameter_default_instance_); +} +inline ::opencv_caffe::DataParameter* V1LayerParameter::release_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.data_param) + clear_has_data_param(); + ::opencv_caffe::DataParameter* temp = data_param_; + data_param_ = NULL; + return temp; } inline ::opencv_caffe::DataParameter* V1LayerParameter::mutable_data_param() { set_has_data_param(); @@ -26743,42 +29147,51 @@ inline ::opencv_caffe::DataParameter* V1LayerParameter::mutable_data_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.data_param) return data_param_; } -inline ::opencv_caffe::DataParameter* V1LayerParameter::release_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.data_param) - clear_has_data_param(); - ::opencv_caffe::DataParameter* temp = data_param_; - data_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_data_param(::opencv_caffe::DataParameter* data_param) { - delete data_param_; - data_param_ = data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete data_param_; + } if (data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, data_param, submessage_arena); + } set_has_data_param(); } else { clear_has_data_param(); } + data_param_ = data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.data_param) } // optional .opencv_caffe.DropoutParameter dropout_param = 12; inline bool V1LayerParameter::has_dropout_param() const { - return (_has_bits_[0] & 0x00040000u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void V1LayerParameter::set_has_dropout_param() { - _has_bits_[0] |= 0x00040000u; + _has_bits_[0] |= 0x00000020u; } inline void V1LayerParameter::clear_has_dropout_param() { - _has_bits_[0] &= ~0x00040000u; + _has_bits_[0] &= ~0x00000020u; } inline void V1LayerParameter::clear_dropout_param() { - if (dropout_param_ != NULL) dropout_param_->::opencv_caffe::DropoutParameter::Clear(); + if (dropout_param_ != NULL) dropout_param_->Clear(); clear_has_dropout_param(); } inline const ::opencv_caffe::DropoutParameter& V1LayerParameter::dropout_param() const { + const ::opencv_caffe::DropoutParameter* p = dropout_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.dropout_param) - return dropout_param_ != NULL ? *dropout_param_ - : *::opencv_caffe::DropoutParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_DropoutParameter_default_instance_); +} +inline ::opencv_caffe::DropoutParameter* V1LayerParameter::release_dropout_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.dropout_param) + clear_has_dropout_param(); + ::opencv_caffe::DropoutParameter* temp = dropout_param_; + dropout_param_ = NULL; + return temp; } inline ::opencv_caffe::DropoutParameter* V1LayerParameter::mutable_dropout_param() { set_has_dropout_param(); @@ -26788,21 +29201,22 @@ inline ::opencv_caffe::DropoutParameter* V1LayerParameter::mutable_dropout_param // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.dropout_param) return dropout_param_; } -inline ::opencv_caffe::DropoutParameter* V1LayerParameter::release_dropout_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.dropout_param) - clear_has_dropout_param(); - ::opencv_caffe::DropoutParameter* temp = dropout_param_; - dropout_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_dropout_param(::opencv_caffe::DropoutParameter* dropout_param) { - delete dropout_param_; - dropout_param_ = dropout_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete dropout_param_; + } if (dropout_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + dropout_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dropout_param, submessage_arena); + } set_has_dropout_param(); } else { clear_has_dropout_param(); } + dropout_param_ = dropout_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.dropout_param) } @@ -26817,13 +29231,21 @@ inline void V1LayerParameter::clear_has_dummy_data_param() { _has_bits_[0] &= ~0x00080000u; } inline void V1LayerParameter::clear_dummy_data_param() { - if (dummy_data_param_ != NULL) dummy_data_param_->::opencv_caffe::DummyDataParameter::Clear(); + if (dummy_data_param_ != NULL) dummy_data_param_->Clear(); clear_has_dummy_data_param(); } inline const ::opencv_caffe::DummyDataParameter& V1LayerParameter::dummy_data_param() const { + const ::opencv_caffe::DummyDataParameter* p = dummy_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.dummy_data_param) - return dummy_data_param_ != NULL ? *dummy_data_param_ - : *::opencv_caffe::DummyDataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_DummyDataParameter_default_instance_); +} +inline ::opencv_caffe::DummyDataParameter* V1LayerParameter::release_dummy_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.dummy_data_param) + clear_has_dummy_data_param(); + ::opencv_caffe::DummyDataParameter* temp = dummy_data_param_; + dummy_data_param_ = NULL; + return temp; } inline ::opencv_caffe::DummyDataParameter* V1LayerParameter::mutable_dummy_data_param() { set_has_dummy_data_param(); @@ -26833,42 +29255,51 @@ inline ::opencv_caffe::DummyDataParameter* V1LayerParameter::mutable_dummy_data_ // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.dummy_data_param) return dummy_data_param_; } -inline ::opencv_caffe::DummyDataParameter* V1LayerParameter::release_dummy_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.dummy_data_param) - clear_has_dummy_data_param(); - ::opencv_caffe::DummyDataParameter* temp = dummy_data_param_; - dummy_data_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_dummy_data_param(::opencv_caffe::DummyDataParameter* dummy_data_param) { - delete dummy_data_param_; - dummy_data_param_ = dummy_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete dummy_data_param_; + } if (dummy_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + dummy_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dummy_data_param, submessage_arena); + } set_has_dummy_data_param(); } else { clear_has_dummy_data_param(); } + dummy_data_param_ = dummy_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.dummy_data_param) } // optional .opencv_caffe.EltwiseParameter eltwise_param = 24; inline bool V1LayerParameter::has_eltwise_param() const { - return (_has_bits_[0] & 0x00100000u) != 0; + return (_has_bits_[0] & 0x00020000u) != 0; } inline void V1LayerParameter::set_has_eltwise_param() { - _has_bits_[0] |= 0x00100000u; + _has_bits_[0] |= 0x00020000u; } inline void V1LayerParameter::clear_has_eltwise_param() { - _has_bits_[0] &= ~0x00100000u; + _has_bits_[0] &= ~0x00020000u; } inline void V1LayerParameter::clear_eltwise_param() { - if (eltwise_param_ != NULL) eltwise_param_->::opencv_caffe::EltwiseParameter::Clear(); + if (eltwise_param_ != NULL) eltwise_param_->Clear(); clear_has_eltwise_param(); } inline const ::opencv_caffe::EltwiseParameter& V1LayerParameter::eltwise_param() const { + const ::opencv_caffe::EltwiseParameter* p = eltwise_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.eltwise_param) - return eltwise_param_ != NULL ? *eltwise_param_ - : *::opencv_caffe::EltwiseParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_EltwiseParameter_default_instance_); +} +inline ::opencv_caffe::EltwiseParameter* V1LayerParameter::release_eltwise_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.eltwise_param) + clear_has_eltwise_param(); + ::opencv_caffe::EltwiseParameter* temp = eltwise_param_; + eltwise_param_ = NULL; + return temp; } inline ::opencv_caffe::EltwiseParameter* V1LayerParameter::mutable_eltwise_param() { set_has_eltwise_param(); @@ -26878,42 +29309,51 @@ inline ::opencv_caffe::EltwiseParameter* V1LayerParameter::mutable_eltwise_param // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.eltwise_param) return eltwise_param_; } -inline ::opencv_caffe::EltwiseParameter* V1LayerParameter::release_eltwise_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.eltwise_param) - clear_has_eltwise_param(); - ::opencv_caffe::EltwiseParameter* temp = eltwise_param_; - eltwise_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_eltwise_param(::opencv_caffe::EltwiseParameter* eltwise_param) { - delete eltwise_param_; - eltwise_param_ = eltwise_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete eltwise_param_; + } if (eltwise_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + eltwise_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, eltwise_param, submessage_arena); + } set_has_eltwise_param(); } else { clear_has_eltwise_param(); } + eltwise_param_ = eltwise_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.eltwise_param) } // optional .opencv_caffe.ExpParameter exp_param = 41; inline bool V1LayerParameter::has_exp_param() const { - return (_has_bits_[0] & 0x00200000u) != 0; + return (_has_bits_[0] & 0x40000000u) != 0; } inline void V1LayerParameter::set_has_exp_param() { - _has_bits_[0] |= 0x00200000u; + _has_bits_[0] |= 0x40000000u; } inline void V1LayerParameter::clear_has_exp_param() { - _has_bits_[0] &= ~0x00200000u; + _has_bits_[0] &= ~0x40000000u; } inline void V1LayerParameter::clear_exp_param() { - if (exp_param_ != NULL) exp_param_->::opencv_caffe::ExpParameter::Clear(); + if (exp_param_ != NULL) exp_param_->Clear(); clear_has_exp_param(); } inline const ::opencv_caffe::ExpParameter& V1LayerParameter::exp_param() const { + const ::opencv_caffe::ExpParameter* p = exp_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.exp_param) - return exp_param_ != NULL ? *exp_param_ - : *::opencv_caffe::ExpParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ExpParameter_default_instance_); +} +inline ::opencv_caffe::ExpParameter* V1LayerParameter::release_exp_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.exp_param) + clear_has_exp_param(); + ::opencv_caffe::ExpParameter* temp = exp_param_; + exp_param_ = NULL; + return temp; } inline ::opencv_caffe::ExpParameter* V1LayerParameter::mutable_exp_param() { set_has_exp_param(); @@ -26923,42 +29363,51 @@ inline ::opencv_caffe::ExpParameter* V1LayerParameter::mutable_exp_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.exp_param) return exp_param_; } -inline ::opencv_caffe::ExpParameter* V1LayerParameter::release_exp_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.exp_param) - clear_has_exp_param(); - ::opencv_caffe::ExpParameter* temp = exp_param_; - exp_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_exp_param(::opencv_caffe::ExpParameter* exp_param) { - delete exp_param_; - exp_param_ = exp_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete exp_param_; + } if (exp_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + exp_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, exp_param, submessage_arena); + } set_has_exp_param(); } else { clear_has_exp_param(); } + exp_param_ = exp_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.exp_param) } // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13; inline bool V1LayerParameter::has_hdf5_data_param() const { - return (_has_bits_[0] & 0x00400000u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void V1LayerParameter::set_has_hdf5_data_param() { - _has_bits_[0] |= 0x00400000u; + _has_bits_[0] |= 0x00000040u; } inline void V1LayerParameter::clear_has_hdf5_data_param() { - _has_bits_[0] &= ~0x00400000u; + _has_bits_[0] &= ~0x00000040u; } inline void V1LayerParameter::clear_hdf5_data_param() { - if (hdf5_data_param_ != NULL) hdf5_data_param_->::opencv_caffe::HDF5DataParameter::Clear(); + if (hdf5_data_param_ != NULL) hdf5_data_param_->Clear(); clear_has_hdf5_data_param(); } inline const ::opencv_caffe::HDF5DataParameter& V1LayerParameter::hdf5_data_param() const { + const ::opencv_caffe::HDF5DataParameter* p = hdf5_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.hdf5_data_param) - return hdf5_data_param_ != NULL ? *hdf5_data_param_ - : *::opencv_caffe::HDF5DataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_HDF5DataParameter_default_instance_); +} +inline ::opencv_caffe::HDF5DataParameter* V1LayerParameter::release_hdf5_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.hdf5_data_param) + clear_has_hdf5_data_param(); + ::opencv_caffe::HDF5DataParameter* temp = hdf5_data_param_; + hdf5_data_param_ = NULL; + return temp; } inline ::opencv_caffe::HDF5DataParameter* V1LayerParameter::mutable_hdf5_data_param() { set_has_hdf5_data_param(); @@ -26968,42 +29417,51 @@ inline ::opencv_caffe::HDF5DataParameter* V1LayerParameter::mutable_hdf5_data_pa // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.hdf5_data_param) return hdf5_data_param_; } -inline ::opencv_caffe::HDF5DataParameter* V1LayerParameter::release_hdf5_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.hdf5_data_param) - clear_has_hdf5_data_param(); - ::opencv_caffe::HDF5DataParameter* temp = hdf5_data_param_; - hdf5_data_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_hdf5_data_param(::opencv_caffe::HDF5DataParameter* hdf5_data_param) { - delete hdf5_data_param_; - hdf5_data_param_ = hdf5_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete hdf5_data_param_; + } if (hdf5_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + hdf5_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hdf5_data_param, submessage_arena); + } set_has_hdf5_data_param(); } else { clear_has_hdf5_data_param(); } + hdf5_data_param_ = hdf5_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.hdf5_data_param) } // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14; inline bool V1LayerParameter::has_hdf5_output_param() const { - return (_has_bits_[0] & 0x00800000u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void V1LayerParameter::set_has_hdf5_output_param() { - _has_bits_[0] |= 0x00800000u; + _has_bits_[0] |= 0x00000080u; } inline void V1LayerParameter::clear_has_hdf5_output_param() { - _has_bits_[0] &= ~0x00800000u; + _has_bits_[0] &= ~0x00000080u; } inline void V1LayerParameter::clear_hdf5_output_param() { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::opencv_caffe::HDF5OutputParameter::Clear(); + if (hdf5_output_param_ != NULL) hdf5_output_param_->Clear(); clear_has_hdf5_output_param(); } inline const ::opencv_caffe::HDF5OutputParameter& V1LayerParameter::hdf5_output_param() const { + const ::opencv_caffe::HDF5OutputParameter* p = hdf5_output_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.hdf5_output_param) - return hdf5_output_param_ != NULL ? *hdf5_output_param_ - : *::opencv_caffe::HDF5OutputParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_HDF5OutputParameter_default_instance_); +} +inline ::opencv_caffe::HDF5OutputParameter* V1LayerParameter::release_hdf5_output_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.hdf5_output_param) + clear_has_hdf5_output_param(); + ::opencv_caffe::HDF5OutputParameter* temp = hdf5_output_param_; + hdf5_output_param_ = NULL; + return temp; } inline ::opencv_caffe::HDF5OutputParameter* V1LayerParameter::mutable_hdf5_output_param() { set_has_hdf5_output_param(); @@ -27013,42 +29471,51 @@ inline ::opencv_caffe::HDF5OutputParameter* V1LayerParameter::mutable_hdf5_outpu // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.hdf5_output_param) return hdf5_output_param_; } -inline ::opencv_caffe::HDF5OutputParameter* V1LayerParameter::release_hdf5_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.hdf5_output_param) - clear_has_hdf5_output_param(); - ::opencv_caffe::HDF5OutputParameter* temp = hdf5_output_param_; - hdf5_output_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param) { - delete hdf5_output_param_; - hdf5_output_param_ = hdf5_output_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete hdf5_output_param_; + } if (hdf5_output_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + hdf5_output_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hdf5_output_param, submessage_arena); + } set_has_hdf5_output_param(); } else { clear_has_hdf5_output_param(); } + hdf5_output_param_ = hdf5_output_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.hdf5_output_param) } // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29; inline bool V1LayerParameter::has_hinge_loss_param() const { - return (_has_bits_[0] & 0x01000000u) != 0; + return (_has_bits_[0] & 0x00200000u) != 0; } inline void V1LayerParameter::set_has_hinge_loss_param() { - _has_bits_[0] |= 0x01000000u; + _has_bits_[0] |= 0x00200000u; } inline void V1LayerParameter::clear_has_hinge_loss_param() { - _has_bits_[0] &= ~0x01000000u; + _has_bits_[0] &= ~0x00200000u; } inline void V1LayerParameter::clear_hinge_loss_param() { - if (hinge_loss_param_ != NULL) hinge_loss_param_->::opencv_caffe::HingeLossParameter::Clear(); + if (hinge_loss_param_ != NULL) hinge_loss_param_->Clear(); clear_has_hinge_loss_param(); } inline const ::opencv_caffe::HingeLossParameter& V1LayerParameter::hinge_loss_param() const { + const ::opencv_caffe::HingeLossParameter* p = hinge_loss_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.hinge_loss_param) - return hinge_loss_param_ != NULL ? *hinge_loss_param_ - : *::opencv_caffe::HingeLossParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_HingeLossParameter_default_instance_); +} +inline ::opencv_caffe::HingeLossParameter* V1LayerParameter::release_hinge_loss_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.hinge_loss_param) + clear_has_hinge_loss_param(); + ::opencv_caffe::HingeLossParameter* temp = hinge_loss_param_; + hinge_loss_param_ = NULL; + return temp; } inline ::opencv_caffe::HingeLossParameter* V1LayerParameter::mutable_hinge_loss_param() { set_has_hinge_loss_param(); @@ -27058,42 +29525,51 @@ inline ::opencv_caffe::HingeLossParameter* V1LayerParameter::mutable_hinge_loss_ // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.hinge_loss_param) return hinge_loss_param_; } -inline ::opencv_caffe::HingeLossParameter* V1LayerParameter::release_hinge_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.hinge_loss_param) - clear_has_hinge_loss_param(); - ::opencv_caffe::HingeLossParameter* temp = hinge_loss_param_; - hinge_loss_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_hinge_loss_param(::opencv_caffe::HingeLossParameter* hinge_loss_param) { - delete hinge_loss_param_; - hinge_loss_param_ = hinge_loss_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete hinge_loss_param_; + } if (hinge_loss_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + hinge_loss_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hinge_loss_param, submessage_arena); + } set_has_hinge_loss_param(); } else { clear_has_hinge_loss_param(); } + hinge_loss_param_ = hinge_loss_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.hinge_loss_param) } // optional .opencv_caffe.ImageDataParameter image_data_param = 15; inline bool V1LayerParameter::has_image_data_param() const { - return (_has_bits_[0] & 0x02000000u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void V1LayerParameter::set_has_image_data_param() { - _has_bits_[0] |= 0x02000000u; + _has_bits_[0] |= 0x00000100u; } inline void V1LayerParameter::clear_has_image_data_param() { - _has_bits_[0] &= ~0x02000000u; + _has_bits_[0] &= ~0x00000100u; } inline void V1LayerParameter::clear_image_data_param() { - if (image_data_param_ != NULL) image_data_param_->::opencv_caffe::ImageDataParameter::Clear(); + if (image_data_param_ != NULL) image_data_param_->Clear(); clear_has_image_data_param(); } inline const ::opencv_caffe::ImageDataParameter& V1LayerParameter::image_data_param() const { + const ::opencv_caffe::ImageDataParameter* p = image_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.image_data_param) - return image_data_param_ != NULL ? *image_data_param_ - : *::opencv_caffe::ImageDataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ImageDataParameter_default_instance_); +} +inline ::opencv_caffe::ImageDataParameter* V1LayerParameter::release_image_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.image_data_param) + clear_has_image_data_param(); + ::opencv_caffe::ImageDataParameter* temp = image_data_param_; + image_data_param_ = NULL; + return temp; } inline ::opencv_caffe::ImageDataParameter* V1LayerParameter::mutable_image_data_param() { set_has_image_data_param(); @@ -27103,42 +29579,51 @@ inline ::opencv_caffe::ImageDataParameter* V1LayerParameter::mutable_image_data_ // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.image_data_param) return image_data_param_; } -inline ::opencv_caffe::ImageDataParameter* V1LayerParameter::release_image_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.image_data_param) - clear_has_image_data_param(); - ::opencv_caffe::ImageDataParameter* temp = image_data_param_; - image_data_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_image_data_param(::opencv_caffe::ImageDataParameter* image_data_param) { - delete image_data_param_; - image_data_param_ = image_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete image_data_param_; + } if (image_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + image_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, image_data_param, submessage_arena); + } set_has_image_data_param(); } else { clear_has_image_data_param(); } + image_data_param_ = image_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.image_data_param) } // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16; inline bool V1LayerParameter::has_infogain_loss_param() const { - return (_has_bits_[0] & 0x04000000u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void V1LayerParameter::set_has_infogain_loss_param() { - _has_bits_[0] |= 0x04000000u; + _has_bits_[0] |= 0x00000200u; } inline void V1LayerParameter::clear_has_infogain_loss_param() { - _has_bits_[0] &= ~0x04000000u; + _has_bits_[0] &= ~0x00000200u; } inline void V1LayerParameter::clear_infogain_loss_param() { - if (infogain_loss_param_ != NULL) infogain_loss_param_->::opencv_caffe::InfogainLossParameter::Clear(); + if (infogain_loss_param_ != NULL) infogain_loss_param_->Clear(); clear_has_infogain_loss_param(); } inline const ::opencv_caffe::InfogainLossParameter& V1LayerParameter::infogain_loss_param() const { + const ::opencv_caffe::InfogainLossParameter* p = infogain_loss_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.infogain_loss_param) - return infogain_loss_param_ != NULL ? *infogain_loss_param_ - : *::opencv_caffe::InfogainLossParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_InfogainLossParameter_default_instance_); +} +inline ::opencv_caffe::InfogainLossParameter* V1LayerParameter::release_infogain_loss_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.infogain_loss_param) + clear_has_infogain_loss_param(); + ::opencv_caffe::InfogainLossParameter* temp = infogain_loss_param_; + infogain_loss_param_ = NULL; + return temp; } inline ::opencv_caffe::InfogainLossParameter* V1LayerParameter::mutable_infogain_loss_param() { set_has_infogain_loss_param(); @@ -27148,42 +29633,51 @@ inline ::opencv_caffe::InfogainLossParameter* V1LayerParameter::mutable_infogain // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.infogain_loss_param) return infogain_loss_param_; } -inline ::opencv_caffe::InfogainLossParameter* V1LayerParameter::release_infogain_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.infogain_loss_param) - clear_has_infogain_loss_param(); - ::opencv_caffe::InfogainLossParameter* temp = infogain_loss_param_; - infogain_loss_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_infogain_loss_param(::opencv_caffe::InfogainLossParameter* infogain_loss_param) { - delete infogain_loss_param_; - infogain_loss_param_ = infogain_loss_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete infogain_loss_param_; + } if (infogain_loss_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + infogain_loss_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, infogain_loss_param, submessage_arena); + } set_has_infogain_loss_param(); } else { clear_has_infogain_loss_param(); } + infogain_loss_param_ = infogain_loss_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.infogain_loss_param) } // optional .opencv_caffe.InnerProductParameter inner_product_param = 17; inline bool V1LayerParameter::has_inner_product_param() const { - return (_has_bits_[0] & 0x08000000u) != 0; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void V1LayerParameter::set_has_inner_product_param() { - _has_bits_[0] |= 0x08000000u; + _has_bits_[0] |= 0x00000400u; } inline void V1LayerParameter::clear_has_inner_product_param() { - _has_bits_[0] &= ~0x08000000u; + _has_bits_[0] &= ~0x00000400u; } inline void V1LayerParameter::clear_inner_product_param() { - if (inner_product_param_ != NULL) inner_product_param_->::opencv_caffe::InnerProductParameter::Clear(); + if (inner_product_param_ != NULL) inner_product_param_->Clear(); clear_has_inner_product_param(); } inline const ::opencv_caffe::InnerProductParameter& V1LayerParameter::inner_product_param() const { + const ::opencv_caffe::InnerProductParameter* p = inner_product_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.inner_product_param) - return inner_product_param_ != NULL ? *inner_product_param_ - : *::opencv_caffe::InnerProductParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_InnerProductParameter_default_instance_); +} +inline ::opencv_caffe::InnerProductParameter* V1LayerParameter::release_inner_product_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.inner_product_param) + clear_has_inner_product_param(); + ::opencv_caffe::InnerProductParameter* temp = inner_product_param_; + inner_product_param_ = NULL; + return temp; } inline ::opencv_caffe::InnerProductParameter* V1LayerParameter::mutable_inner_product_param() { set_has_inner_product_param(); @@ -27193,42 +29687,51 @@ inline ::opencv_caffe::InnerProductParameter* V1LayerParameter::mutable_inner_pr // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.inner_product_param) return inner_product_param_; } -inline ::opencv_caffe::InnerProductParameter* V1LayerParameter::release_inner_product_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.inner_product_param) - clear_has_inner_product_param(); - ::opencv_caffe::InnerProductParameter* temp = inner_product_param_; - inner_product_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_inner_product_param(::opencv_caffe::InnerProductParameter* inner_product_param) { - delete inner_product_param_; - inner_product_param_ = inner_product_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete inner_product_param_; + } if (inner_product_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + inner_product_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inner_product_param, submessage_arena); + } set_has_inner_product_param(); } else { clear_has_inner_product_param(); } + inner_product_param_ = inner_product_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.inner_product_param) } // optional .opencv_caffe.LRNParameter lrn_param = 18; inline bool V1LayerParameter::has_lrn_param() const { - return (_has_bits_[0] & 0x10000000u) != 0; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void V1LayerParameter::set_has_lrn_param() { - _has_bits_[0] |= 0x10000000u; + _has_bits_[0] |= 0x00000800u; } inline void V1LayerParameter::clear_has_lrn_param() { - _has_bits_[0] &= ~0x10000000u; + _has_bits_[0] &= ~0x00000800u; } inline void V1LayerParameter::clear_lrn_param() { - if (lrn_param_ != NULL) lrn_param_->::opencv_caffe::LRNParameter::Clear(); + if (lrn_param_ != NULL) lrn_param_->Clear(); clear_has_lrn_param(); } inline const ::opencv_caffe::LRNParameter& V1LayerParameter::lrn_param() const { + const ::opencv_caffe::LRNParameter* p = lrn_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.lrn_param) - return lrn_param_ != NULL ? *lrn_param_ - : *::opencv_caffe::LRNParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_LRNParameter_default_instance_); +} +inline ::opencv_caffe::LRNParameter* V1LayerParameter::release_lrn_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.lrn_param) + clear_has_lrn_param(); + ::opencv_caffe::LRNParameter* temp = lrn_param_; + lrn_param_ = NULL; + return temp; } inline ::opencv_caffe::LRNParameter* V1LayerParameter::mutable_lrn_param() { set_has_lrn_param(); @@ -27238,42 +29741,51 @@ inline ::opencv_caffe::LRNParameter* V1LayerParameter::mutable_lrn_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.lrn_param) return lrn_param_; } -inline ::opencv_caffe::LRNParameter* V1LayerParameter::release_lrn_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.lrn_param) - clear_has_lrn_param(); - ::opencv_caffe::LRNParameter* temp = lrn_param_; - lrn_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_lrn_param(::opencv_caffe::LRNParameter* lrn_param) { - delete lrn_param_; - lrn_param_ = lrn_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete lrn_param_; + } if (lrn_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + lrn_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, lrn_param, submessage_arena); + } set_has_lrn_param(); } else { clear_has_lrn_param(); } + lrn_param_ = lrn_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.lrn_param) } // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22; inline bool V1LayerParameter::has_memory_data_param() const { - return (_has_bits_[0] & 0x20000000u) != 0; + return (_has_bits_[0] & 0x00008000u) != 0; } inline void V1LayerParameter::set_has_memory_data_param() { - _has_bits_[0] |= 0x20000000u; + _has_bits_[0] |= 0x00008000u; } inline void V1LayerParameter::clear_has_memory_data_param() { - _has_bits_[0] &= ~0x20000000u; + _has_bits_[0] &= ~0x00008000u; } inline void V1LayerParameter::clear_memory_data_param() { - if (memory_data_param_ != NULL) memory_data_param_->::opencv_caffe::MemoryDataParameter::Clear(); + if (memory_data_param_ != NULL) memory_data_param_->Clear(); clear_has_memory_data_param(); } inline const ::opencv_caffe::MemoryDataParameter& V1LayerParameter::memory_data_param() const { + const ::opencv_caffe::MemoryDataParameter* p = memory_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.memory_data_param) - return memory_data_param_ != NULL ? *memory_data_param_ - : *::opencv_caffe::MemoryDataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_MemoryDataParameter_default_instance_); +} +inline ::opencv_caffe::MemoryDataParameter* V1LayerParameter::release_memory_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.memory_data_param) + clear_has_memory_data_param(); + ::opencv_caffe::MemoryDataParameter* temp = memory_data_param_; + memory_data_param_ = NULL; + return temp; } inline ::opencv_caffe::MemoryDataParameter* V1LayerParameter::mutable_memory_data_param() { set_has_memory_data_param(); @@ -27283,42 +29795,51 @@ inline ::opencv_caffe::MemoryDataParameter* V1LayerParameter::mutable_memory_dat // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.memory_data_param) return memory_data_param_; } -inline ::opencv_caffe::MemoryDataParameter* V1LayerParameter::release_memory_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.memory_data_param) - clear_has_memory_data_param(); - ::opencv_caffe::MemoryDataParameter* temp = memory_data_param_; - memory_data_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_memory_data_param(::opencv_caffe::MemoryDataParameter* memory_data_param) { - delete memory_data_param_; - memory_data_param_ = memory_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete memory_data_param_; + } if (memory_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + memory_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, memory_data_param, submessage_arena); + } set_has_memory_data_param(); } else { clear_has_memory_data_param(); } + memory_data_param_ = memory_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.memory_data_param) } // optional .opencv_caffe.MVNParameter mvn_param = 34; inline bool V1LayerParameter::has_mvn_param() const { - return (_has_bits_[0] & 0x40000000u) != 0; + return (_has_bits_[0] & 0x01000000u) != 0; } inline void V1LayerParameter::set_has_mvn_param() { - _has_bits_[0] |= 0x40000000u; + _has_bits_[0] |= 0x01000000u; } inline void V1LayerParameter::clear_has_mvn_param() { - _has_bits_[0] &= ~0x40000000u; + _has_bits_[0] &= ~0x01000000u; } inline void V1LayerParameter::clear_mvn_param() { - if (mvn_param_ != NULL) mvn_param_->::opencv_caffe::MVNParameter::Clear(); + if (mvn_param_ != NULL) mvn_param_->Clear(); clear_has_mvn_param(); } inline const ::opencv_caffe::MVNParameter& V1LayerParameter::mvn_param() const { + const ::opencv_caffe::MVNParameter* p = mvn_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.mvn_param) - return mvn_param_ != NULL ? *mvn_param_ - : *::opencv_caffe::MVNParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_MVNParameter_default_instance_); +} +inline ::opencv_caffe::MVNParameter* V1LayerParameter::release_mvn_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.mvn_param) + clear_has_mvn_param(); + ::opencv_caffe::MVNParameter* temp = mvn_param_; + mvn_param_ = NULL; + return temp; } inline ::opencv_caffe::MVNParameter* V1LayerParameter::mutable_mvn_param() { set_has_mvn_param(); @@ -27328,42 +29849,51 @@ inline ::opencv_caffe::MVNParameter* V1LayerParameter::mutable_mvn_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.mvn_param) return mvn_param_; } -inline ::opencv_caffe::MVNParameter* V1LayerParameter::release_mvn_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.mvn_param) - clear_has_mvn_param(); - ::opencv_caffe::MVNParameter* temp = mvn_param_; - mvn_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_mvn_param(::opencv_caffe::MVNParameter* mvn_param) { - delete mvn_param_; - mvn_param_ = mvn_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete mvn_param_; + } if (mvn_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + mvn_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, mvn_param, submessage_arena); + } set_has_mvn_param(); } else { clear_has_mvn_param(); } + mvn_param_ = mvn_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.mvn_param) } // optional .opencv_caffe.PoolingParameter pooling_param = 19; inline bool V1LayerParameter::has_pooling_param() const { - return (_has_bits_[0] & 0x80000000u) != 0; + return (_has_bits_[0] & 0x00001000u) != 0; } inline void V1LayerParameter::set_has_pooling_param() { - _has_bits_[0] |= 0x80000000u; + _has_bits_[0] |= 0x00001000u; } inline void V1LayerParameter::clear_has_pooling_param() { - _has_bits_[0] &= ~0x80000000u; + _has_bits_[0] &= ~0x00001000u; } inline void V1LayerParameter::clear_pooling_param() { - if (pooling_param_ != NULL) pooling_param_->::opencv_caffe::PoolingParameter::Clear(); + if (pooling_param_ != NULL) pooling_param_->Clear(); clear_has_pooling_param(); } inline const ::opencv_caffe::PoolingParameter& V1LayerParameter::pooling_param() const { + const ::opencv_caffe::PoolingParameter* p = pooling_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.pooling_param) - return pooling_param_ != NULL ? *pooling_param_ - : *::opencv_caffe::PoolingParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_PoolingParameter_default_instance_); +} +inline ::opencv_caffe::PoolingParameter* V1LayerParameter::release_pooling_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.pooling_param) + clear_has_pooling_param(); + ::opencv_caffe::PoolingParameter* temp = pooling_param_; + pooling_param_ = NULL; + return temp; } inline ::opencv_caffe::PoolingParameter* V1LayerParameter::mutable_pooling_param() { set_has_pooling_param(); @@ -27373,42 +29903,51 @@ inline ::opencv_caffe::PoolingParameter* V1LayerParameter::mutable_pooling_param // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.pooling_param) return pooling_param_; } -inline ::opencv_caffe::PoolingParameter* V1LayerParameter::release_pooling_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.pooling_param) - clear_has_pooling_param(); - ::opencv_caffe::PoolingParameter* temp = pooling_param_; - pooling_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_pooling_param(::opencv_caffe::PoolingParameter* pooling_param) { - delete pooling_param_; - pooling_param_ = pooling_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete pooling_param_; + } if (pooling_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + pooling_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pooling_param, submessage_arena); + } set_has_pooling_param(); } else { clear_has_pooling_param(); } + pooling_param_ = pooling_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.pooling_param) } // optional .opencv_caffe.PowerParameter power_param = 21; inline bool V1LayerParameter::has_power_param() const { - return (_has_bits_[1] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00004000u) != 0; } inline void V1LayerParameter::set_has_power_param() { - _has_bits_[1] |= 0x00000001u; + _has_bits_[0] |= 0x00004000u; } inline void V1LayerParameter::clear_has_power_param() { - _has_bits_[1] &= ~0x00000001u; + _has_bits_[0] &= ~0x00004000u; } inline void V1LayerParameter::clear_power_param() { - if (power_param_ != NULL) power_param_->::opencv_caffe::PowerParameter::Clear(); + if (power_param_ != NULL) power_param_->Clear(); clear_has_power_param(); } inline const ::opencv_caffe::PowerParameter& V1LayerParameter::power_param() const { + const ::opencv_caffe::PowerParameter* p = power_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.power_param) - return power_param_ != NULL ? *power_param_ - : *::opencv_caffe::PowerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_PowerParameter_default_instance_); +} +inline ::opencv_caffe::PowerParameter* V1LayerParameter::release_power_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.power_param) + clear_has_power_param(); + ::opencv_caffe::PowerParameter* temp = power_param_; + power_param_ = NULL; + return temp; } inline ::opencv_caffe::PowerParameter* V1LayerParameter::mutable_power_param() { set_has_power_param(); @@ -27418,42 +29957,51 @@ inline ::opencv_caffe::PowerParameter* V1LayerParameter::mutable_power_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.power_param) return power_param_; } -inline ::opencv_caffe::PowerParameter* V1LayerParameter::release_power_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.power_param) - clear_has_power_param(); - ::opencv_caffe::PowerParameter* temp = power_param_; - power_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_power_param(::opencv_caffe::PowerParameter* power_param) { - delete power_param_; - power_param_ = power_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete power_param_; + } if (power_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + power_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, power_param, submessage_arena); + } set_has_power_param(); } else { clear_has_power_param(); } + power_param_ = power_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.power_param) } // optional .opencv_caffe.ReLUParameter relu_param = 30; inline bool V1LayerParameter::has_relu_param() const { - return (_has_bits_[1] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00400000u) != 0; } inline void V1LayerParameter::set_has_relu_param() { - _has_bits_[1] |= 0x00000002u; + _has_bits_[0] |= 0x00400000u; } inline void V1LayerParameter::clear_has_relu_param() { - _has_bits_[1] &= ~0x00000002u; + _has_bits_[0] &= ~0x00400000u; } inline void V1LayerParameter::clear_relu_param() { - if (relu_param_ != NULL) relu_param_->::opencv_caffe::ReLUParameter::Clear(); + if (relu_param_ != NULL) relu_param_->Clear(); clear_has_relu_param(); } inline const ::opencv_caffe::ReLUParameter& V1LayerParameter::relu_param() const { + const ::opencv_caffe::ReLUParameter* p = relu_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.relu_param) - return relu_param_ != NULL ? *relu_param_ - : *::opencv_caffe::ReLUParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ReLUParameter_default_instance_); +} +inline ::opencv_caffe::ReLUParameter* V1LayerParameter::release_relu_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.relu_param) + clear_has_relu_param(); + ::opencv_caffe::ReLUParameter* temp = relu_param_; + relu_param_ = NULL; + return temp; } inline ::opencv_caffe::ReLUParameter* V1LayerParameter::mutable_relu_param() { set_has_relu_param(); @@ -27463,42 +30011,51 @@ inline ::opencv_caffe::ReLUParameter* V1LayerParameter::mutable_relu_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.relu_param) return relu_param_; } -inline ::opencv_caffe::ReLUParameter* V1LayerParameter::release_relu_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.relu_param) - clear_has_relu_param(); - ::opencv_caffe::ReLUParameter* temp = relu_param_; - relu_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_relu_param(::opencv_caffe::ReLUParameter* relu_param) { - delete relu_param_; - relu_param_ = relu_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete relu_param_; + } if (relu_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + relu_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, relu_param, submessage_arena); + } set_has_relu_param(); } else { clear_has_relu_param(); } + relu_param_ = relu_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.relu_param) } // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38; inline bool V1LayerParameter::has_sigmoid_param() const { - return (_has_bits_[1] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x08000000u) != 0; } inline void V1LayerParameter::set_has_sigmoid_param() { - _has_bits_[1] |= 0x00000004u; + _has_bits_[0] |= 0x08000000u; } inline void V1LayerParameter::clear_has_sigmoid_param() { - _has_bits_[1] &= ~0x00000004u; + _has_bits_[0] &= ~0x08000000u; } inline void V1LayerParameter::clear_sigmoid_param() { - if (sigmoid_param_ != NULL) sigmoid_param_->::opencv_caffe::SigmoidParameter::Clear(); + if (sigmoid_param_ != NULL) sigmoid_param_->Clear(); clear_has_sigmoid_param(); } inline const ::opencv_caffe::SigmoidParameter& V1LayerParameter::sigmoid_param() const { + const ::opencv_caffe::SigmoidParameter* p = sigmoid_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.sigmoid_param) - return sigmoid_param_ != NULL ? *sigmoid_param_ - : *::opencv_caffe::SigmoidParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_SigmoidParameter_default_instance_); +} +inline ::opencv_caffe::SigmoidParameter* V1LayerParameter::release_sigmoid_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.sigmoid_param) + clear_has_sigmoid_param(); + ::opencv_caffe::SigmoidParameter* temp = sigmoid_param_; + sigmoid_param_ = NULL; + return temp; } inline ::opencv_caffe::SigmoidParameter* V1LayerParameter::mutable_sigmoid_param() { set_has_sigmoid_param(); @@ -27508,42 +30065,51 @@ inline ::opencv_caffe::SigmoidParameter* V1LayerParameter::mutable_sigmoid_param // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.sigmoid_param) return sigmoid_param_; } -inline ::opencv_caffe::SigmoidParameter* V1LayerParameter::release_sigmoid_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.sigmoid_param) - clear_has_sigmoid_param(); - ::opencv_caffe::SigmoidParameter* temp = sigmoid_param_; - sigmoid_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_sigmoid_param(::opencv_caffe::SigmoidParameter* sigmoid_param) { - delete sigmoid_param_; - sigmoid_param_ = sigmoid_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete sigmoid_param_; + } if (sigmoid_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sigmoid_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sigmoid_param, submessage_arena); + } set_has_sigmoid_param(); } else { clear_has_sigmoid_param(); } + sigmoid_param_ = sigmoid_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.sigmoid_param) } // optional .opencv_caffe.SoftmaxParameter softmax_param = 39; inline bool V1LayerParameter::has_softmax_param() const { - return (_has_bits_[1] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x10000000u) != 0; } inline void V1LayerParameter::set_has_softmax_param() { - _has_bits_[1] |= 0x00000008u; + _has_bits_[0] |= 0x10000000u; } inline void V1LayerParameter::clear_has_softmax_param() { - _has_bits_[1] &= ~0x00000008u; + _has_bits_[0] &= ~0x10000000u; } inline void V1LayerParameter::clear_softmax_param() { - if (softmax_param_ != NULL) softmax_param_->::opencv_caffe::SoftmaxParameter::Clear(); + if (softmax_param_ != NULL) softmax_param_->Clear(); clear_has_softmax_param(); } inline const ::opencv_caffe::SoftmaxParameter& V1LayerParameter::softmax_param() const { + const ::opencv_caffe::SoftmaxParameter* p = softmax_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.softmax_param) - return softmax_param_ != NULL ? *softmax_param_ - : *::opencv_caffe::SoftmaxParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_SoftmaxParameter_default_instance_); +} +inline ::opencv_caffe::SoftmaxParameter* V1LayerParameter::release_softmax_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.softmax_param) + clear_has_softmax_param(); + ::opencv_caffe::SoftmaxParameter* temp = softmax_param_; + softmax_param_ = NULL; + return temp; } inline ::opencv_caffe::SoftmaxParameter* V1LayerParameter::mutable_softmax_param() { set_has_softmax_param(); @@ -27553,42 +30119,51 @@ inline ::opencv_caffe::SoftmaxParameter* V1LayerParameter::mutable_softmax_param // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.softmax_param) return softmax_param_; } -inline ::opencv_caffe::SoftmaxParameter* V1LayerParameter::release_softmax_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.softmax_param) - clear_has_softmax_param(); - ::opencv_caffe::SoftmaxParameter* temp = softmax_param_; - softmax_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_softmax_param(::opencv_caffe::SoftmaxParameter* softmax_param) { - delete softmax_param_; - softmax_param_ = softmax_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete softmax_param_; + } if (softmax_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + softmax_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, softmax_param, submessage_arena); + } set_has_softmax_param(); } else { clear_has_softmax_param(); } + softmax_param_ = softmax_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.softmax_param) } // optional .opencv_caffe.SliceParameter slice_param = 31; inline bool V1LayerParameter::has_slice_param() const { - return (_has_bits_[1] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00800000u) != 0; } inline void V1LayerParameter::set_has_slice_param() { - _has_bits_[1] |= 0x00000010u; + _has_bits_[0] |= 0x00800000u; } inline void V1LayerParameter::clear_has_slice_param() { - _has_bits_[1] &= ~0x00000010u; + _has_bits_[0] &= ~0x00800000u; } inline void V1LayerParameter::clear_slice_param() { - if (slice_param_ != NULL) slice_param_->::opencv_caffe::SliceParameter::Clear(); + if (slice_param_ != NULL) slice_param_->Clear(); clear_has_slice_param(); } inline const ::opencv_caffe::SliceParameter& V1LayerParameter::slice_param() const { + const ::opencv_caffe::SliceParameter* p = slice_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.slice_param) - return slice_param_ != NULL ? *slice_param_ - : *::opencv_caffe::SliceParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_SliceParameter_default_instance_); +} +inline ::opencv_caffe::SliceParameter* V1LayerParameter::release_slice_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.slice_param) + clear_has_slice_param(); + ::opencv_caffe::SliceParameter* temp = slice_param_; + slice_param_ = NULL; + return temp; } inline ::opencv_caffe::SliceParameter* V1LayerParameter::mutable_slice_param() { set_has_slice_param(); @@ -27598,42 +30173,51 @@ inline ::opencv_caffe::SliceParameter* V1LayerParameter::mutable_slice_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.slice_param) return slice_param_; } -inline ::opencv_caffe::SliceParameter* V1LayerParameter::release_slice_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.slice_param) - clear_has_slice_param(); - ::opencv_caffe::SliceParameter* temp = slice_param_; - slice_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_slice_param(::opencv_caffe::SliceParameter* slice_param) { - delete slice_param_; - slice_param_ = slice_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete slice_param_; + } if (slice_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + slice_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, slice_param, submessage_arena); + } set_has_slice_param(); } else { clear_has_slice_param(); } + slice_param_ = slice_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.slice_param) } // optional .opencv_caffe.TanHParameter tanh_param = 37; inline bool V1LayerParameter::has_tanh_param() const { - return (_has_bits_[1] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x04000000u) != 0; } inline void V1LayerParameter::set_has_tanh_param() { - _has_bits_[1] |= 0x00000020u; + _has_bits_[0] |= 0x04000000u; } inline void V1LayerParameter::clear_has_tanh_param() { - _has_bits_[1] &= ~0x00000020u; + _has_bits_[0] &= ~0x04000000u; } inline void V1LayerParameter::clear_tanh_param() { - if (tanh_param_ != NULL) tanh_param_->::opencv_caffe::TanHParameter::Clear(); + if (tanh_param_ != NULL) tanh_param_->Clear(); clear_has_tanh_param(); } inline const ::opencv_caffe::TanHParameter& V1LayerParameter::tanh_param() const { + const ::opencv_caffe::TanHParameter* p = tanh_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.tanh_param) - return tanh_param_ != NULL ? *tanh_param_ - : *::opencv_caffe::TanHParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_TanHParameter_default_instance_); +} +inline ::opencv_caffe::TanHParameter* V1LayerParameter::release_tanh_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.tanh_param) + clear_has_tanh_param(); + ::opencv_caffe::TanHParameter* temp = tanh_param_; + tanh_param_ = NULL; + return temp; } inline ::opencv_caffe::TanHParameter* V1LayerParameter::mutable_tanh_param() { set_has_tanh_param(); @@ -27643,42 +30227,51 @@ inline ::opencv_caffe::TanHParameter* V1LayerParameter::mutable_tanh_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.tanh_param) return tanh_param_; } -inline ::opencv_caffe::TanHParameter* V1LayerParameter::release_tanh_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.tanh_param) - clear_has_tanh_param(); - ::opencv_caffe::TanHParameter* temp = tanh_param_; - tanh_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_tanh_param(::opencv_caffe::TanHParameter* tanh_param) { - delete tanh_param_; - tanh_param_ = tanh_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete tanh_param_; + } if (tanh_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + tanh_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tanh_param, submessage_arena); + } set_has_tanh_param(); } else { clear_has_tanh_param(); } + tanh_param_ = tanh_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.tanh_param) } // optional .opencv_caffe.ThresholdParameter threshold_param = 25; inline bool V1LayerParameter::has_threshold_param() const { - return (_has_bits_[1] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00040000u) != 0; } inline void V1LayerParameter::set_has_threshold_param() { - _has_bits_[1] |= 0x00000040u; + _has_bits_[0] |= 0x00040000u; } inline void V1LayerParameter::clear_has_threshold_param() { - _has_bits_[1] &= ~0x00000040u; + _has_bits_[0] &= ~0x00040000u; } inline void V1LayerParameter::clear_threshold_param() { - if (threshold_param_ != NULL) threshold_param_->::opencv_caffe::ThresholdParameter::Clear(); + if (threshold_param_ != NULL) threshold_param_->Clear(); clear_has_threshold_param(); } inline const ::opencv_caffe::ThresholdParameter& V1LayerParameter::threshold_param() const { + const ::opencv_caffe::ThresholdParameter* p = threshold_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.threshold_param) - return threshold_param_ != NULL ? *threshold_param_ - : *::opencv_caffe::ThresholdParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_ThresholdParameter_default_instance_); +} +inline ::opencv_caffe::ThresholdParameter* V1LayerParameter::release_threshold_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.threshold_param) + clear_has_threshold_param(); + ::opencv_caffe::ThresholdParameter* temp = threshold_param_; + threshold_param_ = NULL; + return temp; } inline ::opencv_caffe::ThresholdParameter* V1LayerParameter::mutable_threshold_param() { set_has_threshold_param(); @@ -27688,42 +30281,51 @@ inline ::opencv_caffe::ThresholdParameter* V1LayerParameter::mutable_threshold_p // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.threshold_param) return threshold_param_; } -inline ::opencv_caffe::ThresholdParameter* V1LayerParameter::release_threshold_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.threshold_param) - clear_has_threshold_param(); - ::opencv_caffe::ThresholdParameter* temp = threshold_param_; - threshold_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_threshold_param(::opencv_caffe::ThresholdParameter* threshold_param) { - delete threshold_param_; - threshold_param_ = threshold_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete threshold_param_; + } if (threshold_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + threshold_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, threshold_param, submessage_arena); + } set_has_threshold_param(); } else { clear_has_threshold_param(); } + threshold_param_ = threshold_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.threshold_param) } // optional .opencv_caffe.WindowDataParameter window_data_param = 20; inline bool V1LayerParameter::has_window_data_param() const { - return (_has_bits_[1] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00002000u) != 0; } inline void V1LayerParameter::set_has_window_data_param() { - _has_bits_[1] |= 0x00000080u; + _has_bits_[0] |= 0x00002000u; } inline void V1LayerParameter::clear_has_window_data_param() { - _has_bits_[1] &= ~0x00000080u; + _has_bits_[0] &= ~0x00002000u; } inline void V1LayerParameter::clear_window_data_param() { - if (window_data_param_ != NULL) window_data_param_->::opencv_caffe::WindowDataParameter::Clear(); + if (window_data_param_ != NULL) window_data_param_->Clear(); clear_has_window_data_param(); } inline const ::opencv_caffe::WindowDataParameter& V1LayerParameter::window_data_param() const { + const ::opencv_caffe::WindowDataParameter* p = window_data_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.window_data_param) - return window_data_param_ != NULL ? *window_data_param_ - : *::opencv_caffe::WindowDataParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_WindowDataParameter_default_instance_); +} +inline ::opencv_caffe::WindowDataParameter* V1LayerParameter::release_window_data_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.window_data_param) + clear_has_window_data_param(); + ::opencv_caffe::WindowDataParameter* temp = window_data_param_; + window_data_param_ = NULL; + return temp; } inline ::opencv_caffe::WindowDataParameter* V1LayerParameter::mutable_window_data_param() { set_has_window_data_param(); @@ -27733,42 +30335,51 @@ inline ::opencv_caffe::WindowDataParameter* V1LayerParameter::mutable_window_dat // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.window_data_param) return window_data_param_; } -inline ::opencv_caffe::WindowDataParameter* V1LayerParameter::release_window_data_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.window_data_param) - clear_has_window_data_param(); - ::opencv_caffe::WindowDataParameter* temp = window_data_param_; - window_data_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_window_data_param(::opencv_caffe::WindowDataParameter* window_data_param) { - delete window_data_param_; - window_data_param_ = window_data_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete window_data_param_; + } if (window_data_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + window_data_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, window_data_param, submessage_arena); + } set_has_window_data_param(); } else { clear_has_window_data_param(); } + window_data_param_ = window_data_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.window_data_param) } // optional .opencv_caffe.TransformationParameter transform_param = 36; inline bool V1LayerParameter::has_transform_param() const { - return (_has_bits_[1] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x02000000u) != 0; } inline void V1LayerParameter::set_has_transform_param() { - _has_bits_[1] |= 0x00000100u; + _has_bits_[0] |= 0x02000000u; } inline void V1LayerParameter::clear_has_transform_param() { - _has_bits_[1] &= ~0x00000100u; + _has_bits_[0] &= ~0x02000000u; } inline void V1LayerParameter::clear_transform_param() { - if (transform_param_ != NULL) transform_param_->::opencv_caffe::TransformationParameter::Clear(); + if (transform_param_ != NULL) transform_param_->Clear(); clear_has_transform_param(); } inline const ::opencv_caffe::TransformationParameter& V1LayerParameter::transform_param() const { + const ::opencv_caffe::TransformationParameter* p = transform_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.transform_param) - return transform_param_ != NULL ? *transform_param_ - : *::opencv_caffe::TransformationParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_TransformationParameter_default_instance_); +} +inline ::opencv_caffe::TransformationParameter* V1LayerParameter::release_transform_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.transform_param) + clear_has_transform_param(); + ::opencv_caffe::TransformationParameter* temp = transform_param_; + transform_param_ = NULL; + return temp; } inline ::opencv_caffe::TransformationParameter* V1LayerParameter::mutable_transform_param() { set_has_transform_param(); @@ -27778,42 +30389,51 @@ inline ::opencv_caffe::TransformationParameter* V1LayerParameter::mutable_transf // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.transform_param) return transform_param_; } -inline ::opencv_caffe::TransformationParameter* V1LayerParameter::release_transform_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.transform_param) - clear_has_transform_param(); - ::opencv_caffe::TransformationParameter* temp = transform_param_; - transform_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_transform_param(::opencv_caffe::TransformationParameter* transform_param) { - delete transform_param_; - transform_param_ = transform_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete transform_param_; + } if (transform_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + transform_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, transform_param, submessage_arena); + } set_has_transform_param(); } else { clear_has_transform_param(); } + transform_param_ = transform_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.transform_param) } // optional .opencv_caffe.LossParameter loss_param = 42; inline bool V1LayerParameter::has_loss_param() const { - return (_has_bits_[1] & 0x00000200u) != 0; + return (_has_bits_[0] & 0x80000000u) != 0; } inline void V1LayerParameter::set_has_loss_param() { - _has_bits_[1] |= 0x00000200u; + _has_bits_[0] |= 0x80000000u; } inline void V1LayerParameter::clear_has_loss_param() { - _has_bits_[1] &= ~0x00000200u; + _has_bits_[0] &= ~0x80000000u; } inline void V1LayerParameter::clear_loss_param() { - if (loss_param_ != NULL) loss_param_->::opencv_caffe::LossParameter::Clear(); + if (loss_param_ != NULL) loss_param_->Clear(); clear_has_loss_param(); } inline const ::opencv_caffe::LossParameter& V1LayerParameter::loss_param() const { + const ::opencv_caffe::LossParameter* p = loss_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.loss_param) - return loss_param_ != NULL ? *loss_param_ - : *::opencv_caffe::LossParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_LossParameter_default_instance_); +} +inline ::opencv_caffe::LossParameter* V1LayerParameter::release_loss_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.loss_param) + clear_has_loss_param(); + ::opencv_caffe::LossParameter* temp = loss_param_; + loss_param_ = NULL; + return temp; } inline ::opencv_caffe::LossParameter* V1LayerParameter::mutable_loss_param() { set_has_loss_param(); @@ -27823,42 +30443,51 @@ inline ::opencv_caffe::LossParameter* V1LayerParameter::mutable_loss_param() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.loss_param) return loss_param_; } -inline ::opencv_caffe::LossParameter* V1LayerParameter::release_loss_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.loss_param) - clear_has_loss_param(); - ::opencv_caffe::LossParameter* temp = loss_param_; - loss_param_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_loss_param(::opencv_caffe::LossParameter* loss_param) { - delete loss_param_; - loss_param_ = loss_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete loss_param_; + } if (loss_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + loss_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, loss_param, submessage_arena); + } set_has_loss_param(); } else { clear_has_loss_param(); } + loss_param_ = loss_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.loss_param) } // optional .opencv_caffe.V0LayerParameter layer = 1; inline bool V1LayerParameter::has_layer() const { - return (_has_bits_[1] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void V1LayerParameter::set_has_layer() { - _has_bits_[1] |= 0x00000400u; + _has_bits_[0] |= 0x00000002u; } inline void V1LayerParameter::clear_has_layer() { - _has_bits_[1] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000002u; } inline void V1LayerParameter::clear_layer() { - if (layer_ != NULL) layer_->::opencv_caffe::V0LayerParameter::Clear(); + if (layer_ != NULL) layer_->Clear(); clear_has_layer(); } inline const ::opencv_caffe::V0LayerParameter& V1LayerParameter::layer() const { + const ::opencv_caffe::V0LayerParameter* p = layer_; // @@protoc_insertion_point(field_get:opencv_caffe.V1LayerParameter.layer) - return layer_ != NULL ? *layer_ - : *::opencv_caffe::V0LayerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_V0LayerParameter_default_instance_); +} +inline ::opencv_caffe::V0LayerParameter* V1LayerParameter::release_layer() { + // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.layer) + clear_has_layer(); + ::opencv_caffe::V0LayerParameter* temp = layer_; + layer_ = NULL; + return temp; } inline ::opencv_caffe::V0LayerParameter* V1LayerParameter::mutable_layer() { set_has_layer(); @@ -27868,27 +30497,25 @@ inline ::opencv_caffe::V0LayerParameter* V1LayerParameter::mutable_layer() { // @@protoc_insertion_point(field_mutable:opencv_caffe.V1LayerParameter.layer) return layer_; } -inline ::opencv_caffe::V0LayerParameter* V1LayerParameter::release_layer() { - // @@protoc_insertion_point(field_release:opencv_caffe.V1LayerParameter.layer) - clear_has_layer(); - ::opencv_caffe::V0LayerParameter* temp = layer_; - layer_ = NULL; - return temp; -} inline void V1LayerParameter::set_allocated_layer(::opencv_caffe::V0LayerParameter* layer) { - delete layer_; - layer_ = layer; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete layer_; + } if (layer) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + layer = ::google::protobuf::internal::GetOwnedMessage( + message_arena, layer, submessage_arena); + } set_has_layer(); } else { clear_has_layer(); } + layer_ = layer; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V1LayerParameter.layer) } -inline const V1LayerParameter* V1LayerParameter::internal_default_instance() { - return &V1LayerParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // V0LayerParameter @@ -27909,14 +30536,23 @@ inline void V0LayerParameter::clear_name() { } inline const ::std::string& V0LayerParameter::name() const { // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.name) - return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.GetNoArena(); } inline void V0LayerParameter::set_name(const ::std::string& value) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.name) } +#if LANG_CXX11 +inline void V0LayerParameter::set_name(::std::string&& value) { + set_has_name(); + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.V0LayerParameter.name) +} +#endif inline void V0LayerParameter::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.name) @@ -27963,14 +30599,23 @@ inline void V0LayerParameter::clear_type() { } inline const ::std::string& V0LayerParameter::type() const { // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.type) - return type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return type_.GetNoArena(); } inline void V0LayerParameter::set_type(const ::std::string& value) { set_has_type(); type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.type) } +#if LANG_CXX11 +inline void V0LayerParameter::set_type(::std::string&& value) { + set_has_type(); + type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.V0LayerParameter.type) +} +#endif inline void V0LayerParameter::set_type(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_type(); type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.type) @@ -28003,13 +30648,13 @@ inline void V0LayerParameter::set_allocated_type(::std::string* type) { // optional uint32 num_output = 3; inline bool V0LayerParameter::has_num_output() const { - return (_has_bits_[0] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void V0LayerParameter::set_has_num_output() { - _has_bits_[0] |= 0x00000004u; + _has_bits_[0] |= 0x00000100u; } inline void V0LayerParameter::clear_has_num_output() { - _has_bits_[0] &= ~0x00000004u; + _has_bits_[0] &= ~0x00000100u; } inline void V0LayerParameter::clear_num_output() { num_output_ = 0u; @@ -28027,13 +30672,13 @@ inline void V0LayerParameter::set_num_output(::google::protobuf::uint32 value) { // optional bool biasterm = 4 [default = true]; inline bool V0LayerParameter::has_biasterm() const { - return (_has_bits_[0] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00800000u) != 0; } inline void V0LayerParameter::set_has_biasterm() { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00800000u; } inline void V0LayerParameter::clear_has_biasterm() { - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00800000u; } inline void V0LayerParameter::clear_biasterm() { biasterm_ = true; @@ -28051,22 +30696,30 @@ inline void V0LayerParameter::set_biasterm(bool value) { // optional .opencv_caffe.FillerParameter weight_filler = 5; inline bool V0LayerParameter::has_weight_filler() const { - return (_has_bits_[0] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void V0LayerParameter::set_has_weight_filler() { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000020u; } inline void V0LayerParameter::clear_has_weight_filler() { - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000020u; } inline void V0LayerParameter::clear_weight_filler() { - if (weight_filler_ != NULL) weight_filler_->::opencv_caffe::FillerParameter::Clear(); + if (weight_filler_ != NULL) weight_filler_->Clear(); clear_has_weight_filler(); } inline const ::opencv_caffe::FillerParameter& V0LayerParameter::weight_filler() const { + const ::opencv_caffe::FillerParameter* p = weight_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.weight_filler) - return weight_filler_ != NULL ? *weight_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* V0LayerParameter::release_weight_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.weight_filler) + clear_has_weight_filler(); + ::opencv_caffe::FillerParameter* temp = weight_filler_; + weight_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* V0LayerParameter::mutable_weight_filler() { set_has_weight_filler(); @@ -28076,42 +30729,51 @@ inline ::opencv_caffe::FillerParameter* V0LayerParameter::mutable_weight_filler( // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.weight_filler) return weight_filler_; } -inline ::opencv_caffe::FillerParameter* V0LayerParameter::release_weight_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.weight_filler) - clear_has_weight_filler(); - ::opencv_caffe::FillerParameter* temp = weight_filler_; - weight_filler_ = NULL; - return temp; -} inline void V0LayerParameter::set_allocated_weight_filler(::opencv_caffe::FillerParameter* weight_filler) { - delete weight_filler_; - weight_filler_ = weight_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete weight_filler_; + } if (weight_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + weight_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, weight_filler, submessage_arena); + } set_has_weight_filler(); } else { clear_has_weight_filler(); } + weight_filler_ = weight_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.weight_filler) } // optional .opencv_caffe.FillerParameter bias_filler = 6; inline bool V0LayerParameter::has_bias_filler() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void V0LayerParameter::set_has_bias_filler() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000040u; } inline void V0LayerParameter::clear_has_bias_filler() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000040u; } inline void V0LayerParameter::clear_bias_filler() { - if (bias_filler_ != NULL) bias_filler_->::opencv_caffe::FillerParameter::Clear(); + if (bias_filler_ != NULL) bias_filler_->Clear(); clear_has_bias_filler(); } inline const ::opencv_caffe::FillerParameter& V0LayerParameter::bias_filler() const { + const ::opencv_caffe::FillerParameter* p = bias_filler_; // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.bias_filler) - return bias_filler_ != NULL ? *bias_filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* V0LayerParameter::release_bias_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.bias_filler) + clear_has_bias_filler(); + ::opencv_caffe::FillerParameter* temp = bias_filler_; + bias_filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* V0LayerParameter::mutable_bias_filler() { set_has_bias_filler(); @@ -28121,33 +30783,34 @@ inline ::opencv_caffe::FillerParameter* V0LayerParameter::mutable_bias_filler() // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.bias_filler) return bias_filler_; } -inline ::opencv_caffe::FillerParameter* V0LayerParameter::release_bias_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.bias_filler) - clear_has_bias_filler(); - ::opencv_caffe::FillerParameter* temp = bias_filler_; - bias_filler_ = NULL; - return temp; -} inline void V0LayerParameter::set_allocated_bias_filler(::opencv_caffe::FillerParameter* bias_filler) { - delete bias_filler_; - bias_filler_ = bias_filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete bias_filler_; + } if (bias_filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + bias_filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, bias_filler, submessage_arena); + } set_has_bias_filler(); } else { clear_has_bias_filler(); } + bias_filler_ = bias_filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.bias_filler) } // optional uint32 pad = 7 [default = 0]; inline bool V0LayerParameter::has_pad() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void V0LayerParameter::set_has_pad() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000200u; } inline void V0LayerParameter::clear_has_pad() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000200u; } inline void V0LayerParameter::clear_pad() { pad_ = 0u; @@ -28165,13 +30828,13 @@ inline void V0LayerParameter::set_pad(::google::protobuf::uint32 value) { // optional uint32 kernelsize = 8; inline bool V0LayerParameter::has_kernelsize() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void V0LayerParameter::set_has_kernelsize() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000400u; } inline void V0LayerParameter::clear_has_kernelsize() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000400u; } inline void V0LayerParameter::clear_kernelsize() { kernelsize_ = 0u; @@ -28189,13 +30852,13 @@ inline void V0LayerParameter::set_kernelsize(::google::protobuf::uint32 value) { // optional uint32 group = 9 [default = 1]; inline bool V0LayerParameter::has_group() const { - return (_has_bits_[0] & 0x00000100u) != 0; + return (_has_bits_[0] & 0x01000000u) != 0; } inline void V0LayerParameter::set_has_group() { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x01000000u; } inline void V0LayerParameter::clear_has_group() { - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x01000000u; } inline void V0LayerParameter::clear_group() { group_ = 1u; @@ -28213,13 +30876,13 @@ inline void V0LayerParameter::set_group(::google::protobuf::uint32 value) { // optional uint32 stride = 10 [default = 1]; inline bool V0LayerParameter::has_stride() const { - return (_has_bits_[0] & 0x00000200u) != 0; + return (_has_bits_[0] & 0x02000000u) != 0; } inline void V0LayerParameter::set_has_stride() { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x02000000u; } inline void V0LayerParameter::clear_has_stride() { - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x02000000u; } inline void V0LayerParameter::clear_stride() { stride_ = 1u; @@ -28237,13 +30900,13 @@ inline void V0LayerParameter::set_stride(::google::protobuf::uint32 value) { // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX]; inline bool V0LayerParameter::has_pool() const { - return (_has_bits_[0] & 0x00000400u) != 0; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void V0LayerParameter::set_has_pool() { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00000800u; } inline void V0LayerParameter::clear_has_pool() { - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000800u; } inline void V0LayerParameter::clear_pool() { pool_ = 0; @@ -28262,13 +30925,13 @@ inline void V0LayerParameter::set_pool(::opencv_caffe::V0LayerParameter_PoolMeth // optional float dropout_ratio = 12 [default = 0.5]; inline bool V0LayerParameter::has_dropout_ratio() const { - return (_has_bits_[0] & 0x00000800u) != 0; + return (_has_bits_[0] & 0x04000000u) != 0; } inline void V0LayerParameter::set_has_dropout_ratio() { - _has_bits_[0] |= 0x00000800u; + _has_bits_[0] |= 0x04000000u; } inline void V0LayerParameter::clear_has_dropout_ratio() { - _has_bits_[0] &= ~0x00000800u; + _has_bits_[0] &= ~0x04000000u; } inline void V0LayerParameter::clear_dropout_ratio() { dropout_ratio_ = 0.5f; @@ -28286,13 +30949,13 @@ inline void V0LayerParameter::set_dropout_ratio(float value) { // optional uint32 local_size = 13 [default = 5]; inline bool V0LayerParameter::has_local_size() const { - return (_has_bits_[0] & 0x00001000u) != 0; + return (_has_bits_[0] & 0x08000000u) != 0; } inline void V0LayerParameter::set_has_local_size() { - _has_bits_[0] |= 0x00001000u; + _has_bits_[0] |= 0x08000000u; } inline void V0LayerParameter::clear_has_local_size() { - _has_bits_[0] &= ~0x00001000u; + _has_bits_[0] &= ~0x08000000u; } inline void V0LayerParameter::clear_local_size() { local_size_ = 5u; @@ -28310,13 +30973,13 @@ inline void V0LayerParameter::set_local_size(::google::protobuf::uint32 value) { // optional float alpha = 14 [default = 1]; inline bool V0LayerParameter::has_alpha() const { - return (_has_bits_[0] & 0x00002000u) != 0; + return (_has_bits_[0] & 0x10000000u) != 0; } inline void V0LayerParameter::set_has_alpha() { - _has_bits_[0] |= 0x00002000u; + _has_bits_[0] |= 0x10000000u; } inline void V0LayerParameter::clear_has_alpha() { - _has_bits_[0] &= ~0x00002000u; + _has_bits_[0] &= ~0x10000000u; } inline void V0LayerParameter::clear_alpha() { alpha_ = 1; @@ -28334,13 +30997,13 @@ inline void V0LayerParameter::set_alpha(float value) { // optional float beta = 15 [default = 0.75]; inline bool V0LayerParameter::has_beta() const { - return (_has_bits_[0] & 0x00004000u) != 0; + return (_has_bits_[0] & 0x20000000u) != 0; } inline void V0LayerParameter::set_has_beta() { - _has_bits_[0] |= 0x00004000u; + _has_bits_[0] |= 0x20000000u; } inline void V0LayerParameter::clear_has_beta() { - _has_bits_[0] &= ~0x00004000u; + _has_bits_[0] &= ~0x20000000u; } inline void V0LayerParameter::clear_beta() { beta_ = 0.75f; @@ -28358,13 +31021,13 @@ inline void V0LayerParameter::set_beta(float value) { // optional float k = 22 [default = 1]; inline bool V0LayerParameter::has_k() const { - return (_has_bits_[0] & 0x00008000u) != 0; + return (_has_bits_[0] & 0x80000000u) != 0; } inline void V0LayerParameter::set_has_k() { - _has_bits_[0] |= 0x00008000u; + _has_bits_[0] |= 0x80000000u; } inline void V0LayerParameter::clear_has_k() { - _has_bits_[0] &= ~0x00008000u; + _has_bits_[0] &= ~0x80000000u; } inline void V0LayerParameter::clear_k() { k_ = 1; @@ -28382,13 +31045,13 @@ inline void V0LayerParameter::set_k(float value) { // optional string source = 16; inline bool V0LayerParameter::has_source() const { - return (_has_bits_[0] & 0x00010000u) != 0; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void V0LayerParameter::set_has_source() { - _has_bits_[0] |= 0x00010000u; + _has_bits_[0] |= 0x00000004u; } inline void V0LayerParameter::clear_has_source() { - _has_bits_[0] &= ~0x00010000u; + _has_bits_[0] &= ~0x00000004u; } inline void V0LayerParameter::clear_source() { source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -28396,14 +31059,23 @@ inline void V0LayerParameter::clear_source() { } inline const ::std::string& V0LayerParameter::source() const { // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.source) - return source_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return source_.GetNoArena(); } inline void V0LayerParameter::set_source(const ::std::string& value) { set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.source) } +#if LANG_CXX11 +inline void V0LayerParameter::set_source(::std::string&& value) { + set_has_source(); + source_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.V0LayerParameter.source) +} +#endif inline void V0LayerParameter::set_source(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_source(); source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.source) @@ -28436,13 +31108,13 @@ inline void V0LayerParameter::set_allocated_source(::std::string* source) { // optional float scale = 17 [default = 1]; inline bool V0LayerParameter::has_scale() const { - return (_has_bits_[0] & 0x00020000u) != 0; + return (_has_bits_[0] & 0x40000000u) != 0; } inline void V0LayerParameter::set_has_scale() { - _has_bits_[0] |= 0x00020000u; + _has_bits_[0] |= 0x40000000u; } inline void V0LayerParameter::clear_has_scale() { - _has_bits_[0] &= ~0x00020000u; + _has_bits_[0] &= ~0x40000000u; } inline void V0LayerParameter::clear_scale() { scale_ = 1; @@ -28460,13 +31132,13 @@ inline void V0LayerParameter::set_scale(float value) { // optional string meanfile = 18; inline bool V0LayerParameter::has_meanfile() const { - return (_has_bits_[0] & 0x00040000u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void V0LayerParameter::set_has_meanfile() { - _has_bits_[0] |= 0x00040000u; + _has_bits_[0] |= 0x00000008u; } inline void V0LayerParameter::clear_has_meanfile() { - _has_bits_[0] &= ~0x00040000u; + _has_bits_[0] &= ~0x00000008u; } inline void V0LayerParameter::clear_meanfile() { meanfile_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -28474,14 +31146,23 @@ inline void V0LayerParameter::clear_meanfile() { } inline const ::std::string& V0LayerParameter::meanfile() const { // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.meanfile) - return meanfile_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return meanfile_.GetNoArena(); } inline void V0LayerParameter::set_meanfile(const ::std::string& value) { set_has_meanfile(); meanfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.meanfile) } +#if LANG_CXX11 +inline void V0LayerParameter::set_meanfile(::std::string&& value) { + set_has_meanfile(); + meanfile_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.V0LayerParameter.meanfile) +} +#endif inline void V0LayerParameter::set_meanfile(const char* value) { + GOOGLE_DCHECK(value != NULL); set_has_meanfile(); meanfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.meanfile) @@ -28514,13 +31195,13 @@ inline void V0LayerParameter::set_allocated_meanfile(::std::string* meanfile) { // optional uint32 batchsize = 19; inline bool V0LayerParameter::has_batchsize() const { - return (_has_bits_[0] & 0x00080000u) != 0; + return (_has_bits_[0] & 0x00001000u) != 0; } inline void V0LayerParameter::set_has_batchsize() { - _has_bits_[0] |= 0x00080000u; + _has_bits_[0] |= 0x00001000u; } inline void V0LayerParameter::clear_has_batchsize() { - _has_bits_[0] &= ~0x00080000u; + _has_bits_[0] &= ~0x00001000u; } inline void V0LayerParameter::clear_batchsize() { batchsize_ = 0u; @@ -28538,13 +31219,13 @@ inline void V0LayerParameter::set_batchsize(::google::protobuf::uint32 value) { // optional uint32 cropsize = 20 [default = 0]; inline bool V0LayerParameter::has_cropsize() const { - return (_has_bits_[0] & 0x00100000u) != 0; + return (_has_bits_[0] & 0x00002000u) != 0; } inline void V0LayerParameter::set_has_cropsize() { - _has_bits_[0] |= 0x00100000u; + _has_bits_[0] |= 0x00002000u; } inline void V0LayerParameter::clear_has_cropsize() { - _has_bits_[0] &= ~0x00100000u; + _has_bits_[0] &= ~0x00002000u; } inline void V0LayerParameter::clear_cropsize() { cropsize_ = 0u; @@ -28562,13 +31243,13 @@ inline void V0LayerParameter::set_cropsize(::google::protobuf::uint32 value) { // optional bool mirror = 21 [default = false]; inline bool V0LayerParameter::has_mirror() const { - return (_has_bits_[0] & 0x00200000u) != 0; + return (_has_bits_[0] & 0x00008000u) != 0; } inline void V0LayerParameter::set_has_mirror() { - _has_bits_[0] |= 0x00200000u; + _has_bits_[0] |= 0x00008000u; } inline void V0LayerParameter::clear_has_mirror() { - _has_bits_[0] &= ~0x00200000u; + _has_bits_[0] &= ~0x00008000u; } inline void V0LayerParameter::clear_mirror() { mirror_ = false; @@ -28676,13 +31357,13 @@ V0LayerParameter::mutable_weight_decay() { // optional uint32 rand_skip = 53 [default = 0]; inline bool V0LayerParameter::has_rand_skip() const { - return (_has_bits_[0] & 0x02000000u) != 0; + return (_has_bits_[0] & 0x00020000u) != 0; } inline void V0LayerParameter::set_has_rand_skip() { - _has_bits_[0] |= 0x02000000u; + _has_bits_[0] |= 0x00020000u; } inline void V0LayerParameter::clear_has_rand_skip() { - _has_bits_[0] &= ~0x02000000u; + _has_bits_[0] &= ~0x00020000u; } inline void V0LayerParameter::clear_rand_skip() { rand_skip_ = 0u; @@ -28700,13 +31381,13 @@ inline void V0LayerParameter::set_rand_skip(::google::protobuf::uint32 value) { // optional float det_fg_threshold = 54 [default = 0.5]; inline bool V0LayerParameter::has_det_fg_threshold() const { - return (_has_bits_[0] & 0x04000000u) != 0; + return (_has_bits_[1] & 0x00000001u) != 0; } inline void V0LayerParameter::set_has_det_fg_threshold() { - _has_bits_[0] |= 0x04000000u; + _has_bits_[1] |= 0x00000001u; } inline void V0LayerParameter::clear_has_det_fg_threshold() { - _has_bits_[0] &= ~0x04000000u; + _has_bits_[1] &= ~0x00000001u; } inline void V0LayerParameter::clear_det_fg_threshold() { det_fg_threshold_ = 0.5f; @@ -28724,13 +31405,13 @@ inline void V0LayerParameter::set_det_fg_threshold(float value) { // optional float det_bg_threshold = 55 [default = 0.5]; inline bool V0LayerParameter::has_det_bg_threshold() const { - return (_has_bits_[0] & 0x08000000u) != 0; + return (_has_bits_[1] & 0x00000002u) != 0; } inline void V0LayerParameter::set_has_det_bg_threshold() { - _has_bits_[0] |= 0x08000000u; + _has_bits_[1] |= 0x00000002u; } inline void V0LayerParameter::clear_has_det_bg_threshold() { - _has_bits_[0] &= ~0x08000000u; + _has_bits_[1] &= ~0x00000002u; } inline void V0LayerParameter::clear_det_bg_threshold() { det_bg_threshold_ = 0.5f; @@ -28748,13 +31429,13 @@ inline void V0LayerParameter::set_det_bg_threshold(float value) { // optional float det_fg_fraction = 56 [default = 0.25]; inline bool V0LayerParameter::has_det_fg_fraction() const { - return (_has_bits_[0] & 0x10000000u) != 0; + return (_has_bits_[1] & 0x00000004u) != 0; } inline void V0LayerParameter::set_has_det_fg_fraction() { - _has_bits_[0] |= 0x10000000u; + _has_bits_[1] |= 0x00000004u; } inline void V0LayerParameter::clear_has_det_fg_fraction() { - _has_bits_[0] &= ~0x10000000u; + _has_bits_[1] &= ~0x00000004u; } inline void V0LayerParameter::clear_det_fg_fraction() { det_fg_fraction_ = 0.25f; @@ -28772,13 +31453,13 @@ inline void V0LayerParameter::set_det_fg_fraction(float value) { // optional uint32 det_context_pad = 58 [default = 0]; inline bool V0LayerParameter::has_det_context_pad() const { - return (_has_bits_[0] & 0x20000000u) != 0; + return (_has_bits_[0] & 0x00040000u) != 0; } inline void V0LayerParameter::set_has_det_context_pad() { - _has_bits_[0] |= 0x20000000u; + _has_bits_[0] |= 0x00040000u; } inline void V0LayerParameter::clear_has_det_context_pad() { - _has_bits_[0] &= ~0x20000000u; + _has_bits_[0] &= ~0x00040000u; } inline void V0LayerParameter::clear_det_context_pad() { det_context_pad_ = 0u; @@ -28796,47 +31477,56 @@ inline void V0LayerParameter::set_det_context_pad(::google::protobuf::uint32 val // optional string det_crop_mode = 59 [default = "warp"]; inline bool V0LayerParameter::has_det_crop_mode() const { - return (_has_bits_[0] & 0x40000000u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void V0LayerParameter::set_has_det_crop_mode() { - _has_bits_[0] |= 0x40000000u; + _has_bits_[0] |= 0x00000010u; } inline void V0LayerParameter::clear_has_det_crop_mode() { - _has_bits_[0] &= ~0x40000000u; + _has_bits_[0] &= ~0x00000010u; } inline void V0LayerParameter::clear_det_crop_mode() { - det_crop_mode_.ClearToDefaultNoArena(_default_det_crop_mode_); + det_crop_mode_.ClearToDefaultNoArena(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get()); clear_has_det_crop_mode(); } inline const ::std::string& V0LayerParameter::det_crop_mode() const { // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.det_crop_mode) - return det_crop_mode_.GetNoArena(_default_det_crop_mode_); + return det_crop_mode_.GetNoArena(); } inline void V0LayerParameter::set_det_crop_mode(const ::std::string& value) { set_has_det_crop_mode(); - det_crop_mode_.SetNoArena(_default_det_crop_mode_, value); + det_crop_mode_.SetNoArena(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get(), value); // @@protoc_insertion_point(field_set:opencv_caffe.V0LayerParameter.det_crop_mode) } -inline void V0LayerParameter::set_det_crop_mode(const char* value) { +#if LANG_CXX11 +inline void V0LayerParameter::set_det_crop_mode(::std::string&& value) { set_has_det_crop_mode(); - det_crop_mode_.SetNoArena(_default_det_crop_mode_, ::std::string(value)); + det_crop_mode_.SetNoArena( + &::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:opencv_caffe.V0LayerParameter.det_crop_mode) +} +#endif +inline void V0LayerParameter::set_det_crop_mode(const char* value) { + GOOGLE_DCHECK(value != NULL); + set_has_det_crop_mode(); + det_crop_mode_.SetNoArena(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:opencv_caffe.V0LayerParameter.det_crop_mode) } inline void V0LayerParameter::set_det_crop_mode(const char* value, size_t size) { set_has_det_crop_mode(); - det_crop_mode_.SetNoArena(_default_det_crop_mode_, + det_crop_mode_.SetNoArena(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:opencv_caffe.V0LayerParameter.det_crop_mode) } inline ::std::string* V0LayerParameter::mutable_det_crop_mode() { set_has_det_crop_mode(); // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.det_crop_mode) - return det_crop_mode_.MutableNoArena(_default_det_crop_mode_); + return det_crop_mode_.MutableNoArena(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get()); } inline ::std::string* V0LayerParameter::release_det_crop_mode() { // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.det_crop_mode) clear_has_det_crop_mode(); - return det_crop_mode_.ReleaseNoArena(_default_det_crop_mode_); + return det_crop_mode_.ReleaseNoArena(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get()); } inline void V0LayerParameter::set_allocated_det_crop_mode(::std::string* det_crop_mode) { if (det_crop_mode != NULL) { @@ -28844,19 +31534,19 @@ inline void V0LayerParameter::set_allocated_det_crop_mode(::std::string* det_cro } else { clear_has_det_crop_mode(); } - det_crop_mode_.SetAllocatedNoArena(_default_det_crop_mode_, det_crop_mode); + det_crop_mode_.SetAllocatedNoArena(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get(), det_crop_mode); // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.det_crop_mode) } // optional int32 new_num = 60 [default = 0]; inline bool V0LayerParameter::has_new_num() const { - return (_has_bits_[0] & 0x80000000u) != 0; + return (_has_bits_[0] & 0x00080000u) != 0; } inline void V0LayerParameter::set_has_new_num() { - _has_bits_[0] |= 0x80000000u; + _has_bits_[0] |= 0x00080000u; } inline void V0LayerParameter::clear_has_new_num() { - _has_bits_[0] &= ~0x80000000u; + _has_bits_[0] &= ~0x00080000u; } inline void V0LayerParameter::clear_new_num() { new_num_ = 0; @@ -28874,13 +31564,13 @@ inline void V0LayerParameter::set_new_num(::google::protobuf::int32 value) { // optional int32 new_channels = 61 [default = 0]; inline bool V0LayerParameter::has_new_channels() const { - return (_has_bits_[1] & 0x00000001u) != 0; + return (_has_bits_[0] & 0x00100000u) != 0; } inline void V0LayerParameter::set_has_new_channels() { - _has_bits_[1] |= 0x00000001u; + _has_bits_[0] |= 0x00100000u; } inline void V0LayerParameter::clear_has_new_channels() { - _has_bits_[1] &= ~0x00000001u; + _has_bits_[0] &= ~0x00100000u; } inline void V0LayerParameter::clear_new_channels() { new_channels_ = 0; @@ -28898,13 +31588,13 @@ inline void V0LayerParameter::set_new_channels(::google::protobuf::int32 value) // optional int32 new_height = 62 [default = 0]; inline bool V0LayerParameter::has_new_height() const { - return (_has_bits_[1] & 0x00000002u) != 0; + return (_has_bits_[0] & 0x00200000u) != 0; } inline void V0LayerParameter::set_has_new_height() { - _has_bits_[1] |= 0x00000002u; + _has_bits_[0] |= 0x00200000u; } inline void V0LayerParameter::clear_has_new_height() { - _has_bits_[1] &= ~0x00000002u; + _has_bits_[0] &= ~0x00200000u; } inline void V0LayerParameter::clear_new_height() { new_height_ = 0; @@ -28922,13 +31612,13 @@ inline void V0LayerParameter::set_new_height(::google::protobuf::int32 value) { // optional int32 new_width = 63 [default = 0]; inline bool V0LayerParameter::has_new_width() const { - return (_has_bits_[1] & 0x00000004u) != 0; + return (_has_bits_[0] & 0x00004000u) != 0; } inline void V0LayerParameter::set_has_new_width() { - _has_bits_[1] |= 0x00000004u; + _has_bits_[0] |= 0x00004000u; } inline void V0LayerParameter::clear_has_new_width() { - _has_bits_[1] &= ~0x00000004u; + _has_bits_[0] &= ~0x00004000u; } inline void V0LayerParameter::clear_new_width() { new_width_ = 0; @@ -28946,13 +31636,13 @@ inline void V0LayerParameter::set_new_width(::google::protobuf::int32 value) { // optional bool shuffle_images = 64 [default = false]; inline bool V0LayerParameter::has_shuffle_images() const { - return (_has_bits_[1] & 0x00000008u) != 0; + return (_has_bits_[0] & 0x00010000u) != 0; } inline void V0LayerParameter::set_has_shuffle_images() { - _has_bits_[1] |= 0x00000008u; + _has_bits_[0] |= 0x00010000u; } inline void V0LayerParameter::clear_has_shuffle_images() { - _has_bits_[1] &= ~0x00000008u; + _has_bits_[0] &= ~0x00010000u; } inline void V0LayerParameter::clear_shuffle_images() { shuffle_images_ = false; @@ -28970,13 +31660,13 @@ inline void V0LayerParameter::set_shuffle_images(bool value) { // optional uint32 concat_dim = 65 [default = 1]; inline bool V0LayerParameter::has_concat_dim() const { - return (_has_bits_[1] & 0x00000010u) != 0; + return (_has_bits_[0] & 0x00400000u) != 0; } inline void V0LayerParameter::set_has_concat_dim() { - _has_bits_[1] |= 0x00000010u; + _has_bits_[0] |= 0x00400000u; } inline void V0LayerParameter::clear_has_concat_dim() { - _has_bits_[1] &= ~0x00000010u; + _has_bits_[0] &= ~0x00400000u; } inline void V0LayerParameter::clear_concat_dim() { concat_dim_ = 1u; @@ -28994,22 +31684,30 @@ inline void V0LayerParameter::set_concat_dim(::google::protobuf::uint32 value) { // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001; inline bool V0LayerParameter::has_hdf5_output_param() const { - return (_has_bits_[1] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void V0LayerParameter::set_has_hdf5_output_param() { - _has_bits_[1] |= 0x00000020u; + _has_bits_[0] |= 0x00000080u; } inline void V0LayerParameter::clear_has_hdf5_output_param() { - _has_bits_[1] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000080u; } inline void V0LayerParameter::clear_hdf5_output_param() { - if (hdf5_output_param_ != NULL) hdf5_output_param_->::opencv_caffe::HDF5OutputParameter::Clear(); + if (hdf5_output_param_ != NULL) hdf5_output_param_->Clear(); clear_has_hdf5_output_param(); } inline const ::opencv_caffe::HDF5OutputParameter& V0LayerParameter::hdf5_output_param() const { + const ::opencv_caffe::HDF5OutputParameter* p = hdf5_output_param_; // @@protoc_insertion_point(field_get:opencv_caffe.V0LayerParameter.hdf5_output_param) - return hdf5_output_param_ != NULL ? *hdf5_output_param_ - : *::opencv_caffe::HDF5OutputParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_HDF5OutputParameter_default_instance_); +} +inline ::opencv_caffe::HDF5OutputParameter* V0LayerParameter::release_hdf5_output_param() { + // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.hdf5_output_param) + clear_has_hdf5_output_param(); + ::opencv_caffe::HDF5OutputParameter* temp = hdf5_output_param_; + hdf5_output_param_ = NULL; + return temp; } inline ::opencv_caffe::HDF5OutputParameter* V0LayerParameter::mutable_hdf5_output_param() { set_has_hdf5_output_param(); @@ -29019,27 +31717,25 @@ inline ::opencv_caffe::HDF5OutputParameter* V0LayerParameter::mutable_hdf5_outpu // @@protoc_insertion_point(field_mutable:opencv_caffe.V0LayerParameter.hdf5_output_param) return hdf5_output_param_; } -inline ::opencv_caffe::HDF5OutputParameter* V0LayerParameter::release_hdf5_output_param() { - // @@protoc_insertion_point(field_release:opencv_caffe.V0LayerParameter.hdf5_output_param) - clear_has_hdf5_output_param(); - ::opencv_caffe::HDF5OutputParameter* temp = hdf5_output_param_; - hdf5_output_param_ = NULL; - return temp; -} inline void V0LayerParameter::set_allocated_hdf5_output_param(::opencv_caffe::HDF5OutputParameter* hdf5_output_param) { - delete hdf5_output_param_; - hdf5_output_param_ = hdf5_output_param; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete hdf5_output_param_; + } if (hdf5_output_param) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + hdf5_output_param = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hdf5_output_param, submessage_arena); + } set_has_hdf5_output_param(); } else { clear_has_hdf5_output_param(); } + hdf5_output_param_ = hdf5_output_param; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.V0LayerParameter.hdf5_output_param) } -inline const V0LayerParameter* V0LayerParameter::internal_default_instance() { - return &V0LayerParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // PReLUParameter @@ -29055,13 +31751,21 @@ inline void PReLUParameter::clear_has_filler() { _has_bits_[0] &= ~0x00000001u; } inline void PReLUParameter::clear_filler() { - if (filler_ != NULL) filler_->::opencv_caffe::FillerParameter::Clear(); + if (filler_ != NULL) filler_->Clear(); clear_has_filler(); } inline const ::opencv_caffe::FillerParameter& PReLUParameter::filler() const { + const ::opencv_caffe::FillerParameter* p = filler_; // @@protoc_insertion_point(field_get:opencv_caffe.PReLUParameter.filler) - return filler_ != NULL ? *filler_ - : *::opencv_caffe::FillerParameter::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::opencv_caffe::_FillerParameter_default_instance_); +} +inline ::opencv_caffe::FillerParameter* PReLUParameter::release_filler() { + // @@protoc_insertion_point(field_release:opencv_caffe.PReLUParameter.filler) + clear_has_filler(); + ::opencv_caffe::FillerParameter* temp = filler_; + filler_ = NULL; + return temp; } inline ::opencv_caffe::FillerParameter* PReLUParameter::mutable_filler() { set_has_filler(); @@ -29071,21 +31775,22 @@ inline ::opencv_caffe::FillerParameter* PReLUParameter::mutable_filler() { // @@protoc_insertion_point(field_mutable:opencv_caffe.PReLUParameter.filler) return filler_; } -inline ::opencv_caffe::FillerParameter* PReLUParameter::release_filler() { - // @@protoc_insertion_point(field_release:opencv_caffe.PReLUParameter.filler) - clear_has_filler(); - ::opencv_caffe::FillerParameter* temp = filler_; - filler_ = NULL; - return temp; -} inline void PReLUParameter::set_allocated_filler(::opencv_caffe::FillerParameter* filler) { - delete filler_; - filler_ = filler; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete filler_; + } if (filler) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + filler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, filler, submessage_arena); + } set_has_filler(); } else { clear_has_filler(); } + filler_ = filler; // @@protoc_insertion_point(field_set_allocated:opencv_caffe.PReLUParameter.filler) } @@ -29113,9 +31818,6 @@ inline void PReLUParameter::set_channel_shared(bool value) { // @@protoc_insertion_point(field_set:opencv_caffe.PReLUParameter.channel_shared) } -inline const PReLUParameter* PReLUParameter::internal_default_instance() { - return &PReLUParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // NormalizedBBox @@ -29312,9 +32014,6 @@ inline void NormalizedBBox::set_size(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.NormalizedBBox.size) } -inline const NormalizedBBox* NormalizedBBox::internal_default_instance() { - return &NormalizedBBox_default_instance_.get(); -} // ------------------------------------------------------------------- // ROIPoolingParameter @@ -29391,9 +32090,6 @@ inline void ROIPoolingParameter::set_spatial_scale(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.ROIPoolingParameter.spatial_scale) } -inline const ROIPoolingParameter* ROIPoolingParameter::internal_default_instance() { - return &ROIPoolingParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // ProposalParameter @@ -29532,13 +32228,13 @@ ProposalParameter::mutable_scale() { // optional uint32 pre_nms_topn = 6 [default = 6000]; inline bool ProposalParameter::has_pre_nms_topn() const { - return (_has_bits_[0] & 0x00000020u) != 0; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void ProposalParameter::set_has_pre_nms_topn() { - _has_bits_[0] |= 0x00000020u; + _has_bits_[0] |= 0x00000008u; } inline void ProposalParameter::clear_has_pre_nms_topn() { - _has_bits_[0] &= ~0x00000020u; + _has_bits_[0] &= ~0x00000008u; } inline void ProposalParameter::clear_pre_nms_topn() { pre_nms_topn_ = 6000u; @@ -29556,13 +32252,13 @@ inline void ProposalParameter::set_pre_nms_topn(::google::protobuf::uint32 value // optional uint32 post_nms_topn = 7 [default = 300]; inline bool ProposalParameter::has_post_nms_topn() const { - return (_has_bits_[0] & 0x00000040u) != 0; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void ProposalParameter::set_has_post_nms_topn() { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000010u; } inline void ProposalParameter::clear_has_post_nms_topn() { - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000010u; } inline void ProposalParameter::clear_post_nms_topn() { post_nms_topn_ = 300u; @@ -29580,13 +32276,13 @@ inline void ProposalParameter::set_post_nms_topn(::google::protobuf::uint32 valu // optional float nms_thresh = 8 [default = 0.7]; inline bool ProposalParameter::has_nms_thresh() const { - return (_has_bits_[0] & 0x00000080u) != 0; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void ProposalParameter::set_has_nms_thresh() { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000020u; } inline void ProposalParameter::clear_has_nms_thresh() { - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000020u; } inline void ProposalParameter::clear_nms_thresh() { nms_thresh_ = 0.7f; @@ -29602,9 +32298,6 @@ inline void ProposalParameter::set_nms_thresh(float value) { // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.nms_thresh) } -inline const ProposalParameter* ProposalParameter::internal_default_instance() { - return &ProposalParameter_default_instance_.get(); -} // ------------------------------------------------------------------- // PSROIPoolingParameter @@ -29681,10 +32374,9 @@ inline void PSROIPoolingParameter::set_group_size(::google::protobuf::int32 valu // @@protoc_insertion_point(field_set:opencv_caffe.PSROIPoolingParameter.group_size) } -inline const PSROIPoolingParameter* PSROIPoolingParameter::internal_default_instance() { - return &PSROIPoolingParameter_default_instance_.get(); -} -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -29830,7 +32522,6 @@ inline const PSROIPoolingParameter* PSROIPoolingParameter::internal_default_inst } // namespace opencv_caffe -#ifndef SWIG namespace google { namespace protobuf { @@ -29972,7 +32663,6 @@ inline const EnumDescriptor* GetEnumDescriptor< ::opencv_caffe::Phase>() { } // namespace protobuf } // namespace google -#endif // SWIG // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/attr_value.pb.cc b/modules/dnn/misc/tensorflow/attr_value.pb.cc index deb3320e14..91239c27d2 100644 --- a/modules/dnn/misc/tensorflow/attr_value.pb.cc +++ b/modules/dnn/misc/tensorflow/attr_value.pb.cc @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: attr_value.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "attr_value.pb.h" #include @@ -15,16 +14,21 @@ #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) - namespace tensorflow { - -namespace { - -const ::google::protobuf::Descriptor* AttrValue_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AttrValue_reflection_ = NULL; -struct AttrValueOneofInstance { +class AttrValue_ListValueDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _AttrValue_ListValue_default_instance_; +class AttrValueDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; ::google::protobuf::internal::ArenaStringPtr s_; ::google::protobuf::int64 i_; float f_; @@ -35,209 +39,214 @@ struct AttrValueOneofInstance { const ::tensorflow::AttrValue_ListValue* list_; const ::tensorflow::NameAttrList* func_; ::google::protobuf::internal::ArenaStringPtr placeholder_; -}* AttrValue_default_oneof_instance_ = NULL; -const ::google::protobuf::Descriptor* AttrValue_ListValue_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AttrValue_ListValue_reflection_ = NULL; -const ::google::protobuf::Descriptor* NameAttrList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - NameAttrList_reflection_ = NULL; -const ::google::protobuf::Descriptor* NameAttrList_AttrEntry_descriptor_ = NULL; +} _AttrValue_default_instance_; +class NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NameAttrList_AttrEntry_DoNotUse_default_instance_; +class NameAttrListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NameAttrList_default_instance_; +} // namespace tensorflow +namespace protobuf_attr_5fvalue_2eproto { +void InitDefaultsAttrValue_ListValueImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -} // namespace - - -void protobuf_AssignDesc_attr_5fvalue_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_attr_5fvalue_2eproto() { - protobuf_AddDesc_attr_5fvalue_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "attr_value.proto"); - GOOGLE_CHECK(file != NULL); - AttrValue_descriptor_ = file->message_type(0); - static const int AttrValue_offsets_[11] = { - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, s_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, i_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, f_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, b_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, type_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, shape_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, tensor_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, list_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, func_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(AttrValue_default_oneof_instance_, placeholder_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue, value_), - }; - AttrValue_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - AttrValue_descriptor_, - AttrValue::internal_default_instance(), - AttrValue_offsets_, - -1, - -1, - -1, - AttrValue_default_oneof_instance_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue, _oneof_case_[0]), - sizeof(AttrValue), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue, _internal_metadata_)); - AttrValue_ListValue_descriptor_ = AttrValue_descriptor_->nested_type(0); - static const int AttrValue_ListValue_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue_ListValue, s_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue_ListValue, i_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue_ListValue, f_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue_ListValue, b_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue_ListValue, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue_ListValue, shape_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue_ListValue, tensor_), - }; - AttrValue_ListValue_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - AttrValue_ListValue_descriptor_, - AttrValue_ListValue::internal_default_instance(), - AttrValue_ListValue_offsets_, - -1, - -1, - -1, - sizeof(AttrValue_ListValue), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AttrValue_ListValue, _internal_metadata_)); - NameAttrList_descriptor_ = file->message_type(1); - static const int NameAttrList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameAttrList, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameAttrList, attr_), - }; - NameAttrList_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - NameAttrList_descriptor_, - NameAttrList::internal_default_instance(), - NameAttrList_offsets_, - -1, - -1, - -1, - sizeof(NameAttrList), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NameAttrList, _internal_metadata_)); - NameAttrList_AttrEntry_descriptor_ = NameAttrList_descriptor_->nested_type(0); +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto(); + protobuf_tensor_2eproto::InitDefaultsTensorProto(); + { + void* ptr = &::tensorflow::_AttrValue_ListValue_default_instance_; + new (ptr) ::tensorflow::AttrValue_ListValue(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::AttrValue_ListValue::InitAsDefaultInstance(); } -namespace { +void InitDefaultsAttrValue_ListValue() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAttrValue_ListValueImpl); +} + +void InitDefaultsAttrValueImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto(); + protobuf_tensor_2eproto::InitDefaultsTensorProto(); + protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue_ListValue(); + { + void* ptr = &::tensorflow::_AttrValue_default_instance_; + new (ptr) ::tensorflow::AttrValue(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::tensorflow::_NameAttrList_AttrEntry_DoNotUse_default_instance_; + new (ptr) ::tensorflow::NameAttrList_AttrEntry_DoNotUse(); + } + { + void* ptr = &::tensorflow::_NameAttrList_default_instance_; + new (ptr) ::tensorflow::NameAttrList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::AttrValue::InitAsDefaultInstance(); + ::tensorflow::NameAttrList_AttrEntry_DoNotUse::InitAsDefaultInstance(); + ::tensorflow::NameAttrList::InitAsDefaultInstance(); +} + +void InitDefaultsAttrValue() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAttrValueImpl); +} + +::google::protobuf::Metadata file_level_metadata[4]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue_ListValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue_ListValue, s_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue_ListValue, i_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue_ListValue, f_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue_ListValue, b_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue_ListValue, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue_ListValue, shape_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue_ListValue, tensor_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::tensorflow::AttrValueDefaultTypeInternal, s_), + offsetof(::tensorflow::AttrValueDefaultTypeInternal, i_), + offsetof(::tensorflow::AttrValueDefaultTypeInternal, f_), + offsetof(::tensorflow::AttrValueDefaultTypeInternal, b_), + offsetof(::tensorflow::AttrValueDefaultTypeInternal, type_), + offsetof(::tensorflow::AttrValueDefaultTypeInternal, shape_), + offsetof(::tensorflow::AttrValueDefaultTypeInternal, tensor_), + offsetof(::tensorflow::AttrValueDefaultTypeInternal, list_), + offsetof(::tensorflow::AttrValueDefaultTypeInternal, func_), + offsetof(::tensorflow::AttrValueDefaultTypeInternal, placeholder_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::AttrValue, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NameAttrList_AttrEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NameAttrList_AttrEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NameAttrList_AttrEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NameAttrList_AttrEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NameAttrList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NameAttrList, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NameAttrList, attr_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::tensorflow::AttrValue_ListValue)}, + { 12, -1, sizeof(::tensorflow::AttrValue)}, + { 28, 35, sizeof(::tensorflow::NameAttrList_AttrEntry_DoNotUse)}, + { 37, -1, sizeof(::tensorflow::NameAttrList)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::tensorflow::_AttrValue_ListValue_default_instance_), + reinterpret_cast(&::tensorflow::_AttrValue_default_instance_), + reinterpret_cast(&::tensorflow::_NameAttrList_AttrEntry_DoNotUse_default_instance_), + reinterpret_cast(&::tensorflow::_NameAttrList_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "attr_value.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_attr_5fvalue_2eproto); + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AttrValue_descriptor_, AttrValue::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AttrValue_ListValue_descriptor_, AttrValue_ListValue::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NameAttrList_descriptor_, NameAttrList::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NameAttrList_AttrEntry_descriptor_, - ::google::protobuf::internal::MapEntry< - ::std::string, - ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0>::CreateDefaultInstance( - NameAttrList_AttrEntry_descriptor_)); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); } -} // namespace - -void protobuf_ShutdownFile_attr_5fvalue_2eproto() { - AttrValue_default_instance_.Shutdown(); - delete AttrValue_default_oneof_instance_; - delete AttrValue_reflection_; - AttrValue_ListValue_default_instance_.Shutdown(); - delete AttrValue_ListValue_reflection_; - NameAttrList_default_instance_.Shutdown(); - delete NameAttrList_reflection_; -} - -void protobuf_InitDefaults_attr_5fvalue_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::tensorflow::protobuf_InitDefaults_tensor_2eproto(); - ::tensorflow::protobuf_InitDefaults_tensor_5fshape_2eproto(); - ::tensorflow::protobuf_InitDefaults_types_2eproto(); - ::google::protobuf::internal::GetEmptyString(); - AttrValue_default_instance_.DefaultConstruct(); - AttrValue_default_oneof_instance_ = new AttrValueOneofInstance(); - ::google::protobuf::internal::GetEmptyString(); - AttrValue_ListValue_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - NameAttrList_default_instance_.DefaultConstruct(); - AttrValue_default_instance_.get_mutable()->InitAsDefaultInstance(); - AttrValue_ListValue_default_instance_.get_mutable()->InitAsDefaultInstance(); - NameAttrList_default_instance_.get_mutable()->InitAsDefaultInstance(); -} - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_attr_5fvalue_2eproto_once_); -void protobuf_InitDefaults_attr_5fvalue_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_attr_5fvalue_2eproto_once_, - &protobuf_InitDefaults_attr_5fvalue_2eproto_impl); -} -void protobuf_AddDesc_attr_5fvalue_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - protobuf_InitDefaults_attr_5fvalue_2eproto(); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\020attr_value.proto\022\ntensorflow\032\014tensor.p" + "roto\032\022tensor_shape.proto\032\013types.proto\"\376\003" + "\n\tAttrValue\022\013\n\001s\030\002 \001(\014H\000\022\013\n\001i\030\003 \001(\003H\000\022\013\n" + "\001f\030\004 \001(\002H\000\022\013\n\001b\030\005 \001(\010H\000\022$\n\004type\030\006 \001(\0162\024." + "tensorflow.DataTypeH\000\022-\n\005shape\030\007 \001(\0132\034.t" + "ensorflow.TensorShapeProtoH\000\022)\n\006tensor\030\010" + " \001(\0132\027.tensorflow.TensorProtoH\000\022/\n\004list\030" + "\001 \001(\0132\037.tensorflow.AttrValue.ListValueH\000" + "\022(\n\004func\030\n \001(\0132\030.tensorflow.NameAttrList" + "H\000\022\025\n\013placeholder\030\t \001(\tH\000\032\301\001\n\tListValue\022" + "\t\n\001s\030\002 \003(\014\022\r\n\001i\030\003 \003(\003B\002\020\001\022\r\n\001f\030\004 \003(\002B\002\020\001" + "\022\r\n\001b\030\005 \003(\010B\002\020\001\022&\n\004type\030\006 \003(\0162\024.tensorfl" + "ow.DataTypeB\002\020\001\022+\n\005shape\030\007 \003(\0132\034.tensorf" + "low.TensorShapeProto\022\'\n\006tensor\030\010 \003(\0132\027.t" + "ensorflow.TensorProtoB\007\n\005value\"\222\001\n\014NameA" + "ttrList\022\014\n\004name\030\001 \001(\t\0220\n\004attr\030\002 \003(\0132\".te" + "nsorflow.NameAttrList.AttrEntry\032B\n\tAttrE" + "ntry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tenso" + "rflow.AttrValue:\0028\001B0\n\030org.tensorflow.fr" + "ameworkB\017AttrValueProtosP\001\370\001\001b\006proto3" + }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\020attr_value.proto\022\ntensorflow\032\014tensor.p" - "roto\032\022tensor_shape.proto\032\013types.proto\"\376\003" - "\n\tAttrValue\022\013\n\001s\030\002 \001(\014H\000\022\013\n\001i\030\003 \001(\003H\000\022\013\n" - "\001f\030\004 \001(\002H\000\022\013\n\001b\030\005 \001(\010H\000\022$\n\004type\030\006 \001(\0162\024." - "tensorflow.DataTypeH\000\022-\n\005shape\030\007 \001(\0132\034.t" - "ensorflow.TensorShapeProtoH\000\022)\n\006tensor\030\010" - " \001(\0132\027.tensorflow.TensorProtoH\000\022/\n\004list\030" - "\001 \001(\0132\037.tensorflow.AttrValue.ListValueH\000" - "\022(\n\004func\030\n \001(\0132\030.tensorflow.NameAttrList" - "H\000\022\025\n\013placeholder\030\t \001(\tH\000\032\301\001\n\tListValue\022" - "\t\n\001s\030\002 \003(\014\022\r\n\001i\030\003 \003(\003B\002\020\001\022\r\n\001f\030\004 \003(\002B\002\020\001" - "\022\r\n\001b\030\005 \003(\010B\002\020\001\022&\n\004type\030\006 \003(\0162\024.tensorfl" - "ow.DataTypeB\002\020\001\022+\n\005shape\030\007 \003(\0132\034.tensorf" - "low.TensorShapeProto\022\'\n\006tensor\030\010 \003(\0132\027.t" - "ensorflow.TensorProtoB\007\n\005value\"\222\001\n\014NameA" - "ttrList\022\014\n\004name\030\001 \001(\t\0220\n\004attr\030\002 \003(\0132\".te" - "nsorflow.NameAttrList.AttrEntry\032B\n\tAttrE" - "ntry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tenso" - "rflow.AttrValue:\0028\001B0\n\030org.tensorflow.fr" - "ameworkB\017AttrValueProtosP\001\370\001\001b\006proto3", 797); + descriptor, 797); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "attr_value.proto", &protobuf_RegisterTypes); - ::tensorflow::protobuf_AddDesc_tensor_2eproto(); - ::tensorflow::protobuf_AddDesc_tensor_5fshape_2eproto(); - ::tensorflow::protobuf_AddDesc_types_2eproto(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_attr_5fvalue_2eproto); + ::protobuf_tensor_2eproto::AddDescriptors(); + ::protobuf_tensor_5fshape_2eproto::AddDescriptors(); + ::protobuf_types_2eproto::AddDescriptors(); } -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_attr_5fvalue_2eproto_once_); -void protobuf_AddDesc_attr_5fvalue_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_attr_5fvalue_2eproto_once_, - &protobuf_AddDesc_attr_5fvalue_2eproto_impl); +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_attr_5fvalue_2eproto { - StaticDescriptorInitializer_attr_5fvalue_2eproto() { - protobuf_AddDesc_attr_5fvalue_2eproto(); +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); } -} static_descriptor_initializer_attr_5fvalue_2eproto_; - -namespace { - -static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; -static void MergeFromFail(int line) { - ::google::protobuf::internal::MergeFromFail(__FILE__, line); -} - -} // namespace - +} static_descriptor_initializer; +} // namespace protobuf_attr_5fvalue_2eproto +namespace tensorflow { // =================================================================== +void AttrValue_ListValue::InitAsDefaultInstance() { +} +void AttrValue_ListValue::clear_shape() { + shape_.Clear(); +} +void AttrValue_ListValue::clear_tensor() { + tensor_.Clear(); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int AttrValue_ListValue::kSFieldNumber; const int AttrValue_ListValue::kIFieldNumber; @@ -250,7 +259,9 @@ const int AttrValue_ListValue::kTensorFieldNumber; AttrValue_ListValue::AttrValue_ListValue() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_attr_5fvalue_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue_ListValue(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.AttrValue.ListValue) } @@ -264,22 +275,23 @@ AttrValue_ListValue::AttrValue_ListValue(::google::protobuf::Arena* arena) type_(arena), shape_(arena), tensor_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_attr_5fvalue_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue_ListValue(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.AttrValue.ListValue) } - -void AttrValue_ListValue::InitAsDefaultInstance() { -} - AttrValue_ListValue::AttrValue_ListValue(const AttrValue_ListValue& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + s_(from.s_), + i_(from.i_), + f_(from.f_), + b_(from.b_), + type_(from.type_), + shape_(from.shape_), + tensor_(from.tensor_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:tensorflow.AttrValue.ListValue) } @@ -293,11 +305,7 @@ AttrValue_ListValue::~AttrValue_ListValue() { } void AttrValue_ListValue::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void AttrValue_ListValue::ArenaDtor(void* object) { @@ -312,23 +320,25 @@ void AttrValue_ListValue::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* AttrValue_ListValue::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AttrValue_ListValue_descriptor_; + ::protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const AttrValue_ListValue& AttrValue_ListValue::default_instance() { - protobuf_InitDefaults_attr_5fvalue_2eproto(); + ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue_ListValue(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed AttrValue_ListValue_default_instance_; - AttrValue_ListValue* AttrValue_ListValue::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void AttrValue_ListValue::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.AttrValue.ListValue) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + s_.Clear(); i_.Clear(); f_.Clear(); @@ -336,6 +346,7 @@ void AttrValue_ListValue::Clear() { type_.Clear(); shape_.Clear(); tensor_.Clear(); + _internal_metadata_.Clear(); } bool AttrValue_ListValue::MergePartialFromCodedStream( @@ -344,85 +355,86 @@ bool AttrValue_ListValue::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.AttrValue.ListValue) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated bytes s = 2; case 2: { - if (tag == 18) { - parse_s: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->add_s())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_s; - if (input->ExpectTag(26)) goto parse_i; break; } // repeated int64 i = 3 [packed = true]; case 3: { - if (tag == 26) { - parse_i: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_i()))); - } else if (tag == 24) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 26, input, this->mutable_i()))); + 1, 26u, input, this->mutable_i()))); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_f; break; } // repeated float f = 4 [packed = true]; case 4: { - if (tag == 34) { - parse_f: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_f()))); - } else if (tag == 37) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 34, input, this->mutable_f()))); + 1, 34u, input, this->mutable_f()))); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_b; break; } // repeated bool b = 5 [packed = true]; case 5: { - if (tag == 42) { - parse_b: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, this->mutable_b()))); - } else if (tag == 40) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - 1, 42, input, this->mutable_b()))); + 1, 42u, input, this->mutable_b()))); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_type; break; } // repeated .tensorflow.DataType type = 6 [packed = true]; case 6: { - if (tag == 50) { - parse_type: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { ::google::protobuf::uint32 length; DO_(input->ReadVarint32(&length)); - ::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(length); + ::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(static_cast(length)); while (input->BytesUntilLimit() > 0) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< @@ -431,7 +443,9 @@ bool AttrValue_ListValue::MergePartialFromCodedStream( add_type(static_cast< ::tensorflow::DataType >(value)); } input->PopLimit(limit); - } else if (tag == 48) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( @@ -440,51 +454,38 @@ bool AttrValue_ListValue::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(58)) goto parse_shape; break; } // repeated .tensorflow.TensorShapeProto shape = 7; case 7: { - if (tag == 58) { - parse_shape: - DO_(input->IncrementRecursionDepth()); - parse_loop_shape: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_shape())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_shape())); } else { goto handle_unusual; } - if (input->ExpectTag(58)) goto parse_loop_shape; - if (input->ExpectTag(66)) goto parse_loop_tensor; - input->UnsafeDecrementRecursionDepth(); break; } // repeated .tensorflow.TensorProto tensor = 8; case 8: { - if (tag == 66) { - DO_(input->IncrementRecursionDepth()); - parse_loop_tensor: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_tensor())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tensor())); } else { goto handle_unusual; } - if (input->ExpectTag(66)) goto parse_loop_tensor; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -501,8 +502,11 @@ failure: void AttrValue_ListValue::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.AttrValue.ListValue) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated bytes s = 2; - for (int i = 0; i < this->s_size(); i++) { + for (int i = 0, n = this->s_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 2, this->s(i), output); } @@ -510,9 +514,10 @@ void AttrValue_ListValue::SerializeWithCachedSizes( // repeated int64 i = 3 [packed = true]; if (this->i_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_i_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _i_cached_byte_size_)); } - for (int i = 0; i < this->i_size(); i++) { + for (int i = 0, n = this->i_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( this->i(i), output); } @@ -520,21 +525,19 @@ void AttrValue_ListValue::SerializeWithCachedSizes( // repeated float f = 4 [packed = true]; if (this->f_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_f_cached_byte_size_); - } - for (int i = 0; i < this->f_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->f(i), output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _f_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteFloatArray( + this->f().data(), this->f_size(), output); } // repeated bool b = 5 [packed = true]; if (this->b_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_b_cached_byte_size_); - } - for (int i = 0; i < this->b_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteBoolNoTag( - this->b(i), output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _b_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteBoolArray( + this->b().data(), this->b_size(), output); } // repeated .tensorflow.DataType type = 6 [packed = true]; @@ -543,25 +546,32 @@ void AttrValue_ListValue::SerializeWithCachedSizes( 6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_type_cached_byte_size_); + output->WriteVarint32( + static_cast< ::google::protobuf::uint32>(_type_cached_byte_size_)); } - for (int i = 0; i < this->type_size(); i++) { + for (int i = 0, n = this->type_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteEnumNoTag( this->type(i), output); } // repeated .tensorflow.TensorShapeProto shape = 7; - for (unsigned int i = 0, n = this->shape_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->shape_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->shape(i), output); + 7, this->shape(static_cast(i)), output); } // repeated .tensorflow.TensorProto tensor = 8; - for (unsigned int i = 0, n = this->tensor_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->tensor_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, this->tensor(i), output); + 8, this->tensor(static_cast(i)), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.AttrValue.ListValue) } @@ -569,8 +579,11 @@ void AttrValue_ListValue::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.AttrValue.ListValue) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated bytes s = 2; - for (int i = 0; i < this->s_size(); i++) { + for (int i = 0, n = this->s_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(2, this->s(i), target); } @@ -582,11 +595,10 @@ void AttrValue_ListValue::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _i_cached_byte_size_, target); - } - for (int i = 0; i < this->i_size(); i++) { + static_cast< ::google::protobuf::int32>( + _i_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->i(i), target); + WriteInt64NoTagToArray(this->i_, target); } // repeated float f = 4 [packed = true]; @@ -596,11 +608,10 @@ void AttrValue_ListValue::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _f_cached_byte_size_, target); - } - for (int i = 0; i < this->f_size(); i++) { + static_cast< ::google::protobuf::int32>( + _f_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->f(i), target); + WriteFloatNoTagToArray(this->f_, target); } // repeated bool b = 5 [packed = true]; @@ -610,11 +621,10 @@ void AttrValue_ListValue::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _b_cached_byte_size_, target); - } - for (int i = 0; i < this->b_size(); i++) { + static_cast< ::google::protobuf::int32>( + _b_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteBoolNoTagToArray(this->b(i), target); + WriteBoolNoTagToArray(this->b_, target); } // repeated .tensorflow.DataType type = 6 [packed = true]; @@ -623,27 +633,32 @@ void AttrValue_ListValue::SerializeWithCachedSizes( 6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( _type_cached_byte_size_, target); - } - for (int i = 0; i < this->type_size(); i++) { + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::uint32>( + _type_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray( - this->type(i), target); + this->type_, target); } // repeated .tensorflow.TensorShapeProto shape = 7; - for (unsigned int i = 0, n = this->shape_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->shape_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, this->shape(i), false, target); + InternalWriteMessageToArray( + 7, this->shape(static_cast(i)), deterministic, target); } // repeated .tensorflow.TensorProto tensor = 8; - for (unsigned int i = 0, n = this->tensor_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->tensor_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8, this->tensor(i), false, target); + InternalWriteMessageToArray( + 8, this->tensor(static_cast(i)), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.AttrValue.ListValue) return target; } @@ -652,25 +667,27 @@ size_t AttrValue_ListValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.AttrValue.ListValue) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated bytes s = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->s_size()); - for (int i = 0; i < this->s_size(); i++) { + for (int i = 0, n = this->s_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->s(i)); } // repeated int64 i = 3 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->i_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->i(i)); - } + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + Int64Size(this->i_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -681,12 +698,12 @@ size_t AttrValue_ListValue::ByteSizeLong() const { // repeated float f = 4 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->f_size(); - data_size = 4UL * count; + unsigned int count = static_cast(this->f_size()); + size_t data_size = 4UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -697,12 +714,12 @@ size_t AttrValue_ListValue::ByteSizeLong() const { // repeated bool b = 5 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->b_size(); - data_size = 1UL * count; + unsigned int count = static_cast(this->b_size()); + size_t data_size = 1UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -714,13 +731,14 @@ size_t AttrValue_ListValue::ByteSizeLong() const { // repeated .tensorflow.DataType type = 6 [packed = true]; { size_t data_size = 0; - unsigned int count = this->type_size();for (unsigned int i = 0; i < count; i++) { + unsigned int count = static_cast(this->type_size());for (unsigned int i = 0; i < count; i++) { data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( - this->type(i)); + this->type(static_cast(i))); } if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -731,23 +749,23 @@ size_t AttrValue_ListValue::ByteSizeLong() const { // repeated .tensorflow.TensorShapeProto shape = 7; { - unsigned int count = this->shape_size(); + unsigned int count = static_cast(this->shape_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->shape(i)); + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->shape(static_cast(i))); } } // repeated .tensorflow.TensorProto tensor = 8; { - unsigned int count = this->tensor_size(); + unsigned int count = static_cast(this->tensor_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->tensor(i)); + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tensor(static_cast(i))); } } @@ -760,7 +778,7 @@ size_t AttrValue_ListValue::ByteSizeLong() const { void AttrValue_ListValue::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.AttrValue.ListValue) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const AttrValue_ListValue* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -769,26 +787,22 @@ void AttrValue_ListValue::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.AttrValue.ListValue) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void AttrValue_ListValue::MergeFrom(const AttrValue_ListValue& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.AttrValue.ListValue) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void AttrValue_ListValue::UnsafeMergeFrom(const AttrValue_ListValue& from) { - GOOGLE_DCHECK(&from != this); - s_.UnsafeMergeFrom(from.s_); - i_.UnsafeMergeFrom(from.i_); - f_.UnsafeMergeFrom(from.f_); - b_.UnsafeMergeFrom(from.b_); - type_.UnsafeMergeFrom(from.type_); + s_.MergeFrom(from.s_); + i_.MergeFrom(from.i_); + f_.MergeFrom(from.f_); + b_.MergeFrom(from.b_); + type_.MergeFrom(from.type_); shape_.MergeFrom(from.shape_); tensor_.MergeFrom(from.tensor_); } @@ -804,11 +818,10 @@ void AttrValue_ListValue::CopyFrom(const AttrValue_ListValue& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.AttrValue.ListValue) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool AttrValue_ListValue::IsInitialized() const { - return true; } @@ -817,10 +830,13 @@ void AttrValue_ListValue::Swap(AttrValue_ListValue* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - AttrValue_ListValue temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + AttrValue_ListValue* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void AttrValue_ListValue::UnsafeArenaSwap(AttrValue_ListValue* other) { @@ -829,28 +845,120 @@ void AttrValue_ListValue::UnsafeArenaSwap(AttrValue_ListValue* other) { InternalSwap(other); } void AttrValue_ListValue::InternalSwap(AttrValue_ListValue* other) { - s_.UnsafeArenaSwap(&other->s_); - i_.UnsafeArenaSwap(&other->i_); - f_.UnsafeArenaSwap(&other->f_); - b_.UnsafeArenaSwap(&other->b_); - type_.UnsafeArenaSwap(&other->type_); - shape_.UnsafeArenaSwap(&other->shape_); - tensor_.UnsafeArenaSwap(&other->tensor_); + using std::swap; + s_.InternalSwap(&other->s_); + i_.InternalSwap(&other->i_); + f_.InternalSwap(&other->f_); + b_.InternalSwap(&other->b_); + type_.InternalSwap(&other->type_); + shape_.InternalSwap(&other->shape_); + tensor_.InternalSwap(&other->tensor_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata AttrValue_ListValue::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AttrValue_ListValue_descriptor_; - metadata.reflection = AttrValue_ListValue_reflection_; - return metadata; + protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages]; } -// ------------------------------------------------------------------- +// =================================================================== +void AttrValue::InitAsDefaultInstance() { + ::tensorflow::_AttrValue_default_instance_.s_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::tensorflow::_AttrValue_default_instance_.i_ = GOOGLE_LONGLONG(0); + ::tensorflow::_AttrValue_default_instance_.f_ = 0; + ::tensorflow::_AttrValue_default_instance_.b_ = false; + ::tensorflow::_AttrValue_default_instance_.type_ = 0; + ::tensorflow::_AttrValue_default_instance_.shape_ = const_cast< ::tensorflow::TensorShapeProto*>( + ::tensorflow::TensorShapeProto::internal_default_instance()); + ::tensorflow::_AttrValue_default_instance_.tensor_ = const_cast< ::tensorflow::TensorProto*>( + ::tensorflow::TensorProto::internal_default_instance()); + ::tensorflow::_AttrValue_default_instance_.list_ = const_cast< ::tensorflow::AttrValue_ListValue*>( + ::tensorflow::AttrValue_ListValue::internal_default_instance()); + ::tensorflow::_AttrValue_default_instance_.func_ = const_cast< ::tensorflow::NameAttrList*>( + ::tensorflow::NameAttrList::internal_default_instance()); + ::tensorflow::_AttrValue_default_instance_.placeholder_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void AttrValue::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (shape) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(shape)->GetArena(); + if (message_arena != submessage_arena) { + shape = ::google::protobuf::internal::GetOwnedMessage( + message_arena, shape, submessage_arena); + } + set_has_shape(); + value_.shape_ = shape; + } + // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.shape) +} +void AttrValue::clear_shape() { + if (has_shape()) { + if (GetArenaNoVirtual() == NULL) { + delete value_.shape_; + } + clear_has_value(); + } +} +void AttrValue::set_allocated_tensor(::tensorflow::TensorProto* tensor) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (tensor) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(tensor)->GetArena(); + if (message_arena != submessage_arena) { + tensor = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tensor, submessage_arena); + } + set_has_tensor(); + value_.tensor_ = tensor; + } + // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.tensor) +} +void AttrValue::clear_tensor() { + if (has_tensor()) { + if (GetArenaNoVirtual() == NULL) { + delete value_.tensor_; + } + clear_has_value(); + } +} +void AttrValue::set_allocated_list(::tensorflow::AttrValue_ListValue* list) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (list) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::GetArena(list); + if (message_arena != submessage_arena) { + list = ::google::protobuf::internal::GetOwnedMessage( + message_arena, list, submessage_arena); + } + set_has_list(); + value_.list_ = list; + } + // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.list) +} +void AttrValue::set_allocated_func(::tensorflow::NameAttrList* func) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (func) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::GetArena(func); + if (message_arena != submessage_arena) { + func = ::google::protobuf::internal::GetOwnedMessage( + message_arena, func, submessage_arena); + } + set_has_func(); + value_.func_ = func; + } + // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.func) +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int AttrValue::kSFieldNumber; const int AttrValue::kIFieldNumber; @@ -866,43 +974,71 @@ const int AttrValue::kPlaceholderFieldNumber; AttrValue::AttrValue() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_attr_5fvalue_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.AttrValue) } AttrValue::AttrValue(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_attr_5fvalue_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.AttrValue) } - -void AttrValue::InitAsDefaultInstance() { - AttrValue_default_oneof_instance_->s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - AttrValue_default_oneof_instance_->i_ = GOOGLE_LONGLONG(0); - AttrValue_default_oneof_instance_->f_ = 0; - AttrValue_default_oneof_instance_->b_ = false; - AttrValue_default_oneof_instance_->type_ = 0; - AttrValue_default_oneof_instance_->shape_ = const_cast< ::tensorflow::TensorShapeProto*>( - ::tensorflow::TensorShapeProto::internal_default_instance()); - AttrValue_default_oneof_instance_->tensor_ = const_cast< ::tensorflow::TensorProto*>( - ::tensorflow::TensorProto::internal_default_instance()); - AttrValue_default_oneof_instance_->list_ = const_cast< ::tensorflow::AttrValue_ListValue*>( - ::tensorflow::AttrValue_ListValue::internal_default_instance()); - AttrValue_default_oneof_instance_->func_ = const_cast< ::tensorflow::NameAttrList*>( - ::tensorflow::NameAttrList::internal_default_instance()); - AttrValue_default_oneof_instance_->placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - AttrValue::AttrValue(const AttrValue& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kS: { + set_s(from.s()); + break; + } + case kI: { + set_i(from.i()); + break; + } + case kF: { + set_f(from.f()); + break; + } + case kB: { + set_b(from.b()); + break; + } + case kType: { + set_type(from.type()); + break; + } + case kShape: { + mutable_shape()->::tensorflow::TensorShapeProto::MergeFrom(from.shape()); + break; + } + case kTensor: { + mutable_tensor()->::tensorflow::TensorProto::MergeFrom(from.tensor()); + break; + } + case kList: { + mutable_list()->::tensorflow::AttrValue_ListValue::MergeFrom(from.list()); + break; + } + case kFunc: { + mutable_func()->::tensorflow::NameAttrList::MergeFrom(from.func()); + break; + } + case kPlaceholder: { + set_placeholder(from.placeholder()); + break; + } + case VALUE_NOT_SET: { + break; + } + } // @@protoc_insertion_point(copy_constructor:tensorflow.AttrValue) } @@ -917,11 +1053,7 @@ AttrValue::~AttrValue() { } void AttrValue::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); if (has_value()) { clear_value(); } @@ -939,17 +1071,15 @@ void AttrValue::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* AttrValue::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AttrValue_descriptor_; + ::protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const AttrValue& AttrValue::default_instance() { - protobuf_InitDefaults_attr_5fvalue_2eproto(); + ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed AttrValue_default_instance_; - AttrValue* AttrValue::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } @@ -1017,7 +1147,12 @@ void AttrValue::clear_value() { void AttrValue::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.AttrValue) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + clear_value(); + _internal_metadata_.Clear(); } bool AttrValue::MergePartialFromCodedStream( @@ -1026,37 +1161,38 @@ bool AttrValue::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.AttrValue) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .tensorflow.AttrValue.ListValue list = 1; + // .tensorflow.AttrValue.ListValue list = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_list())); } else { goto handle_unusual; } - goto after_func; break; } - // optional bytes s = 2; + // bytes s = 2; case 2: { - if (tag == 18) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->mutable_s())); } else { goto handle_unusual; } - goto after_func; break; } - // optional int64 i = 3; + // int64 i = 3; case 3: { - if (tag == 24) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { clear_value(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( @@ -1065,13 +1201,13 @@ bool AttrValue::MergePartialFromCodedStream( } else { goto handle_unusual; } - goto after_func; break; } - // optional float f = 4; + // float f = 4; case 4: { - if (tag == 37) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { clear_value(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( @@ -1080,13 +1216,13 @@ bool AttrValue::MergePartialFromCodedStream( } else { goto handle_unusual; } - goto after_func; break; } - // optional bool b = 5; + // bool b = 5; case 5: { - if (tag == 40) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { clear_value(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -1095,13 +1231,13 @@ bool AttrValue::MergePartialFromCodedStream( } else { goto handle_unusual; } - goto after_func; break; } - // optional .tensorflow.DataType type = 6; + // .tensorflow.DataType type = 6; case 6: { - if (tag == 48) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( @@ -1110,72 +1246,68 @@ bool AttrValue::MergePartialFromCodedStream( } else { goto handle_unusual; } - goto after_func; break; } - // optional .tensorflow.TensorShapeProto shape = 7; + // .tensorflow.TensorShapeProto shape = 7; case 7: { - if (tag == 58) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_shape())); } else { goto handle_unusual; } - goto after_func; break; } - // optional .tensorflow.TensorProto tensor = 8; + // .tensorflow.TensorProto tensor = 8; case 8: { - if (tag == 66) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_tensor())); } else { goto handle_unusual; } - goto after_func; break; } - // optional string placeholder = 9; + // string placeholder = 9; case 9: { - if (tag == 74) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_placeholder())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->placeholder().data(), this->placeholder().length(), + this->placeholder().data(), static_cast(this->placeholder().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.AttrValue.placeholder")); } else { goto handle_unusual; } - if (input->ExpectTag(82)) goto parse_func; break; } - // optional .tensorflow.NameAttrList func = 10; + // .tensorflow.NameAttrList func = 10; case 10: { - if (tag == 82) { - parse_func: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_func())); } else { goto handle_unusual; } - after_func: - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -1192,67 +1324,74 @@ failure: void AttrValue::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.AttrValue) - // optional .tensorflow.AttrValue.ListValue list = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .tensorflow.AttrValue.ListValue list = 1; if (has_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *value_.list_, output); } - // optional bytes s = 2; + // bytes s = 2; if (has_s()) { ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 2, this->s(), output); } - // optional int64 i = 3; + // int64 i = 3; if (has_i()) { ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->i(), output); } - // optional float f = 4; + // float f = 4; if (has_f()) { ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->f(), output); } - // optional bool b = 5; + // bool b = 5; if (has_b()) { ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->b(), output); } - // optional .tensorflow.DataType type = 6; + // .tensorflow.DataType type = 6; if (has_type()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 6, this->type(), output); } - // optional .tensorflow.TensorShapeProto shape = 7; + // .tensorflow.TensorShapeProto shape = 7; if (has_shape()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, *value_.shape_, output); } - // optional .tensorflow.TensorProto tensor = 8; + // .tensorflow.TensorProto tensor = 8; if (has_tensor()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, *value_.tensor_, output); } - // optional string placeholder = 9; + // string placeholder = 9; if (has_placeholder()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->placeholder().data(), this->placeholder().length(), + this->placeholder().data(), static_cast(this->placeholder().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.AttrValue.placeholder"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 9, this->placeholder(), output); } - // optional .tensorflow.NameAttrList func = 10; + // .tensorflow.NameAttrList func = 10; if (has_func()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 10, *value_.func_, output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.AttrValue) } @@ -1260,59 +1399,62 @@ void AttrValue::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.AttrValue) - // optional .tensorflow.AttrValue.ListValue list = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .tensorflow.AttrValue.ListValue list = 1; if (has_list()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *value_.list_, false, target); + InternalWriteMessageToArray( + 1, *value_.list_, deterministic, target); } - // optional bytes s = 2; + // bytes s = 2; if (has_s()) { target = ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( 2, this->s(), target); } - // optional int64 i = 3; + // int64 i = 3; if (has_i()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->i(), target); } - // optional float f = 4; + // float f = 4; if (has_f()) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->f(), target); } - // optional bool b = 5; + // bool b = 5; if (has_b()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->b(), target); } - // optional .tensorflow.DataType type = 6; + // .tensorflow.DataType type = 6; if (has_type()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 6, this->type(), target); } - // optional .tensorflow.TensorShapeProto shape = 7; + // .tensorflow.TensorShapeProto shape = 7; if (has_shape()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, *value_.shape_, false, target); + InternalWriteMessageToArray( + 7, *value_.shape_, deterministic, target); } - // optional .tensorflow.TensorProto tensor = 8; + // .tensorflow.TensorProto tensor = 8; if (has_tensor()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8, *value_.tensor_, false, target); + InternalWriteMessageToArray( + 8, *value_.tensor_, deterministic, target); } - // optional string placeholder = 9; + // string placeholder = 9; if (has_placeholder()) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->placeholder().data(), this->placeholder().length(), + this->placeholder().data(), static_cast(this->placeholder().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.AttrValue.placeholder"); target = @@ -1320,13 +1462,17 @@ void AttrValue::SerializeWithCachedSizes( 9, this->placeholder(), target); } - // optional .tensorflow.NameAttrList func = 10; + // .tensorflow.NameAttrList func = 10; if (has_func()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 10, *value_.func_, false, target); + InternalWriteMessageToArray( + 10, *value_.func_, deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.AttrValue) return target; } @@ -1335,66 +1481,71 @@ size_t AttrValue::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.AttrValue) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } switch (value_case()) { - // optional bytes s = 2; + // bytes s = 2; case kS: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->s()); break; } - // optional int64 i = 3; + // int64 i = 3; case kI: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->i()); break; } - // optional float f = 4; + // float f = 4; case kF: { total_size += 1 + 4; break; } - // optional bool b = 5; + // bool b = 5; case kB: { total_size += 1 + 1; break; } - // optional .tensorflow.DataType type = 6; + // .tensorflow.DataType type = 6; case kType: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); break; } - // optional .tensorflow.TensorShapeProto shape = 7; + // .tensorflow.TensorShapeProto shape = 7; case kShape: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *value_.shape_); break; } - // optional .tensorflow.TensorProto tensor = 8; + // .tensorflow.TensorProto tensor = 8; case kTensor: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *value_.tensor_); break; } - // optional .tensorflow.AttrValue.ListValue list = 1; + // .tensorflow.AttrValue.ListValue list = 1; case kList: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *value_.list_); break; } - // optional .tensorflow.NameAttrList func = 10; + // .tensorflow.NameAttrList func = 10; case kFunc: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *value_.func_); break; } - // optional string placeholder = 9; + // string placeholder = 9; case kPlaceholder: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( @@ -1414,7 +1565,7 @@ size_t AttrValue::ByteSizeLong() const { void AttrValue::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.AttrValue) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const AttrValue* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -1423,21 +1574,17 @@ void AttrValue::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.AttrValue) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void AttrValue::MergeFrom(const AttrValue& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.AttrValue) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void AttrValue::UnsafeMergeFrom(const AttrValue& from) { - GOOGLE_DCHECK(&from != this); switch (from.value_case()) { case kS: { set_s(from.s()); @@ -1496,11 +1643,10 @@ void AttrValue::CopyFrom(const AttrValue& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.AttrValue) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool AttrValue::IsInitialized() const { - return true; } @@ -1509,10 +1655,13 @@ void AttrValue::Swap(AttrValue* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - AttrValue temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + AttrValue* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void AttrValue::UnsafeArenaSwap(AttrValue* other) { @@ -1521,967 +1670,40 @@ void AttrValue::UnsafeArenaSwap(AttrValue* other) { InternalSwap(other); } void AttrValue::InternalSwap(AttrValue* other) { - std::swap(value_, other->value_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); + using std::swap; + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata AttrValue::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AttrValue_descriptor_; - metadata.reflection = AttrValue_reflection_; - return metadata; + protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// AttrValue_ListValue - -// repeated bytes s = 2; -int AttrValue_ListValue::s_size() const { - return s_.size(); -} -void AttrValue_ListValue::clear_s() { - s_.Clear(); -} -const ::std::string& AttrValue_ListValue::s(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.s) - return s_.Get(index); -} -::std::string* AttrValue_ListValue::mutable_s(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.s) - return s_.Mutable(index); -} -void AttrValue_ListValue::set_s(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.s) - s_.Mutable(index)->assign(value); -} -void AttrValue_ListValue::set_s(int index, const char* value) { - s_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.AttrValue.ListValue.s) -} -void AttrValue_ListValue::set_s(int index, const void* value, size_t size) { - s_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.AttrValue.ListValue.s) -} -::std::string* AttrValue_ListValue::add_s() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.AttrValue.ListValue.s) - return s_.Add(); -} -void AttrValue_ListValue::add_s(const ::std::string& value) { - s_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.s) -} -void AttrValue_ListValue::add_s(const char* value) { - s_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.AttrValue.ListValue.s) -} -void AttrValue_ListValue::add_s(const void* value, size_t size) { - s_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.AttrValue.ListValue.s) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -AttrValue_ListValue::s() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.s) - return s_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -AttrValue_ListValue::mutable_s() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.s) - return &s_; -} - -// repeated int64 i = 3 [packed = true]; -int AttrValue_ListValue::i_size() const { - return i_.size(); -} -void AttrValue_ListValue::clear_i() { - i_.Clear(); -} -::google::protobuf::int64 AttrValue_ListValue::i(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.i) - return i_.Get(index); -} -void AttrValue_ListValue::set_i(int index, ::google::protobuf::int64 value) { - i_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.i) -} -void AttrValue_ListValue::add_i(::google::protobuf::int64 value) { - i_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.i) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -AttrValue_ListValue::i() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.i) - return i_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -AttrValue_ListValue::mutable_i() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.i) - return &i_; -} - -// repeated float f = 4 [packed = true]; -int AttrValue_ListValue::f_size() const { - return f_.size(); -} -void AttrValue_ListValue::clear_f() { - f_.Clear(); -} -float AttrValue_ListValue::f(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.f) - return f_.Get(index); -} -void AttrValue_ListValue::set_f(int index, float value) { - f_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.f) -} -void AttrValue_ListValue::add_f(float value) { - f_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.f) -} -const ::google::protobuf::RepeatedField< float >& -AttrValue_ListValue::f() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.f) - return f_; -} -::google::protobuf::RepeatedField< float >* -AttrValue_ListValue::mutable_f() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.f) - return &f_; -} - -// repeated bool b = 5 [packed = true]; -int AttrValue_ListValue::b_size() const { - return b_.size(); -} -void AttrValue_ListValue::clear_b() { - b_.Clear(); -} -bool AttrValue_ListValue::b(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.b) - return b_.Get(index); -} -void AttrValue_ListValue::set_b(int index, bool value) { - b_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.b) -} -void AttrValue_ListValue::add_b(bool value) { - b_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.b) -} -const ::google::protobuf::RepeatedField< bool >& -AttrValue_ListValue::b() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.b) - return b_; -} -::google::protobuf::RepeatedField< bool >* -AttrValue_ListValue::mutable_b() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.b) - return &b_; -} - -// repeated .tensorflow.DataType type = 6 [packed = true]; -int AttrValue_ListValue::type_size() const { - return type_.size(); -} -void AttrValue_ListValue::clear_type() { - type_.Clear(); -} -::tensorflow::DataType AttrValue_ListValue::type(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.type) - return static_cast< ::tensorflow::DataType >(type_.Get(index)); -} -void AttrValue_ListValue::set_type(int index, ::tensorflow::DataType value) { - type_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.type) -} -void AttrValue_ListValue::add_type(::tensorflow::DataType value) { - type_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.type) -} -const ::google::protobuf::RepeatedField& -AttrValue_ListValue::type() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.type) - return type_; -} -::google::protobuf::RepeatedField* -AttrValue_ListValue::mutable_type() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.type) - return &type_; -} - -// repeated .tensorflow.TensorShapeProto shape = 7; -int AttrValue_ListValue::shape_size() const { - return shape_.size(); -} -void AttrValue_ListValue::clear_shape() { - shape_.Clear(); -} -const ::tensorflow::TensorShapeProto& AttrValue_ListValue::shape(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.shape) - return shape_.Get(index); -} -::tensorflow::TensorShapeProto* AttrValue_ListValue::mutable_shape(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.shape) - return shape_.Mutable(index); -} -::tensorflow::TensorShapeProto* AttrValue_ListValue::add_shape() { - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.shape) - return shape_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >* -AttrValue_ListValue::mutable_shape() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.shape) - return &shape_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >& -AttrValue_ListValue::shape() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.shape) - return shape_; -} - -// repeated .tensorflow.TensorProto tensor = 8; -int AttrValue_ListValue::tensor_size() const { - return tensor_.size(); -} -void AttrValue_ListValue::clear_tensor() { - tensor_.Clear(); -} -const ::tensorflow::TensorProto& AttrValue_ListValue::tensor(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.tensor) - return tensor_.Get(index); -} -::tensorflow::TensorProto* AttrValue_ListValue::mutable_tensor(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.tensor) - return tensor_.Mutable(index); -} -::tensorflow::TensorProto* AttrValue_ListValue::add_tensor() { - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.tensor) - return tensor_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >* -AttrValue_ListValue::mutable_tensor() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.tensor) - return &tensor_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >& -AttrValue_ListValue::tensor() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.tensor) - return tensor_; -} - -inline const AttrValue_ListValue* AttrValue_ListValue::internal_default_instance() { - return &AttrValue_ListValue_default_instance_.get(); -} -// ------------------------------------------------------------------- - -// AttrValue - -// optional bytes s = 2; -bool AttrValue::has_s() const { - return value_case() == kS; -} -void AttrValue::set_has_s() { - _oneof_case_[0] = kS; -} -void AttrValue::clear_s() { - if (has_s()) { - value_.s_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - clear_has_value(); - } -} -const ::std::string& AttrValue::s() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.s) - if (has_s()) { - return value_.s_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -void AttrValue::set_s(const ::std::string& value) { - if (!has_s()) { - clear_value(); - set_has_s(); - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.s) -} -void AttrValue::set_s(const char* value) { - if (!has_s()) { - clear_value(); - set_has_s(); - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.AttrValue.s) -} -void AttrValue::set_s(const void* value, - size_t size) { - if (!has_s()) { - clear_value(); - set_has_s(); - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.AttrValue.s) -} -::std::string* AttrValue::mutable_s() { - if (!has_s()) { - clear_value(); - set_has_s(); - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - return value_.s_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.s) -} -::std::string* AttrValue::release_s() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.s) - if (has_s()) { - clear_has_value(); - return value_.s_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - } else { - return NULL; - } -} -::std::string* AttrValue::unsafe_arena_release_s() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.s) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (has_s()) { - clear_has_value(); - return value_.s_.UnsafeArenaRelease( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return NULL; - } -} -void AttrValue::set_allocated_s(::std::string* s) { - if (!has_s()) { - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (s != NULL) { - set_has_s(); - value_.s_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), s, - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.s) -} -void AttrValue::unsafe_arena_set_allocated_s(::std::string* s) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (!has_s()) { - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (s) { - set_has_s(); - value_.s_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), s, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.s) -} - -// optional int64 i = 3; -bool AttrValue::has_i() const { - return value_case() == kI; -} -void AttrValue::set_has_i() { - _oneof_case_[0] = kI; -} -void AttrValue::clear_i() { - if (has_i()) { - value_.i_ = GOOGLE_LONGLONG(0); - clear_has_value(); - } -} -::google::protobuf::int64 AttrValue::i() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.i) - if (has_i()) { - return value_.i_; - } - return GOOGLE_LONGLONG(0); -} -void AttrValue::set_i(::google::protobuf::int64 value) { - if (!has_i()) { - clear_value(); - set_has_i(); - } - value_.i_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.i) -} - -// optional float f = 4; -bool AttrValue::has_f() const { - return value_case() == kF; -} -void AttrValue::set_has_f() { - _oneof_case_[0] = kF; -} -void AttrValue::clear_f() { - if (has_f()) { - value_.f_ = 0; - clear_has_value(); - } -} -float AttrValue::f() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.f) - if (has_f()) { - return value_.f_; - } - return 0; -} -void AttrValue::set_f(float value) { - if (!has_f()) { - clear_value(); - set_has_f(); - } - value_.f_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.f) -} - -// optional bool b = 5; -bool AttrValue::has_b() const { - return value_case() == kB; -} -void AttrValue::set_has_b() { - _oneof_case_[0] = kB; -} -void AttrValue::clear_b() { - if (has_b()) { - value_.b_ = false; - clear_has_value(); - } -} -bool AttrValue::b() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.b) - if (has_b()) { - return value_.b_; - } - return false; -} -void AttrValue::set_b(bool value) { - if (!has_b()) { - clear_value(); - set_has_b(); - } - value_.b_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.b) -} - -// optional .tensorflow.DataType type = 6; -bool AttrValue::has_type() const { - return value_case() == kType; -} -void AttrValue::set_has_type() { - _oneof_case_[0] = kType; -} -void AttrValue::clear_type() { - if (has_type()) { - value_.type_ = 0; - clear_has_value(); - } -} -::tensorflow::DataType AttrValue::type() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.type) - if (has_type()) { - return static_cast< ::tensorflow::DataType >(value_.type_); - } - return static_cast< ::tensorflow::DataType >(0); -} -void AttrValue::set_type(::tensorflow::DataType value) { - if (!has_type()) { - clear_value(); - set_has_type(); - } - value_.type_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.type) -} - -// optional .tensorflow.TensorShapeProto shape = 7; -bool AttrValue::has_shape() const { - return value_case() == kShape; -} -void AttrValue::set_has_shape() { - _oneof_case_[0] = kShape; -} -void AttrValue::clear_shape() { - if (has_shape()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.shape_; - } - clear_has_value(); - } -} - const ::tensorflow::TensorShapeProto& AttrValue::shape() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.shape) - return has_shape() - ? *value_.shape_ - : ::tensorflow::TensorShapeProto::default_instance(); -} -::tensorflow::TensorShapeProto* AttrValue::mutable_shape() { - if (!has_shape()) { - clear_value(); - set_has_shape(); - value_.shape_ = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorShapeProto >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.shape) - return value_.shape_; -} -::tensorflow::TensorShapeProto* AttrValue::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.shape) - if (has_shape()) { - clear_has_value(); - if (GetArenaNoVirtual() != NULL) { - ::tensorflow::TensorShapeProto* temp = new ::tensorflow::TensorShapeProto(*value_.shape_); - value_.shape_ = NULL; - return temp; - } else { - ::tensorflow::TensorShapeProto* temp = value_.shape_; - value_.shape_ = NULL; - return temp; - } - } else { - return NULL; - } -} -void AttrValue::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - clear_value(); - if (shape) { - if (GetArenaNoVirtual() != NULL && - ::google::protobuf::Arena::GetArena(shape) == NULL) { - GetArenaNoVirtual()->Own(shape); - } else if (GetArenaNoVirtual() != - ::google::protobuf::Arena::GetArena(shape)) { - ::tensorflow::TensorShapeProto* new_shape = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorShapeProto >( - GetArenaNoVirtual()); - new_shape->CopyFrom(*shape); - shape = new_shape; - } - set_has_shape(); - value_.shape_ = shape; - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.shape) -} - ::tensorflow::TensorShapeProto* AttrValue::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.shape) - if (has_shape()) { - clear_has_value(); - ::tensorflow::TensorShapeProto* temp = value_.shape_; - value_.shape_ = NULL; - return temp; - } else { - return NULL; - } -} - void AttrValue::unsafe_arena_set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - clear_value(); - if (shape) { - set_has_shape(); - value_.shape_ = shape; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.shape) -} - -// optional .tensorflow.TensorProto tensor = 8; -bool AttrValue::has_tensor() const { - return value_case() == kTensor; -} -void AttrValue::set_has_tensor() { - _oneof_case_[0] = kTensor; -} -void AttrValue::clear_tensor() { - if (has_tensor()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.tensor_; - } - clear_has_value(); - } -} - const ::tensorflow::TensorProto& AttrValue::tensor() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.tensor) - return has_tensor() - ? *value_.tensor_ - : ::tensorflow::TensorProto::default_instance(); -} -::tensorflow::TensorProto* AttrValue::mutable_tensor() { - if (!has_tensor()) { - clear_value(); - set_has_tensor(); - value_.tensor_ = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorProto >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.tensor) - return value_.tensor_; -} -::tensorflow::TensorProto* AttrValue::release_tensor() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.tensor) - if (has_tensor()) { - clear_has_value(); - if (GetArenaNoVirtual() != NULL) { - ::tensorflow::TensorProto* temp = new ::tensorflow::TensorProto(*value_.tensor_); - value_.tensor_ = NULL; - return temp; - } else { - ::tensorflow::TensorProto* temp = value_.tensor_; - value_.tensor_ = NULL; - return temp; - } - } else { - return NULL; - } -} -void AttrValue::set_allocated_tensor(::tensorflow::TensorProto* tensor) { - clear_value(); - if (tensor) { - if (GetArenaNoVirtual() != NULL && - ::google::protobuf::Arena::GetArena(tensor) == NULL) { - GetArenaNoVirtual()->Own(tensor); - } else if (GetArenaNoVirtual() != - ::google::protobuf::Arena::GetArena(tensor)) { - ::tensorflow::TensorProto* new_tensor = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorProto >( - GetArenaNoVirtual()); - new_tensor->CopyFrom(*tensor); - tensor = new_tensor; - } - set_has_tensor(); - value_.tensor_ = tensor; - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.tensor) -} - ::tensorflow::TensorProto* AttrValue::unsafe_arena_release_tensor() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.tensor) - if (has_tensor()) { - clear_has_value(); - ::tensorflow::TensorProto* temp = value_.tensor_; - value_.tensor_ = NULL; - return temp; - } else { - return NULL; - } -} - void AttrValue::unsafe_arena_set_allocated_tensor(::tensorflow::TensorProto* tensor) { - clear_value(); - if (tensor) { - set_has_tensor(); - value_.tensor_ = tensor; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.tensor) -} - -// optional .tensorflow.AttrValue.ListValue list = 1; -bool AttrValue::has_list() const { - return value_case() == kList; -} -void AttrValue::set_has_list() { - _oneof_case_[0] = kList; -} -void AttrValue::clear_list() { - if (has_list()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.list_; - } - clear_has_value(); - } -} - const ::tensorflow::AttrValue_ListValue& AttrValue::list() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.list) - return has_list() - ? *value_.list_ - : ::tensorflow::AttrValue_ListValue::default_instance(); -} -::tensorflow::AttrValue_ListValue* AttrValue::mutable_list() { - if (!has_list()) { - clear_value(); - set_has_list(); - value_.list_ = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue_ListValue >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.list) - return value_.list_; -} -::tensorflow::AttrValue_ListValue* AttrValue::release_list() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.list) - if (has_list()) { - clear_has_value(); - if (GetArenaNoVirtual() != NULL) { - ::tensorflow::AttrValue_ListValue* temp = new ::tensorflow::AttrValue_ListValue(*value_.list_); - value_.list_ = NULL; - return temp; - } else { - ::tensorflow::AttrValue_ListValue* temp = value_.list_; - value_.list_ = NULL; - return temp; - } - } else { - return NULL; - } -} -void AttrValue::set_allocated_list(::tensorflow::AttrValue_ListValue* list) { - clear_value(); - if (list) { - if (GetArenaNoVirtual() != NULL && - ::google::protobuf::Arena::GetArena(list) == NULL) { - GetArenaNoVirtual()->Own(list); - } else if (GetArenaNoVirtual() != - ::google::protobuf::Arena::GetArena(list)) { - ::tensorflow::AttrValue_ListValue* new_list = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue_ListValue >( - GetArenaNoVirtual()); - new_list->CopyFrom(*list); - list = new_list; - } - set_has_list(); - value_.list_ = list; - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.list) -} - ::tensorflow::AttrValue_ListValue* AttrValue::unsafe_arena_release_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.list) - if (has_list()) { - clear_has_value(); - ::tensorflow::AttrValue_ListValue* temp = value_.list_; - value_.list_ = NULL; - return temp; - } else { - return NULL; - } -} - void AttrValue::unsafe_arena_set_allocated_list(::tensorflow::AttrValue_ListValue* list) { - clear_value(); - if (list) { - set_has_list(); - value_.list_ = list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.list) -} - -// optional .tensorflow.NameAttrList func = 10; -bool AttrValue::has_func() const { - return value_case() == kFunc; -} -void AttrValue::set_has_func() { - _oneof_case_[0] = kFunc; -} -void AttrValue::clear_func() { - if (has_func()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.func_; - } - clear_has_value(); - } -} - const ::tensorflow::NameAttrList& AttrValue::func() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.func) - return has_func() - ? *value_.func_ - : ::tensorflow::NameAttrList::default_instance(); -} -::tensorflow::NameAttrList* AttrValue::mutable_func() { - if (!has_func()) { - clear_value(); - set_has_func(); - value_.func_ = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::NameAttrList >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.func) - return value_.func_; -} -::tensorflow::NameAttrList* AttrValue::release_func() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.func) - if (has_func()) { - clear_has_value(); - if (GetArenaNoVirtual() != NULL) { - ::tensorflow::NameAttrList* temp = new ::tensorflow::NameAttrList(*value_.func_); - value_.func_ = NULL; - return temp; - } else { - ::tensorflow::NameAttrList* temp = value_.func_; - value_.func_ = NULL; - return temp; - } - } else { - return NULL; - } -} -void AttrValue::set_allocated_func(::tensorflow::NameAttrList* func) { - clear_value(); - if (func) { - if (GetArenaNoVirtual() != NULL && - ::google::protobuf::Arena::GetArena(func) == NULL) { - GetArenaNoVirtual()->Own(func); - } else if (GetArenaNoVirtual() != - ::google::protobuf::Arena::GetArena(func)) { - ::tensorflow::NameAttrList* new_func = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::NameAttrList >( - GetArenaNoVirtual()); - new_func->CopyFrom(*func); - func = new_func; - } - set_has_func(); - value_.func_ = func; - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.func) -} - ::tensorflow::NameAttrList* AttrValue::unsafe_arena_release_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.func) - if (has_func()) { - clear_has_value(); - ::tensorflow::NameAttrList* temp = value_.func_; - value_.func_ = NULL; - return temp; - } else { - return NULL; - } -} - void AttrValue::unsafe_arena_set_allocated_func(::tensorflow::NameAttrList* func) { - clear_value(); - if (func) { - set_has_func(); - value_.func_ = func; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.func) -} - -// optional string placeholder = 9; -bool AttrValue::has_placeholder() const { - return value_case() == kPlaceholder; -} -void AttrValue::set_has_placeholder() { - _oneof_case_[0] = kPlaceholder; -} -void AttrValue::clear_placeholder() { - if (has_placeholder()) { - value_.placeholder_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - clear_has_value(); - } -} -const ::std::string& AttrValue::placeholder() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.placeholder) - if (has_placeholder()) { - return value_.placeholder_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -void AttrValue::set_placeholder(const ::std::string& value) { - if (!has_placeholder()) { - clear_value(); - set_has_placeholder(); - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.placeholder_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.placeholder) -} -void AttrValue::set_placeholder(const char* value) { - if (!has_placeholder()) { - clear_value(); - set_has_placeholder(); - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.placeholder_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.AttrValue.placeholder) -} -void AttrValue::set_placeholder(const char* value, - size_t size) { - if (!has_placeholder()) { - clear_value(); - set_has_placeholder(); - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.placeholder_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.AttrValue.placeholder) -} -::std::string* AttrValue::mutable_placeholder() { - if (!has_placeholder()) { - clear_value(); - set_has_placeholder(); - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - return value_.placeholder_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.placeholder) -} -::std::string* AttrValue::release_placeholder() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.placeholder) - if (has_placeholder()) { - clear_has_value(); - return value_.placeholder_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - } else { - return NULL; - } -} -::std::string* AttrValue::unsafe_arena_release_placeholder() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.placeholder) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (has_placeholder()) { - clear_has_value(); - return value_.placeholder_.UnsafeArenaRelease( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return NULL; - } -} -void AttrValue::set_allocated_placeholder(::std::string* placeholder) { - if (!has_placeholder()) { - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (placeholder != NULL) { - set_has_placeholder(); - value_.placeholder_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), placeholder, - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.placeholder) -} -void AttrValue::unsafe_arena_set_allocated_placeholder(::std::string* placeholder) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (!has_placeholder()) { - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (placeholder) { - set_has_placeholder(); - value_.placeholder_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), placeholder, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.placeholder) -} - -bool AttrValue::has_value() const { - return value_case() != VALUE_NOT_SET; -} -void AttrValue::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -AttrValue::ValueCase AttrValue::value_case() const { - return AttrValue::ValueCase(_oneof_case_[0]); -} -inline const AttrValue* AttrValue::internal_default_instance() { - return &AttrValue_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +NameAttrList_AttrEntry_DoNotUse::NameAttrList_AttrEntry_DoNotUse() {} +NameAttrList_AttrEntry_DoNotUse::NameAttrList_AttrEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void NameAttrList_AttrEntry_DoNotUse::MergeFrom(const NameAttrList_AttrEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata NameAttrList_AttrEntry_DoNotUse::GetMetadata() const { + ::protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[2]; +} +void NameAttrList_AttrEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void NameAttrList::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int NameAttrList::kNameFieldNumber; const int NameAttrList::kAttrFieldNumber; @@ -2489,7 +1711,9 @@ const int NameAttrList::kAttrFieldNumber; NameAttrList::NameAttrList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_attr_5fvalue_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.NameAttrList) } @@ -2497,30 +1721,26 @@ NameAttrList::NameAttrList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), attr_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_attr_5fvalue_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.NameAttrList) } - -void NameAttrList::InitAsDefaultInstance() { -} - NameAttrList::NameAttrList(const NameAttrList& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + attr_.MergeFrom(from.attr_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(), + GetArenaNoVirtual()); + } // @@protoc_insertion_point(copy_constructor:tensorflow.NameAttrList) } void NameAttrList::SharedCtor() { - attr_.SetAssignDescriptorCallback( - protobuf_AssignDescriptorsOnce); - attr_.SetEntryDescriptor( - &::tensorflow::NameAttrList_AttrEntry_descriptor_); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _cached_size_ = 0; } @@ -2531,12 +1751,8 @@ NameAttrList::~NameAttrList() { } void NameAttrList::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void NameAttrList::ArenaDtor(void* object) { @@ -2551,25 +1767,28 @@ void NameAttrList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* NameAttrList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return NameAttrList_descriptor_; + ::protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const NameAttrList& NameAttrList::default_instance() { - protobuf_InitDefaults_attr_5fvalue_2eproto(); + ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed NameAttrList_default_instance_; - NameAttrList* NameAttrList::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void NameAttrList::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.NameAttrList) - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + attr_.Clear(); + name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + _internal_metadata_.Clear(); } bool NameAttrList::MergePartialFromCodedStream( @@ -2578,33 +1797,32 @@ bool NameAttrList::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.NameAttrList) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; + // string name = 1; case 1: { - if (tag == 10) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.NameAttrList.name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_attr; break; } // map attr = 2; case 2: { - if (tag == 18) { - parse_attr: - DO_(input->IncrementRecursionDepth()); - parse_loop_attr: - NameAttrList_AttrEntry::Parser< ::google::protobuf::internal::MapField< + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + NameAttrList_AttrEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + NameAttrList_AttrEntry_DoNotUse, ::std::string, ::tensorflow::AttrValue, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, @@ -2613,26 +1831,22 @@ bool NameAttrList::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), parser.key().length(), + parser.key().data(), static_cast(parser.key().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.NameAttrList.AttrEntry.key")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_loop_attr; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -2649,10 +1863,13 @@ failure: void NameAttrList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.NameAttrList) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NameAttrList.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -2668,13 +1885,13 @@ void NameAttrList::SerializeWithCachedSizes( struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), p->first.length(), + p->first.data(), static_cast(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NameAttrList.AttrEntry.key"); } }; - if (output->IsSerializationDeterminstic() && + if (output->IsSerializationDeterministic() && this->attr().size() > 1) { ::google::protobuf::scoped_array items( new SortItem[this->attr().size()]); @@ -2683,22 +1900,22 @@ void NameAttrList::SerializeWithCachedSizes( for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it, ++n) { - items[n] = SortItem(&*it); + items[static_cast(n)] = SortItem(&*it); } - ::std::sort(&items[0], &items[n], Less()); - ::google::protobuf::scoped_ptr entry; + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; for (size_type i = 0; i < n; i++) { entry.reset(attr_.NewEntryWrapper( - items[i]->first, items[i]->second)); + items[static_cast(i)]->first, items[static_cast(i)]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } - Utf8Check::Check(items[i]); + Utf8Check::Check(items[static_cast(i)]); } } else { - ::google::protobuf::scoped_ptr entry; + ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it) { @@ -2714,6 +1931,10 @@ void NameAttrList::SerializeWithCachedSizes( } } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.NameAttrList) } @@ -2721,10 +1942,13 @@ void NameAttrList::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.NameAttrList) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NameAttrList.name"); target = @@ -2741,7 +1965,7 @@ void NameAttrList::SerializeWithCachedSizes( struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), p->first.length(), + p->first.data(), static_cast(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NameAttrList.AttrEntry.key"); } @@ -2756,13 +1980,13 @@ void NameAttrList::SerializeWithCachedSizes( for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it, ++n) { - items[n] = SortItem(&*it); + items[static_cast(n)] = SortItem(&*it); } - ::std::sort(&items[0], &items[n], Less()); - ::google::protobuf::scoped_ptr entry; + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; for (size_type i = 0; i < n; i++) { entry.reset(attr_.NewEntryWrapper( - items[i]->first, items[i]->second)); + items[static_cast(i)]->first, items[static_cast(i)]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, *entry, deterministic, target); @@ -2770,10 +1994,10 @@ void NameAttrList::SerializeWithCachedSizes( if (entry->GetArena() != NULL) { entry.release(); } - Utf8Check::Check(items[i]); + Utf8Check::Check(items[static_cast(i)]); } } else { - ::google::protobuf::scoped_ptr entry; + ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it) { @@ -2791,6 +2015,10 @@ void NameAttrList::SerializeWithCachedSizes( } } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.NameAttrList) return target; } @@ -2799,18 +2027,16 @@ size_t NameAttrList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.NameAttrList) size_t total_size = 0; - // optional string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - // map attr = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->attr_size()); { - ::google::protobuf::scoped_ptr entry; + ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it) { @@ -2826,6 +2052,13 @@ size_t NameAttrList::ByteSizeLong() const { } } + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -2835,7 +2068,7 @@ size_t NameAttrList::ByteSizeLong() const { void NameAttrList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.NameAttrList) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const NameAttrList* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -2844,21 +2077,17 @@ void NameAttrList::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.NameAttrList) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void NameAttrList::MergeFrom(const NameAttrList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.NameAttrList) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void NameAttrList::UnsafeMergeFrom(const NameAttrList& from) { - GOOGLE_DCHECK(&from != this); attr_.MergeFrom(from.attr_); if (from.name().size() > 0) { set_name(from.name()); @@ -2876,11 +2105,10 @@ void NameAttrList::CopyFrom(const NameAttrList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.NameAttrList) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool NameAttrList::IsInitialized() const { - return true; } @@ -2889,10 +2117,13 @@ void NameAttrList::Swap(NameAttrList* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - NameAttrList temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + NameAttrList* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void NameAttrList::UnsafeArenaSwap(NameAttrList* other) { @@ -2901,114 +2132,20 @@ void NameAttrList::UnsafeArenaSwap(NameAttrList* other) { InternalSwap(other); } void NameAttrList::InternalSwap(NameAttrList* other) { - name_.Swap(&other->name_); + using std::swap; attr_.Swap(&other->attr_); + name_.Swap(&other->name_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata NameAttrList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = NameAttrList_descriptor_; - metadata.reflection = NameAttrList_reflection_; - return metadata; + protobuf_attr_5fvalue_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_attr_5fvalue_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// NameAttrList - -// optional string name = 1; -void NameAttrList::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& NameAttrList::name() const { - // @@protoc_insertion_point(field_get:tensorflow.NameAttrList.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void NameAttrList::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NameAttrList.name) -} -void NameAttrList::set_name(const char* value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NameAttrList.name) -} -void NameAttrList::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NameAttrList.name) -} -::std::string* NameAttrList::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NameAttrList.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* NameAttrList::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.NameAttrList.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* NameAttrList::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NameAttrList.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void NameAttrList::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NameAttrList.name) -} -void NameAttrList::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NameAttrList.name) -} - -// map attr = 2; -int NameAttrList::attr_size() const { - return attr_.size(); -} -void NameAttrList::clear_attr() { - attr_.Clear(); -} - const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& -NameAttrList::attr() const { - // @@protoc_insertion_point(field_map:tensorflow.NameAttrList.attr) - return attr_.GetMap(); -} - ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* -NameAttrList::mutable_attr() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.NameAttrList.attr) - return attr_.MutableMap(); -} - -inline const NameAttrList* NameAttrList::internal_default_instance() { - return &NameAttrList_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace tensorflow // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/attr_value.pb.h b/modules/dnn/misc/tensorflow/attr_value.pb.h index d37a724ab1..e9ec2a5491 100644 --- a/modules/dnn/misc/tensorflow/attr_value.pb.h +++ b/modules/dnn/misc/tensorflow/attr_value.pb.h @@ -8,25 +8,28 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3001000 +#if GOOGLE_PROTOBUF_VERSION < 3005000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include #include #include +#include #include #include #include -#include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include #include #include "tensor.pb.h" @@ -34,17 +37,41 @@ #include "types.pb.h" // @@protoc_insertion_point(includes) +namespace protobuf_attr_5fvalue_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[4]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsAttrValue_ListValueImpl(); +void InitDefaultsAttrValue_ListValue(); +void InitDefaultsAttrValueImpl(); +void InitDefaultsAttrValue(); +inline void InitDefaults() { + InitDefaultsAttrValue_ListValue(); + InitDefaultsAttrValue(); +} +} // namespace protobuf_attr_5fvalue_2eproto namespace tensorflow { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_attr_5fvalue_2eproto(); -void protobuf_InitDefaults_attr_5fvalue_2eproto(); -void protobuf_AssignDesc_attr_5fvalue_2eproto(); -void protobuf_ShutdownFile_attr_5fvalue_2eproto(); - class AttrValue; +class AttrValueDefaultTypeInternal; +extern AttrValueDefaultTypeInternal _AttrValue_default_instance_; class AttrValue_ListValue; +class AttrValue_ListValueDefaultTypeInternal; +extern AttrValue_ListValueDefaultTypeInternal _AttrValue_ListValue_default_instance_; class NameAttrList; +class NameAttrListDefaultTypeInternal; +extern NameAttrListDefaultTypeInternal _NameAttrList_default_instance_; +class NameAttrList_AttrEntry_DoNotUse; +class NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal; +extern NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal _NameAttrList_AttrEntry_DoNotUse_default_instance_; +} // namespace tensorflow +namespace tensorflow { // =================================================================== @@ -59,48 +86,69 @@ class AttrValue_ListValue : public ::google::protobuf::Message /* @@protoc_inser CopyFrom(from); return *this; } + #if LANG_CXX11 + AttrValue_ListValue(AttrValue_ListValue&& from) noexcept + : AttrValue_ListValue() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline AttrValue_ListValue& operator=(AttrValue_ListValue&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const AttrValue_ListValue& default_instance(); - static const AttrValue_ListValue* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AttrValue_ListValue* internal_default_instance() { + return reinterpret_cast( + &_AttrValue_ListValue_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; void UnsafeArenaSwap(AttrValue_ListValue* other); void Swap(AttrValue_ListValue* other); + friend void swap(AttrValue_ListValue& a, AttrValue_ListValue& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline AttrValue_ListValue* New() const { return New(NULL); } + inline AttrValue_ListValue* New() const PROTOBUF_FINAL { return New(NULL); } - AttrValue_ListValue* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + AttrValue_ListValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const AttrValue_ListValue& from); void MergeFrom(const AttrValue_ListValue& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(AttrValue_ListValue* other); - void UnsafeMergeFrom(const AttrValue_ListValue& from); protected: explicit AttrValue_ListValue(::google::protobuf::Arena* arena); private: @@ -115,7 +163,7 @@ class AttrValue_ListValue : public ::google::protobuf::Message /* @@protoc_inser } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -128,10 +176,16 @@ class AttrValue_ListValue : public ::google::protobuf::Message /* @@protoc_inser const ::std::string& s(int index) const; ::std::string* mutable_s(int index); void set_s(int index, const ::std::string& value); + #if LANG_CXX11 + void set_s(int index, ::std::string&& value); + #endif void set_s(int index, const char* value); void set_s(int index, const void* value, size_t size); ::std::string* add_s(); void add_s(const ::std::string& value); + #if LANG_CXX11 + void add_s(::std::string&& value); + #endif void add_s(const char* value); void add_s(const void* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& s() const; @@ -211,7 +265,7 @@ class AttrValue_ListValue : public ::google::protobuf::Message /* @@protoc_inser private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::std::string> s_; @@ -226,15 +280,9 @@ class AttrValue_ListValue : public ::google::protobuf::Message /* @@protoc_inser ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto > shape_; ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto > tensor_; mutable int _cached_size_; - friend void protobuf_InitDefaults_attr_5fvalue_2eproto_impl(); - friend void protobuf_AddDesc_attr_5fvalue_2eproto_impl(); - friend void protobuf_AssignDesc_attr_5fvalue_2eproto(); - friend void protobuf_ShutdownFile_attr_5fvalue_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_attr_5fvalue_2eproto::TableStruct; + friend void ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue_ListValueImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed AttrValue_ListValue_default_instance_; - // ------------------------------------------------------------------- class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.AttrValue) */ { @@ -248,9 +296,25 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point CopyFrom(from); return *this; } + #if LANG_CXX11 + AttrValue(AttrValue&& from) noexcept + : AttrValue() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline AttrValue& operator=(AttrValue&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); @@ -270,40 +334,45 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point VALUE_NOT_SET = 0, }; - static const AttrValue* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AttrValue* internal_default_instance() { + return reinterpret_cast( + &_AttrValue_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; void UnsafeArenaSwap(AttrValue* other); void Swap(AttrValue* other); + friend void swap(AttrValue& a, AttrValue& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline AttrValue* New() const { return New(NULL); } + inline AttrValue* New() const PROTOBUF_FINAL { return New(NULL); } - AttrValue* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + AttrValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const AttrValue& from); void MergeFrom(const AttrValue& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(AttrValue* other); - void UnsafeMergeFrom(const AttrValue& from); protected: explicit AttrValue(::google::protobuf::Arena* arena); private: @@ -318,7 +387,7 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -326,7 +395,7 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point // accessors ------------------------------------------------------- - // optional bytes s = 2; + // bytes s = 2; private: bool has_s() const; public: @@ -334,16 +403,25 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point static const int kSFieldNumber = 2; const ::std::string& s() const; void set_s(const ::std::string& value); + #if LANG_CXX11 + void set_s(::std::string&& value); + #endif void set_s(const char* value); void set_s(const void* value, size_t size); ::std::string* mutable_s(); ::std::string* release_s(); void set_allocated_s(::std::string* s); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_s(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_s( ::std::string* s); - // optional int64 i = 3; + // int64 i = 3; private: bool has_i() const; public: @@ -352,7 +430,7 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point ::google::protobuf::int64 i() const; void set_i(::google::protobuf::int64 value); - // optional float f = 4; + // float f = 4; private: bool has_f() const; public: @@ -361,7 +439,7 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point float f() const; void set_f(float value); - // optional bool b = 5; + // bool b = 5; private: bool has_b() const; public: @@ -370,7 +448,7 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point bool b() const; void set_b(bool value); - // optional .tensorflow.DataType type = 6; + // .tensorflow.DataType type = 6; private: bool has_type() const; public: @@ -379,79 +457,67 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point ::tensorflow::DataType type() const; void set_type(::tensorflow::DataType value); - // optional .tensorflow.TensorShapeProto shape = 7; + // .tensorflow.TensorShapeProto shape = 7; bool has_shape() const; void clear_shape(); static const int kShapeFieldNumber = 7; private: void _slow_mutable_shape(); - void _slow_set_allocated_shape( - ::google::protobuf::Arena* message_arena, ::tensorflow::TensorShapeProto** shape); - ::tensorflow::TensorShapeProto* _slow_release_shape(); public: const ::tensorflow::TensorShapeProto& shape() const; - ::tensorflow::TensorShapeProto* mutable_shape(); ::tensorflow::TensorShapeProto* release_shape(); + ::tensorflow::TensorShapeProto* mutable_shape(); void set_allocated_shape(::tensorflow::TensorShapeProto* shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); void unsafe_arena_set_allocated_shape( ::tensorflow::TensorShapeProto* shape); + ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); - // optional .tensorflow.TensorProto tensor = 8; + // .tensorflow.TensorProto tensor = 8; bool has_tensor() const; void clear_tensor(); static const int kTensorFieldNumber = 8; private: void _slow_mutable_tensor(); - void _slow_set_allocated_tensor( - ::google::protobuf::Arena* message_arena, ::tensorflow::TensorProto** tensor); - ::tensorflow::TensorProto* _slow_release_tensor(); public: const ::tensorflow::TensorProto& tensor() const; - ::tensorflow::TensorProto* mutable_tensor(); ::tensorflow::TensorProto* release_tensor(); + ::tensorflow::TensorProto* mutable_tensor(); void set_allocated_tensor(::tensorflow::TensorProto* tensor); - ::tensorflow::TensorProto* unsafe_arena_release_tensor(); void unsafe_arena_set_allocated_tensor( ::tensorflow::TensorProto* tensor); + ::tensorflow::TensorProto* unsafe_arena_release_tensor(); - // optional .tensorflow.AttrValue.ListValue list = 1; + // .tensorflow.AttrValue.ListValue list = 1; bool has_list() const; void clear_list(); static const int kListFieldNumber = 1; private: void _slow_mutable_list(); - void _slow_set_allocated_list( - ::google::protobuf::Arena* message_arena, ::tensorflow::AttrValue_ListValue** list); - ::tensorflow::AttrValue_ListValue* _slow_release_list(); public: const ::tensorflow::AttrValue_ListValue& list() const; - ::tensorflow::AttrValue_ListValue* mutable_list(); ::tensorflow::AttrValue_ListValue* release_list(); + ::tensorflow::AttrValue_ListValue* mutable_list(); void set_allocated_list(::tensorflow::AttrValue_ListValue* list); - ::tensorflow::AttrValue_ListValue* unsafe_arena_release_list(); void unsafe_arena_set_allocated_list( ::tensorflow::AttrValue_ListValue* list); + ::tensorflow::AttrValue_ListValue* unsafe_arena_release_list(); - // optional .tensorflow.NameAttrList func = 10; + // .tensorflow.NameAttrList func = 10; bool has_func() const; void clear_func(); static const int kFuncFieldNumber = 10; private: void _slow_mutable_func(); - void _slow_set_allocated_func( - ::google::protobuf::Arena* message_arena, ::tensorflow::NameAttrList** func); - ::tensorflow::NameAttrList* _slow_release_func(); public: const ::tensorflow::NameAttrList& func() const; - ::tensorflow::NameAttrList* mutable_func(); ::tensorflow::NameAttrList* release_func(); + ::tensorflow::NameAttrList* mutable_func(); void set_allocated_func(::tensorflow::NameAttrList* func); - ::tensorflow::NameAttrList* unsafe_arena_release_func(); void unsafe_arena_set_allocated_func( ::tensorflow::NameAttrList* func); + ::tensorflow::NameAttrList* unsafe_arena_release_func(); - // optional string placeholder = 9; + // string placeholder = 9; private: bool has_placeholder() const; public: @@ -459,35 +525,44 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point static const int kPlaceholderFieldNumber = 9; const ::std::string& placeholder() const; void set_placeholder(const ::std::string& value); + #if LANG_CXX11 + void set_placeholder(::std::string&& value); + #endif void set_placeholder(const char* value); void set_placeholder(const char* value, size_t size); ::std::string* mutable_placeholder(); ::std::string* release_placeholder(); void set_allocated_placeholder(::std::string* placeholder); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_placeholder(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_placeholder( ::std::string* placeholder); ValueCase value_case() const; // @@protoc_insertion_point(class_scope:tensorflow.AttrValue) private: - inline void set_has_s(); - inline void set_has_i(); - inline void set_has_f(); - inline void set_has_b(); - inline void set_has_type(); - inline void set_has_shape(); - inline void set_has_tensor(); - inline void set_has_list(); - inline void set_has_func(); - inline void set_has_placeholder(); + void set_has_s(); + void set_has_i(); + void set_has_f(); + void set_has_b(); + void set_has_type(); + void set_has_shape(); + void set_has_tensor(); + void set_has_list(); + void set_has_func(); + void set_has_placeholder(); inline bool has_value() const; void clear_value(); inline void clear_has_value(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; union ValueUnion { @@ -506,14 +581,29 @@ class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point mutable int _cached_size_; ::google::protobuf::uint32 _oneof_case_[1]; - friend void protobuf_InitDefaults_attr_5fvalue_2eproto_impl(); - friend void protobuf_AddDesc_attr_5fvalue_2eproto_impl(); - friend void protobuf_AssignDesc_attr_5fvalue_2eproto(); - friend void protobuf_ShutdownFile_attr_5fvalue_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_attr_5fvalue_2eproto::TableStruct; + friend void ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValueImpl(); +}; +// ------------------------------------------------------------------- + +class NameAttrList_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + NameAttrList_AttrEntry_DoNotUse(); + NameAttrList_AttrEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const NameAttrList_AttrEntry_DoNotUse& other); + static const NameAttrList_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_NameAttrList_AttrEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; }; -extern ::google::protobuf::internal::ExplicitlyConstructed AttrValue_default_instance_; // ------------------------------------------------------------------- @@ -528,48 +618,69 @@ class NameAttrList : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + NameAttrList(NameAttrList&& from) noexcept + : NameAttrList() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline NameAttrList& operator=(NameAttrList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const NameAttrList& default_instance(); - static const NameAttrList* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NameAttrList* internal_default_instance() { + return reinterpret_cast( + &_NameAttrList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; void UnsafeArenaSwap(NameAttrList* other); void Swap(NameAttrList* other); + friend void swap(NameAttrList& a, NameAttrList& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline NameAttrList* New() const { return New(NULL); } + inline NameAttrList* New() const PROTOBUF_FINAL { return New(NULL); } - NameAttrList* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + NameAttrList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const NameAttrList& from); void MergeFrom(const NameAttrList& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(NameAttrList* other); - void UnsafeMergeFrom(const NameAttrList& from); protected: explicit NameAttrList(::google::protobuf::Arena* arena); private: @@ -584,27 +695,13 @@ class NameAttrList : public ::google::protobuf::Message /* @@protoc_insertion_po } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - ::std::string* unsafe_arena_release_name(); - void unsafe_arena_set_allocated_name( - ::std::string* name); - // map attr = 2; int attr_size() const; void clear_attr(); @@ -614,41 +711,56 @@ class NameAttrList : public ::google::protobuf::Message /* @@protoc_insertion_po ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* mutable_attr(); + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + ::std::string* unsafe_arena_release_name(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_name( + ::std::string* name); + // @@protoc_insertion_point(class_scope:tensorflow.NameAttrList) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - typedef ::google::protobuf::internal::MapEntryLite< - ::std::string, ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > - NameAttrList_AttrEntry; ::google::protobuf::internal::MapField< + NameAttrList_AttrEntry_DoNotUse, ::std::string, ::tensorflow::AttrValue, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 > attr_; ::google::protobuf::internal::ArenaStringPtr name_; mutable int _cached_size_; - friend void protobuf_InitDefaults_attr_5fvalue_2eproto_impl(); - friend void protobuf_AddDesc_attr_5fvalue_2eproto_impl(); - friend void protobuf_AssignDesc_attr_5fvalue_2eproto(); - friend void protobuf_ShutdownFile_attr_5fvalue_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_attr_5fvalue_2eproto::TableStruct; + friend void ::protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValueImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed NameAttrList_default_instance_; - // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // AttrValue_ListValue // repeated bytes s = 2; @@ -670,7 +782,14 @@ inline void AttrValue_ListValue::set_s(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.s) s_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void AttrValue_ListValue::set_s(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.s) + s_.Mutable(index)->assign(std::move(value)); +} +#endif inline void AttrValue_ListValue::set_s(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); s_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tensorflow.AttrValue.ListValue.s) } @@ -687,7 +806,14 @@ inline void AttrValue_ListValue::add_s(const ::std::string& value) { s_.Add()->assign(value); // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.s) } +#if LANG_CXX11 +inline void AttrValue_ListValue::add_s(::std::string&& value) { + s_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.s) +} +#endif inline void AttrValue_ListValue::add_s(const char* value) { + GOOGLE_DCHECK(value != NULL); s_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tensorflow.AttrValue.ListValue.s) } @@ -830,9 +956,6 @@ AttrValue_ListValue::mutable_type() { inline int AttrValue_ListValue::shape_size() const { return shape_.size(); } -inline void AttrValue_ListValue::clear_shape() { - shape_.Clear(); -} inline const ::tensorflow::TensorShapeProto& AttrValue_ListValue::shape(int index) const { // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.shape) return shape_.Get(index); @@ -860,9 +983,6 @@ AttrValue_ListValue::shape() const { inline int AttrValue_ListValue::tensor_size() const { return tensor_.size(); } -inline void AttrValue_ListValue::clear_tensor() { - tensor_.Clear(); -} inline const ::tensorflow::TensorProto& AttrValue_ListValue::tensor(int index) const { // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.tensor) return tensor_.Get(index); @@ -886,14 +1006,11 @@ AttrValue_ListValue::tensor() const { return tensor_; } -inline const AttrValue_ListValue* AttrValue_ListValue::internal_default_instance() { - return &AttrValue_ListValue_default_instance_.get(); -} // ------------------------------------------------------------------- // AttrValue -// optional bytes s = 2; +// bytes s = 2; inline bool AttrValue::has_s() const { return value_case() == kS; } @@ -910,7 +1027,7 @@ inline void AttrValue::clear_s() { inline const ::std::string& AttrValue::s() const { // @@protoc_insertion_point(field_get:tensorflow.AttrValue.s) if (has_s()) { - return value_.s_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return value_.s_.Get(); } return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); } @@ -924,7 +1041,21 @@ inline void AttrValue::set_s(const ::std::string& value) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.AttrValue.s) } +#if LANG_CXX11 +inline void AttrValue::set_s(::std::string&& value) { + // @@protoc_insertion_point(field_set:tensorflow.AttrValue.s) + if (!has_s()) { + clear_value(); + set_has_s(); + value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.s_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.AttrValue.s) +} +#endif inline void AttrValue::set_s(const char* value) { + GOOGLE_DCHECK(value != NULL); if (!has_s()) { clear_value(); set_has_s(); @@ -941,7 +1072,8 @@ inline void AttrValue::set_s(const void* value, set_has_s(); value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - value_.s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + value_.s_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.AttrValue.s) @@ -966,17 +1098,6 @@ inline ::std::string* AttrValue::release_s() { return NULL; } } -inline ::std::string* AttrValue::unsafe_arena_release_s() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.s) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (has_s()) { - clear_has_value(); - return value_.s_.UnsafeArenaRelease( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return NULL; - } -} inline void AttrValue::set_allocated_s(::std::string* s) { if (!has_s()) { value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -989,6 +1110,17 @@ inline void AttrValue::set_allocated_s(::std::string* s) { } // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.s) } +inline ::std::string* AttrValue::unsafe_arena_release_s() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.s) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + if (has_s()) { + clear_has_value(); + return value_.s_.UnsafeArenaRelease( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + } else { + return NULL; + } +} inline void AttrValue::unsafe_arena_set_allocated_s(::std::string* s) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (!has_s()) { @@ -1002,7 +1134,7 @@ inline void AttrValue::unsafe_arena_set_allocated_s(::std::string* s) { // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.s) } -// optional int64 i = 3; +// int64 i = 3; inline bool AttrValue::has_i() const { return value_case() == kI; } @@ -1031,7 +1163,7 @@ inline void AttrValue::set_i(::google::protobuf::int64 value) { // @@protoc_insertion_point(field_set:tensorflow.AttrValue.i) } -// optional float f = 4; +// float f = 4; inline bool AttrValue::has_f() const { return value_case() == kF; } @@ -1060,7 +1192,7 @@ inline void AttrValue::set_f(float value) { // @@protoc_insertion_point(field_set:tensorflow.AttrValue.f) } -// optional bool b = 5; +// bool b = 5; inline bool AttrValue::has_b() const { return value_case() == kB; } @@ -1089,7 +1221,7 @@ inline void AttrValue::set_b(bool value) { // @@protoc_insertion_point(field_set:tensorflow.AttrValue.b) } -// optional .tensorflow.DataType type = 6; +// .tensorflow.DataType type = 6; inline bool AttrValue::has_type() const { return value_case() == kType; } @@ -1118,26 +1250,51 @@ inline void AttrValue::set_type(::tensorflow::DataType value) { // @@protoc_insertion_point(field_set:tensorflow.AttrValue.type) } -// optional .tensorflow.TensorShapeProto shape = 7; +// .tensorflow.TensorShapeProto shape = 7; inline bool AttrValue::has_shape() const { return value_case() == kShape; } inline void AttrValue::set_has_shape() { _oneof_case_[0] = kShape; } -inline void AttrValue::clear_shape() { +inline ::tensorflow::TensorShapeProto* AttrValue::release_shape() { + // @@protoc_insertion_point(field_release:tensorflow.AttrValue.shape) if (has_shape()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.shape_; - } clear_has_value(); + ::tensorflow::TensorShapeProto* temp = value_.shape_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + value_.shape_ = NULL; + return temp; + } else { + return NULL; } } -inline const ::tensorflow::TensorShapeProto& AttrValue::shape() const { +inline const ::tensorflow::TensorShapeProto& AttrValue::shape() const { // @@protoc_insertion_point(field_get:tensorflow.AttrValue.shape) return has_shape() ? *value_.shape_ - : ::tensorflow::TensorShapeProto::default_instance(); + : *reinterpret_cast< ::tensorflow::TensorShapeProto*>(&::tensorflow::_TensorShapeProto_default_instance_); +} +inline ::tensorflow::TensorShapeProto* AttrValue::unsafe_arena_release_shape() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.shape) + if (has_shape()) { + clear_has_value(); + ::tensorflow::TensorShapeProto* temp = value_.shape_; + value_.shape_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void AttrValue::unsafe_arena_set_allocated_shape(::tensorflow::TensorShapeProto* shape) { + clear_value(); + if (shape) { + set_has_shape(); + value_.shape_ = shape; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.shape) } inline ::tensorflow::TensorShapeProto* AttrValue::mutable_shape() { if (!has_shape()) { @@ -1150,82 +1307,52 @@ inline ::tensorflow::TensorShapeProto* AttrValue::mutable_shape() { // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.shape) return value_.shape_; } -inline ::tensorflow::TensorShapeProto* AttrValue::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.shape) - if (has_shape()) { - clear_has_value(); - if (GetArenaNoVirtual() != NULL) { - ::tensorflow::TensorShapeProto* temp = new ::tensorflow::TensorShapeProto(*value_.shape_); - value_.shape_ = NULL; - return temp; - } else { - ::tensorflow::TensorShapeProto* temp = value_.shape_; - value_.shape_ = NULL; - return temp; - } - } else { - return NULL; - } -} -inline void AttrValue::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - clear_value(); - if (shape) { - if (GetArenaNoVirtual() != NULL && - ::google::protobuf::Arena::GetArena(shape) == NULL) { - GetArenaNoVirtual()->Own(shape); - } else if (GetArenaNoVirtual() != - ::google::protobuf::Arena::GetArena(shape)) { - ::tensorflow::TensorShapeProto* new_shape = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorShapeProto >( - GetArenaNoVirtual()); - new_shape->CopyFrom(*shape); - shape = new_shape; - } - set_has_shape(); - value_.shape_ = shape; - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.shape) -} -inline ::tensorflow::TensorShapeProto* AttrValue::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.shape) - if (has_shape()) { - clear_has_value(); - ::tensorflow::TensorShapeProto* temp = value_.shape_; - value_.shape_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - clear_value(); - if (shape) { - set_has_shape(); - value_.shape_ = shape; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.shape) -} -// optional .tensorflow.TensorProto tensor = 8; +// .tensorflow.TensorProto tensor = 8; inline bool AttrValue::has_tensor() const { return value_case() == kTensor; } inline void AttrValue::set_has_tensor() { _oneof_case_[0] = kTensor; } -inline void AttrValue::clear_tensor() { +inline ::tensorflow::TensorProto* AttrValue::release_tensor() { + // @@protoc_insertion_point(field_release:tensorflow.AttrValue.tensor) if (has_tensor()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.tensor_; - } clear_has_value(); + ::tensorflow::TensorProto* temp = value_.tensor_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + value_.tensor_ = NULL; + return temp; + } else { + return NULL; } } -inline const ::tensorflow::TensorProto& AttrValue::tensor() const { +inline const ::tensorflow::TensorProto& AttrValue::tensor() const { // @@protoc_insertion_point(field_get:tensorflow.AttrValue.tensor) return has_tensor() ? *value_.tensor_ - : ::tensorflow::TensorProto::default_instance(); + : *reinterpret_cast< ::tensorflow::TensorProto*>(&::tensorflow::_TensorProto_default_instance_); +} +inline ::tensorflow::TensorProto* AttrValue::unsafe_arena_release_tensor() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.tensor) + if (has_tensor()) { + clear_has_value(); + ::tensorflow::TensorProto* temp = value_.tensor_; + value_.tensor_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void AttrValue::unsafe_arena_set_allocated_tensor(::tensorflow::TensorProto* tensor) { + clear_value(); + if (tensor) { + set_has_tensor(); + value_.tensor_ = tensor; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.tensor) } inline ::tensorflow::TensorProto* AttrValue::mutable_tensor() { if (!has_tensor()) { @@ -1238,63 +1365,8 @@ inline ::tensorflow::TensorProto* AttrValue::mutable_tensor() { // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.tensor) return value_.tensor_; } -inline ::tensorflow::TensorProto* AttrValue::release_tensor() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.tensor) - if (has_tensor()) { - clear_has_value(); - if (GetArenaNoVirtual() != NULL) { - ::tensorflow::TensorProto* temp = new ::tensorflow::TensorProto(*value_.tensor_); - value_.tensor_ = NULL; - return temp; - } else { - ::tensorflow::TensorProto* temp = value_.tensor_; - value_.tensor_ = NULL; - return temp; - } - } else { - return NULL; - } -} -inline void AttrValue::set_allocated_tensor(::tensorflow::TensorProto* tensor) { - clear_value(); - if (tensor) { - if (GetArenaNoVirtual() != NULL && - ::google::protobuf::Arena::GetArena(tensor) == NULL) { - GetArenaNoVirtual()->Own(tensor); - } else if (GetArenaNoVirtual() != - ::google::protobuf::Arena::GetArena(tensor)) { - ::tensorflow::TensorProto* new_tensor = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorProto >( - GetArenaNoVirtual()); - new_tensor->CopyFrom(*tensor); - tensor = new_tensor; - } - set_has_tensor(); - value_.tensor_ = tensor; - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.tensor) -} -inline ::tensorflow::TensorProto* AttrValue::unsafe_arena_release_tensor() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.tensor) - if (has_tensor()) { - clear_has_value(); - ::tensorflow::TensorProto* temp = value_.tensor_; - value_.tensor_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_tensor(::tensorflow::TensorProto* tensor) { - clear_value(); - if (tensor) { - set_has_tensor(); - value_.tensor_ = tensor; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.tensor) -} -// optional .tensorflow.AttrValue.ListValue list = 1; +// .tensorflow.AttrValue.ListValue list = 1; inline bool AttrValue::has_list() const { return value_case() == kList; } @@ -1309,11 +1381,44 @@ inline void AttrValue::clear_list() { clear_has_value(); } } -inline const ::tensorflow::AttrValue_ListValue& AttrValue::list() const { +inline ::tensorflow::AttrValue_ListValue* AttrValue::release_list() { + // @@protoc_insertion_point(field_release:tensorflow.AttrValue.list) + if (has_list()) { + clear_has_value(); + ::tensorflow::AttrValue_ListValue* temp = value_.list_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + value_.list_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::tensorflow::AttrValue_ListValue& AttrValue::list() const { // @@protoc_insertion_point(field_get:tensorflow.AttrValue.list) return has_list() ? *value_.list_ - : ::tensorflow::AttrValue_ListValue::default_instance(); + : *reinterpret_cast< ::tensorflow::AttrValue_ListValue*>(&::tensorflow::_AttrValue_ListValue_default_instance_); +} +inline ::tensorflow::AttrValue_ListValue* AttrValue::unsafe_arena_release_list() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.list) + if (has_list()) { + clear_has_value(); + ::tensorflow::AttrValue_ListValue* temp = value_.list_; + value_.list_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void AttrValue::unsafe_arena_set_allocated_list(::tensorflow::AttrValue_ListValue* list) { + clear_value(); + if (list) { + set_has_list(); + value_.list_ = list; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.list) } inline ::tensorflow::AttrValue_ListValue* AttrValue::mutable_list() { if (!has_list()) { @@ -1326,63 +1431,8 @@ inline ::tensorflow::AttrValue_ListValue* AttrValue::mutable_list() { // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.list) return value_.list_; } -inline ::tensorflow::AttrValue_ListValue* AttrValue::release_list() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.list) - if (has_list()) { - clear_has_value(); - if (GetArenaNoVirtual() != NULL) { - ::tensorflow::AttrValue_ListValue* temp = new ::tensorflow::AttrValue_ListValue(*value_.list_); - value_.list_ = NULL; - return temp; - } else { - ::tensorflow::AttrValue_ListValue* temp = value_.list_; - value_.list_ = NULL; - return temp; - } - } else { - return NULL; - } -} -inline void AttrValue::set_allocated_list(::tensorflow::AttrValue_ListValue* list) { - clear_value(); - if (list) { - if (GetArenaNoVirtual() != NULL && - ::google::protobuf::Arena::GetArena(list) == NULL) { - GetArenaNoVirtual()->Own(list); - } else if (GetArenaNoVirtual() != - ::google::protobuf::Arena::GetArena(list)) { - ::tensorflow::AttrValue_ListValue* new_list = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue_ListValue >( - GetArenaNoVirtual()); - new_list->CopyFrom(*list); - list = new_list; - } - set_has_list(); - value_.list_ = list; - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.list) -} -inline ::tensorflow::AttrValue_ListValue* AttrValue::unsafe_arena_release_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.list) - if (has_list()) { - clear_has_value(); - ::tensorflow::AttrValue_ListValue* temp = value_.list_; - value_.list_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_list(::tensorflow::AttrValue_ListValue* list) { - clear_value(); - if (list) { - set_has_list(); - value_.list_ = list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.list) -} -// optional .tensorflow.NameAttrList func = 10; +// .tensorflow.NameAttrList func = 10; inline bool AttrValue::has_func() const { return value_case() == kFunc; } @@ -1397,11 +1447,44 @@ inline void AttrValue::clear_func() { clear_has_value(); } } -inline const ::tensorflow::NameAttrList& AttrValue::func() const { +inline ::tensorflow::NameAttrList* AttrValue::release_func() { + // @@protoc_insertion_point(field_release:tensorflow.AttrValue.func) + if (has_func()) { + clear_has_value(); + ::tensorflow::NameAttrList* temp = value_.func_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + value_.func_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::tensorflow::NameAttrList& AttrValue::func() const { // @@protoc_insertion_point(field_get:tensorflow.AttrValue.func) return has_func() ? *value_.func_ - : ::tensorflow::NameAttrList::default_instance(); + : *reinterpret_cast< ::tensorflow::NameAttrList*>(&::tensorflow::_NameAttrList_default_instance_); +} +inline ::tensorflow::NameAttrList* AttrValue::unsafe_arena_release_func() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.func) + if (has_func()) { + clear_has_value(); + ::tensorflow::NameAttrList* temp = value_.func_; + value_.func_ = NULL; + return temp; + } else { + return NULL; + } +} +inline void AttrValue::unsafe_arena_set_allocated_func(::tensorflow::NameAttrList* func) { + clear_value(); + if (func) { + set_has_func(); + value_.func_ = func; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.func) } inline ::tensorflow::NameAttrList* AttrValue::mutable_func() { if (!has_func()) { @@ -1414,63 +1497,8 @@ inline ::tensorflow::NameAttrList* AttrValue::mutable_func() { // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.func) return value_.func_; } -inline ::tensorflow::NameAttrList* AttrValue::release_func() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.func) - if (has_func()) { - clear_has_value(); - if (GetArenaNoVirtual() != NULL) { - ::tensorflow::NameAttrList* temp = new ::tensorflow::NameAttrList(*value_.func_); - value_.func_ = NULL; - return temp; - } else { - ::tensorflow::NameAttrList* temp = value_.func_; - value_.func_ = NULL; - return temp; - } - } else { - return NULL; - } -} -inline void AttrValue::set_allocated_func(::tensorflow::NameAttrList* func) { - clear_value(); - if (func) { - if (GetArenaNoVirtual() != NULL && - ::google::protobuf::Arena::GetArena(func) == NULL) { - GetArenaNoVirtual()->Own(func); - } else if (GetArenaNoVirtual() != - ::google::protobuf::Arena::GetArena(func)) { - ::tensorflow::NameAttrList* new_func = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::NameAttrList >( - GetArenaNoVirtual()); - new_func->CopyFrom(*func); - func = new_func; - } - set_has_func(); - value_.func_ = func; - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.func) -} -inline ::tensorflow::NameAttrList* AttrValue::unsafe_arena_release_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.func) - if (has_func()) { - clear_has_value(); - ::tensorflow::NameAttrList* temp = value_.func_; - value_.func_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_func(::tensorflow::NameAttrList* func) { - clear_value(); - if (func) { - set_has_func(); - value_.func_ = func; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.func) -} -// optional string placeholder = 9; +// string placeholder = 9; inline bool AttrValue::has_placeholder() const { return value_case() == kPlaceholder; } @@ -1487,7 +1515,7 @@ inline void AttrValue::clear_placeholder() { inline const ::std::string& AttrValue::placeholder() const { // @@protoc_insertion_point(field_get:tensorflow.AttrValue.placeholder) if (has_placeholder()) { - return value_.placeholder_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return value_.placeholder_.Get(); } return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); } @@ -1501,7 +1529,21 @@ inline void AttrValue::set_placeholder(const ::std::string& value) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.AttrValue.placeholder) } +#if LANG_CXX11 +inline void AttrValue::set_placeholder(::std::string&& value) { + // @@protoc_insertion_point(field_set:tensorflow.AttrValue.placeholder) + if (!has_placeholder()) { + clear_value(); + set_has_placeholder(); + value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.placeholder_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.AttrValue.placeholder) +} +#endif inline void AttrValue::set_placeholder(const char* value) { + GOOGLE_DCHECK(value != NULL); if (!has_placeholder()) { clear_value(); set_has_placeholder(); @@ -1518,7 +1560,8 @@ inline void AttrValue::set_placeholder(const char* value, set_has_placeholder(); value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } - value_.placeholder_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + value_.placeholder_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:tensorflow.AttrValue.placeholder) @@ -1543,17 +1586,6 @@ inline ::std::string* AttrValue::release_placeholder() { return NULL; } } -inline ::std::string* AttrValue::unsafe_arena_release_placeholder() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.placeholder) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (has_placeholder()) { - clear_has_value(); - return value_.placeholder_.UnsafeArenaRelease( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return NULL; - } -} inline void AttrValue::set_allocated_placeholder(::std::string* placeholder) { if (!has_placeholder()) { value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -1566,6 +1598,17 @@ inline void AttrValue::set_allocated_placeholder(::std::string* placeholder) { } // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.placeholder) } +inline ::std::string* AttrValue::unsafe_arena_release_placeholder() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.placeholder) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + if (has_placeholder()) { + clear_has_value(); + return value_.placeholder_.UnsafeArenaRelease( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + } else { + return NULL; + } +} inline void AttrValue::unsafe_arena_set_allocated_placeholder(::std::string* placeholder) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (!has_placeholder()) { @@ -1588,27 +1631,35 @@ inline void AttrValue::clear_has_value() { inline AttrValue::ValueCase AttrValue::value_case() const { return AttrValue::ValueCase(_oneof_case_[0]); } -inline const AttrValue* AttrValue::internal_default_instance() { - return &AttrValue_default_instance_.get(); -} +// ------------------------------------------------------------------- + // ------------------------------------------------------------------- // NameAttrList -// optional string name = 1; +// string name = 1; inline void NameAttrList::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& NameAttrList::name() const { // @@protoc_insertion_point(field_get:tensorflow.NameAttrList.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.Get(); } inline void NameAttrList::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.NameAttrList.name) } +#if LANG_CXX11 +inline void NameAttrList::set_name(::std::string&& value) { + + name_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.NameAttrList.name) +} +#endif inline void NameAttrList::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1631,13 +1682,6 @@ inline ::std::string* NameAttrList::release_name() { return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* NameAttrList::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NameAttrList.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void NameAttrList::set_allocated_name(::std::string* name) { if (name != NULL) { @@ -1648,6 +1692,13 @@ inline void NameAttrList::set_allocated_name(::std::string* name) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.NameAttrList.name) } +inline ::std::string* NameAttrList::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NameAttrList.name) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void NameAttrList::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1679,10 +1730,11 @@ NameAttrList::mutable_attr() { return attr_.MutableMap(); } -inline const NameAttrList* NameAttrList::internal_default_instance() { - return &NameAttrList_default_instance_.get(); -} -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + // ------------------------------------------------------------------- // ------------------------------------------------------------------- diff --git a/modules/dnn/misc/tensorflow/function.pb.cc b/modules/dnn/misc/tensorflow/function.pb.cc index 408a07e394..10954b0514 100644 --- a/modules/dnn/misc/tensorflow/function.pb.cc +++ b/modules/dnn/misc/tensorflow/function.pb.cc @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: function.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "function.pb.h" #include @@ -15,218 +14,272 @@ #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) - namespace tensorflow { +class FunctionDefLibraryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FunctionDefLibrary_default_instance_; +class FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FunctionDef_Node_AttrEntry_DoNotUse_default_instance_; +class FunctionDef_NodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FunctionDef_Node_default_instance_; +class FunctionDefDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FunctionDef_default_instance_; +class GradientDefDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GradientDef_default_instance_; +} // namespace tensorflow +namespace protobuf_function_2eproto { +void InitDefaultsFunctionDefLibraryImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -namespace { - -const ::google::protobuf::Descriptor* FunctionDefLibrary_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FunctionDefLibrary_reflection_ = NULL; -const ::google::protobuf::Descriptor* FunctionDef_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FunctionDef_reflection_ = NULL; -const ::google::protobuf::Descriptor* FunctionDef_Node_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - FunctionDef_Node_reflection_ = NULL; -const ::google::protobuf::Descriptor* FunctionDef_Node_AttrEntry_descriptor_ = NULL; -const ::google::protobuf::Descriptor* GradientDef_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - GradientDef_reflection_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_function_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_function_2eproto() { - protobuf_AddDesc_function_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "function.proto"); - GOOGLE_CHECK(file != NULL); - FunctionDefLibrary_descriptor_ = file->message_type(0); - static const int FunctionDefLibrary_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDefLibrary, function_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDefLibrary, gradient_), - }; - FunctionDefLibrary_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FunctionDefLibrary_descriptor_, - FunctionDefLibrary::internal_default_instance(), - FunctionDefLibrary_offsets_, - -1, - -1, - -1, - sizeof(FunctionDefLibrary), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDefLibrary, _internal_metadata_)); - FunctionDef_descriptor_ = file->message_type(1); - static const int FunctionDef_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDef, signature_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDef, node_), - }; - FunctionDef_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FunctionDef_descriptor_, - FunctionDef::internal_default_instance(), - FunctionDef_offsets_, - -1, - -1, - -1, - sizeof(FunctionDef), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDef, _internal_metadata_)); - FunctionDef_Node_descriptor_ = FunctionDef_descriptor_->nested_type(0); - static const int FunctionDef_Node_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDef_Node, ret_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDef_Node, op_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDef_Node, arg_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDef_Node, dep_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDef_Node, attr_), - }; - FunctionDef_Node_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - FunctionDef_Node_descriptor_, - FunctionDef_Node::internal_default_instance(), - FunctionDef_Node_offsets_, - -1, - -1, - -1, - sizeof(FunctionDef_Node), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionDef_Node, _internal_metadata_)); - FunctionDef_Node_AttrEntry_descriptor_ = FunctionDef_Node_descriptor_->nested_type(0); - GradientDef_descriptor_ = file->message_type(2); - static const int GradientDef_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GradientDef, function_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GradientDef, gradient_func_), - }; - GradientDef_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - GradientDef_descriptor_, - GradientDef::internal_default_instance(), - GradientDef_offsets_, - -1, - -1, - -1, - sizeof(GradientDef), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GradientDef, _internal_metadata_)); +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_function_2eproto::InitDefaultsFunctionDef(); + protobuf_function_2eproto::InitDefaultsGradientDef(); + { + void* ptr = &::tensorflow::_FunctionDefLibrary_default_instance_; + new (ptr) ::tensorflow::FunctionDefLibrary(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::FunctionDefLibrary::InitAsDefaultInstance(); } -namespace { +void InitDefaultsFunctionDefLibrary() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFunctionDefLibraryImpl); +} + +void InitDefaultsFunctionDef_Node_AttrEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); + { + void* ptr = &::tensorflow::_FunctionDef_Node_AttrEntry_DoNotUse_default_instance_; + new (ptr) ::tensorflow::FunctionDef_Node_AttrEntry_DoNotUse(); + } + ::tensorflow::FunctionDef_Node_AttrEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsFunctionDef_Node_AttrEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFunctionDef_Node_AttrEntry_DoNotUseImpl); +} + +void InitDefaultsFunctionDef_NodeImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_function_2eproto::InitDefaultsFunctionDef_Node_AttrEntry_DoNotUse(); + { + void* ptr = &::tensorflow::_FunctionDef_Node_default_instance_; + new (ptr) ::tensorflow::FunctionDef_Node(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::FunctionDef_Node::InitAsDefaultInstance(); +} + +void InitDefaultsFunctionDef_Node() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFunctionDef_NodeImpl); +} + +void InitDefaultsFunctionDefImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_op_5fdef_2eproto::InitDefaultsOpDef(); + protobuf_function_2eproto::InitDefaultsFunctionDef_Node(); + { + void* ptr = &::tensorflow::_FunctionDef_default_instance_; + new (ptr) ::tensorflow::FunctionDef(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::FunctionDef::InitAsDefaultInstance(); +} + +void InitDefaultsFunctionDef() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFunctionDefImpl); +} + +void InitDefaultsGradientDefImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::tensorflow::_GradientDef_default_instance_; + new (ptr) ::tensorflow::GradientDef(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::GradientDef::InitAsDefaultInstance(); +} + +void InitDefaultsGradientDef() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGradientDefImpl); +} + +::google::protobuf::Metadata file_level_metadata[5]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDefLibrary, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDefLibrary, function_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDefLibrary, gradient_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node, ret_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node, op_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node, arg_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node, dep_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef_Node, attr_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::FunctionDef, node_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GradientDef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GradientDef, function_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GradientDef, gradient_func_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::tensorflow::FunctionDefLibrary)}, + { 7, 14, sizeof(::tensorflow::FunctionDef_Node_AttrEntry_DoNotUse)}, + { 16, -1, sizeof(::tensorflow::FunctionDef_Node)}, + { 26, -1, sizeof(::tensorflow::FunctionDef)}, + { 33, -1, sizeof(::tensorflow::GradientDef)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::tensorflow::_FunctionDefLibrary_default_instance_), + reinterpret_cast(&::tensorflow::_FunctionDef_Node_AttrEntry_DoNotUse_default_instance_), + reinterpret_cast(&::tensorflow::_FunctionDef_Node_default_instance_), + reinterpret_cast(&::tensorflow::_FunctionDef_default_instance_), + reinterpret_cast(&::tensorflow::_GradientDef_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "function.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_function_2eproto); + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FunctionDefLibrary_descriptor_, FunctionDefLibrary::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FunctionDef_descriptor_, FunctionDef::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FunctionDef_Node_descriptor_, FunctionDef_Node::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - FunctionDef_Node_AttrEntry_descriptor_, - ::google::protobuf::internal::MapEntry< - ::std::string, - ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0>::CreateDefaultInstance( - FunctionDef_Node_AttrEntry_descriptor_)); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - GradientDef_descriptor_, GradientDef::internal_default_instance()); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5); } -} // namespace - -void protobuf_ShutdownFile_function_2eproto() { - FunctionDefLibrary_default_instance_.Shutdown(); - delete FunctionDefLibrary_reflection_; - FunctionDef_default_instance_.Shutdown(); - delete FunctionDef_reflection_; - FunctionDef_Node_default_instance_.Shutdown(); - delete FunctionDef_Node_reflection_; - GradientDef_default_instance_.Shutdown(); - delete GradientDef_reflection_; -} - -void protobuf_InitDefaults_function_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::tensorflow::protobuf_InitDefaults_attr_5fvalue_2eproto(); - ::tensorflow::protobuf_InitDefaults_op_5fdef_2eproto(); - FunctionDefLibrary_default_instance_.DefaultConstruct(); - FunctionDef_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - FunctionDef_Node_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - GradientDef_default_instance_.DefaultConstruct(); - FunctionDefLibrary_default_instance_.get_mutable()->InitAsDefaultInstance(); - FunctionDef_default_instance_.get_mutable()->InitAsDefaultInstance(); - FunctionDef_Node_default_instance_.get_mutable()->InitAsDefaultInstance(); - GradientDef_default_instance_.get_mutable()->InitAsDefaultInstance(); -} - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_function_2eproto_once_); -void protobuf_InitDefaults_function_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_function_2eproto_once_, - &protobuf_InitDefaults_function_2eproto_impl); -} -void protobuf_AddDesc_function_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - protobuf_InitDefaults_function_2eproto(); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\016function.proto\022\ntensorflow\032\020attr_value" + ".proto\032\014op_def.proto\"j\n\022FunctionDefLibra" + "ry\022)\n\010function\030\001 \003(\0132\027.tensorflow.Functi" + "onDef\022)\n\010gradient\030\002 \003(\0132\027.tensorflow.Gra" + "dientDef\"\225\002\n\013FunctionDef\022$\n\tsignature\030\001 " + "\001(\0132\021.tensorflow.OpDef\022*\n\004node\030\002 \003(\0132\034.t" + "ensorflow.FunctionDef.Node\032\263\001\n\004Node\022\013\n\003r" + "et\030\001 \003(\t\022\n\n\002op\030\002 \001(\t\022\013\n\003arg\030\003 \003(\t\022\013\n\003dep" + "\030\004 \003(\t\0224\n\004attr\030\005 \003(\0132&.tensorflow.Functi" + "onDef.Node.AttrEntry\032B\n\tAttrEntry\022\013\n\003key" + "\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorflow.AttrV" + "alue:\0028\001\";\n\013GradientDef\022\025\n\rfunction_name" + "\030\001 \001(\t\022\025\n\rgradient_func\030\002 \001(\tB/\n\030org.ten" + "sorflow.frameworkB\016FunctionProtosP\001\370\001\001b\006" + "proto3" + }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\016function.proto\022\ntensorflow\032\020attr_value" - ".proto\032\014op_def.proto\"j\n\022FunctionDefLibra" - "ry\022)\n\010function\030\001 \003(\0132\027.tensorflow.Functi" - "onDef\022)\n\010gradient\030\002 \003(\0132\027.tensorflow.Gra" - "dientDef\"\225\002\n\013FunctionDef\022$\n\tsignature\030\001 " - "\001(\0132\021.tensorflow.OpDef\022*\n\004node\030\002 \003(\0132\034.t" - "ensorflow.FunctionDef.Node\032\263\001\n\004Node\022\013\n\003r" - "et\030\001 \003(\t\022\n\n\002op\030\002 \001(\t\022\013\n\003arg\030\003 \003(\t\022\013\n\003dep" - "\030\004 \003(\t\0224\n\004attr\030\005 \003(\0132&.tensorflow.Functi" - "onDef.Node.AttrEntry\032B\n\tAttrEntry\022\013\n\003key" - "\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorflow.AttrV" - "alue:\0028\001\";\n\013GradientDef\022\025\n\rfunction_name" - "\030\001 \001(\t\022\025\n\rgradient_func\030\002 \001(\tB/\n\030org.ten" - "sorflow.frameworkB\016FunctionProtosP\001\370\001\001b\006" - "proto3", 566); + descriptor, 566); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "function.proto", &protobuf_RegisterTypes); - ::tensorflow::protobuf_AddDesc_attr_5fvalue_2eproto(); - ::tensorflow::protobuf_AddDesc_op_5fdef_2eproto(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_function_2eproto); + ::protobuf_attr_5fvalue_2eproto::AddDescriptors(); + ::protobuf_op_5fdef_2eproto::AddDescriptors(); } -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_function_2eproto_once_); -void protobuf_AddDesc_function_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_function_2eproto_once_, - &protobuf_AddDesc_function_2eproto_impl); +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_function_2eproto { - StaticDescriptorInitializer_function_2eproto() { - protobuf_AddDesc_function_2eproto(); +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); } -} static_descriptor_initializer_function_2eproto_; - -namespace { - -static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; -static void MergeFromFail(int line) { - ::google::protobuf::internal::MergeFromFail(__FILE__, line); -} - -} // namespace - +} static_descriptor_initializer; +} // namespace protobuf_function_2eproto +namespace tensorflow { // =================================================================== +void FunctionDefLibrary::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int FunctionDefLibrary::kFunctionFieldNumber; const int FunctionDefLibrary::kGradientFieldNumber; @@ -234,7 +287,9 @@ const int FunctionDefLibrary::kGradientFieldNumber; FunctionDefLibrary::FunctionDefLibrary() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_function_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_function_2eproto::InitDefaultsFunctionDefLibrary(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.FunctionDefLibrary) } @@ -243,22 +298,18 @@ FunctionDefLibrary::FunctionDefLibrary(::google::protobuf::Arena* arena) _internal_metadata_(arena), function_(arena), gradient_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_function_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_function_2eproto::InitDefaultsFunctionDefLibrary(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.FunctionDefLibrary) } - -void FunctionDefLibrary::InitAsDefaultInstance() { -} - FunctionDefLibrary::FunctionDefLibrary(const FunctionDefLibrary& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + function_(from.function_), + gradient_(from.gradient_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:tensorflow.FunctionDefLibrary) } @@ -272,11 +323,7 @@ FunctionDefLibrary::~FunctionDefLibrary() { } void FunctionDefLibrary::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void FunctionDefLibrary::ArenaDtor(void* object) { @@ -291,25 +338,28 @@ void FunctionDefLibrary::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* FunctionDefLibrary::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FunctionDefLibrary_descriptor_; + ::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const FunctionDefLibrary& FunctionDefLibrary::default_instance() { - protobuf_InitDefaults_function_2eproto(); + ::protobuf_function_2eproto::InitDefaultsFunctionDefLibrary(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed FunctionDefLibrary_default_instance_; - FunctionDefLibrary* FunctionDefLibrary::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void FunctionDefLibrary::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.FunctionDefLibrary) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + function_.Clear(); gradient_.Clear(); + _internal_metadata_.Clear(); } bool FunctionDefLibrary::MergePartialFromCodedStream( @@ -318,50 +368,39 @@ bool FunctionDefLibrary::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.FunctionDefLibrary) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .tensorflow.FunctionDef function = 1; case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_function: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_function())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_function())); } else { goto handle_unusual; } - if (input->ExpectTag(10)) goto parse_loop_function; - if (input->ExpectTag(18)) goto parse_loop_gradient; - input->UnsafeDecrementRecursionDepth(); break; } // repeated .tensorflow.GradientDef gradient = 2; case 2: { - if (tag == 18) { - DO_(input->IncrementRecursionDepth()); - parse_loop_gradient: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_gradient())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_gradient())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_loop_gradient; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -378,18 +417,27 @@ failure: void FunctionDefLibrary::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.FunctionDefLibrary) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .tensorflow.FunctionDef function = 1; - for (unsigned int i = 0, n = this->function_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->function_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->function(i), output); + 1, this->function(static_cast(i)), output); } // repeated .tensorflow.GradientDef gradient = 2; - for (unsigned int i = 0, n = this->gradient_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->gradient_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->gradient(i), output); + 2, this->gradient(static_cast(i)), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.FunctionDefLibrary) } @@ -397,20 +445,29 @@ void FunctionDefLibrary::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.FunctionDefLibrary) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .tensorflow.FunctionDef function = 1; - for (unsigned int i = 0, n = this->function_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->function_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->function(i), false, target); + InternalWriteMessageToArray( + 1, this->function(static_cast(i)), deterministic, target); } // repeated .tensorflow.GradientDef gradient = 2; - for (unsigned int i = 0, n = this->gradient_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->gradient_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->gradient(i), false, target); + InternalWriteMessageToArray( + 2, this->gradient(static_cast(i)), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.FunctionDefLibrary) return target; } @@ -419,25 +476,30 @@ size_t FunctionDefLibrary::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.FunctionDefLibrary) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated .tensorflow.FunctionDef function = 1; { - unsigned int count = this->function_size(); + unsigned int count = static_cast(this->function_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->function(i)); + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->function(static_cast(i))); } } // repeated .tensorflow.GradientDef gradient = 2; { - unsigned int count = this->gradient_size(); + unsigned int count = static_cast(this->gradient_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gradient(i)); + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->gradient(static_cast(i))); } } @@ -450,7 +512,7 @@ size_t FunctionDefLibrary::ByteSizeLong() const { void FunctionDefLibrary::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.FunctionDefLibrary) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const FunctionDefLibrary* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -459,21 +521,17 @@ void FunctionDefLibrary::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.FunctionDefLibrary) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void FunctionDefLibrary::MergeFrom(const FunctionDefLibrary& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.FunctionDefLibrary) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void FunctionDefLibrary::UnsafeMergeFrom(const FunctionDefLibrary& from) { - GOOGLE_DCHECK(&from != this); function_.MergeFrom(from.function_); gradient_.MergeFrom(from.gradient_); } @@ -489,11 +547,10 @@ void FunctionDefLibrary::CopyFrom(const FunctionDefLibrary& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.FunctionDefLibrary) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool FunctionDefLibrary::IsInitialized() const { - return true; } @@ -502,10 +559,13 @@ void FunctionDefLibrary::Swap(FunctionDefLibrary* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - FunctionDefLibrary temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + FunctionDefLibrary* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void FunctionDefLibrary::UnsafeArenaSwap(FunctionDefLibrary* other) { @@ -514,90 +574,43 @@ void FunctionDefLibrary::UnsafeArenaSwap(FunctionDefLibrary* other) { InternalSwap(other); } void FunctionDefLibrary::InternalSwap(FunctionDefLibrary* other) { - function_.UnsafeArenaSwap(&other->function_); - gradient_.UnsafeArenaSwap(&other->gradient_); + using std::swap; + function_.InternalSwap(&other->function_); + gradient_.InternalSwap(&other->gradient_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata FunctionDefLibrary::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FunctionDefLibrary_descriptor_; - metadata.reflection = FunctionDefLibrary_reflection_; - return metadata; + protobuf_function_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FunctionDefLibrary - -// repeated .tensorflow.FunctionDef function = 1; -int FunctionDefLibrary::function_size() const { - return function_.size(); -} -void FunctionDefLibrary::clear_function() { - function_.Clear(); -} -const ::tensorflow::FunctionDef& FunctionDefLibrary::function(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDefLibrary.function) - return function_.Get(index); -} -::tensorflow::FunctionDef* FunctionDefLibrary::mutable_function(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDefLibrary.function) - return function_.Mutable(index); -} -::tensorflow::FunctionDef* FunctionDefLibrary::add_function() { - // @@protoc_insertion_point(field_add:tensorflow.FunctionDefLibrary.function) - return function_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >* -FunctionDefLibrary::mutable_function() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDefLibrary.function) - return &function_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >& -FunctionDefLibrary::function() const { - // @@protoc_insertion_point(field_list:tensorflow.FunctionDefLibrary.function) - return function_; -} - -// repeated .tensorflow.GradientDef gradient = 2; -int FunctionDefLibrary::gradient_size() const { - return gradient_.size(); -} -void FunctionDefLibrary::clear_gradient() { - gradient_.Clear(); -} -const ::tensorflow::GradientDef& FunctionDefLibrary::gradient(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDefLibrary.gradient) - return gradient_.Get(index); -} -::tensorflow::GradientDef* FunctionDefLibrary::mutable_gradient(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDefLibrary.gradient) - return gradient_.Mutable(index); -} -::tensorflow::GradientDef* FunctionDefLibrary::add_gradient() { - // @@protoc_insertion_point(field_add:tensorflow.FunctionDefLibrary.gradient) - return gradient_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >* -FunctionDefLibrary::mutable_gradient() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDefLibrary.gradient) - return &gradient_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >& -FunctionDefLibrary::gradient() const { - // @@protoc_insertion_point(field_list:tensorflow.FunctionDefLibrary.gradient) - return gradient_; -} - -inline const FunctionDefLibrary* FunctionDefLibrary::internal_default_instance() { - return &FunctionDefLibrary_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse() {} +FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void FunctionDef_Node_AttrEntry_DoNotUse::MergeFrom(const FunctionDef_Node_AttrEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata FunctionDef_Node_AttrEntry_DoNotUse::GetMetadata() const { + ::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_function_2eproto::file_level_metadata[1]; +} +void FunctionDef_Node_AttrEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void FunctionDef_Node::InitAsDefaultInstance() { +} +void FunctionDef_Node::clear_attr() { + attr_.Clear(); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int FunctionDef_Node::kRetFieldNumber; const int FunctionDef_Node::kOpFieldNumber; @@ -608,7 +621,9 @@ const int FunctionDef_Node::kAttrFieldNumber; FunctionDef_Node::FunctionDef_Node() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_function_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_function_2eproto::InitDefaultsFunctionDef_Node(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.FunctionDef.Node) } @@ -619,30 +634,29 @@ FunctionDef_Node::FunctionDef_Node(::google::protobuf::Arena* arena) arg_(arena), dep_(arena), attr_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_function_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_function_2eproto::InitDefaultsFunctionDef_Node(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.FunctionDef.Node) } - -void FunctionDef_Node::InitAsDefaultInstance() { -} - FunctionDef_Node::FunctionDef_Node(const FunctionDef_Node& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + ret_(from.ret_), + arg_(from.arg_), + dep_(from.dep_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + attr_.MergeFrom(from.attr_); + op_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.op().size() > 0) { + op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.op(), + GetArenaNoVirtual()); + } // @@protoc_insertion_point(copy_constructor:tensorflow.FunctionDef.Node) } void FunctionDef_Node::SharedCtor() { - attr_.SetAssignDescriptorCallback( - protobuf_AssignDescriptorsOnce); - attr_.SetEntryDescriptor( - &::tensorflow::FunctionDef_Node_AttrEntry_descriptor_); op_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _cached_size_ = 0; } @@ -653,12 +667,8 @@ FunctionDef_Node::~FunctionDef_Node() { } void FunctionDef_Node::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - op_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + op_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void FunctionDef_Node::ArenaDtor(void* object) { @@ -673,28 +683,31 @@ void FunctionDef_Node::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* FunctionDef_Node::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FunctionDef_Node_descriptor_; + ::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const FunctionDef_Node& FunctionDef_Node::default_instance() { - protobuf_InitDefaults_function_2eproto(); + ::protobuf_function_2eproto::InitDefaultsFunctionDef_Node(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed FunctionDef_Node_default_instance_; - FunctionDef_Node* FunctionDef_Node::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void FunctionDef_Node::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.FunctionDef.Node) - op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + ret_.Clear(); arg_.Clear(); dep_.Clear(); attr_.Clear(); + op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + _internal_metadata_.Clear(); } bool FunctionDef_Node::MergePartialFromCodedStream( @@ -703,91 +716,83 @@ bool FunctionDef_Node::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.FunctionDef.Node) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated string ret = 1; case 1: { - if (tag == 10) { - parse_ret: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_ret())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->ret(this->ret_size() - 1).data(), - this->ret(this->ret_size() - 1).length(), + static_cast(this->ret(this->ret_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.Node.ret")); } else { goto handle_unusual; } - if (input->ExpectTag(10)) goto parse_ret; - if (input->ExpectTag(18)) goto parse_op; break; } - // optional string op = 2; + // string op = 2; case 2: { - if (tag == 18) { - parse_op: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_op())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->op().data(), this->op().length(), + this->op().data(), static_cast(this->op().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.Node.op")); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_arg; break; } // repeated string arg = 3; case 3: { - if (tag == 26) { - parse_arg: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_arg())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->arg(this->arg_size() - 1).data(), - this->arg(this->arg_size() - 1).length(), + static_cast(this->arg(this->arg_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.Node.arg")); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_arg; - if (input->ExpectTag(34)) goto parse_dep; break; } // repeated string dep = 4; case 4: { - if (tag == 34) { - parse_dep: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_dep())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->dep(this->dep_size() - 1).data(), - this->dep(this->dep_size() - 1).length(), + static_cast(this->dep(this->dep_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.Node.dep")); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_dep; - if (input->ExpectTag(42)) goto parse_attr; break; } // map attr = 5; case 5: { - if (tag == 42) { - parse_attr: - DO_(input->IncrementRecursionDepth()); - parse_loop_attr: - FunctionDef_Node_AttrEntry::Parser< ::google::protobuf::internal::MapField< + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + FunctionDef_Node_AttrEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + FunctionDef_Node_AttrEntry_DoNotUse, ::std::string, ::tensorflow::AttrValue, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, @@ -796,26 +801,22 @@ bool FunctionDef_Node::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), parser.key().length(), + parser.key().data(), static_cast(parser.key().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.Node.AttrEntry.key")); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_loop_attr; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -832,20 +833,23 @@ failure: void FunctionDef_Node::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.FunctionDef.Node) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated string ret = 1; - for (int i = 0; i < this->ret_size(); i++) { + for (int i = 0, n = this->ret_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->ret(i).data(), this->ret(i).length(), + this->ret(i).data(), static_cast(this->ret(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.ret"); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->ret(i), output); } - // optional string op = 2; + // string op = 2; if (this->op().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->op().data(), this->op().length(), + this->op().data(), static_cast(this->op().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.op"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -853,9 +857,9 @@ void FunctionDef_Node::SerializeWithCachedSizes( } // repeated string arg = 3; - for (int i = 0; i < this->arg_size(); i++) { + for (int i = 0, n = this->arg_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->arg(i).data(), this->arg(i).length(), + this->arg(i).data(), static_cast(this->arg(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.arg"); ::google::protobuf::internal::WireFormatLite::WriteString( @@ -863,9 +867,9 @@ void FunctionDef_Node::SerializeWithCachedSizes( } // repeated string dep = 4; - for (int i = 0; i < this->dep_size(); i++) { + for (int i = 0, n = this->dep_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dep(i).data(), this->dep(i).length(), + this->dep(i).data(), static_cast(this->dep(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.dep"); ::google::protobuf::internal::WireFormatLite::WriteString( @@ -881,13 +885,13 @@ void FunctionDef_Node::SerializeWithCachedSizes( struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), p->first.length(), + p->first.data(), static_cast(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.AttrEntry.key"); } }; - if (output->IsSerializationDeterminstic() && + if (output->IsSerializationDeterministic() && this->attr().size() > 1) { ::google::protobuf::scoped_array items( new SortItem[this->attr().size()]); @@ -896,22 +900,22 @@ void FunctionDef_Node::SerializeWithCachedSizes( for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it, ++n) { - items[n] = SortItem(&*it); + items[static_cast(n)] = SortItem(&*it); } - ::std::sort(&items[0], &items[n], Less()); - ::google::protobuf::scoped_ptr entry; + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; for (size_type i = 0; i < n; i++) { entry.reset(attr_.NewEntryWrapper( - items[i]->first, items[i]->second)); + items[static_cast(i)]->first, items[static_cast(i)]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } - Utf8Check::Check(items[i]); + Utf8Check::Check(items[static_cast(i)]); } } else { - ::google::protobuf::scoped_ptr entry; + ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it) { @@ -927,6 +931,10 @@ void FunctionDef_Node::SerializeWithCachedSizes( } } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.FunctionDef.Node) } @@ -934,20 +942,23 @@ void FunctionDef_Node::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.FunctionDef.Node) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated string ret = 1; - for (int i = 0; i < this->ret_size(); i++) { + for (int i = 0, n = this->ret_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->ret(i).data(), this->ret(i).length(), + this->ret(i).data(), static_cast(this->ret(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.ret"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(1, this->ret(i), target); } - // optional string op = 2; + // string op = 2; if (this->op().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->op().data(), this->op().length(), + this->op().data(), static_cast(this->op().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.op"); target = @@ -956,9 +967,9 @@ void FunctionDef_Node::SerializeWithCachedSizes( } // repeated string arg = 3; - for (int i = 0; i < this->arg_size(); i++) { + for (int i = 0, n = this->arg_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->arg(i).data(), this->arg(i).length(), + this->arg(i).data(), static_cast(this->arg(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.arg"); target = ::google::protobuf::internal::WireFormatLite:: @@ -966,9 +977,9 @@ void FunctionDef_Node::SerializeWithCachedSizes( } // repeated string dep = 4; - for (int i = 0; i < this->dep_size(); i++) { + for (int i = 0, n = this->dep_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dep(i).data(), this->dep(i).length(), + this->dep(i).data(), static_cast(this->dep(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.dep"); target = ::google::protobuf::internal::WireFormatLite:: @@ -984,7 +995,7 @@ void FunctionDef_Node::SerializeWithCachedSizes( struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), p->first.length(), + p->first.data(), static_cast(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.FunctionDef.Node.AttrEntry.key"); } @@ -999,13 +1010,13 @@ void FunctionDef_Node::SerializeWithCachedSizes( for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it, ++n) { - items[n] = SortItem(&*it); + items[static_cast(n)] = SortItem(&*it); } - ::std::sort(&items[0], &items[n], Less()); - ::google::protobuf::scoped_ptr entry; + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; for (size_type i = 0; i < n; i++) { entry.reset(attr_.NewEntryWrapper( - items[i]->first, items[i]->second)); + items[static_cast(i)]->first, items[static_cast(i)]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 5, *entry, deterministic, target); @@ -1013,10 +1024,10 @@ void FunctionDef_Node::SerializeWithCachedSizes( if (entry->GetArena() != NULL) { entry.release(); } - Utf8Check::Check(items[i]); + Utf8Check::Check(items[static_cast(i)]); } } else { - ::google::protobuf::scoped_ptr entry; + ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it) { @@ -1034,6 +1045,10 @@ void FunctionDef_Node::SerializeWithCachedSizes( } } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.FunctionDef.Node) return target; } @@ -1042,17 +1057,15 @@ size_t FunctionDef_Node::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.FunctionDef.Node) size_t total_size = 0; - // optional string op = 2; - if (this->op().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->op()); + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - // repeated string ret = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->ret_size()); - for (int i = 0; i < this->ret_size(); i++) { + for (int i = 0, n = this->ret_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->ret(i)); } @@ -1060,7 +1073,7 @@ size_t FunctionDef_Node::ByteSizeLong() const { // repeated string arg = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->arg_size()); - for (int i = 0; i < this->arg_size(); i++) { + for (int i = 0, n = this->arg_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->arg(i)); } @@ -1068,7 +1081,7 @@ size_t FunctionDef_Node::ByteSizeLong() const { // repeated string dep = 4; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->dep_size()); - for (int i = 0; i < this->dep_size(); i++) { + for (int i = 0, n = this->dep_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->dep(i)); } @@ -1077,7 +1090,7 @@ size_t FunctionDef_Node::ByteSizeLong() const { total_size += 1 * ::google::protobuf::internal::FromIntSize(this->attr_size()); { - ::google::protobuf::scoped_ptr entry; + ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it) { @@ -1093,6 +1106,13 @@ size_t FunctionDef_Node::ByteSizeLong() const { } } + // string op = 2; + if (this->op().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->op()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -1102,7 +1122,7 @@ size_t FunctionDef_Node::ByteSizeLong() const { void FunctionDef_Node::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.FunctionDef.Node) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const FunctionDef_Node* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -1111,24 +1131,20 @@ void FunctionDef_Node::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.FunctionDef.Node) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void FunctionDef_Node::MergeFrom(const FunctionDef_Node& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.FunctionDef.Node) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void FunctionDef_Node::UnsafeMergeFrom(const FunctionDef_Node& from) { - GOOGLE_DCHECK(&from != this); - ret_.UnsafeMergeFrom(from.ret_); - arg_.UnsafeMergeFrom(from.arg_); - dep_.UnsafeMergeFrom(from.dep_); + ret_.MergeFrom(from.ret_); + arg_.MergeFrom(from.arg_); + dep_.MergeFrom(from.dep_); attr_.MergeFrom(from.attr_); if (from.op().size() > 0) { set_op(from.op()); @@ -1146,11 +1162,10 @@ void FunctionDef_Node::CopyFrom(const FunctionDef_Node& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.FunctionDef.Node) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool FunctionDef_Node::IsInitialized() const { - return true; } @@ -1159,10 +1174,13 @@ void FunctionDef_Node::Swap(FunctionDef_Node* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - FunctionDef_Node temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + FunctionDef_Node* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void FunctionDef_Node::UnsafeArenaSwap(FunctionDef_Node* other) { @@ -1171,60 +1189,32 @@ void FunctionDef_Node::UnsafeArenaSwap(FunctionDef_Node* other) { InternalSwap(other); } void FunctionDef_Node::InternalSwap(FunctionDef_Node* other) { - ret_.UnsafeArenaSwap(&other->ret_); - op_.Swap(&other->op_); - arg_.UnsafeArenaSwap(&other->arg_); - dep_.UnsafeArenaSwap(&other->dep_); + using std::swap; + ret_.InternalSwap(&other->ret_); + arg_.InternalSwap(&other->arg_); + dep_.InternalSwap(&other->dep_); attr_.Swap(&other->attr_); + op_.Swap(&other->op_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata FunctionDef_Node::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FunctionDef_Node_descriptor_; - metadata.reflection = FunctionDef_Node_reflection_; - return metadata; + protobuf_function_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages]; } -// ------------------------------------------------------------------- +// =================================================================== +void FunctionDef::InitAsDefaultInstance() { + ::tensorflow::_FunctionDef_default_instance_._instance.get_mutable()->signature_ = const_cast< ::tensorflow::OpDef*>( + ::tensorflow::OpDef::internal_default_instance()); +} void FunctionDef::_slow_mutable_signature() { signature_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::OpDef >( GetArenaNoVirtual()); } -::tensorflow::OpDef* FunctionDef::_slow_release_signature() { - if (signature_ == NULL) { - return NULL; - } else { - ::tensorflow::OpDef* temp = new ::tensorflow::OpDef(*signature_); - signature_ = NULL; - return temp; - } -} -::tensorflow::OpDef* FunctionDef::unsafe_arena_release_signature() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionDef.signature) - - ::tensorflow::OpDef* temp = signature_; - signature_ = NULL; - return temp; -} -void FunctionDef::_slow_set_allocated_signature( - ::google::protobuf::Arena* message_arena, ::tensorflow::OpDef** signature) { - if (message_arena != NULL && - ::google::protobuf::Arena::GetArena(*signature) == NULL) { - message_arena->Own(*signature); - } else if (message_arena != - ::google::protobuf::Arena::GetArena(*signature)) { - ::tensorflow::OpDef* new_signature = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::OpDef >( - message_arena); - new_signature->CopyFrom(**signature); - *signature = new_signature; - } -} void FunctionDef::unsafe_arena_set_allocated_signature( ::tensorflow::OpDef* signature) { if (GetArenaNoVirtual() == NULL) { @@ -1238,6 +1228,12 @@ void FunctionDef::unsafe_arena_set_allocated_signature( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FunctionDef.signature) } +void FunctionDef::clear_signature() { + if (GetArenaNoVirtual() == NULL && signature_ != NULL) { + delete signature_; + } + signature_ = NULL; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int FunctionDef::kSignatureFieldNumber; const int FunctionDef::kNodeFieldNumber; @@ -1245,7 +1241,9 @@ const int FunctionDef::kNodeFieldNumber; FunctionDef::FunctionDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_function_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_function_2eproto::InitDefaultsFunctionDef(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.FunctionDef) } @@ -1253,24 +1251,22 @@ FunctionDef::FunctionDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), node_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_function_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_function_2eproto::InitDefaultsFunctionDef(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.FunctionDef) } - -void FunctionDef::InitAsDefaultInstance() { - signature_ = const_cast< ::tensorflow::OpDef*>( - ::tensorflow::OpDef::internal_default_instance()); -} - FunctionDef::FunctionDef(const FunctionDef& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + node_(from.node_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_signature()) { + signature_ = new ::tensorflow::OpDef(*from.signature_); + } else { + signature_ = NULL; + } // @@protoc_insertion_point(copy_constructor:tensorflow.FunctionDef) } @@ -1285,14 +1281,8 @@ FunctionDef::~FunctionDef() { } void FunctionDef::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - if (this != &FunctionDef_default_instance_.get()) { - delete signature_; - } + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + if (this != internal_default_instance()) delete signature_; } void FunctionDef::ArenaDtor(void* object) { @@ -1307,26 +1297,31 @@ void FunctionDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* FunctionDef::descriptor() { - protobuf_AssignDescriptorsOnce(); - return FunctionDef_descriptor_; + ::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const FunctionDef& FunctionDef::default_instance() { - protobuf_InitDefaults_function_2eproto(); + ::protobuf_function_2eproto::InitDefaultsFunctionDef(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed FunctionDef_default_instance_; - FunctionDef* FunctionDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void FunctionDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.FunctionDef) - if (GetArenaNoVirtual() == NULL && signature_ != NULL) delete signature_; - signature_ = NULL; + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + node_.Clear(); + if (GetArenaNoVirtual() == NULL && signature_ != NULL) { + delete signature_; + } + signature_ = NULL; + _internal_metadata_.Clear(); } bool FunctionDef::MergePartialFromCodedStream( @@ -1335,47 +1330,40 @@ bool FunctionDef::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.FunctionDef) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .tensorflow.OpDef signature = 1; + // .tensorflow.OpDef signature = 1; case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_signature())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_node; break; } // repeated .tensorflow.FunctionDef.Node node = 2; case 2: { - if (tag == 18) { - parse_node: - DO_(input->IncrementRecursionDepth()); - parse_loop_node: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_node())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_node())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_loop_node; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -1392,18 +1380,26 @@ failure: void FunctionDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.FunctionDef) - // optional .tensorflow.OpDef signature = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .tensorflow.OpDef signature = 1; if (this->has_signature()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->signature_, output); } // repeated .tensorflow.FunctionDef.Node node = 2; - for (unsigned int i = 0, n = this->node_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->node_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->node(i), output); + 2, this->node(static_cast(i)), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.FunctionDef) } @@ -1411,20 +1407,28 @@ void FunctionDef::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.FunctionDef) - // optional .tensorflow.OpDef signature = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .tensorflow.OpDef signature = 1; if (this->has_signature()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->signature_, false, target); + InternalWriteMessageToArray( + 1, *this->signature_, deterministic, target); } // repeated .tensorflow.FunctionDef.Node node = 2; - for (unsigned int i = 0, n = this->node_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->node_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->node(i), false, target); + InternalWriteMessageToArray( + 2, this->node(static_cast(i)), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.FunctionDef) return target; } @@ -1433,24 +1437,29 @@ size_t FunctionDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.FunctionDef) size_t total_size = 0; - // optional .tensorflow.OpDef signature = 1; - if (this->has_signature()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->signature_); + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - // repeated .tensorflow.FunctionDef.Node node = 2; { - unsigned int count = this->node_size(); + unsigned int count = static_cast(this->node_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->node(i)); + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->node(static_cast(i))); } } + // .tensorflow.OpDef signature = 1; + if (this->has_signature()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->signature_); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -1460,7 +1469,7 @@ size_t FunctionDef::ByteSizeLong() const { void FunctionDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.FunctionDef) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const FunctionDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -1469,21 +1478,17 @@ void FunctionDef::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.FunctionDef) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void FunctionDef::MergeFrom(const FunctionDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.FunctionDef) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void FunctionDef::UnsafeMergeFrom(const FunctionDef& from) { - GOOGLE_DCHECK(&from != this); node_.MergeFrom(from.node_); if (from.has_signature()) { mutable_signature()->::tensorflow::OpDef::MergeFrom(from.signature()); @@ -1501,11 +1506,10 @@ void FunctionDef::CopyFrom(const FunctionDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.FunctionDef) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool FunctionDef::IsInitialized() const { - return true; } @@ -1514,10 +1518,13 @@ void FunctionDef::Swap(FunctionDef* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - FunctionDef temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + FunctionDef* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void FunctionDef::UnsafeArenaSwap(FunctionDef* other) { @@ -1526,365 +1533,23 @@ void FunctionDef::UnsafeArenaSwap(FunctionDef* other) { InternalSwap(other); } void FunctionDef::InternalSwap(FunctionDef* other) { - std::swap(signature_, other->signature_); - node_.UnsafeArenaSwap(&other->node_); + using std::swap; + node_.InternalSwap(&other->node_); + swap(signature_, other->signature_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata FunctionDef::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = FunctionDef_descriptor_; - metadata.reflection = FunctionDef_reflection_; - return metadata; + protobuf_function_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// FunctionDef_Node - -// repeated string ret = 1; -int FunctionDef_Node::ret_size() const { - return ret_.size(); -} -void FunctionDef_Node::clear_ret() { - ret_.Clear(); -} -const ::std::string& FunctionDef_Node::ret(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.Node.ret) - return ret_.Get(index); -} -::std::string* FunctionDef_Node::mutable_ret(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.Node.ret) - return ret_.Mutable(index); -} -void FunctionDef_Node::set_ret(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.ret) - ret_.Mutable(index)->assign(value); -} -void FunctionDef_Node::set_ret(int index, const char* value) { - ret_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.ret) -} -void FunctionDef_Node::set_ret(int index, const char* value, size_t size) { - ret_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.FunctionDef.Node.ret) -} -::std::string* FunctionDef_Node::add_ret() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.FunctionDef.Node.ret) - return ret_.Add(); -} -void FunctionDef_Node::add_ret(const ::std::string& value) { - ret_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.ret) -} -void FunctionDef_Node::add_ret(const char* value) { - ret_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.FunctionDef.Node.ret) -} -void FunctionDef_Node::add_ret(const char* value, size_t size) { - ret_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.FunctionDef.Node.ret) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -FunctionDef_Node::ret() const { - // @@protoc_insertion_point(field_list:tensorflow.FunctionDef.Node.ret) - return ret_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -FunctionDef_Node::mutable_ret() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.Node.ret) - return &ret_; -} - -// optional string op = 2; -void FunctionDef_Node::clear_op() { - op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& FunctionDef_Node::op() const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.Node.op) - return op_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void FunctionDef_Node::set_op(const ::std::string& value) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.op) -} -void FunctionDef_Node::set_op(const char* value) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.op) -} -void FunctionDef_Node::set_op(const char* value, - size_t size) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.FunctionDef.Node.op) -} -::std::string* FunctionDef_Node::mutable_op() { - - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.Node.op) - return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* FunctionDef_Node::release_op() { - // @@protoc_insertion_point(field_release:tensorflow.FunctionDef.Node.op) - - return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* FunctionDef_Node::unsafe_arena_release_op() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionDef.Node.op) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void FunctionDef_Node::set_allocated_op(::std::string* op) { - if (op != NULL) { - - } else { - - } - op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionDef.Node.op) -} -void FunctionDef_Node::unsafe_arena_set_allocated_op( - ::std::string* op) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (op != NULL) { - - } else { - - } - op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - op, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FunctionDef.Node.op) -} - -// repeated string arg = 3; -int FunctionDef_Node::arg_size() const { - return arg_.size(); -} -void FunctionDef_Node::clear_arg() { - arg_.Clear(); -} -const ::std::string& FunctionDef_Node::arg(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.Node.arg) - return arg_.Get(index); -} -::std::string* FunctionDef_Node::mutable_arg(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.Node.arg) - return arg_.Mutable(index); -} -void FunctionDef_Node::set_arg(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.arg) - arg_.Mutable(index)->assign(value); -} -void FunctionDef_Node::set_arg(int index, const char* value) { - arg_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.arg) -} -void FunctionDef_Node::set_arg(int index, const char* value, size_t size) { - arg_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.FunctionDef.Node.arg) -} -::std::string* FunctionDef_Node::add_arg() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.FunctionDef.Node.arg) - return arg_.Add(); -} -void FunctionDef_Node::add_arg(const ::std::string& value) { - arg_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.arg) -} -void FunctionDef_Node::add_arg(const char* value) { - arg_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.FunctionDef.Node.arg) -} -void FunctionDef_Node::add_arg(const char* value, size_t size) { - arg_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.FunctionDef.Node.arg) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -FunctionDef_Node::arg() const { - // @@protoc_insertion_point(field_list:tensorflow.FunctionDef.Node.arg) - return arg_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -FunctionDef_Node::mutable_arg() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.Node.arg) - return &arg_; -} - -// repeated string dep = 4; -int FunctionDef_Node::dep_size() const { - return dep_.size(); -} -void FunctionDef_Node::clear_dep() { - dep_.Clear(); -} -const ::std::string& FunctionDef_Node::dep(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.Node.dep) - return dep_.Get(index); -} -::std::string* FunctionDef_Node::mutable_dep(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.Node.dep) - return dep_.Mutable(index); -} -void FunctionDef_Node::set_dep(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.dep) - dep_.Mutable(index)->assign(value); -} -void FunctionDef_Node::set_dep(int index, const char* value) { - dep_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.dep) -} -void FunctionDef_Node::set_dep(int index, const char* value, size_t size) { - dep_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.FunctionDef.Node.dep) -} -::std::string* FunctionDef_Node::add_dep() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.FunctionDef.Node.dep) - return dep_.Add(); -} -void FunctionDef_Node::add_dep(const ::std::string& value) { - dep_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.dep) -} -void FunctionDef_Node::add_dep(const char* value) { - dep_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.FunctionDef.Node.dep) -} -void FunctionDef_Node::add_dep(const char* value, size_t size) { - dep_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.FunctionDef.Node.dep) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -FunctionDef_Node::dep() const { - // @@protoc_insertion_point(field_list:tensorflow.FunctionDef.Node.dep) - return dep_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -FunctionDef_Node::mutable_dep() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.Node.dep) - return &dep_; -} - -// map attr = 5; -int FunctionDef_Node::attr_size() const { - return attr_.size(); -} -void FunctionDef_Node::clear_attr() { - attr_.Clear(); -} - const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& -FunctionDef_Node::attr() const { - // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.Node.attr) - return attr_.GetMap(); -} - ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* -FunctionDef_Node::mutable_attr() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.Node.attr) - return attr_.MutableMap(); -} - -inline const FunctionDef_Node* FunctionDef_Node::internal_default_instance() { - return &FunctionDef_Node_default_instance_.get(); -} -// ------------------------------------------------------------------- - -// FunctionDef - -// optional .tensorflow.OpDef signature = 1; -bool FunctionDef::has_signature() const { - return this != internal_default_instance() && signature_ != NULL; -} -void FunctionDef::clear_signature() { - if (GetArenaNoVirtual() == NULL && signature_ != NULL) delete signature_; - signature_ = NULL; -} -const ::tensorflow::OpDef& FunctionDef::signature() const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.signature) - return signature_ != NULL ? *signature_ - : *::tensorflow::OpDef::internal_default_instance(); -} -::tensorflow::OpDef* FunctionDef::mutable_signature() { - - if (signature_ == NULL) { - _slow_mutable_signature(); - } - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.signature) - return signature_; -} -::tensorflow::OpDef* FunctionDef::release_signature() { - // @@protoc_insertion_point(field_release:tensorflow.FunctionDef.signature) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_signature(); - } else { - ::tensorflow::OpDef* temp = signature_; - signature_ = NULL; - return temp; - } -} - void FunctionDef::set_allocated_signature(::tensorflow::OpDef* signature) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete signature_; - } - if (signature != NULL) { - _slow_set_allocated_signature(message_arena, &signature); - } - signature_ = signature; - if (signature) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionDef.signature) -} - -// repeated .tensorflow.FunctionDef.Node node = 2; -int FunctionDef::node_size() const { - return node_.size(); -} -void FunctionDef::clear_node() { - node_.Clear(); -} -const ::tensorflow::FunctionDef_Node& FunctionDef::node(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.node) - return node_.Get(index); -} -::tensorflow::FunctionDef_Node* FunctionDef::mutable_node(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.node) - return node_.Mutable(index); -} -::tensorflow::FunctionDef_Node* FunctionDef::add_node() { - // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.node) - return node_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef_Node >* -FunctionDef::mutable_node() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.node) - return &node_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef_Node >& -FunctionDef::node() const { - // @@protoc_insertion_point(field_list:tensorflow.FunctionDef.node) - return node_; -} - -inline const FunctionDef* FunctionDef::internal_default_instance() { - return &FunctionDef_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void GradientDef::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int GradientDef::kFunctionNameFieldNumber; const int GradientDef::kGradientFuncFieldNumber; @@ -1892,29 +1557,35 @@ const int GradientDef::kGradientFuncFieldNumber; GradientDef::GradientDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_function_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_function_2eproto::InitDefaultsGradientDef(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.GradientDef) } GradientDef::GradientDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_function_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_function_2eproto::InitDefaultsGradientDef(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.GradientDef) } - -void GradientDef::InitAsDefaultInstance() { -} - GradientDef::GradientDef(const GradientDef& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + function_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.function_name().size() > 0) { + function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.function_name(), + GetArenaNoVirtual()); + } + gradient_func_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.gradient_func().size() > 0) { + gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gradient_func(), + GetArenaNoVirtual()); + } // @@protoc_insertion_point(copy_constructor:tensorflow.GradientDef) } @@ -1930,13 +1601,9 @@ GradientDef::~GradientDef() { } void GradientDef::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - function_name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - gradient_func_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + function_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gradient_func_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GradientDef::ArenaDtor(void* object) { @@ -1951,25 +1618,28 @@ void GradientDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* GradientDef::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GradientDef_descriptor_; + ::protobuf_function_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const GradientDef& GradientDef::default_instance() { - protobuf_InitDefaults_function_2eproto(); + ::protobuf_function_2eproto::InitDefaultsGradientDef(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed GradientDef_default_instance_; - GradientDef* GradientDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void GradientDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.GradientDef) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + function_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); gradient_func_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + _internal_metadata_.Clear(); } bool GradientDef::MergePartialFromCodedStream( @@ -1978,51 +1648,49 @@ bool GradientDef::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.GradientDef) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string function_name = 1; + // string function_name = 1; case 1: { - if (tag == 10) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_function_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->function_name().data(), this->function_name().length(), + this->function_name().data(), static_cast(this->function_name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.GradientDef.function_name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_gradient_func; break; } - // optional string gradient_func = 2; + // string gradient_func = 2; case 2: { - if (tag == 18) { - parse_gradient_func: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_gradient_func())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->gradient_func().data(), this->gradient_func().length(), + this->gradient_func().data(), static_cast(this->gradient_func().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.GradientDef.gradient_func")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -2039,26 +1707,33 @@ failure: void GradientDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.GradientDef) - // optional string function_name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string function_name = 1; if (this->function_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->function_name().data(), this->function_name().length(), + this->function_name().data(), static_cast(this->function_name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.GradientDef.function_name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->function_name(), output); } - // optional string gradient_func = 2; + // string gradient_func = 2; if (this->gradient_func().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->gradient_func().data(), this->gradient_func().length(), + this->gradient_func().data(), static_cast(this->gradient_func().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.GradientDef.gradient_func"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->gradient_func(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.GradientDef) } @@ -2066,10 +1741,13 @@ void GradientDef::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GradientDef) - // optional string function_name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string function_name = 1; if (this->function_name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->function_name().data(), this->function_name().length(), + this->function_name().data(), static_cast(this->function_name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.GradientDef.function_name"); target = @@ -2077,10 +1755,10 @@ void GradientDef::SerializeWithCachedSizes( 1, this->function_name(), target); } - // optional string gradient_func = 2; + // string gradient_func = 2; if (this->gradient_func().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->gradient_func().data(), this->gradient_func().length(), + this->gradient_func().data(), static_cast(this->gradient_func().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.GradientDef.gradient_func"); target = @@ -2088,6 +1766,10 @@ void GradientDef::SerializeWithCachedSizes( 2, this->gradient_func(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GradientDef) return target; } @@ -2096,14 +1778,19 @@ size_t GradientDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.GradientDef) size_t total_size = 0; - // optional string function_name = 1; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string function_name = 1; if (this->function_name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->function_name()); } - // optional string gradient_func = 2; + // string gradient_func = 2; if (this->gradient_func().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( @@ -2119,7 +1806,7 @@ size_t GradientDef::ByteSizeLong() const { void GradientDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GradientDef) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const GradientDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -2128,21 +1815,17 @@ void GradientDef::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GradientDef) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void GradientDef::MergeFrom(const GradientDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GradientDef) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void GradientDef::UnsafeMergeFrom(const GradientDef& from) { - GOOGLE_DCHECK(&from != this); if (from.function_name().size() > 0) { set_function_name(from.function_name()); } @@ -2162,11 +1845,10 @@ void GradientDef::CopyFrom(const GradientDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GradientDef) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool GradientDef::IsInitialized() const { - return true; } @@ -2175,10 +1857,13 @@ void GradientDef::Swap(GradientDef* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - GradientDef temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + GradientDef* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void GradientDef::UnsafeArenaSwap(GradientDef* other) { @@ -2187,162 +1872,20 @@ void GradientDef::UnsafeArenaSwap(GradientDef* other) { InternalSwap(other); } void GradientDef::InternalSwap(GradientDef* other) { + using std::swap; function_name_.Swap(&other->function_name_); gradient_func_.Swap(&other->gradient_func_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata GradientDef::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GradientDef_descriptor_; - metadata.reflection = GradientDef_reflection_; - return metadata; + protobuf_function_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_function_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// GradientDef - -// optional string function_name = 1; -void GradientDef::clear_function_name() { - function_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& GradientDef::function_name() const { - // @@protoc_insertion_point(field_get:tensorflow.GradientDef.function_name) - return function_name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void GradientDef::set_function_name(const ::std::string& value) { - - function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GradientDef.function_name) -} -void GradientDef::set_function_name(const char* value) { - - function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GradientDef.function_name) -} -void GradientDef::set_function_name(const char* value, - size_t size) { - - function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GradientDef.function_name) -} -::std::string* GradientDef::mutable_function_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GradientDef.function_name) - return function_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* GradientDef::release_function_name() { - // @@protoc_insertion_point(field_release:tensorflow.GradientDef.function_name) - - return function_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* GradientDef::unsafe_arena_release_function_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.function_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return function_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void GradientDef::set_allocated_function_name(::std::string* function_name) { - if (function_name != NULL) { - - } else { - - } - function_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), function_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.function_name) -} -void GradientDef::unsafe_arena_set_allocated_function_name( - ::std::string* function_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (function_name != NULL) { - - } else { - - } - function_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - function_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.function_name) -} - -// optional string gradient_func = 2; -void GradientDef::clear_gradient_func() { - gradient_func_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& GradientDef::gradient_func() const { - // @@protoc_insertion_point(field_get:tensorflow.GradientDef.gradient_func) - return gradient_func_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void GradientDef::set_gradient_func(const ::std::string& value) { - - gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GradientDef.gradient_func) -} -void GradientDef::set_gradient_func(const char* value) { - - gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GradientDef.gradient_func) -} -void GradientDef::set_gradient_func(const char* value, - size_t size) { - - gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GradientDef.gradient_func) -} -::std::string* GradientDef::mutable_gradient_func() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GradientDef.gradient_func) - return gradient_func_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* GradientDef::release_gradient_func() { - // @@protoc_insertion_point(field_release:tensorflow.GradientDef.gradient_func) - - return gradient_func_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* GradientDef::unsafe_arena_release_gradient_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.gradient_func) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return gradient_func_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void GradientDef::set_allocated_gradient_func(::std::string* gradient_func) { - if (gradient_func != NULL) { - - } else { - - } - gradient_func_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gradient_func, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.gradient_func) -} -void GradientDef::unsafe_arena_set_allocated_gradient_func( - ::std::string* gradient_func) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (gradient_func != NULL) { - - } else { - - } - gradient_func_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - gradient_func, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.gradient_func) -} - -inline const GradientDef* GradientDef::internal_default_instance() { - return &GradientDef_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace tensorflow // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/function.pb.h b/modules/dnn/misc/tensorflow/function.pb.h index 3f89687b61..89736e8a4d 100644 --- a/modules/dnn/misc/tensorflow/function.pb.h +++ b/modules/dnn/misc/tensorflow/function.pb.h @@ -8,43 +8,81 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3001000 +#if GOOGLE_PROTOBUF_VERSION < 3005000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include #include #include +#include #include #include #include -#include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include #include #include "attr_value.pb.h" #include "op_def.pb.h" // @@protoc_insertion_point(includes) +namespace protobuf_function_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[5]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsFunctionDefLibraryImpl(); +void InitDefaultsFunctionDefLibrary(); +void InitDefaultsFunctionDef_Node_AttrEntry_DoNotUseImpl(); +void InitDefaultsFunctionDef_Node_AttrEntry_DoNotUse(); +void InitDefaultsFunctionDef_NodeImpl(); +void InitDefaultsFunctionDef_Node(); +void InitDefaultsFunctionDefImpl(); +void InitDefaultsFunctionDef(); +void InitDefaultsGradientDefImpl(); +void InitDefaultsGradientDef(); +inline void InitDefaults() { + InitDefaultsFunctionDefLibrary(); + InitDefaultsFunctionDef_Node_AttrEntry_DoNotUse(); + InitDefaultsFunctionDef_Node(); + InitDefaultsFunctionDef(); + InitDefaultsGradientDef(); +} +} // namespace protobuf_function_2eproto namespace tensorflow { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_function_2eproto(); -void protobuf_InitDefaults_function_2eproto(); -void protobuf_AssignDesc_function_2eproto(); -void protobuf_ShutdownFile_function_2eproto(); - class FunctionDef; +class FunctionDefDefaultTypeInternal; +extern FunctionDefDefaultTypeInternal _FunctionDef_default_instance_; class FunctionDefLibrary; +class FunctionDefLibraryDefaultTypeInternal; +extern FunctionDefLibraryDefaultTypeInternal _FunctionDefLibrary_default_instance_; class FunctionDef_Node; +class FunctionDef_NodeDefaultTypeInternal; +extern FunctionDef_NodeDefaultTypeInternal _FunctionDef_Node_default_instance_; +class FunctionDef_Node_AttrEntry_DoNotUse; +class FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal; +extern FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_Node_AttrEntry_DoNotUse_default_instance_; class GradientDef; +class GradientDefDefaultTypeInternal; +extern GradientDefDefaultTypeInternal _GradientDef_default_instance_; +} // namespace tensorflow +namespace tensorflow { // =================================================================== @@ -59,48 +97,69 @@ class FunctionDefLibrary : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + FunctionDefLibrary(FunctionDefLibrary&& from) noexcept + : FunctionDefLibrary() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline FunctionDefLibrary& operator=(FunctionDefLibrary&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const FunctionDefLibrary& default_instance(); - static const FunctionDefLibrary* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FunctionDefLibrary* internal_default_instance() { + return reinterpret_cast( + &_FunctionDefLibrary_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; void UnsafeArenaSwap(FunctionDefLibrary* other); void Swap(FunctionDefLibrary* other); + friend void swap(FunctionDefLibrary& a, FunctionDefLibrary& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline FunctionDefLibrary* New() const { return New(NULL); } + inline FunctionDefLibrary* New() const PROTOBUF_FINAL { return New(NULL); } - FunctionDefLibrary* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FunctionDefLibrary* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const FunctionDefLibrary& from); void MergeFrom(const FunctionDefLibrary& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(FunctionDefLibrary* other); - void UnsafeMergeFrom(const FunctionDefLibrary& from); protected: explicit FunctionDefLibrary(::google::protobuf::Arena* arena); private: @@ -115,7 +174,7 @@ class FunctionDefLibrary : public ::google::protobuf::Message /* @@protoc_insert } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -149,20 +208,35 @@ class FunctionDefLibrary : public ::google::protobuf::Message /* @@protoc_insert private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef > function_; ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef > gradient_; mutable int _cached_size_; - friend void protobuf_InitDefaults_function_2eproto_impl(); - friend void protobuf_AddDesc_function_2eproto_impl(); - friend void protobuf_AssignDesc_function_2eproto(); - friend void protobuf_ShutdownFile_function_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_function_2eproto::TableStruct; + friend void ::protobuf_function_2eproto::InitDefaultsFunctionDefLibraryImpl(); +}; +// ------------------------------------------------------------------- + +class FunctionDef_Node_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + FunctionDef_Node_AttrEntry_DoNotUse(); + FunctionDef_Node_AttrEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const FunctionDef_Node_AttrEntry_DoNotUse& other); + static const FunctionDef_Node_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FunctionDef_Node_AttrEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; }; -extern ::google::protobuf::internal::ExplicitlyConstructed FunctionDefLibrary_default_instance_; // ------------------------------------------------------------------- @@ -177,48 +251,69 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + FunctionDef_Node(FunctionDef_Node&& from) noexcept + : FunctionDef_Node() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline FunctionDef_Node& operator=(FunctionDef_Node&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const FunctionDef_Node& default_instance(); - static const FunctionDef_Node* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FunctionDef_Node* internal_default_instance() { + return reinterpret_cast( + &_FunctionDef_Node_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; void UnsafeArenaSwap(FunctionDef_Node* other); void Swap(FunctionDef_Node* other); + friend void swap(FunctionDef_Node& a, FunctionDef_Node& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline FunctionDef_Node* New() const { return New(NULL); } + inline FunctionDef_Node* New() const PROTOBUF_FINAL { return New(NULL); } - FunctionDef_Node* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FunctionDef_Node* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const FunctionDef_Node& from); void MergeFrom(const FunctionDef_Node& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(FunctionDef_Node* other); - void UnsafeMergeFrom(const FunctionDef_Node& from); protected: explicit FunctionDef_Node(::google::protobuf::Arena* arena); private: @@ -233,7 +328,7 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -247,29 +342,21 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio const ::std::string& ret(int index) const; ::std::string* mutable_ret(int index); void set_ret(int index, const ::std::string& value); + #if LANG_CXX11 + void set_ret(int index, ::std::string&& value); + #endif void set_ret(int index, const char* value); void set_ret(int index, const char* value, size_t size); ::std::string* add_ret(); void add_ret(const ::std::string& value); + #if LANG_CXX11 + void add_ret(::std::string&& value); + #endif void add_ret(const char* value); void add_ret(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& ret() const; ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_ret(); - // optional string op = 2; - void clear_op(); - static const int kOpFieldNumber = 2; - const ::std::string& op() const; - void set_op(const ::std::string& value); - void set_op(const char* value); - void set_op(const char* value, size_t size); - ::std::string* mutable_op(); - ::std::string* release_op(); - void set_allocated_op(::std::string* op); - ::std::string* unsafe_arena_release_op(); - void unsafe_arena_set_allocated_op( - ::std::string* op); - // repeated string arg = 3; int arg_size() const; void clear_arg(); @@ -277,10 +364,16 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio const ::std::string& arg(int index) const; ::std::string* mutable_arg(int index); void set_arg(int index, const ::std::string& value); + #if LANG_CXX11 + void set_arg(int index, ::std::string&& value); + #endif void set_arg(int index, const char* value); void set_arg(int index, const char* value, size_t size); ::std::string* add_arg(); void add_arg(const ::std::string& value); + #if LANG_CXX11 + void add_arg(::std::string&& value); + #endif void add_arg(const char* value); void add_arg(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& arg() const; @@ -293,10 +386,16 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio const ::std::string& dep(int index) const; ::std::string* mutable_dep(int index); void set_dep(int index, const ::std::string& value); + #if LANG_CXX11 + void set_dep(int index, ::std::string&& value); + #endif void set_dep(int index, const char* value); void set_dep(int index, const char* value, size_t size); ::std::string* add_dep(); void add_dep(const ::std::string& value); + #if LANG_CXX11 + void add_dep(::std::string&& value); + #endif void add_dep(const char* value); void add_dep(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& dep() const; @@ -311,38 +410,50 @@ class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* mutable_attr(); + // string op = 2; + void clear_op(); + static const int kOpFieldNumber = 2; + const ::std::string& op() const; + void set_op(const ::std::string& value); + #if LANG_CXX11 + void set_op(::std::string&& value); + #endif + void set_op(const char* value); + void set_op(const char* value, size_t size); + ::std::string* mutable_op(); + ::std::string* release_op(); + void set_allocated_op(::std::string* op); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + ::std::string* unsafe_arena_release_op(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_op( + ::std::string* op); + // @@protoc_insertion_point(class_scope:tensorflow.FunctionDef.Node) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::std::string> ret_; ::google::protobuf::RepeatedPtrField< ::std::string> arg_; ::google::protobuf::RepeatedPtrField< ::std::string> dep_; - typedef ::google::protobuf::internal::MapEntryLite< - ::std::string, ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > - FunctionDef_Node_AttrEntry; ::google::protobuf::internal::MapField< + FunctionDef_Node_AttrEntry_DoNotUse, ::std::string, ::tensorflow::AttrValue, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 > attr_; ::google::protobuf::internal::ArenaStringPtr op_; mutable int _cached_size_; - friend void protobuf_InitDefaults_function_2eproto_impl(); - friend void protobuf_AddDesc_function_2eproto_impl(); - friend void protobuf_AssignDesc_function_2eproto(); - friend void protobuf_ShutdownFile_function_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_function_2eproto::TableStruct; + friend void ::protobuf_function_2eproto::InitDefaultsFunctionDef_NodeImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed FunctionDef_Node_default_instance_; - // ------------------------------------------------------------------- class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionDef) */ { @@ -356,48 +467,69 @@ class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_poi CopyFrom(from); return *this; } + #if LANG_CXX11 + FunctionDef(FunctionDef&& from) noexcept + : FunctionDef() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline FunctionDef& operator=(FunctionDef&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const FunctionDef& default_instance(); - static const FunctionDef* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FunctionDef* internal_default_instance() { + return reinterpret_cast( + &_FunctionDef_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; void UnsafeArenaSwap(FunctionDef* other); void Swap(FunctionDef* other); + friend void swap(FunctionDef& a, FunctionDef& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline FunctionDef* New() const { return New(NULL); } + inline FunctionDef* New() const PROTOBUF_FINAL { return New(NULL); } - FunctionDef* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + FunctionDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const FunctionDef& from); void MergeFrom(const FunctionDef& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(FunctionDef* other); - void UnsafeMergeFrom(const FunctionDef& from); protected: explicit FunctionDef(::google::protobuf::Arena* arena); private: @@ -412,7 +544,7 @@ class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_poi } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -420,24 +552,6 @@ class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_poi // accessors ------------------------------------------------------- - // optional .tensorflow.OpDef signature = 1; - bool has_signature() const; - void clear_signature(); - static const int kSignatureFieldNumber = 1; - private: - void _slow_mutable_signature(); - void _slow_set_allocated_signature( - ::google::protobuf::Arena* message_arena, ::tensorflow::OpDef** signature); - ::tensorflow::OpDef* _slow_release_signature(); - public: - const ::tensorflow::OpDef& signature() const; - ::tensorflow::OpDef* mutable_signature(); - ::tensorflow::OpDef* release_signature(); - void set_allocated_signature(::tensorflow::OpDef* signature); - ::tensorflow::OpDef* unsafe_arena_release_signature(); - void unsafe_arena_set_allocated_signature( - ::tensorflow::OpDef* signature); - // repeated .tensorflow.FunctionDef.Node node = 2; int node_size() const; void clear_node(); @@ -450,25 +564,34 @@ class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_poi const ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef_Node >& node() const; + // .tensorflow.OpDef signature = 1; + bool has_signature() const; + void clear_signature(); + static const int kSignatureFieldNumber = 1; + private: + void _slow_mutable_signature(); + public: + const ::tensorflow::OpDef& signature() const; + ::tensorflow::OpDef* release_signature(); + ::tensorflow::OpDef* mutable_signature(); + void set_allocated_signature(::tensorflow::OpDef* signature); + void unsafe_arena_set_allocated_signature( + ::tensorflow::OpDef* signature); + ::tensorflow::OpDef* unsafe_arena_release_signature(); + // @@protoc_insertion_point(class_scope:tensorflow.FunctionDef) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef_Node > node_; ::tensorflow::OpDef* signature_; mutable int _cached_size_; - friend void protobuf_InitDefaults_function_2eproto_impl(); - friend void protobuf_AddDesc_function_2eproto_impl(); - friend void protobuf_AssignDesc_function_2eproto(); - friend void protobuf_ShutdownFile_function_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_function_2eproto::TableStruct; + friend void ::protobuf_function_2eproto::InitDefaultsFunctionDefImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed FunctionDef_default_instance_; - // ------------------------------------------------------------------- class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GradientDef) */ { @@ -482,48 +605,69 @@ class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_poi CopyFrom(from); return *this; } + #if LANG_CXX11 + GradientDef(GradientDef&& from) noexcept + : GradientDef() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline GradientDef& operator=(GradientDef&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const GradientDef& default_instance(); - static const GradientDef* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GradientDef* internal_default_instance() { + return reinterpret_cast( + &_GradientDef_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; void UnsafeArenaSwap(GradientDef* other); void Swap(GradientDef* other); + friend void swap(GradientDef& a, GradientDef& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline GradientDef* New() const { return New(NULL); } + inline GradientDef* New() const PROTOBUF_FINAL { return New(NULL); } - GradientDef* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + GradientDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GradientDef& from); void MergeFrom(const GradientDef& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GradientDef* other); - void UnsafeMergeFrom(const GradientDef& from); protected: explicit GradientDef(::google::protobuf::Arena* arena); private: @@ -538,37 +682,55 @@ class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_poi } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string function_name = 1; + // string function_name = 1; void clear_function_name(); static const int kFunctionNameFieldNumber = 1; const ::std::string& function_name() const; void set_function_name(const ::std::string& value); + #if LANG_CXX11 + void set_function_name(::std::string&& value); + #endif void set_function_name(const char* value); void set_function_name(const char* value, size_t size); ::std::string* mutable_function_name(); ::std::string* release_function_name(); void set_allocated_function_name(::std::string* function_name); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_function_name(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_function_name( ::std::string* function_name); - // optional string gradient_func = 2; + // string gradient_func = 2; void clear_gradient_func(); static const int kGradientFuncFieldNumber = 2; const ::std::string& gradient_func() const; void set_gradient_func(const ::std::string& value); + #if LANG_CXX11 + void set_gradient_func(::std::string&& value); + #endif void set_gradient_func(const char* value); void set_gradient_func(const char* value, size_t size); ::std::string* mutable_gradient_func(); ::std::string* release_gradient_func(); void set_allocated_gradient_func(::std::string* gradient_func); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_gradient_func(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_gradient_func( ::std::string* gradient_func); @@ -576,27 +738,24 @@ class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_poi private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::internal::ArenaStringPtr function_name_; ::google::protobuf::internal::ArenaStringPtr gradient_func_; mutable int _cached_size_; - friend void protobuf_InitDefaults_function_2eproto_impl(); - friend void protobuf_AddDesc_function_2eproto_impl(); - friend void protobuf_AssignDesc_function_2eproto(); - friend void protobuf_ShutdownFile_function_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_function_2eproto::TableStruct; + friend void ::protobuf_function_2eproto::InitDefaultsGradientDefImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed GradientDef_default_instance_; - // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // FunctionDefLibrary // repeated .tensorflow.FunctionDef function = 1; @@ -659,9 +818,8 @@ FunctionDefLibrary::gradient() const { return gradient_; } -inline const FunctionDefLibrary* FunctionDefLibrary::internal_default_instance() { - return &FunctionDefLibrary_default_instance_.get(); -} +// ------------------------------------------------------------------- + // ------------------------------------------------------------------- // FunctionDef_Node @@ -685,7 +843,14 @@ inline void FunctionDef_Node::set_ret(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.ret) ret_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void FunctionDef_Node::set_ret(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.ret) + ret_.Mutable(index)->assign(std::move(value)); +} +#endif inline void FunctionDef_Node::set_ret(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); ret_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.ret) } @@ -702,7 +867,14 @@ inline void FunctionDef_Node::add_ret(const ::std::string& value) { ret_.Add()->assign(value); // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.ret) } +#if LANG_CXX11 +inline void FunctionDef_Node::add_ret(::std::string&& value) { + ret_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.ret) +} +#endif inline void FunctionDef_Node::add_ret(const char* value) { + GOOGLE_DCHECK(value != NULL); ret_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tensorflow.FunctionDef.Node.ret) } @@ -721,20 +893,29 @@ FunctionDef_Node::mutable_ret() { return &ret_; } -// optional string op = 2; +// string op = 2; inline void FunctionDef_Node::clear_op() { op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& FunctionDef_Node::op() const { // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.Node.op) - return op_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return op_.Get(); } inline void FunctionDef_Node::set_op(const ::std::string& value) { op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.op) } +#if LANG_CXX11 +inline void FunctionDef_Node::set_op(::std::string&& value) { + + op_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.FunctionDef.Node.op) +} +#endif inline void FunctionDef_Node::set_op(const char* value) { + GOOGLE_DCHECK(value != NULL); op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -757,13 +938,6 @@ inline ::std::string* FunctionDef_Node::release_op() { return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* FunctionDef_Node::unsafe_arena_release_op() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionDef.Node.op) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void FunctionDef_Node::set_allocated_op(::std::string* op) { if (op != NULL) { @@ -774,6 +948,13 @@ inline void FunctionDef_Node::set_allocated_op(::std::string* op) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionDef.Node.op) } +inline ::std::string* FunctionDef_Node::unsafe_arena_release_op() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionDef.Node.op) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void FunctionDef_Node::unsafe_arena_set_allocated_op( ::std::string* op) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -806,7 +987,14 @@ inline void FunctionDef_Node::set_arg(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.arg) arg_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void FunctionDef_Node::set_arg(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.arg) + arg_.Mutable(index)->assign(std::move(value)); +} +#endif inline void FunctionDef_Node::set_arg(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); arg_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.arg) } @@ -823,7 +1011,14 @@ inline void FunctionDef_Node::add_arg(const ::std::string& value) { arg_.Add()->assign(value); // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.arg) } +#if LANG_CXX11 +inline void FunctionDef_Node::add_arg(::std::string&& value) { + arg_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.arg) +} +#endif inline void FunctionDef_Node::add_arg(const char* value) { + GOOGLE_DCHECK(value != NULL); arg_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tensorflow.FunctionDef.Node.arg) } @@ -861,7 +1056,14 @@ inline void FunctionDef_Node::set_dep(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.dep) dep_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void FunctionDef_Node::set_dep(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:tensorflow.FunctionDef.Node.dep) + dep_.Mutable(index)->assign(std::move(value)); +} +#endif inline void FunctionDef_Node::set_dep(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); dep_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tensorflow.FunctionDef.Node.dep) } @@ -878,7 +1080,14 @@ inline void FunctionDef_Node::add_dep(const ::std::string& value) { dep_.Add()->assign(value); // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.dep) } +#if LANG_CXX11 +inline void FunctionDef_Node::add_dep(::std::string&& value) { + dep_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.Node.dep) +} +#endif inline void FunctionDef_Node::add_dep(const char* value) { + GOOGLE_DCHECK(value != NULL); dep_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tensorflow.FunctionDef.Node.dep) } @@ -901,9 +1110,6 @@ FunctionDef_Node::mutable_dep() { inline int FunctionDef_Node::attr_size() const { return attr_.size(); } -inline void FunctionDef_Node::clear_attr() { - attr_.Clear(); -} inline const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& FunctionDef_Node::attr() const { // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.Node.attr) @@ -915,25 +1121,36 @@ FunctionDef_Node::mutable_attr() { return attr_.MutableMap(); } -inline const FunctionDef_Node* FunctionDef_Node::internal_default_instance() { - return &FunctionDef_Node_default_instance_.get(); -} // ------------------------------------------------------------------- // FunctionDef -// optional .tensorflow.OpDef signature = 1; +// .tensorflow.OpDef signature = 1; inline bool FunctionDef::has_signature() const { return this != internal_default_instance() && signature_ != NULL; } -inline void FunctionDef::clear_signature() { - if (GetArenaNoVirtual() == NULL && signature_ != NULL) delete signature_; - signature_ = NULL; -} inline const ::tensorflow::OpDef& FunctionDef::signature() const { + const ::tensorflow::OpDef* p = signature_; // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.signature) - return signature_ != NULL ? *signature_ - : *::tensorflow::OpDef::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::tensorflow::_OpDef_default_instance_); +} +inline ::tensorflow::OpDef* FunctionDef::release_signature() { + // @@protoc_insertion_point(field_release:tensorflow.FunctionDef.signature) + + ::tensorflow::OpDef* temp = signature_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + signature_ = NULL; + return temp; +} +inline ::tensorflow::OpDef* FunctionDef::unsafe_arena_release_signature() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionDef.signature) + + ::tensorflow::OpDef* temp = signature_; + signature_ = NULL; + return temp; } inline ::tensorflow::OpDef* FunctionDef::mutable_signature() { @@ -943,31 +1160,23 @@ inline ::tensorflow::OpDef* FunctionDef::mutable_signature() { // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.signature) return signature_; } -inline ::tensorflow::OpDef* FunctionDef::release_signature() { - // @@protoc_insertion_point(field_release:tensorflow.FunctionDef.signature) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_signature(); - } else { - ::tensorflow::OpDef* temp = signature_; - signature_ = NULL; - return temp; - } -} -inline void FunctionDef::set_allocated_signature(::tensorflow::OpDef* signature) { +inline void FunctionDef::set_allocated_signature(::tensorflow::OpDef* signature) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { - delete signature_; + delete reinterpret_cast< ::google::protobuf::MessageLite*>(signature_); } - if (signature != NULL) { - _slow_set_allocated_signature(message_arena, &signature); - } - signature_ = signature; if (signature) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(signature)->GetArena(); + if (message_arena != submessage_arena) { + signature = ::google::protobuf::internal::GetOwnedMessage( + message_arena, signature, submessage_arena); + } } else { } + signature_ = signature; // @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionDef.signature) } @@ -1001,27 +1210,33 @@ FunctionDef::node() const { return node_; } -inline const FunctionDef* FunctionDef::internal_default_instance() { - return &FunctionDef_default_instance_.get(); -} // ------------------------------------------------------------------- // GradientDef -// optional string function_name = 1; +// string function_name = 1; inline void GradientDef::clear_function_name() { function_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& GradientDef::function_name() const { // @@protoc_insertion_point(field_get:tensorflow.GradientDef.function_name) - return function_name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return function_name_.Get(); } inline void GradientDef::set_function_name(const ::std::string& value) { function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.GradientDef.function_name) } +#if LANG_CXX11 +inline void GradientDef::set_function_name(::std::string&& value) { + + function_name_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.GradientDef.function_name) +} +#endif inline void GradientDef::set_function_name(const char* value) { + GOOGLE_DCHECK(value != NULL); function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1044,13 +1259,6 @@ inline ::std::string* GradientDef::release_function_name() { return function_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* GradientDef::unsafe_arena_release_function_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.function_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return function_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void GradientDef::set_allocated_function_name(::std::string* function_name) { if (function_name != NULL) { @@ -1061,6 +1269,13 @@ inline void GradientDef::set_allocated_function_name(::std::string* function_nam GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.function_name) } +inline ::std::string* GradientDef::unsafe_arena_release_function_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.function_name) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return function_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void GradientDef::unsafe_arena_set_allocated_function_name( ::std::string* function_name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1074,20 +1289,29 @@ inline void GradientDef::unsafe_arena_set_allocated_function_name( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.function_name) } -// optional string gradient_func = 2; +// string gradient_func = 2; inline void GradientDef::clear_gradient_func() { gradient_func_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& GradientDef::gradient_func() const { // @@protoc_insertion_point(field_get:tensorflow.GradientDef.gradient_func) - return gradient_func_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return gradient_func_.Get(); } inline void GradientDef::set_gradient_func(const ::std::string& value) { gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.GradientDef.gradient_func) } +#if LANG_CXX11 +inline void GradientDef::set_gradient_func(::std::string&& value) { + + gradient_func_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.GradientDef.gradient_func) +} +#endif inline void GradientDef::set_gradient_func(const char* value) { + GOOGLE_DCHECK(value != NULL); gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1110,13 +1334,6 @@ inline ::std::string* GradientDef::release_gradient_func() { return gradient_func_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* GradientDef::unsafe_arena_release_gradient_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.gradient_func) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return gradient_func_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void GradientDef::set_allocated_gradient_func(::std::string* gradient_func) { if (gradient_func != NULL) { @@ -1127,6 +1344,13 @@ inline void GradientDef::set_allocated_gradient_func(::std::string* gradient_fun GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.gradient_func) } +inline ::std::string* GradientDef::unsafe_arena_release_gradient_func() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.gradient_func) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return gradient_func_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void GradientDef::unsafe_arena_set_allocated_gradient_func( ::std::string* gradient_func) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1140,10 +1364,11 @@ inline void GradientDef::unsafe_arena_set_allocated_gradient_func( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.gradient_func) } -inline const GradientDef* GradientDef::internal_default_instance() { - return &GradientDef_default_instance_.get(); -} -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + // ------------------------------------------------------------------- // ------------------------------------------------------------------- diff --git a/modules/dnn/misc/tensorflow/graph.pb.cc b/modules/dnn/misc/tensorflow/graph.pb.cc index 21cec2e77e..22f4f7e426 100644 --- a/modules/dnn/misc/tensorflow/graph.pb.cc +++ b/modules/dnn/misc/tensorflow/graph.pb.cc @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: graph.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "graph.pb.h" #include @@ -15,204 +14,209 @@ #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) - namespace tensorflow { +class GraphDefDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _GraphDef_default_instance_; +class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeDef_AttrEntry_DoNotUse_default_instance_; +class NodeDefDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeDef_default_instance_; +} // namespace tensorflow +namespace protobuf_graph_2eproto { +void InitDefaultsGraphDefImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -namespace { - -const ::google::protobuf::Descriptor* GraphDef_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - GraphDef_reflection_ = NULL; -const ::google::protobuf::Descriptor* NodeDef_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - NodeDef_reflection_ = NULL; -const ::google::protobuf::Descriptor* NodeDef_AttrEntry_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_graph_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_graph_2eproto() { - protobuf_AddDesc_graph_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "graph.proto"); - GOOGLE_CHECK(file != NULL); - GraphDef_descriptor_ = file->message_type(0); - static const int GraphDef_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GraphDef, node_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GraphDef, versions_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GraphDef, version_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GraphDef, library_), - }; - GraphDef_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - GraphDef_descriptor_, - GraphDef::internal_default_instance(), - GraphDef_offsets_, - -1, - -1, - -1, - sizeof(GraphDef), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GraphDef, _internal_metadata_)); - NodeDef_descriptor_ = file->message_type(1); - static const int NodeDef_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeDef, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeDef, op_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeDef, input_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeDef, device_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeDef, attr_), - }; - NodeDef_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - NodeDef_descriptor_, - NodeDef::internal_default_instance(), - NodeDef_offsets_, - -1, - -1, - -1, - sizeof(NodeDef), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NodeDef, _internal_metadata_)); - NodeDef_AttrEntry_descriptor_ = NodeDef_descriptor_->nested_type(0); +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_graph_2eproto::InitDefaultsNodeDef(); + protobuf_versions_2eproto::InitDefaultsVersionDef(); + protobuf_function_2eproto::InitDefaultsFunctionDefLibrary(); + { + void* ptr = &::tensorflow::_GraphDef_default_instance_; + new (ptr) ::tensorflow::GraphDef(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::GraphDef::InitAsDefaultInstance(); } -namespace { +void InitDefaultsGraphDef() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGraphDefImpl); +} + +void InitDefaultsNodeDef_AttrEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); + { + void* ptr = &::tensorflow::_NodeDef_AttrEntry_DoNotUse_default_instance_; + new (ptr) ::tensorflow::NodeDef_AttrEntry_DoNotUse(); + } + ::tensorflow::NodeDef_AttrEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsNodeDef_AttrEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeDef_AttrEntry_DoNotUseImpl); +} + +void InitDefaultsNodeDefImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_graph_2eproto::InitDefaultsNodeDef_AttrEntry_DoNotUse(); + { + void* ptr = &::tensorflow::_NodeDef_default_instance_; + new (ptr) ::tensorflow::NodeDef(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::NodeDef::InitAsDefaultInstance(); +} + +void InitDefaultsNodeDef() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeDefImpl); +} + +::google::protobuf::Metadata file_level_metadata[3]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, versions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::GraphDef, library_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef_AttrEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef_AttrEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef_AttrEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef_AttrEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, op_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, input_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, device_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::NodeDef, attr_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::tensorflow::GraphDef)}, + { 9, 16, sizeof(::tensorflow::NodeDef_AttrEntry_DoNotUse)}, + { 18, -1, sizeof(::tensorflow::NodeDef)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::tensorflow::_GraphDef_default_instance_), + reinterpret_cast(&::tensorflow::_NodeDef_AttrEntry_DoNotUse_default_instance_), + reinterpret_cast(&::tensorflow::_NodeDef_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "graph.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_graph_2eproto); + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - GraphDef_descriptor_, GraphDef::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NodeDef_descriptor_, NodeDef::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - NodeDef_AttrEntry_descriptor_, - ::google::protobuf::internal::MapEntry< - ::std::string, - ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0>::CreateDefaultInstance( - NodeDef_AttrEntry_descriptor_)); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3); } -} // namespace - -void protobuf_ShutdownFile_graph_2eproto() { - GraphDef_default_instance_.Shutdown(); - delete GraphDef_reflection_; - NodeDef_default_instance_.Shutdown(); - delete NodeDef_reflection_; -} - -void protobuf_InitDefaults_graph_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::tensorflow::protobuf_InitDefaults_attr_5fvalue_2eproto(); - ::tensorflow::protobuf_InitDefaults_function_2eproto(); - ::tensorflow::protobuf_InitDefaults_versions_2eproto(); - GraphDef_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - NodeDef_default_instance_.DefaultConstruct(); - GraphDef_default_instance_.get_mutable()->InitAsDefaultInstance(); - NodeDef_default_instance_.get_mutable()->InitAsDefaultInstance(); -} - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_graph_2eproto_once_); -void protobuf_InitDefaults_graph_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_graph_2eproto_once_, - &protobuf_InitDefaults_graph_2eproto_impl); -} -void protobuf_AddDesc_graph_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - protobuf_InitDefaults_graph_2eproto(); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\013graph.proto\022\ntensorflow\032\020attr_value.pr" + "oto\032\016function.proto\032\016versions.proto\"\235\001\n\010" + "GraphDef\022!\n\004node\030\001 \003(\0132\023.tensorflow.Node" + "Def\022(\n\010versions\030\004 \001(\0132\026.tensorflow.Versi" + "onDef\022\023\n\007version\030\003 \001(\005B\002\030\001\022/\n\007library\030\002 " + "\001(\0132\036.tensorflow.FunctionDefLibrary\"\263\001\n\007" + "NodeDef\022\014\n\004name\030\001 \001(\t\022\n\n\002op\030\002 \001(\t\022\r\n\005inp" + "ut\030\003 \003(\t\022\016\n\006device\030\004 \001(\t\022+\n\004attr\030\005 \003(\0132\035" + ".tensorflow.NodeDef.AttrEntry\032B\n\tAttrEnt" + "ry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorf" + "low.AttrValue:\0028\001B,\n\030org.tensorflow.fram" + "eworkB\013GraphProtosP\001\370\001\001b\006proto3" + }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\013graph.proto\022\ntensorflow\032\020attr_value.pr" - "oto\032\016function.proto\032\016versions.proto\"\235\001\n\010" - "GraphDef\022!\n\004node\030\001 \003(\0132\023.tensorflow.Node" - "Def\022(\n\010versions\030\004 \001(\0132\026.tensorflow.Versi" - "onDef\022\023\n\007version\030\003 \001(\005B\002\030\001\022/\n\007library\030\002 " - "\001(\0132\036.tensorflow.FunctionDefLibrary\"\263\001\n\007" - "NodeDef\022\014\n\004name\030\001 \001(\t\022\n\n\002op\030\002 \001(\t\022\r\n\005inp" - "ut\030\003 \003(\t\022\016\n\006device\030\004 \001(\t\022+\n\004attr\030\005 \003(\0132\035" - ".tensorflow.NodeDef.AttrEntry\032B\n\tAttrEnt" - "ry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorf" - "low.AttrValue:\0028\001B,\n\030org.tensorflow.fram" - "eworkB\013GraphProtosP\001\370\001\001b\006proto3", 471); + descriptor, 471); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "graph.proto", &protobuf_RegisterTypes); - ::tensorflow::protobuf_AddDesc_attr_5fvalue_2eproto(); - ::tensorflow::protobuf_AddDesc_function_2eproto(); - ::tensorflow::protobuf_AddDesc_versions_2eproto(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_graph_2eproto); + ::protobuf_attr_5fvalue_2eproto::AddDescriptors(); + ::protobuf_function_2eproto::AddDescriptors(); + ::protobuf_versions_2eproto::AddDescriptors(); } -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_graph_2eproto_once_); -void protobuf_AddDesc_graph_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_graph_2eproto_once_, - &protobuf_AddDesc_graph_2eproto_impl); +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_graph_2eproto { - StaticDescriptorInitializer_graph_2eproto() { - protobuf_AddDesc_graph_2eproto(); +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); } -} static_descriptor_initializer_graph_2eproto_; - -namespace { - -static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; -static void MergeFromFail(int line) { - ::google::protobuf::internal::MergeFromFail(__FILE__, line); -} - -} // namespace - +} static_descriptor_initializer; +} // namespace protobuf_graph_2eproto +namespace tensorflow { // =================================================================== +void GraphDef::InitAsDefaultInstance() { + ::tensorflow::_GraphDef_default_instance_._instance.get_mutable()->versions_ = const_cast< ::tensorflow::VersionDef*>( + ::tensorflow::VersionDef::internal_default_instance()); + ::tensorflow::_GraphDef_default_instance_._instance.get_mutable()->library_ = const_cast< ::tensorflow::FunctionDefLibrary*>( + ::tensorflow::FunctionDefLibrary::internal_default_instance()); +} void GraphDef::_slow_mutable_versions() { versions_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::VersionDef >( GetArenaNoVirtual()); } -::tensorflow::VersionDef* GraphDef::_slow_release_versions() { - if (versions_ == NULL) { - return NULL; - } else { - ::tensorflow::VersionDef* temp = new ::tensorflow::VersionDef(*versions_); - versions_ = NULL; - return temp; - } -} -::tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.versions) - - ::tensorflow::VersionDef* temp = versions_; - versions_ = NULL; - return temp; -} -void GraphDef::_slow_set_allocated_versions( - ::google::protobuf::Arena* message_arena, ::tensorflow::VersionDef** versions) { - if (message_arena != NULL && - ::google::protobuf::Arena::GetArena(*versions) == NULL) { - message_arena->Own(*versions); - } else if (message_arena != - ::google::protobuf::Arena::GetArena(*versions)) { - ::tensorflow::VersionDef* new_versions = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::VersionDef >( - message_arena); - new_versions->CopyFrom(**versions); - *versions = new_versions; - } -} void GraphDef::unsafe_arena_set_allocated_versions( ::tensorflow::VersionDef* versions) { if (GetArenaNoVirtual() == NULL) { @@ -226,40 +230,16 @@ void GraphDef::unsafe_arena_set_allocated_versions( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphDef.versions) } +void GraphDef::clear_versions() { + if (GetArenaNoVirtual() == NULL && versions_ != NULL) { + delete versions_; + } + versions_ = NULL; +} void GraphDef::_slow_mutable_library() { library_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::FunctionDefLibrary >( GetArenaNoVirtual()); } -::tensorflow::FunctionDefLibrary* GraphDef::_slow_release_library() { - if (library_ == NULL) { - return NULL; - } else { - ::tensorflow::FunctionDefLibrary* temp = new ::tensorflow::FunctionDefLibrary(*library_); - library_ = NULL; - return temp; - } -} -::tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.library) - - ::tensorflow::FunctionDefLibrary* temp = library_; - library_ = NULL; - return temp; -} -void GraphDef::_slow_set_allocated_library( - ::google::protobuf::Arena* message_arena, ::tensorflow::FunctionDefLibrary** library) { - if (message_arena != NULL && - ::google::protobuf::Arena::GetArena(*library) == NULL) { - message_arena->Own(*library); - } else if (message_arena != - ::google::protobuf::Arena::GetArena(*library)) { - ::tensorflow::FunctionDefLibrary* new_library = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::FunctionDefLibrary >( - message_arena); - new_library->CopyFrom(**library); - *library = new_library; - } -} void GraphDef::unsafe_arena_set_allocated_library( ::tensorflow::FunctionDefLibrary* library) { if (GetArenaNoVirtual() == NULL) { @@ -273,6 +253,12 @@ void GraphDef::unsafe_arena_set_allocated_library( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphDef.library) } +void GraphDef::clear_library() { + if (GetArenaNoVirtual() == NULL && library_ != NULL) { + delete library_; + } + library_ = NULL; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int GraphDef::kNodeFieldNumber; const int GraphDef::kVersionsFieldNumber; @@ -282,7 +268,9 @@ const int GraphDef::kLibraryFieldNumber; GraphDef::GraphDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_graph_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_graph_2eproto::InitDefaultsGraphDef(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.GraphDef) } @@ -290,33 +278,35 @@ GraphDef::GraphDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), node_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_graph_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_graph_2eproto::InitDefaultsGraphDef(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.GraphDef) } - -void GraphDef::InitAsDefaultInstance() { - versions_ = const_cast< ::tensorflow::VersionDef*>( - ::tensorflow::VersionDef::internal_default_instance()); - library_ = const_cast< ::tensorflow::FunctionDefLibrary*>( - ::tensorflow::FunctionDefLibrary::internal_default_instance()); -} - GraphDef::GraphDef(const GraphDef& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + node_(from.node_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_library()) { + library_ = new ::tensorflow::FunctionDefLibrary(*from.library_); + } else { + library_ = NULL; + } + if (from.has_versions()) { + versions_ = new ::tensorflow::VersionDef(*from.versions_); + } else { + versions_ = NULL; + } + version_ = from.version_; // @@protoc_insertion_point(copy_constructor:tensorflow.GraphDef) } void GraphDef::SharedCtor() { - versions_ = NULL; - library_ = NULL; - version_ = 0; + ::memset(&library_, 0, static_cast( + reinterpret_cast(&version_) - + reinterpret_cast(&library_)) + sizeof(version_)); _cached_size_ = 0; } @@ -326,15 +316,9 @@ GraphDef::~GraphDef() { } void GraphDef::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - if (this != &GraphDef_default_instance_.get()) { - delete versions_; - delete library_; - } + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + if (this != internal_default_instance()) delete library_; + if (this != internal_default_instance()) delete versions_; } void GraphDef::ArenaDtor(void* object) { @@ -349,29 +333,36 @@ void GraphDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* GraphDef::descriptor() { - protobuf_AssignDescriptorsOnce(); - return GraphDef_descriptor_; + ::protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_graph_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const GraphDef& GraphDef::default_instance() { - protobuf_InitDefaults_graph_2eproto(); + ::protobuf_graph_2eproto::InitDefaultsGraphDef(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed GraphDef_default_instance_; - GraphDef* GraphDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void GraphDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.GraphDef) - if (GetArenaNoVirtual() == NULL && versions_ != NULL) delete versions_; + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + node_.Clear(); + if (GetArenaNoVirtual() == NULL && library_ != NULL) { + delete library_; + } + library_ = NULL; + if (GetArenaNoVirtual() == NULL && versions_ != NULL) { + delete versions_; + } versions_ = NULL; version_ = 0; - if (GetArenaNoVirtual() == NULL && library_ != NULL) delete library_; - library_ = NULL; - node_.Clear(); + _internal_metadata_.Clear(); } bool GraphDef::MergePartialFromCodedStream( @@ -380,43 +371,37 @@ bool GraphDef::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.GraphDef) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .tensorflow.NodeDef node = 1; case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_node: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_node())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_node())); } else { goto handle_unusual; } - if (input->ExpectTag(10)) goto parse_loop_node; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(18)) goto parse_library; break; } - // optional .tensorflow.FunctionDefLibrary library = 2; + // .tensorflow.FunctionDefLibrary library = 2; case 2: { - if (tag == 18) { - parse_library: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_library())); } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_version; break; } - // optional int32 version = 3 [deprecated = true]; + // int32 version = 3 [deprecated = true]; case 3: { - if (tag == 24) { - parse_version: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -424,31 +409,28 @@ bool GraphDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_versions; break; } - // optional .tensorflow.VersionDef versions = 4; + // .tensorflow.VersionDef versions = 4; case 4: { - if (tag == 34) { - parse_versions: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_versions())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -465,29 +447,37 @@ failure: void GraphDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.GraphDef) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .tensorflow.NodeDef node = 1; - for (unsigned int i = 0, n = this->node_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->node_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->node(i), output); + 1, this->node(static_cast(i)), output); } - // optional .tensorflow.FunctionDefLibrary library = 2; + // .tensorflow.FunctionDefLibrary library = 2; if (this->has_library()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->library_, output); } - // optional int32 version = 3 [deprecated = true]; + // int32 version = 3 [deprecated = true]; if (this->version() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->version(), output); } - // optional .tensorflow.VersionDef versions = 4; + // .tensorflow.VersionDef versions = 4; if (this->has_versions()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->versions_, output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.GraphDef) } @@ -495,32 +485,40 @@ void GraphDef::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GraphDef) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .tensorflow.NodeDef node = 1; - for (unsigned int i = 0, n = this->node_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->node_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->node(i), false, target); + InternalWriteMessageToArray( + 1, this->node(static_cast(i)), deterministic, target); } - // optional .tensorflow.FunctionDefLibrary library = 2; + // .tensorflow.FunctionDefLibrary library = 2; if (this->has_library()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->library_, false, target); + InternalWriteMessageToArray( + 2, *this->library_, deterministic, target); } - // optional int32 version = 3 [deprecated = true]; + // int32 version = 3 [deprecated = true]; if (this->version() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->version(), target); } - // optional .tensorflow.VersionDef versions = 4; + // .tensorflow.VersionDef versions = 4; if (this->has_versions()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *this->versions_, false, target); + InternalWriteMessageToArray( + 4, *this->versions_, deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GraphDef) return target; } @@ -529,38 +527,43 @@ size_t GraphDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.GraphDef) size_t total_size = 0; - // optional .tensorflow.VersionDef versions = 4; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .tensorflow.NodeDef node = 1; + { + unsigned int count = static_cast(this->node_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->node(static_cast(i))); + } + } + + // .tensorflow.FunctionDefLibrary library = 2; + if (this->has_library()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->library_); + } + + // .tensorflow.VersionDef versions = 4; if (this->has_versions()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->versions_); } - // optional int32 version = 3 [deprecated = true]; + // int32 version = 3 [deprecated = true]; if (this->version() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->version()); } - // optional .tensorflow.FunctionDefLibrary library = 2; - if (this->has_library()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->library_); - } - - // repeated .tensorflow.NodeDef node = 1; - { - unsigned int count = this->node_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->node(i)); - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -570,7 +573,7 @@ size_t GraphDef::ByteSizeLong() const { void GraphDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GraphDef) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const GraphDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -579,31 +582,27 @@ void GraphDef::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GraphDef) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void GraphDef::MergeFrom(const GraphDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GraphDef) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void GraphDef::UnsafeMergeFrom(const GraphDef& from) { - GOOGLE_DCHECK(&from != this); node_.MergeFrom(from.node_); + if (from.has_library()) { + mutable_library()->::tensorflow::FunctionDefLibrary::MergeFrom(from.library()); + } if (from.has_versions()) { mutable_versions()->::tensorflow::VersionDef::MergeFrom(from.versions()); } if (from.version() != 0) { set_version(from.version()); } - if (from.has_library()) { - mutable_library()->::tensorflow::FunctionDefLibrary::MergeFrom(from.library()); - } } void GraphDef::CopyFrom(const ::google::protobuf::Message& from) { @@ -617,11 +616,10 @@ void GraphDef::CopyFrom(const GraphDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GraphDef) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool GraphDef::IsInitialized() const { - return true; } @@ -630,10 +628,13 @@ void GraphDef::Swap(GraphDef* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - GraphDef temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + GraphDef* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void GraphDef::UnsafeArenaSwap(GraphDef* other) { @@ -642,174 +643,45 @@ void GraphDef::UnsafeArenaSwap(GraphDef* other) { InternalSwap(other); } void GraphDef::InternalSwap(GraphDef* other) { - node_.UnsafeArenaSwap(&other->node_); - std::swap(versions_, other->versions_); - std::swap(version_, other->version_); - std::swap(library_, other->library_); + using std::swap; + node_.InternalSwap(&other->node_); + swap(library_, other->library_); + swap(versions_, other->versions_); + swap(version_, other->version_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata GraphDef::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = GraphDef_descriptor_; - metadata.reflection = GraphDef_reflection_; - return metadata; + protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_graph_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// GraphDef - -// repeated .tensorflow.NodeDef node = 1; -int GraphDef::node_size() const { - return node_.size(); -} -void GraphDef::clear_node() { - node_.Clear(); -} -const ::tensorflow::NodeDef& GraphDef::node(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphDef.node) - return node_.Get(index); -} -::tensorflow::NodeDef* GraphDef::mutable_node(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.node) - return node_.Mutable(index); -} -::tensorflow::NodeDef* GraphDef::add_node() { - // @@protoc_insertion_point(field_add:tensorflow.GraphDef.node) - return node_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >* -GraphDef::mutable_node() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphDef.node) - return &node_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >& -GraphDef::node() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphDef.node) - return node_; -} - -// optional .tensorflow.VersionDef versions = 4; -bool GraphDef::has_versions() const { - return this != internal_default_instance() && versions_ != NULL; -} -void GraphDef::clear_versions() { - if (GetArenaNoVirtual() == NULL && versions_ != NULL) delete versions_; - versions_ = NULL; -} -const ::tensorflow::VersionDef& GraphDef::versions() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphDef.versions) - return versions_ != NULL ? *versions_ - : *::tensorflow::VersionDef::internal_default_instance(); -} -::tensorflow::VersionDef* GraphDef::mutable_versions() { - - if (versions_ == NULL) { - _slow_mutable_versions(); - } - // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.versions) - return versions_; -} -::tensorflow::VersionDef* GraphDef::release_versions() { - // @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_versions(); - } else { - ::tensorflow::VersionDef* temp = versions_; - versions_ = NULL; - return temp; - } -} - void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete versions_; - } - if (versions != NULL) { - _slow_set_allocated_versions(message_arena, &versions); - } - versions_ = versions; - if (versions) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.versions) -} - -// optional int32 version = 3 [deprecated = true]; -void GraphDef::clear_version() { - version_ = 0; -} -::google::protobuf::int32 GraphDef::version() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphDef.version) - return version_; -} -void GraphDef::set_version(::google::protobuf::int32 value) { - - version_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphDef.version) -} - -// optional .tensorflow.FunctionDefLibrary library = 2; -bool GraphDef::has_library() const { - return this != internal_default_instance() && library_ != NULL; -} -void GraphDef::clear_library() { - if (GetArenaNoVirtual() == NULL && library_ != NULL) delete library_; - library_ = NULL; -} -const ::tensorflow::FunctionDefLibrary& GraphDef::library() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphDef.library) - return library_ != NULL ? *library_ - : *::tensorflow::FunctionDefLibrary::internal_default_instance(); -} -::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() { - - if (library_ == NULL) { - _slow_mutable_library(); - } - // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.library) - return library_; -} -::tensorflow::FunctionDefLibrary* GraphDef::release_library() { - // @@protoc_insertion_point(field_release:tensorflow.GraphDef.library) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_library(); - } else { - ::tensorflow::FunctionDefLibrary* temp = library_; - library_ = NULL; - return temp; - } -} - void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* library) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete library_; - } - if (library != NULL) { - _slow_set_allocated_library(message_arena, &library); - } - library_ = library; - if (library) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.library) -} - -inline const GraphDef* GraphDef::internal_default_instance() { - return &GraphDef_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +NodeDef_AttrEntry_DoNotUse::NodeDef_AttrEntry_DoNotUse() {} +NodeDef_AttrEntry_DoNotUse::NodeDef_AttrEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void NodeDef_AttrEntry_DoNotUse::MergeFrom(const NodeDef_AttrEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata NodeDef_AttrEntry_DoNotUse::GetMetadata() const { + ::protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_graph_2eproto::file_level_metadata[1]; +} +void NodeDef_AttrEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void NodeDef::InitAsDefaultInstance() { +} +void NodeDef::clear_attr() { + attr_.Clear(); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int NodeDef::kNameFieldNumber; const int NodeDef::kOpFieldNumber; @@ -820,7 +692,9 @@ const int NodeDef::kAttrFieldNumber; NodeDef::NodeDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_graph_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_graph_2eproto::InitDefaultsNodeDef(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.NodeDef) } @@ -829,30 +703,37 @@ NodeDef::NodeDef(::google::protobuf::Arena* arena) _internal_metadata_(arena), input_(arena), attr_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_graph_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_graph_2eproto::InitDefaultsNodeDef(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.NodeDef) } - -void NodeDef::InitAsDefaultInstance() { -} - NodeDef::NodeDef(const NodeDef& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + input_(from.input_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + attr_.MergeFrom(from.attr_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(), + GetArenaNoVirtual()); + } + op_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.op().size() > 0) { + op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.op(), + GetArenaNoVirtual()); + } + device_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.device().size() > 0) { + device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device(), + GetArenaNoVirtual()); + } // @@protoc_insertion_point(copy_constructor:tensorflow.NodeDef) } void NodeDef::SharedCtor() { - attr_.SetAssignDescriptorCallback( - protobuf_AssignDescriptorsOnce); - attr_.SetEntryDescriptor( - &::tensorflow::NodeDef_AttrEntry_descriptor_); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); op_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); device_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); @@ -865,14 +746,10 @@ NodeDef::~NodeDef() { } void NodeDef::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - op_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - device_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + op_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + device_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void NodeDef::ArenaDtor(void* object) { @@ -887,28 +764,31 @@ void NodeDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* NodeDef::descriptor() { - protobuf_AssignDescriptorsOnce(); - return NodeDef_descriptor_; + ::protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_graph_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const NodeDef& NodeDef::default_instance() { - protobuf_InitDefaults_graph_2eproto(); + ::protobuf_graph_2eproto::InitDefaultsNodeDef(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed NodeDef_default_instance_; - NodeDef* NodeDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void NodeDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.NodeDef) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + input_.Clear(); + attr_.Clear(); name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - input_.Clear(); - attr_.Clear(); + _internal_metadata_.Clear(); } bool NodeDef::MergePartialFromCodedStream( @@ -917,86 +797,81 @@ bool NodeDef::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.NodeDef) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; + // string name = 1; case 1: { - if (tag == 10) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.NodeDef.name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_op; break; } - // optional string op = 2; + // string op = 2; case 2: { - if (tag == 18) { - parse_op: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_op())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->op().data(), this->op().length(), + this->op().data(), static_cast(this->op().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.NodeDef.op")); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_input; break; } // repeated string input = 3; case 3: { - if (tag == 26) { - parse_input: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_input())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->input(this->input_size() - 1).data(), - this->input(this->input_size() - 1).length(), + static_cast(this->input(this->input_size() - 1).length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.NodeDef.input")); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_input; - if (input->ExpectTag(34)) goto parse_device; break; } - // optional string device = 4; + // string device = 4; case 4: { - if (tag == 34) { - parse_device: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_device())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->device().data(), this->device().length(), + this->device().data(), static_cast(this->device().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.NodeDef.device")); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_attr; break; } // map attr = 5; case 5: { - if (tag == 42) { - parse_attr: - DO_(input->IncrementRecursionDepth()); - parse_loop_attr: - NodeDef_AttrEntry::Parser< ::google::protobuf::internal::MapField< + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + NodeDef_AttrEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + NodeDef_AttrEntry_DoNotUse, ::std::string, ::tensorflow::AttrValue, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, @@ -1005,26 +880,22 @@ bool NodeDef::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), parser.key().length(), + parser.key().data(), static_cast(parser.key().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.NodeDef.AttrEntry.key")); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_loop_attr; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -1041,20 +912,23 @@ failure: void NodeDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.NodeDef) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } - // optional string op = 2; + // string op = 2; if (this->op().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->op().data(), this->op().length(), + this->op().data(), static_cast(this->op().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.op"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -1062,19 +936,19 @@ void NodeDef::SerializeWithCachedSizes( } // repeated string input = 3; - for (int i = 0; i < this->input_size(); i++) { + for (int i = 0, n = this->input_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input(i).data(), this->input(i).length(), + this->input(i).data(), static_cast(this->input(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.input"); ::google::protobuf::internal::WireFormatLite::WriteString( 3, this->input(i), output); } - // optional string device = 4; + // string device = 4; if (this->device().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->device().data(), this->device().length(), + this->device().data(), static_cast(this->device().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.device"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -1090,13 +964,13 @@ void NodeDef::SerializeWithCachedSizes( struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), p->first.length(), + p->first.data(), static_cast(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.AttrEntry.key"); } }; - if (output->IsSerializationDeterminstic() && + if (output->IsSerializationDeterministic() && this->attr().size() > 1) { ::google::protobuf::scoped_array items( new SortItem[this->attr().size()]); @@ -1105,22 +979,22 @@ void NodeDef::SerializeWithCachedSizes( for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it, ++n) { - items[n] = SortItem(&*it); + items[static_cast(n)] = SortItem(&*it); } - ::std::sort(&items[0], &items[n], Less()); - ::google::protobuf::scoped_ptr entry; + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; for (size_type i = 0; i < n; i++) { entry.reset(attr_.NewEntryWrapper( - items[i]->first, items[i]->second)); + items[static_cast(i)]->first, items[static_cast(i)]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } - Utf8Check::Check(items[i]); + Utf8Check::Check(items[static_cast(i)]); } } else { - ::google::protobuf::scoped_ptr entry; + ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it) { @@ -1136,6 +1010,10 @@ void NodeDef::SerializeWithCachedSizes( } } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.NodeDef) } @@ -1143,10 +1021,13 @@ void NodeDef::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.NodeDef) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.name"); target = @@ -1154,10 +1035,10 @@ void NodeDef::SerializeWithCachedSizes( 1, this->name(), target); } - // optional string op = 2; + // string op = 2; if (this->op().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->op().data(), this->op().length(), + this->op().data(), static_cast(this->op().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.op"); target = @@ -1166,19 +1047,19 @@ void NodeDef::SerializeWithCachedSizes( } // repeated string input = 3; - for (int i = 0; i < this->input_size(); i++) { + for (int i = 0, n = this->input_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input(i).data(), this->input(i).length(), + this->input(i).data(), static_cast(this->input(i).length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.input"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(3, this->input(i), target); } - // optional string device = 4; + // string device = 4; if (this->device().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->device().data(), this->device().length(), + this->device().data(), static_cast(this->device().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.device"); target = @@ -1195,7 +1076,7 @@ void NodeDef::SerializeWithCachedSizes( struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), p->first.length(), + p->first.data(), static_cast(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.NodeDef.AttrEntry.key"); } @@ -1210,13 +1091,13 @@ void NodeDef::SerializeWithCachedSizes( for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it, ++n) { - items[n] = SortItem(&*it); + items[static_cast(n)] = SortItem(&*it); } - ::std::sort(&items[0], &items[n], Less()); - ::google::protobuf::scoped_ptr entry; + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; for (size_type i = 0; i < n; i++) { entry.reset(attr_.NewEntryWrapper( - items[i]->first, items[i]->second)); + items[static_cast(i)]->first, items[static_cast(i)]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 5, *entry, deterministic, target); @@ -1224,10 +1105,10 @@ void NodeDef::SerializeWithCachedSizes( if (entry->GetArena() != NULL) { entry.release(); } - Utf8Check::Check(items[i]); + Utf8Check::Check(items[static_cast(i)]); } } else { - ::google::protobuf::scoped_ptr entry; + ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it) { @@ -1245,6 +1126,10 @@ void NodeDef::SerializeWithCachedSizes( } } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.NodeDef) return target; } @@ -1253,31 +1138,15 @@ size_t NodeDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.NodeDef) size_t total_size = 0; - // optional string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - - // optional string op = 2; - if (this->op().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->op()); - } - - // optional string device = 4; - if (this->device().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->device()); - } - // repeated string input = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->input_size()); - for (int i = 0; i < this->input_size(); i++) { + for (int i = 0, n = this->input_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->input(i)); } @@ -1286,7 +1155,7 @@ size_t NodeDef::ByteSizeLong() const { total_size += 1 * ::google::protobuf::internal::FromIntSize(this->attr_size()); { - ::google::protobuf::scoped_ptr entry; + ::google::protobuf::scoped_ptr entry; for (::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >::const_iterator it = this->attr().begin(); it != this->attr().end(); ++it) { @@ -1302,6 +1171,27 @@ size_t NodeDef::ByteSizeLong() const { } } + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string op = 2; + if (this->op().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->op()); + } + + // string device = 4; + if (this->device().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->device()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -1311,7 +1201,7 @@ size_t NodeDef::ByteSizeLong() const { void NodeDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.NodeDef) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const NodeDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -1320,22 +1210,18 @@ void NodeDef::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.NodeDef) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void NodeDef::MergeFrom(const NodeDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.NodeDef) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void NodeDef::UnsafeMergeFrom(const NodeDef& from) { - GOOGLE_DCHECK(&from != this); - input_.UnsafeMergeFrom(from.input_); + input_.MergeFrom(from.input_); attr_.MergeFrom(from.attr_); if (from.name().size() > 0) { set_name(from.name()); @@ -1359,11 +1245,10 @@ void NodeDef::CopyFrom(const NodeDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.NodeDef) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool NodeDef::IsInitialized() const { - return true; } @@ -1372,10 +1257,13 @@ void NodeDef::Swap(NodeDef* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - NodeDef temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + NodeDef* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void NodeDef::UnsafeArenaSwap(NodeDef* other) { @@ -1384,304 +1272,23 @@ void NodeDef::UnsafeArenaSwap(NodeDef* other) { InternalSwap(other); } void NodeDef::InternalSwap(NodeDef* other) { + using std::swap; + input_.InternalSwap(&other->input_); + attr_.Swap(&other->attr_); name_.Swap(&other->name_); op_.Swap(&other->op_); - input_.UnsafeArenaSwap(&other->input_); device_.Swap(&other->device_); - attr_.Swap(&other->attr_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata NodeDef::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = NodeDef_descriptor_; - metadata.reflection = NodeDef_reflection_; - return metadata; + protobuf_graph_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_graph_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// NodeDef - -// optional string name = 1; -void NodeDef::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& NodeDef::name() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeDef.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void NodeDef::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NodeDef.name) -} -void NodeDef::set_name(const char* value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.name) -} -void NodeDef::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.name) -} -::std::string* NodeDef::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* NodeDef::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.NodeDef.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* NodeDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void NodeDef::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.name) -} -void NodeDef::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.name) -} - -// optional string op = 2; -void NodeDef::clear_op() { - op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& NodeDef::op() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeDef.op) - return op_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void NodeDef::set_op(const ::std::string& value) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NodeDef.op) -} -void NodeDef::set_op(const char* value) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.op) -} -void NodeDef::set_op(const char* value, - size_t size) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.op) -} -::std::string* NodeDef::mutable_op() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.op) - return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* NodeDef::release_op() { - // @@protoc_insertion_point(field_release:tensorflow.NodeDef.op) - - return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* NodeDef::unsafe_arena_release_op() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.op) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void NodeDef::set_allocated_op(::std::string* op) { - if (op != NULL) { - - } else { - - } - op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.op) -} -void NodeDef::unsafe_arena_set_allocated_op( - ::std::string* op) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (op != NULL) { - - } else { - - } - op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - op, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.op) -} - -// repeated string input = 3; -int NodeDef::input_size() const { - return input_.size(); -} -void NodeDef::clear_input() { - input_.Clear(); -} -const ::std::string& NodeDef::input(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.NodeDef.input) - return input_.Get(index); -} -::std::string* NodeDef::mutable_input(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.input) - return input_.Mutable(index); -} -void NodeDef::set_input(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.NodeDef.input) - input_.Mutable(index)->assign(value); -} -void NodeDef::set_input(int index, const char* value) { - input_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.input) -} -void NodeDef::set_input(int index, const char* value, size_t size) { - input_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.input) -} -::std::string* NodeDef::add_input() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.NodeDef.input) - return input_.Add(); -} -void NodeDef::add_input(const ::std::string& value) { - input_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.NodeDef.input) -} -void NodeDef::add_input(const char* value) { - input_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.NodeDef.input) -} -void NodeDef::add_input(const char* value, size_t size) { - input_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.NodeDef.input) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -NodeDef::input() const { - // @@protoc_insertion_point(field_list:tensorflow.NodeDef.input) - return input_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -NodeDef::mutable_input() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.NodeDef.input) - return &input_; -} - -// optional string device = 4; -void NodeDef::clear_device() { - device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& NodeDef::device() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeDef.device) - return device_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void NodeDef::set_device(const ::std::string& value) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NodeDef.device) -} -void NodeDef::set_device(const char* value) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.device) -} -void NodeDef::set_device(const char* value, - size_t size) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.device) -} -::std::string* NodeDef::mutable_device() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.device) - return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* NodeDef::release_device() { - // @@protoc_insertion_point(field_release:tensorflow.NodeDef.device) - - return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* NodeDef::unsafe_arena_release_device() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.device) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void NodeDef::set_allocated_device(::std::string* device) { - if (device != NULL) { - - } else { - - } - device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.device) -} -void NodeDef::unsafe_arena_set_allocated_device( - ::std::string* device) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (device != NULL) { - - } else { - - } - device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - device, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.device) -} - -// map attr = 5; -int NodeDef::attr_size() const { - return attr_.size(); -} -void NodeDef::clear_attr() { - attr_.Clear(); -} - const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& -NodeDef::attr() const { - // @@protoc_insertion_point(field_map:tensorflow.NodeDef.attr) - return attr_.GetMap(); -} - ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* -NodeDef::mutable_attr() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.NodeDef.attr) - return attr_.MutableMap(); -} - -inline const NodeDef* NodeDef::internal_default_instance() { - return &NodeDef_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace tensorflow // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/graph.pb.h b/modules/dnn/misc/tensorflow/graph.pb.h index f4d54bc7f9..4a53a521b7 100644 --- a/modules/dnn/misc/tensorflow/graph.pb.h +++ b/modules/dnn/misc/tensorflow/graph.pb.h @@ -8,25 +8,28 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3001000 +#if GOOGLE_PROTOBUF_VERSION < 3005000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include #include #include +#include #include #include #include -#include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include #include #include #include "attr_value.pb.h" @@ -34,16 +37,41 @@ #include "versions.pb.h" // @@protoc_insertion_point(includes) +namespace protobuf_graph_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[3]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsGraphDefImpl(); +void InitDefaultsGraphDef(); +void InitDefaultsNodeDef_AttrEntry_DoNotUseImpl(); +void InitDefaultsNodeDef_AttrEntry_DoNotUse(); +void InitDefaultsNodeDefImpl(); +void InitDefaultsNodeDef(); +inline void InitDefaults() { + InitDefaultsGraphDef(); + InitDefaultsNodeDef_AttrEntry_DoNotUse(); + InitDefaultsNodeDef(); +} +} // namespace protobuf_graph_2eproto namespace tensorflow { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_graph_2eproto(); -void protobuf_InitDefaults_graph_2eproto(); -void protobuf_AssignDesc_graph_2eproto(); -void protobuf_ShutdownFile_graph_2eproto(); - class GraphDef; +class GraphDefDefaultTypeInternal; +extern GraphDefDefaultTypeInternal _GraphDef_default_instance_; class NodeDef; +class NodeDefDefaultTypeInternal; +extern NodeDefDefaultTypeInternal _NodeDef_default_instance_; +class NodeDef_AttrEntry_DoNotUse; +class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal; +extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_; +} // namespace tensorflow +namespace tensorflow { // =================================================================== @@ -58,48 +86,69 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point( CopyFrom(from); return *this; } + #if LANG_CXX11 + GraphDef(GraphDef&& from) noexcept + : GraphDef() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline GraphDef& operator=(GraphDef&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const GraphDef& default_instance(); - static const GraphDef* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GraphDef* internal_default_instance() { + return reinterpret_cast( + &_GraphDef_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; void UnsafeArenaSwap(GraphDef* other); void Swap(GraphDef* other); + friend void swap(GraphDef& a, GraphDef& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline GraphDef* New() const { return New(NULL); } + inline GraphDef* New() const PROTOBUF_FINAL { return New(NULL); } - GraphDef* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + GraphDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GraphDef& from); void MergeFrom(const GraphDef& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GraphDef* other); - void UnsafeMergeFrom(const GraphDef& from); protected: explicit GraphDef(::google::protobuf::Arena* arena); private: @@ -114,7 +163,7 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point( } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -132,68 +181,77 @@ class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point( const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >& node() const; - // optional .tensorflow.VersionDef versions = 4; - bool has_versions() const; - void clear_versions(); - static const int kVersionsFieldNumber = 4; - private: - void _slow_mutable_versions(); - void _slow_set_allocated_versions( - ::google::protobuf::Arena* message_arena, ::tensorflow::VersionDef** versions); - ::tensorflow::VersionDef* _slow_release_versions(); - public: - const ::tensorflow::VersionDef& versions() const; - ::tensorflow::VersionDef* mutable_versions(); - ::tensorflow::VersionDef* release_versions(); - void set_allocated_versions(::tensorflow::VersionDef* versions); - ::tensorflow::VersionDef* unsafe_arena_release_versions(); - void unsafe_arena_set_allocated_versions( - ::tensorflow::VersionDef* versions); - - // optional int32 version = 3 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_version(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kVersionFieldNumber = 3; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 version() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_version(::google::protobuf::int32 value); - - // optional .tensorflow.FunctionDefLibrary library = 2; + // .tensorflow.FunctionDefLibrary library = 2; bool has_library() const; void clear_library(); static const int kLibraryFieldNumber = 2; private: void _slow_mutable_library(); - void _slow_set_allocated_library( - ::google::protobuf::Arena* message_arena, ::tensorflow::FunctionDefLibrary** library); - ::tensorflow::FunctionDefLibrary* _slow_release_library(); public: const ::tensorflow::FunctionDefLibrary& library() const; - ::tensorflow::FunctionDefLibrary* mutable_library(); ::tensorflow::FunctionDefLibrary* release_library(); + ::tensorflow::FunctionDefLibrary* mutable_library(); void set_allocated_library(::tensorflow::FunctionDefLibrary* library); - ::tensorflow::FunctionDefLibrary* unsafe_arena_release_library(); void unsafe_arena_set_allocated_library( ::tensorflow::FunctionDefLibrary* library); + ::tensorflow::FunctionDefLibrary* unsafe_arena_release_library(); + + // .tensorflow.VersionDef versions = 4; + bool has_versions() const; + void clear_versions(); + static const int kVersionsFieldNumber = 4; + private: + void _slow_mutable_versions(); + public: + const ::tensorflow::VersionDef& versions() const; + ::tensorflow::VersionDef* release_versions(); + ::tensorflow::VersionDef* mutable_versions(); + void set_allocated_versions(::tensorflow::VersionDef* versions); + void unsafe_arena_set_allocated_versions( + ::tensorflow::VersionDef* versions); + ::tensorflow::VersionDef* unsafe_arena_release_versions(); + + // int32 version = 3 [deprecated = true]; + GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_version(); + GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kVersionFieldNumber = 3; + GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 version() const; + GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_version(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:tensorflow.GraphDef) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef > node_; - ::tensorflow::VersionDef* versions_; ::tensorflow::FunctionDefLibrary* library_; + ::tensorflow::VersionDef* versions_; ::google::protobuf::int32 version_; mutable int _cached_size_; - friend void protobuf_InitDefaults_graph_2eproto_impl(); - friend void protobuf_AddDesc_graph_2eproto_impl(); - friend void protobuf_AssignDesc_graph_2eproto(); - friend void protobuf_ShutdownFile_graph_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_graph_2eproto::TableStruct; + friend void ::protobuf_graph_2eproto::InitDefaultsGraphDefImpl(); +}; +// ------------------------------------------------------------------- + +class NodeDef_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + NodeDef_AttrEntry_DoNotUse(); + NodeDef_AttrEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const NodeDef_AttrEntry_DoNotUse& other); + static const NodeDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_NodeDef_AttrEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; }; -extern ::google::protobuf::internal::ExplicitlyConstructed GraphDef_default_instance_; // ------------------------------------------------------------------- @@ -208,48 +266,69 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c CopyFrom(from); return *this; } + #if LANG_CXX11 + NodeDef(NodeDef&& from) noexcept + : NodeDef() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline NodeDef& operator=(NodeDef&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const NodeDef& default_instance(); - static const NodeDef* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeDef* internal_default_instance() { + return reinterpret_cast( + &_NodeDef_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; void UnsafeArenaSwap(NodeDef* other); void Swap(NodeDef* other); + friend void swap(NodeDef& a, NodeDef& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline NodeDef* New() const { return New(NULL); } + inline NodeDef* New() const PROTOBUF_FINAL { return New(NULL); } - NodeDef* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + NodeDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const NodeDef& from); void MergeFrom(const NodeDef& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(NodeDef* other); - void UnsafeMergeFrom(const NodeDef& from); protected: explicit NodeDef(::google::protobuf::Arena* arena); private: @@ -264,41 +343,13 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - ::std::string* unsafe_arena_release_name(); - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // optional string op = 2; - void clear_op(); - static const int kOpFieldNumber = 2; - const ::std::string& op() const; - void set_op(const ::std::string& value); - void set_op(const char* value); - void set_op(const char* value, size_t size); - ::std::string* mutable_op(); - ::std::string* release_op(); - void set_allocated_op(::std::string* op); - ::std::string* unsafe_arena_release_op(); - void unsafe_arena_set_allocated_op( - ::std::string* op); - // repeated string input = 3; int input_size() const; void clear_input(); @@ -306,29 +357,21 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c const ::std::string& input(int index) const; ::std::string* mutable_input(int index); void set_input(int index, const ::std::string& value); + #if LANG_CXX11 + void set_input(int index, ::std::string&& value); + #endif void set_input(int index, const char* value); void set_input(int index, const char* value, size_t size); ::std::string* add_input(); void add_input(const ::std::string& value); + #if LANG_CXX11 + void add_input(::std::string&& value); + #endif void add_input(const char* value); void add_input(const char* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const; ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input(); - // optional string device = 4; - void clear_device(); - static const int kDeviceFieldNumber = 4; - const ::std::string& device() const; - void set_device(const ::std::string& value); - void set_device(const char* value); - void set_device(const char* value, size_t size); - ::std::string* mutable_device(); - ::std::string* release_device(); - void set_allocated_device(::std::string* device); - ::std::string* unsafe_arena_release_device(); - void unsafe_arena_set_allocated_device( - ::std::string* device); - // map attr = 5; int attr_size() const; void clear_attr(); @@ -338,21 +381,85 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* mutable_attr(); + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + ::std::string* unsafe_arena_release_name(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_name( + ::std::string* name); + + // string op = 2; + void clear_op(); + static const int kOpFieldNumber = 2; + const ::std::string& op() const; + void set_op(const ::std::string& value); + #if LANG_CXX11 + void set_op(::std::string&& value); + #endif + void set_op(const char* value); + void set_op(const char* value, size_t size); + ::std::string* mutable_op(); + ::std::string* release_op(); + void set_allocated_op(::std::string* op); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + ::std::string* unsafe_arena_release_op(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_op( + ::std::string* op); + + // string device = 4; + void clear_device(); + static const int kDeviceFieldNumber = 4; + const ::std::string& device() const; + void set_device(const ::std::string& value); + #if LANG_CXX11 + void set_device(::std::string&& value); + #endif + void set_device(const char* value); + void set_device(const char* value, size_t size); + ::std::string* mutable_device(); + ::std::string* release_device(); + void set_allocated_device(::std::string* device); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + ::std::string* unsafe_arena_release_device(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_device( + ::std::string* device); + // @@protoc_insertion_point(class_scope:tensorflow.NodeDef) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::std::string> input_; - typedef ::google::protobuf::internal::MapEntryLite< - ::std::string, ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > - NodeDef_AttrEntry; ::google::protobuf::internal::MapField< + NodeDef_AttrEntry_DoNotUse, ::std::string, ::tensorflow::AttrValue, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, @@ -361,21 +468,18 @@ class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(c ::google::protobuf::internal::ArenaStringPtr op_; ::google::protobuf::internal::ArenaStringPtr device_; mutable int _cached_size_; - friend void protobuf_InitDefaults_graph_2eproto_impl(); - friend void protobuf_AddDesc_graph_2eproto_impl(); - friend void protobuf_AssignDesc_graph_2eproto(); - friend void protobuf_ShutdownFile_graph_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_graph_2eproto::TableStruct; + friend void ::protobuf_graph_2eproto::InitDefaultsNodeDefImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed NodeDef_default_instance_; - // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // GraphDef // repeated .tensorflow.NodeDef node = 1; @@ -408,18 +512,32 @@ GraphDef::node() const { return node_; } -// optional .tensorflow.VersionDef versions = 4; +// .tensorflow.VersionDef versions = 4; inline bool GraphDef::has_versions() const { return this != internal_default_instance() && versions_ != NULL; } -inline void GraphDef::clear_versions() { - if (GetArenaNoVirtual() == NULL && versions_ != NULL) delete versions_; - versions_ = NULL; -} inline const ::tensorflow::VersionDef& GraphDef::versions() const { + const ::tensorflow::VersionDef* p = versions_; // @@protoc_insertion_point(field_get:tensorflow.GraphDef.versions) - return versions_ != NULL ? *versions_ - : *::tensorflow::VersionDef::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::tensorflow::_VersionDef_default_instance_); +} +inline ::tensorflow::VersionDef* GraphDef::release_versions() { + // @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions) + + ::tensorflow::VersionDef* temp = versions_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + versions_ = NULL; + return temp; +} +inline ::tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.versions) + + ::tensorflow::VersionDef* temp = versions_; + versions_ = NULL; + return temp; } inline ::tensorflow::VersionDef* GraphDef::mutable_versions() { @@ -429,35 +547,27 @@ inline ::tensorflow::VersionDef* GraphDef::mutable_versions() { // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.versions) return versions_; } -inline ::tensorflow::VersionDef* GraphDef::release_versions() { - // @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_versions(); - } else { - ::tensorflow::VersionDef* temp = versions_; - versions_ = NULL; - return temp; - } -} -inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions) { +inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { - delete versions_; + delete reinterpret_cast< ::google::protobuf::MessageLite*>(versions_); } - if (versions != NULL) { - _slow_set_allocated_versions(message_arena, &versions); - } - versions_ = versions; if (versions) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(versions)->GetArena(); + if (message_arena != submessage_arena) { + versions = ::google::protobuf::internal::GetOwnedMessage( + message_arena, versions, submessage_arena); + } } else { } + versions_ = versions; // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.versions) } -// optional int32 version = 3 [deprecated = true]; +// int32 version = 3 [deprecated = true]; inline void GraphDef::clear_version() { version_ = 0; } @@ -471,18 +581,32 @@ inline void GraphDef::set_version(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:tensorflow.GraphDef.version) } -// optional .tensorflow.FunctionDefLibrary library = 2; +// .tensorflow.FunctionDefLibrary library = 2; inline bool GraphDef::has_library() const { return this != internal_default_instance() && library_ != NULL; } -inline void GraphDef::clear_library() { - if (GetArenaNoVirtual() == NULL && library_ != NULL) delete library_; - library_ = NULL; -} inline const ::tensorflow::FunctionDefLibrary& GraphDef::library() const { + const ::tensorflow::FunctionDefLibrary* p = library_; // @@protoc_insertion_point(field_get:tensorflow.GraphDef.library) - return library_ != NULL ? *library_ - : *::tensorflow::FunctionDefLibrary::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::tensorflow::_FunctionDefLibrary_default_instance_); +} +inline ::tensorflow::FunctionDefLibrary* GraphDef::release_library() { + // @@protoc_insertion_point(field_release:tensorflow.GraphDef.library) + + ::tensorflow::FunctionDefLibrary* temp = library_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + library_ = NULL; + return temp; +} +inline ::tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.library) + + ::tensorflow::FunctionDefLibrary* temp = library_; + library_ = NULL; + return temp; } inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() { @@ -492,55 +616,55 @@ inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() { // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.library) return library_; } -inline ::tensorflow::FunctionDefLibrary* GraphDef::release_library() { - // @@protoc_insertion_point(field_release:tensorflow.GraphDef.library) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_library(); - } else { - ::tensorflow::FunctionDefLibrary* temp = library_; - library_ = NULL; - return temp; - } -} -inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* library) { +inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* library) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { - delete library_; + delete reinterpret_cast< ::google::protobuf::MessageLite*>(library_); } - if (library != NULL) { - _slow_set_allocated_library(message_arena, &library); - } - library_ = library; if (library) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(library)->GetArena(); + if (message_arena != submessage_arena) { + library = ::google::protobuf::internal::GetOwnedMessage( + message_arena, library, submessage_arena); + } } else { } + library_ = library; // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.library) } -inline const GraphDef* GraphDef::internal_default_instance() { - return &GraphDef_default_instance_.get(); -} +// ------------------------------------------------------------------- + // ------------------------------------------------------------------- // NodeDef -// optional string name = 1; +// string name = 1; inline void NodeDef::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& NodeDef::name() const { // @@protoc_insertion_point(field_get:tensorflow.NodeDef.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.Get(); } inline void NodeDef::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.NodeDef.name) } +#if LANG_CXX11 +inline void NodeDef::set_name(::std::string&& value) { + + name_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.name) +} +#endif inline void NodeDef::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -563,13 +687,6 @@ inline ::std::string* NodeDef::release_name() { return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* NodeDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void NodeDef::set_allocated_name(::std::string* name) { if (name != NULL) { @@ -580,6 +697,13 @@ inline void NodeDef::set_allocated_name(::std::string* name) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.name) } +inline ::std::string* NodeDef::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.name) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void NodeDef::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -593,20 +717,29 @@ inline void NodeDef::unsafe_arena_set_allocated_name( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.name) } -// optional string op = 2; +// string op = 2; inline void NodeDef::clear_op() { op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& NodeDef::op() const { // @@protoc_insertion_point(field_get:tensorflow.NodeDef.op) - return op_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return op_.Get(); } inline void NodeDef::set_op(const ::std::string& value) { op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.NodeDef.op) } +#if LANG_CXX11 +inline void NodeDef::set_op(::std::string&& value) { + + op_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.op) +} +#endif inline void NodeDef::set_op(const char* value) { + GOOGLE_DCHECK(value != NULL); op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -629,13 +762,6 @@ inline ::std::string* NodeDef::release_op() { return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* NodeDef::unsafe_arena_release_op() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.op) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void NodeDef::set_allocated_op(::std::string* op) { if (op != NULL) { @@ -646,6 +772,13 @@ inline void NodeDef::set_allocated_op(::std::string* op) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.op) } +inline ::std::string* NodeDef::unsafe_arena_release_op() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.op) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void NodeDef::unsafe_arena_set_allocated_op( ::std::string* op) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -678,7 +811,14 @@ inline void NodeDef::set_input(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:tensorflow.NodeDef.input) input_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void NodeDef::set_input(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:tensorflow.NodeDef.input) + input_.Mutable(index)->assign(std::move(value)); +} +#endif inline void NodeDef::set_input(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); input_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.input) } @@ -695,7 +835,14 @@ inline void NodeDef::add_input(const ::std::string& value) { input_.Add()->assign(value); // @@protoc_insertion_point(field_add:tensorflow.NodeDef.input) } +#if LANG_CXX11 +inline void NodeDef::add_input(::std::string&& value) { + input_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:tensorflow.NodeDef.input) +} +#endif inline void NodeDef::add_input(const char* value) { + GOOGLE_DCHECK(value != NULL); input_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tensorflow.NodeDef.input) } @@ -714,20 +861,29 @@ NodeDef::mutable_input() { return &input_; } -// optional string device = 4; +// string device = 4; inline void NodeDef::clear_device() { device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& NodeDef::device() const { // @@protoc_insertion_point(field_get:tensorflow.NodeDef.device) - return device_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return device_.Get(); } inline void NodeDef::set_device(const ::std::string& value) { device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.NodeDef.device) } +#if LANG_CXX11 +inline void NodeDef::set_device(::std::string&& value) { + + device_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.device) +} +#endif inline void NodeDef::set_device(const char* value) { + GOOGLE_DCHECK(value != NULL); device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -750,13 +906,6 @@ inline ::std::string* NodeDef::release_device() { return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* NodeDef::unsafe_arena_release_device() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.device) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void NodeDef::set_allocated_device(::std::string* device) { if (device != NULL) { @@ -767,6 +916,13 @@ inline void NodeDef::set_allocated_device(::std::string* device) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.device) } +inline ::std::string* NodeDef::unsafe_arena_release_device() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.device) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void NodeDef::unsafe_arena_set_allocated_device( ::std::string* device) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -784,9 +940,6 @@ inline void NodeDef::unsafe_arena_set_allocated_device( inline int NodeDef::attr_size() const { return attr_.size(); } -inline void NodeDef::clear_attr() { - attr_.Clear(); -} inline const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& NodeDef::attr() const { // @@protoc_insertion_point(field_map:tensorflow.NodeDef.attr) @@ -798,10 +951,11 @@ NodeDef::mutable_attr() { return attr_.MutableMap(); } -inline const NodeDef* NodeDef::internal_default_instance() { - return &NodeDef_default_instance_.get(); -} -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + // ------------------------------------------------------------------- diff --git a/modules/dnn/misc/tensorflow/op_def.pb.cc b/modules/dnn/misc/tensorflow/op_def.pb.cc index 1a9cae3cec..dd67671005 100644 --- a/modules/dnn/misc/tensorflow/op_def.pb.cc +++ b/modules/dnn/misc/tensorflow/op_def.pb.cc @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: op_def.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "op_def.pb.h" #include @@ -15,256 +14,293 @@ #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) - namespace tensorflow { +class OpDef_ArgDefDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OpDef_ArgDef_default_instance_; +class OpDef_AttrDefDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OpDef_AttrDef_default_instance_; +class OpDefDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OpDef_default_instance_; +class OpDeprecationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OpDeprecation_default_instance_; +class OpListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OpList_default_instance_; +} // namespace tensorflow +namespace protobuf_op_5fdef_2eproto { +void InitDefaultsOpDef_ArgDefImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -namespace { - -const ::google::protobuf::Descriptor* OpDef_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - OpDef_reflection_ = NULL; -const ::google::protobuf::Descriptor* OpDef_ArgDef_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - OpDef_ArgDef_reflection_ = NULL; -const ::google::protobuf::Descriptor* OpDef_AttrDef_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - OpDef_AttrDef_reflection_ = NULL; -const ::google::protobuf::Descriptor* OpDeprecation_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - OpDeprecation_reflection_ = NULL; -const ::google::protobuf::Descriptor* OpList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - OpList_reflection_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_op_5fdef_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_op_5fdef_2eproto() { - protobuf_AddDesc_op_5fdef_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "op_def.proto"); - GOOGLE_CHECK(file != NULL); - OpDef_descriptor_ = file->message_type(0); - static const int OpDef_offsets_[11] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, input_arg_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, output_arg_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, attr_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, deprecation_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, summary_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, description_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, is_commutative_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, is_aggregate_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, is_stateful_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, allows_uninitialized_input_), - }; - OpDef_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - OpDef_descriptor_, - OpDef::internal_default_instance(), - OpDef_offsets_, - -1, - -1, - -1, - sizeof(OpDef), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef, _internal_metadata_)); - OpDef_ArgDef_descriptor_ = OpDef_descriptor_->nested_type(0); - static const int OpDef_ArgDef_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, description_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, type_attr_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, number_attr_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, type_list_attr_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, is_ref_), - }; - OpDef_ArgDef_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - OpDef_ArgDef_descriptor_, - OpDef_ArgDef::internal_default_instance(), - OpDef_ArgDef_offsets_, - -1, - -1, - -1, - sizeof(OpDef_ArgDef), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_ArgDef, _internal_metadata_)); - OpDef_AttrDef_descriptor_ = OpDef_descriptor_->nested_type(1); - static const int OpDef_AttrDef_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, default_value_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, description_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, has_minimum_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, minimum_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, allowed_values_), - }; - OpDef_AttrDef_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - OpDef_AttrDef_descriptor_, - OpDef_AttrDef::internal_default_instance(), - OpDef_AttrDef_offsets_, - -1, - -1, - -1, - sizeof(OpDef_AttrDef), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDef_AttrDef, _internal_metadata_)); - OpDeprecation_descriptor_ = file->message_type(1); - static const int OpDeprecation_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDeprecation, version_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDeprecation, explanation_), - }; - OpDeprecation_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - OpDeprecation_descriptor_, - OpDeprecation::internal_default_instance(), - OpDeprecation_offsets_, - -1, - -1, - -1, - sizeof(OpDeprecation), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpDeprecation, _internal_metadata_)); - OpList_descriptor_ = file->message_type(2); - static const int OpList_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpList, op_), - }; - OpList_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - OpList_descriptor_, - OpList::internal_default_instance(), - OpList_offsets_, - -1, - -1, - -1, - sizeof(OpList), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OpList, _internal_metadata_)); +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::tensorflow::_OpDef_ArgDef_default_instance_; + new (ptr) ::tensorflow::OpDef_ArgDef(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::OpDef_ArgDef::InitAsDefaultInstance(); } -namespace { +void InitDefaultsOpDef_ArgDef() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpDef_ArgDefImpl); +} + +void InitDefaultsOpDef_AttrDefImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue(); + { + void* ptr = &::tensorflow::_OpDef_AttrDef_default_instance_; + new (ptr) ::tensorflow::OpDef_AttrDef(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::OpDef_AttrDef::InitAsDefaultInstance(); +} + +void InitDefaultsOpDef_AttrDef() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpDef_AttrDefImpl); +} + +void InitDefaultsOpDefImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDef(); + protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDef(); + protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecation(); + { + void* ptr = &::tensorflow::_OpDef_default_instance_; + new (ptr) ::tensorflow::OpDef(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::OpDef::InitAsDefaultInstance(); +} + +void InitDefaultsOpDef() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpDefImpl); +} + +void InitDefaultsOpDeprecationImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::tensorflow::_OpDeprecation_default_instance_; + new (ptr) ::tensorflow::OpDeprecation(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::OpDeprecation::InitAsDefaultInstance(); +} + +void InitDefaultsOpDeprecation() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpDeprecationImpl); +} + +void InitDefaultsOpListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_op_5fdef_2eproto::InitDefaultsOpDef(); + { + void* ptr = &::tensorflow::_OpList_default_instance_; + new (ptr) ::tensorflow::OpList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::OpList::InitAsDefaultInstance(); +} + +void InitDefaultsOpList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpListImpl); +} + +::google::protobuf::Metadata file_level_metadata[5]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, description_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, type_attr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, number_attr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, type_list_attr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_ArgDef, is_ref_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, default_value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, description_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, has_minimum_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, minimum_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef_AttrDef, allowed_values_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, input_arg_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, output_arg_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, attr_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, deprecation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, summary_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, description_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, is_commutative_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, is_aggregate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, is_stateful_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDef, allows_uninitialized_input_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDeprecation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDeprecation, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpDeprecation, explanation_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::OpList, op_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::tensorflow::OpDef_ArgDef)}, + { 12, -1, sizeof(::tensorflow::OpDef_AttrDef)}, + { 24, -1, sizeof(::tensorflow::OpDef)}, + { 40, -1, sizeof(::tensorflow::OpDeprecation)}, + { 47, -1, sizeof(::tensorflow::OpList)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::tensorflow::_OpDef_ArgDef_default_instance_), + reinterpret_cast(&::tensorflow::_OpDef_AttrDef_default_instance_), + reinterpret_cast(&::tensorflow::_OpDef_default_instance_), + reinterpret_cast(&::tensorflow::_OpDeprecation_default_instance_), + reinterpret_cast(&::tensorflow::_OpList_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "op_def.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_op_5fdef_2eproto); + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - OpDef_descriptor_, OpDef::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - OpDef_ArgDef_descriptor_, OpDef_ArgDef::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - OpDef_AttrDef_descriptor_, OpDef_AttrDef::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - OpDeprecation_descriptor_, OpDeprecation::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - OpList_descriptor_, OpList::internal_default_instance()); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5); } -} // namespace - -void protobuf_ShutdownFile_op_5fdef_2eproto() { - OpDef_default_instance_.Shutdown(); - delete OpDef_reflection_; - OpDef_ArgDef_default_instance_.Shutdown(); - delete OpDef_ArgDef_reflection_; - OpDef_AttrDef_default_instance_.Shutdown(); - delete OpDef_AttrDef_reflection_; - OpDeprecation_default_instance_.Shutdown(); - delete OpDeprecation_reflection_; - OpList_default_instance_.Shutdown(); - delete OpList_reflection_; -} - -void protobuf_InitDefaults_op_5fdef_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::tensorflow::protobuf_InitDefaults_attr_5fvalue_2eproto(); - ::tensorflow::protobuf_InitDefaults_types_2eproto(); - ::google::protobuf::internal::GetEmptyString(); - OpDef_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - OpDef_ArgDef_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - OpDef_AttrDef_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - OpDeprecation_default_instance_.DefaultConstruct(); - OpList_default_instance_.DefaultConstruct(); - OpDef_default_instance_.get_mutable()->InitAsDefaultInstance(); - OpDef_ArgDef_default_instance_.get_mutable()->InitAsDefaultInstance(); - OpDef_AttrDef_default_instance_.get_mutable()->InitAsDefaultInstance(); - OpDeprecation_default_instance_.get_mutable()->InitAsDefaultInstance(); - OpList_default_instance_.get_mutable()->InitAsDefaultInstance(); -} - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_op_5fdef_2eproto_once_); -void protobuf_InitDefaults_op_5fdef_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_op_5fdef_2eproto_once_, - &protobuf_InitDefaults_op_5fdef_2eproto_impl); -} -void protobuf_AddDesc_op_5fdef_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - protobuf_InitDefaults_op_5fdef_2eproto(); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\014op_def.proto\022\ntensorflow\032\020attr_value.p" + "roto\032\013types.proto\"\270\005\n\005OpDef\022\014\n\004name\030\001 \001(" + "\t\022+\n\tinput_arg\030\002 \003(\0132\030.tensorflow.OpDef." + "ArgDef\022,\n\noutput_arg\030\003 \003(\0132\030.tensorflow." + "OpDef.ArgDef\022\'\n\004attr\030\004 \003(\0132\031.tensorflow." + "OpDef.AttrDef\022.\n\013deprecation\030\010 \001(\0132\031.ten" + "sorflow.OpDeprecation\022\017\n\007summary\030\005 \001(\t\022\023" + "\n\013description\030\006 \001(\t\022\026\n\016is_commutative\030\022 " + "\001(\010\022\024\n\014is_aggregate\030\020 \001(\010\022\023\n\013is_stateful" + "\030\021 \001(\010\022\"\n\032allows_uninitialized_input\030\023 \001" + "(\010\032\237\001\n\006ArgDef\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" + "on\030\002 \001(\t\022\"\n\004type\030\003 \001(\0162\024.tensorflow.Data" + "Type\022\021\n\ttype_attr\030\004 \001(\t\022\023\n\013number_attr\030\005" + " \001(\t\022\026\n\016type_list_attr\030\006 \001(\t\022\016\n\006is_ref\030\020" + " \001(\010\032\275\001\n\007AttrDef\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002" + " \001(\t\022,\n\rdefault_value\030\003 \001(\0132\025.tensorflow" + ".AttrValue\022\023\n\013description\030\004 \001(\t\022\023\n\013has_m" + "inimum\030\005 \001(\010\022\017\n\007minimum\030\006 \001(\003\022-\n\016allowed" + "_values\030\007 \001(\0132\025.tensorflow.AttrValue\"5\n\r" + "OpDeprecation\022\017\n\007version\030\001 \001(\005\022\023\n\013explan" + "ation\030\002 \001(\t\"\'\n\006OpList\022\035\n\002op\030\001 \003(\0132\021.tens" + "orflow.OpDefB,\n\030org.tensorflow.framework" + "B\013OpDefProtosP\001\370\001\001b\006proto3" + }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\014op_def.proto\022\ntensorflow\032\020attr_value.p" - "roto\032\013types.proto\"\270\005\n\005OpDef\022\014\n\004name\030\001 \001(" - "\t\022+\n\tinput_arg\030\002 \003(\0132\030.tensorflow.OpDef." - "ArgDef\022,\n\noutput_arg\030\003 \003(\0132\030.tensorflow." - "OpDef.ArgDef\022\'\n\004attr\030\004 \003(\0132\031.tensorflow." - "OpDef.AttrDef\022.\n\013deprecation\030\010 \001(\0132\031.ten" - "sorflow.OpDeprecation\022\017\n\007summary\030\005 \001(\t\022\023" - "\n\013description\030\006 \001(\t\022\026\n\016is_commutative\030\022 " - "\001(\010\022\024\n\014is_aggregate\030\020 \001(\010\022\023\n\013is_stateful" - "\030\021 \001(\010\022\"\n\032allows_uninitialized_input\030\023 \001" - "(\010\032\237\001\n\006ArgDef\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" - "on\030\002 \001(\t\022\"\n\004type\030\003 \001(\0162\024.tensorflow.Data" - "Type\022\021\n\ttype_attr\030\004 \001(\t\022\023\n\013number_attr\030\005" - " \001(\t\022\026\n\016type_list_attr\030\006 \001(\t\022\016\n\006is_ref\030\020" - " \001(\010\032\275\001\n\007AttrDef\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002" - " \001(\t\022,\n\rdefault_value\030\003 \001(\0132\025.tensorflow" - ".AttrValue\022\023\n\013description\030\004 \001(\t\022\023\n\013has_m" - "inimum\030\005 \001(\010\022\017\n\007minimum\030\006 \001(\003\022-\n\016allowed" - "_values\030\007 \001(\0132\025.tensorflow.AttrValue\"5\n\r" - "OpDeprecation\022\017\n\007version\030\001 \001(\005\022\023\n\013explan" - "ation\030\002 \001(\t\"\'\n\006OpList\022\035\n\002op\030\001 \003(\0132\021.tens" - "orflow.OpDefB,\n\030org.tensorflow.framework" - "B\013OpDefProtosP\001\370\001\001b\006proto3", 906); + descriptor, 906); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "op_def.proto", &protobuf_RegisterTypes); - ::tensorflow::protobuf_AddDesc_attr_5fvalue_2eproto(); - ::tensorflow::protobuf_AddDesc_types_2eproto(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_op_5fdef_2eproto); + ::protobuf_attr_5fvalue_2eproto::AddDescriptors(); + ::protobuf_types_2eproto::AddDescriptors(); } -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_op_5fdef_2eproto_once_); -void protobuf_AddDesc_op_5fdef_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_op_5fdef_2eproto_once_, - &protobuf_AddDesc_op_5fdef_2eproto_impl); +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_op_5fdef_2eproto { - StaticDescriptorInitializer_op_5fdef_2eproto() { - protobuf_AddDesc_op_5fdef_2eproto(); +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); } -} static_descriptor_initializer_op_5fdef_2eproto_; - -namespace { - -static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; -static void MergeFromFail(int line) { - ::google::protobuf::internal::MergeFromFail(__FILE__, line); -} - -} // namespace - +} static_descriptor_initializer; +} // namespace protobuf_op_5fdef_2eproto +namespace tensorflow { // =================================================================== +void OpDef_ArgDef::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int OpDef_ArgDef::kNameFieldNumber; const int OpDef_ArgDef::kDescriptionFieldNumber; @@ -277,29 +313,53 @@ const int OpDef_ArgDef::kIsRefFieldNumber; OpDef_ArgDef::OpDef_ArgDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDef(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpDef.ArgDef) } OpDef_ArgDef::OpDef_ArgDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_op_5fdef_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDef(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpDef.ArgDef) } - -void OpDef_ArgDef::InitAsDefaultInstance() { -} - OpDef_ArgDef::OpDef_ArgDef(const OpDef_ArgDef& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(), + GetArenaNoVirtual()); + } + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.description().size() > 0) { + description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description(), + GetArenaNoVirtual()); + } + type_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.type_attr().size() > 0) { + type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_attr(), + GetArenaNoVirtual()); + } + number_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.number_attr().size() > 0) { + number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.number_attr(), + GetArenaNoVirtual()); + } + type_list_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.type_list_attr().size() > 0) { + type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_list_attr(), + GetArenaNoVirtual()); + } + ::memcpy(&type_, &from.type_, + static_cast(reinterpret_cast(&is_ref_) - + reinterpret_cast(&type_)) + sizeof(is_ref_)); // @@protoc_insertion_point(copy_constructor:tensorflow.OpDef.ArgDef) } @@ -309,8 +369,9 @@ void OpDef_ArgDef::SharedCtor() { type_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); number_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); type_list_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&type_, 0, reinterpret_cast(&is_ref_) - - reinterpret_cast(&type_) + sizeof(is_ref_)); + ::memset(&type_, 0, static_cast( + reinterpret_cast(&is_ref_) - + reinterpret_cast(&type_)) + sizeof(is_ref_)); _cached_size_ = 0; } @@ -320,16 +381,12 @@ OpDef_ArgDef::~OpDef_ArgDef() { } void OpDef_ArgDef::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - description_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - type_attr_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - number_attr_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - type_list_attr_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_attr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + number_attr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_list_attr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDef_ArgDef::ArenaDtor(void* object) { @@ -344,49 +401,34 @@ void OpDef_ArgDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpDef_ArgDef::descriptor() { - protobuf_AssignDescriptorsOnce(); - return OpDef_ArgDef_descriptor_; + ::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const OpDef_ArgDef& OpDef_ArgDef::default_instance() { - protobuf_InitDefaults_op_5fdef_2eproto(); + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDef(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed OpDef_ArgDef_default_instance_; - OpDef_ArgDef* OpDef_ArgDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpDef_ArgDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpDef.ArgDef) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(OpDef_ArgDef, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(type_, is_ref_); name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); type_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); number_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); type_list_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - -#undef ZR_HELPER_ -#undef ZR_ - + ::memset(&type_, 0, static_cast( + reinterpret_cast(&is_ref_) - + reinterpret_cast(&type_)) + sizeof(is_ref_)); + _internal_metadata_.Clear(); } bool OpDef_ArgDef::MergePartialFromCodedStream( @@ -395,47 +437,46 @@ bool OpDef_ArgDef::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpDef.ArgDef) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; + // string name = 1; case 1: { - if (tag == 10) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_description; break; } - // optional string description = 2; + // string description = 2; case 2: { - if (tag == 18) { - parse_description: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_description())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), this->description().length(), + this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.description")); } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_type; break; } - // optional .tensorflow.DataType type = 3; + // .tensorflow.DataType type = 3; case 3: { - if (tag == 24) { - parse_type: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( @@ -444,65 +485,61 @@ bool OpDef_ArgDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_type_attr; break; } - // optional string type_attr = 4; + // string type_attr = 4; case 4: { - if (tag == 34) { - parse_type_attr: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_type_attr())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type_attr().data(), this->type_attr().length(), + this->type_attr().data(), static_cast(this->type_attr().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.type_attr")); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_number_attr; break; } - // optional string number_attr = 5; + // string number_attr = 5; case 5: { - if (tag == 42) { - parse_number_attr: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_number_attr())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->number_attr().data(), this->number_attr().length(), + this->number_attr().data(), static_cast(this->number_attr().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.number_attr")); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_type_list_attr; break; } - // optional string type_list_attr = 6; + // string type_list_attr = 6; case 6: { - if (tag == 50) { - parse_type_list_attr: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_type_list_attr())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type_list_attr().data(), this->type_list_attr().length(), + this->type_list_attr().data(), static_cast(this->type_list_attr().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.ArgDef.type_list_attr")); } else { goto handle_unusual; } - if (input->ExpectTag(128)) goto parse_is_ref; break; } - // optional bool is_ref = 16; + // bool is_ref = 16; case 16: { - if (tag == 128) { - parse_is_ref: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -510,18 +547,16 @@ bool OpDef_ArgDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -538,67 +573,74 @@ failure: void OpDef_ArgDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpDef.ArgDef) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } - // optional string description = 2; + // string description = 2; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), this->description().length(), + this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.description"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->description(), output); } - // optional .tensorflow.DataType type = 3; + // .tensorflow.DataType type = 3; if (this->type() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 3, this->type(), output); } - // optional string type_attr = 4; + // string type_attr = 4; if (this->type_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type_attr().data(), this->type_attr().length(), + this->type_attr().data(), static_cast(this->type_attr().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.type_attr"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->type_attr(), output); } - // optional string number_attr = 5; + // string number_attr = 5; if (this->number_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->number_attr().data(), this->number_attr().length(), + this->number_attr().data(), static_cast(this->number_attr().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.number_attr"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->number_attr(), output); } - // optional string type_list_attr = 6; + // string type_list_attr = 6; if (this->type_list_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type_list_attr().data(), this->type_list_attr().length(), + this->type_list_attr().data(), static_cast(this->type_list_attr().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.type_list_attr"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 6, this->type_list_attr(), output); } - // optional bool is_ref = 16; + // bool is_ref = 16; if (this->is_ref() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->is_ref(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.OpDef.ArgDef) } @@ -606,10 +648,13 @@ void OpDef_ArgDef::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDef.ArgDef) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.name"); target = @@ -617,10 +662,10 @@ void OpDef_ArgDef::SerializeWithCachedSizes( 1, this->name(), target); } - // optional string description = 2; + // string description = 2; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), this->description().length(), + this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.description"); target = @@ -628,16 +673,16 @@ void OpDef_ArgDef::SerializeWithCachedSizes( 2, this->description(), target); } - // optional .tensorflow.DataType type = 3; + // .tensorflow.DataType type = 3; if (this->type() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 3, this->type(), target); } - // optional string type_attr = 4; + // string type_attr = 4; if (this->type_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type_attr().data(), this->type_attr().length(), + this->type_attr().data(), static_cast(this->type_attr().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.type_attr"); target = @@ -645,10 +690,10 @@ void OpDef_ArgDef::SerializeWithCachedSizes( 4, this->type_attr(), target); } - // optional string number_attr = 5; + // string number_attr = 5; if (this->number_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->number_attr().data(), this->number_attr().length(), + this->number_attr().data(), static_cast(this->number_attr().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.number_attr"); target = @@ -656,10 +701,10 @@ void OpDef_ArgDef::SerializeWithCachedSizes( 5, this->number_attr(), target); } - // optional string type_list_attr = 6; + // string type_list_attr = 6; if (this->type_list_attr().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type_list_attr().data(), this->type_list_attr().length(), + this->type_list_attr().data(), static_cast(this->type_list_attr().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.ArgDef.type_list_attr"); target = @@ -667,11 +712,15 @@ void OpDef_ArgDef::SerializeWithCachedSizes( 6, this->type_list_attr(), target); } - // optional bool is_ref = 16; + // bool is_ref = 16; if (this->is_ref() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->is_ref(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDef.ArgDef) return target; } @@ -680,48 +729,53 @@ size_t OpDef_ArgDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDef.ArgDef) size_t total_size = 0; - // optional string name = 1; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string name = 1; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } - // optional string description = 2; + // string description = 2; if (this->description().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->description()); } - // optional .tensorflow.DataType type = 3; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional string type_attr = 4; + // string type_attr = 4; if (this->type_attr().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->type_attr()); } - // optional string number_attr = 5; + // string number_attr = 5; if (this->number_attr().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->number_attr()); } - // optional string type_list_attr = 6; + // string type_list_attr = 6; if (this->type_list_attr().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->type_list_attr()); } - // optional bool is_ref = 16; + // .tensorflow.DataType type = 3; + if (this->type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // bool is_ref = 16; if (this->is_ref() != 0) { total_size += 2 + 1; } @@ -735,7 +789,7 @@ size_t OpDef_ArgDef::ByteSizeLong() const { void OpDef_ArgDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDef.ArgDef) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const OpDef_ArgDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -744,30 +798,23 @@ void OpDef_ArgDef::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDef.ArgDef) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void OpDef_ArgDef::MergeFrom(const OpDef_ArgDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDef.ArgDef) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void OpDef_ArgDef::UnsafeMergeFrom(const OpDef_ArgDef& from) { - GOOGLE_DCHECK(&from != this); if (from.name().size() > 0) { set_name(from.name()); } if (from.description().size() > 0) { set_description(from.description()); } - if (from.type() != 0) { - set_type(from.type()); - } if (from.type_attr().size() > 0) { set_type_attr(from.type_attr()); } @@ -777,6 +824,9 @@ void OpDef_ArgDef::UnsafeMergeFrom(const OpDef_ArgDef& from) { if (from.type_list_attr().size() > 0) { set_type_list_attr(from.type_list_attr()); } + if (from.type() != 0) { + set_type(from.type()); + } if (from.is_ref() != 0) { set_is_ref(from.is_ref()); } @@ -793,11 +843,10 @@ void OpDef_ArgDef::CopyFrom(const OpDef_ArgDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDef.ArgDef) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool OpDef_ArgDef::IsInitialized() const { - return true; } @@ -806,10 +855,13 @@ void OpDef_ArgDef::Swap(OpDef_ArgDef* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - OpDef_ArgDef temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + OpDef_ArgDef* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void OpDef_ArgDef::UnsafeArenaSwap(OpDef_ArgDef* other) { @@ -818,62 +870,36 @@ void OpDef_ArgDef::UnsafeArenaSwap(OpDef_ArgDef* other) { InternalSwap(other); } void OpDef_ArgDef::InternalSwap(OpDef_ArgDef* other) { + using std::swap; name_.Swap(&other->name_); description_.Swap(&other->description_); - std::swap(type_, other->type_); type_attr_.Swap(&other->type_attr_); number_attr_.Swap(&other->number_attr_); type_list_attr_.Swap(&other->type_list_attr_); - std::swap(is_ref_, other->is_ref_); + swap(type_, other->type_); + swap(is_ref_, other->is_ref_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpDef_ArgDef::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = OpDef_ArgDef_descriptor_; - metadata.reflection = OpDef_ArgDef_reflection_; - return metadata; + protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages]; } -// ------------------------------------------------------------------- +// =================================================================== +void OpDef_AttrDef::InitAsDefaultInstance() { + ::tensorflow::_OpDef_AttrDef_default_instance_._instance.get_mutable()->default_value_ = const_cast< ::tensorflow::AttrValue*>( + ::tensorflow::AttrValue::internal_default_instance()); + ::tensorflow::_OpDef_AttrDef_default_instance_._instance.get_mutable()->allowed_values_ = const_cast< ::tensorflow::AttrValue*>( + ::tensorflow::AttrValue::internal_default_instance()); +} void OpDef_AttrDef::_slow_mutable_default_value() { default_value_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue >( GetArenaNoVirtual()); } -::tensorflow::AttrValue* OpDef_AttrDef::_slow_release_default_value() { - if (default_value_ == NULL) { - return NULL; - } else { - ::tensorflow::AttrValue* temp = new ::tensorflow::AttrValue(*default_value_); - default_value_ = NULL; - return temp; - } -} -::tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_default_value() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.default_value) - - ::tensorflow::AttrValue* temp = default_value_; - default_value_ = NULL; - return temp; -} -void OpDef_AttrDef::_slow_set_allocated_default_value( - ::google::protobuf::Arena* message_arena, ::tensorflow::AttrValue** default_value) { - if (message_arena != NULL && - ::google::protobuf::Arena::GetArena(*default_value) == NULL) { - message_arena->Own(*default_value); - } else if (message_arena != - ::google::protobuf::Arena::GetArena(*default_value)) { - ::tensorflow::AttrValue* new_default_value = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue >( - message_arena); - new_default_value->CopyFrom(**default_value); - *default_value = new_default_value; - } -} void OpDef_AttrDef::unsafe_arena_set_allocated_default_value( ::tensorflow::AttrValue* default_value) { if (GetArenaNoVirtual() == NULL) { @@ -887,40 +913,16 @@ void OpDef_AttrDef::unsafe_arena_set_allocated_default_value( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.default_value) } +void OpDef_AttrDef::clear_default_value() { + if (GetArenaNoVirtual() == NULL && default_value_ != NULL) { + delete default_value_; + } + default_value_ = NULL; +} void OpDef_AttrDef::_slow_mutable_allowed_values() { allowed_values_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue >( GetArenaNoVirtual()); } -::tensorflow::AttrValue* OpDef_AttrDef::_slow_release_allowed_values() { - if (allowed_values_ == NULL) { - return NULL; - } else { - ::tensorflow::AttrValue* temp = new ::tensorflow::AttrValue(*allowed_values_); - allowed_values_ = NULL; - return temp; - } -} -::tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_allowed_values() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.allowed_values) - - ::tensorflow::AttrValue* temp = allowed_values_; - allowed_values_ = NULL; - return temp; -} -void OpDef_AttrDef::_slow_set_allocated_allowed_values( - ::google::protobuf::Arena* message_arena, ::tensorflow::AttrValue** allowed_values) { - if (message_arena != NULL && - ::google::protobuf::Arena::GetArena(*allowed_values) == NULL) { - message_arena->Own(*allowed_values); - } else if (message_arena != - ::google::protobuf::Arena::GetArena(*allowed_values)) { - ::tensorflow::AttrValue* new_allowed_values = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::AttrValue >( - message_arena); - new_allowed_values->CopyFrom(**allowed_values); - *allowed_values = new_allowed_values; - } -} void OpDef_AttrDef::unsafe_arena_set_allocated_allowed_values( ::tensorflow::AttrValue* allowed_values) { if (GetArenaNoVirtual() == NULL) { @@ -934,6 +936,12 @@ void OpDef_AttrDef::unsafe_arena_set_allocated_allowed_values( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.allowed_values) } +void OpDef_AttrDef::clear_allowed_values() { + if (GetArenaNoVirtual() == NULL && allowed_values_ != NULL) { + delete allowed_values_; + } + allowed_values_ = NULL; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int OpDef_AttrDef::kNameFieldNumber; const int OpDef_AttrDef::kTypeFieldNumber; @@ -946,33 +954,53 @@ const int OpDef_AttrDef::kAllowedValuesFieldNumber; OpDef_AttrDef::OpDef_AttrDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDef(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpDef.AttrDef) } OpDef_AttrDef::OpDef_AttrDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_op_5fdef_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDef(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpDef.AttrDef) } - -void OpDef_AttrDef::InitAsDefaultInstance() { - default_value_ = const_cast< ::tensorflow::AttrValue*>( - ::tensorflow::AttrValue::internal_default_instance()); - allowed_values_ = const_cast< ::tensorflow::AttrValue*>( - ::tensorflow::AttrValue::internal_default_instance()); -} - OpDef_AttrDef::OpDef_AttrDef(const OpDef_AttrDef& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(), + GetArenaNoVirtual()); + } + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.type().size() > 0) { + type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type(), + GetArenaNoVirtual()); + } + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.description().size() > 0) { + description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description(), + GetArenaNoVirtual()); + } + if (from.has_default_value()) { + default_value_ = new ::tensorflow::AttrValue(*from.default_value_); + } else { + default_value_ = NULL; + } + if (from.has_allowed_values()) { + allowed_values_ = new ::tensorflow::AttrValue(*from.allowed_values_); + } else { + allowed_values_ = NULL; + } + ::memcpy(&minimum_, &from.minimum_, + static_cast(reinterpret_cast(&has_minimum_) - + reinterpret_cast(&minimum_)) + sizeof(has_minimum_)); // @@protoc_insertion_point(copy_constructor:tensorflow.OpDef.AttrDef) } @@ -980,10 +1008,9 @@ void OpDef_AttrDef::SharedCtor() { name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - default_value_ = NULL; - allowed_values_ = NULL; - ::memset(&minimum_, 0, reinterpret_cast(&has_minimum_) - - reinterpret_cast(&minimum_) + sizeof(has_minimum_)); + ::memset(&default_value_, 0, static_cast( + reinterpret_cast(&has_minimum_) - + reinterpret_cast(&default_value_)) + sizeof(has_minimum_)); _cached_size_ = 0; } @@ -993,18 +1020,12 @@ OpDef_AttrDef::~OpDef_AttrDef() { } void OpDef_AttrDef::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - type_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - description_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - if (this != &OpDef_AttrDef_default_instance_.get()) { - delete default_value_; - delete allowed_values_; - } + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete default_value_; + if (this != internal_default_instance()) delete allowed_values_; } void OpDef_AttrDef::ArenaDtor(void* object) { @@ -1019,51 +1040,40 @@ void OpDef_AttrDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpDef_AttrDef::descriptor() { - protobuf_AssignDescriptorsOnce(); - return OpDef_AttrDef_descriptor_; + ::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const OpDef_AttrDef& OpDef_AttrDef::default_instance() { - protobuf_InitDefaults_op_5fdef_2eproto(); + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDef(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed OpDef_AttrDef_default_instance_; - OpDef_AttrDef* OpDef_AttrDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpDef_AttrDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpDef.AttrDef) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(OpDef_AttrDef, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(minimum_, has_minimum_); name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - if (GetArenaNoVirtual() == NULL && default_value_ != NULL) delete default_value_; - default_value_ = NULL; description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - if (GetArenaNoVirtual() == NULL && allowed_values_ != NULL) delete allowed_values_; + if (GetArenaNoVirtual() == NULL && default_value_ != NULL) { + delete default_value_; + } + default_value_ = NULL; + if (GetArenaNoVirtual() == NULL && allowed_values_ != NULL) { + delete allowed_values_; + } allowed_values_ = NULL; - -#undef ZR_HELPER_ -#undef ZR_ - + ::memset(&minimum_, 0, static_cast( + reinterpret_cast(&has_minimum_) - + reinterpret_cast(&minimum_)) + sizeof(has_minimum_)); + _internal_metadata_.Clear(); } bool OpDef_AttrDef::MergePartialFromCodedStream( @@ -1072,77 +1082,74 @@ bool OpDef_AttrDef::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpDef.AttrDef) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; + // string name = 1; case 1: { - if (tag == 10) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.AttrDef.name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_type; break; } - // optional string type = 2; + // string type = 2; case 2: { - if (tag == 18) { - parse_type: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_type())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type().data(), this->type().length(), + this->type().data(), static_cast(this->type().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.AttrDef.type")); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_default_value; break; } - // optional .tensorflow.AttrValue default_value = 3; + // .tensorflow.AttrValue default_value = 3; case 3: { - if (tag == 26) { - parse_default_value: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_default_value())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_description; break; } - // optional string description = 4; + // string description = 4; case 4: { - if (tag == 34) { - parse_description: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_description())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), this->description().length(), + this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.AttrDef.description")); } else { goto handle_unusual; } - if (input->ExpectTag(40)) goto parse_has_minimum; break; } - // optional bool has_minimum = 5; + // bool has_minimum = 5; case 5: { - if (tag == 40) { - parse_has_minimum: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -1150,14 +1157,13 @@ bool OpDef_AttrDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(48)) goto parse_minimum; break; } - // optional int64 minimum = 6; + // int64 minimum = 6; case 6: { - if (tag == 48) { - parse_minimum: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( @@ -1165,31 +1171,28 @@ bool OpDef_AttrDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(58)) goto parse_allowed_values; break; } - // optional .tensorflow.AttrValue allowed_values = 7; + // .tensorflow.AttrValue allowed_values = 7; case 7: { - if (tag == 58) { - parse_allowed_values: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_allowed_values())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -1206,58 +1209,65 @@ failure: void OpDef_AttrDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpDef.AttrDef) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } - // optional string type = 2; + // string type = 2; if (this->type().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type().data(), this->type().length(), + this->type().data(), static_cast(this->type().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.type"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->type(), output); } - // optional .tensorflow.AttrValue default_value = 3; + // .tensorflow.AttrValue default_value = 3; if (this->has_default_value()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->default_value_, output); } - // optional string description = 4; + // string description = 4; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), this->description().length(), + this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.description"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->description(), output); } - // optional bool has_minimum = 5; + // bool has_minimum = 5; if (this->has_minimum() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->has_minimum(), output); } - // optional int64 minimum = 6; + // int64 minimum = 6; if (this->minimum() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->minimum(), output); } - // optional .tensorflow.AttrValue allowed_values = 7; + // .tensorflow.AttrValue allowed_values = 7; if (this->has_allowed_values()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, *this->allowed_values_, output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.OpDef.AttrDef) } @@ -1265,10 +1275,13 @@ void OpDef_AttrDef::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDef.AttrDef) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.name"); target = @@ -1276,10 +1289,10 @@ void OpDef_AttrDef::SerializeWithCachedSizes( 1, this->name(), target); } - // optional string type = 2; + // string type = 2; if (this->type().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type().data(), this->type().length(), + this->type().data(), static_cast(this->type().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.type"); target = @@ -1287,17 +1300,17 @@ void OpDef_AttrDef::SerializeWithCachedSizes( 2, this->type(), target); } - // optional .tensorflow.AttrValue default_value = 3; + // .tensorflow.AttrValue default_value = 3; if (this->has_default_value()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->default_value_, false, target); + InternalWriteMessageToArray( + 3, *this->default_value_, deterministic, target); } - // optional string description = 4; + // string description = 4; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), this->description().length(), + this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.AttrDef.description"); target = @@ -1305,23 +1318,27 @@ void OpDef_AttrDef::SerializeWithCachedSizes( 4, this->description(), target); } - // optional bool has_minimum = 5; + // bool has_minimum = 5; if (this->has_minimum() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->has_minimum(), target); } - // optional int64 minimum = 6; + // int64 minimum = 6; if (this->minimum() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->minimum(), target); } - // optional .tensorflow.AttrValue allowed_values = 7; + // .tensorflow.AttrValue allowed_values = 7; if (this->has_allowed_values()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, *this->allowed_values_, false, target); + InternalWriteMessageToArray( + 7, *this->allowed_values_, deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDef.AttrDef) return target; } @@ -1330,51 +1347,56 @@ size_t OpDef_AttrDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDef.AttrDef) size_t total_size = 0; - // optional string name = 1; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string name = 1; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } - // optional string type = 2; + // string type = 2; if (this->type().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->type()); } - // optional .tensorflow.AttrValue default_value = 3; - if (this->has_default_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->default_value_); - } - - // optional string description = 4; + // string description = 4; if (this->description().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->description()); } - // optional bool has_minimum = 5; - if (this->has_minimum() != 0) { - total_size += 1 + 1; + // .tensorflow.AttrValue default_value = 3; + if (this->has_default_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->default_value_); } - // optional int64 minimum = 6; + // .tensorflow.AttrValue allowed_values = 7; + if (this->has_allowed_values()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->allowed_values_); + } + + // int64 minimum = 6; if (this->minimum() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->minimum()); } - // optional .tensorflow.AttrValue allowed_values = 7; - if (this->has_allowed_values()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->allowed_values_); + // bool has_minimum = 5; + if (this->has_minimum() != 0) { + total_size += 1 + 1; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -1386,7 +1408,7 @@ size_t OpDef_AttrDef::ByteSizeLong() const { void OpDef_AttrDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDef.AttrDef) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const OpDef_AttrDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -1395,41 +1417,37 @@ void OpDef_AttrDef::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDef.AttrDef) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void OpDef_AttrDef::MergeFrom(const OpDef_AttrDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDef.AttrDef) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void OpDef_AttrDef::UnsafeMergeFrom(const OpDef_AttrDef& from) { - GOOGLE_DCHECK(&from != this); if (from.name().size() > 0) { set_name(from.name()); } if (from.type().size() > 0) { set_type(from.type()); } - if (from.has_default_value()) { - mutable_default_value()->::tensorflow::AttrValue::MergeFrom(from.default_value()); - } if (from.description().size() > 0) { set_description(from.description()); } - if (from.has_minimum() != 0) { - set_has_minimum(from.has_minimum()); + if (from.has_default_value()) { + mutable_default_value()->::tensorflow::AttrValue::MergeFrom(from.default_value()); + } + if (from.has_allowed_values()) { + mutable_allowed_values()->::tensorflow::AttrValue::MergeFrom(from.allowed_values()); } if (from.minimum() != 0) { set_minimum(from.minimum()); } - if (from.has_allowed_values()) { - mutable_allowed_values()->::tensorflow::AttrValue::MergeFrom(from.allowed_values()); + if (from.has_minimum() != 0) { + set_has_minimum(from.has_minimum()); } } @@ -1444,11 +1462,10 @@ void OpDef_AttrDef::CopyFrom(const OpDef_AttrDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDef.AttrDef) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool OpDef_AttrDef::IsInitialized() const { - return true; } @@ -1457,10 +1474,13 @@ void OpDef_AttrDef::Swap(OpDef_AttrDef* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - OpDef_AttrDef temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + OpDef_AttrDef* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void OpDef_AttrDef::UnsafeArenaSwap(OpDef_AttrDef* other) { @@ -1469,62 +1489,34 @@ void OpDef_AttrDef::UnsafeArenaSwap(OpDef_AttrDef* other) { InternalSwap(other); } void OpDef_AttrDef::InternalSwap(OpDef_AttrDef* other) { + using std::swap; name_.Swap(&other->name_); type_.Swap(&other->type_); - std::swap(default_value_, other->default_value_); description_.Swap(&other->description_); - std::swap(has_minimum_, other->has_minimum_); - std::swap(minimum_, other->minimum_); - std::swap(allowed_values_, other->allowed_values_); + swap(default_value_, other->default_value_); + swap(allowed_values_, other->allowed_values_); + swap(minimum_, other->minimum_); + swap(has_minimum_, other->has_minimum_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpDef_AttrDef::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = OpDef_AttrDef_descriptor_; - metadata.reflection = OpDef_AttrDef_reflection_; - return metadata; + protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages]; } -// ------------------------------------------------------------------- +// =================================================================== +void OpDef::InitAsDefaultInstance() { + ::tensorflow::_OpDef_default_instance_._instance.get_mutable()->deprecation_ = const_cast< ::tensorflow::OpDeprecation*>( + ::tensorflow::OpDeprecation::internal_default_instance()); +} void OpDef::_slow_mutable_deprecation() { deprecation_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::OpDeprecation >( GetArenaNoVirtual()); } -::tensorflow::OpDeprecation* OpDef::_slow_release_deprecation() { - if (deprecation_ == NULL) { - return NULL; - } else { - ::tensorflow::OpDeprecation* temp = new ::tensorflow::OpDeprecation(*deprecation_); - deprecation_ = NULL; - return temp; - } -} -::tensorflow::OpDeprecation* OpDef::unsafe_arena_release_deprecation() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.deprecation) - - ::tensorflow::OpDeprecation* temp = deprecation_; - deprecation_ = NULL; - return temp; -} -void OpDef::_slow_set_allocated_deprecation( - ::google::protobuf::Arena* message_arena, ::tensorflow::OpDeprecation** deprecation) { - if (message_arena != NULL && - ::google::protobuf::Arena::GetArena(*deprecation) == NULL) { - message_arena->Own(*deprecation); - } else if (message_arena != - ::google::protobuf::Arena::GetArena(*deprecation)) { - ::tensorflow::OpDeprecation* new_deprecation = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::OpDeprecation >( - message_arena); - new_deprecation->CopyFrom(**deprecation); - *deprecation = new_deprecation; - } -} void OpDef::unsafe_arena_set_allocated_deprecation( ::tensorflow::OpDeprecation* deprecation) { if (GetArenaNoVirtual() == NULL) { @@ -1554,7 +1546,9 @@ const int OpDef::kAllowsUninitializedInputFieldNumber; OpDef::OpDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpDef) } @@ -1564,24 +1558,42 @@ OpDef::OpDef(::google::protobuf::Arena* arena) input_arg_(arena), output_arg_(arena), attr_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_op_5fdef_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpDef) } - -void OpDef::InitAsDefaultInstance() { - deprecation_ = const_cast< ::tensorflow::OpDeprecation*>( - ::tensorflow::OpDeprecation::internal_default_instance()); -} - OpDef::OpDef(const OpDef& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + input_arg_(from.input_arg_), + output_arg_(from.output_arg_), + attr_(from.attr_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(), + GetArenaNoVirtual()); + } + summary_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.summary().size() > 0) { + summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.summary(), + GetArenaNoVirtual()); + } + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.description().size() > 0) { + description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description(), + GetArenaNoVirtual()); + } + if (from.has_deprecation()) { + deprecation_ = new ::tensorflow::OpDeprecation(*from.deprecation_); + } else { + deprecation_ = NULL; + } + ::memcpy(&is_commutative_, &from.is_commutative_, + static_cast(reinterpret_cast(&allows_uninitialized_input_) - + reinterpret_cast(&is_commutative_)) + sizeof(allows_uninitialized_input_)); // @@protoc_insertion_point(copy_constructor:tensorflow.OpDef) } @@ -1589,9 +1601,9 @@ void OpDef::SharedCtor() { name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); summary_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deprecation_ = NULL; - ::memset(&is_commutative_, 0, reinterpret_cast(&allows_uninitialized_input_) - - reinterpret_cast(&is_commutative_) + sizeof(allows_uninitialized_input_)); + ::memset(&deprecation_, 0, static_cast( + reinterpret_cast(&allows_uninitialized_input_) - + reinterpret_cast(&deprecation_)) + sizeof(allows_uninitialized_input_)); _cached_size_ = 0; } @@ -1601,17 +1613,11 @@ OpDef::~OpDef() { } void OpDef::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - summary_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - description_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - if (this != &OpDef_default_instance_.get()) { - delete deprecation_; - } + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + summary_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete deprecation_; } void OpDef::ArenaDtor(void* object) { @@ -1626,53 +1632,39 @@ void OpDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpDef::descriptor() { - protobuf_AssignDescriptorsOnce(); - return OpDef_descriptor_; + ::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const OpDef& OpDef::default_instance() { - protobuf_InitDefaults_op_5fdef_2eproto(); + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed OpDef_default_instance_; - OpDef* OpDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpDef) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(OpDef, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) delete deprecation_; - deprecation_ = NULL; - summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - is_commutative_ = false; - ZR_(is_aggregate_, allows_uninitialized_input_); - -#undef ZR_HELPER_ -#undef ZR_ + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; input_arg_.Clear(); output_arg_.Clear(); attr_.Clear(); + name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) { + delete deprecation_; + } + deprecation_ = NULL; + ::memset(&is_commutative_, 0, static_cast( + reinterpret_cast(&allows_uninitialized_input_) - + reinterpret_cast(&is_commutative_)) + sizeof(allows_uninitialized_input_)); + _internal_metadata_.Clear(); } bool OpDef::MergePartialFromCodedStream( @@ -1681,126 +1673,107 @@ bool OpDef::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpDef) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string name = 1; + // string name = 1; case 1: { - if (tag == 10) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.name")); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_input_arg; break; } // repeated .tensorflow.OpDef.ArgDef input_arg = 2; case 2: { - if (tag == 18) { - parse_input_arg: - DO_(input->IncrementRecursionDepth()); - parse_loop_input_arg: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_input_arg())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_input_arg())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_loop_input_arg; - if (input->ExpectTag(26)) goto parse_loop_output_arg; - input->UnsafeDecrementRecursionDepth(); break; } // repeated .tensorflow.OpDef.ArgDef output_arg = 3; case 3: { - if (tag == 26) { - DO_(input->IncrementRecursionDepth()); - parse_loop_output_arg: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_output_arg())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_output_arg())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_loop_output_arg; - if (input->ExpectTag(34)) goto parse_loop_attr; - input->UnsafeDecrementRecursionDepth(); break; } // repeated .tensorflow.OpDef.AttrDef attr = 4; case 4: { - if (tag == 34) { - DO_(input->IncrementRecursionDepth()); - parse_loop_attr: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_attr())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_attr())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_loop_attr; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(42)) goto parse_summary; break; } - // optional string summary = 5; + // string summary = 5; case 5: { - if (tag == 42) { - parse_summary: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_summary())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->summary().data(), this->summary().length(), + this->summary().data(), static_cast(this->summary().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.summary")); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_description; break; } - // optional string description = 6; + // string description = 6; case 6: { - if (tag == 50) { - parse_description: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_description())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), this->description().length(), + this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDef.description")); } else { goto handle_unusual; } - if (input->ExpectTag(66)) goto parse_deprecation; break; } - // optional .tensorflow.OpDeprecation deprecation = 8; + // .tensorflow.OpDeprecation deprecation = 8; case 8: { - if (tag == 66) { - parse_deprecation: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_deprecation())); } else { goto handle_unusual; } - if (input->ExpectTag(128)) goto parse_is_aggregate; break; } - // optional bool is_aggregate = 16; + // bool is_aggregate = 16; case 16: { - if (tag == 128) { - parse_is_aggregate: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -1808,14 +1781,13 @@ bool OpDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(136)) goto parse_is_stateful; break; } - // optional bool is_stateful = 17; + // bool is_stateful = 17; case 17: { - if (tag == 136) { - parse_is_stateful: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -1823,14 +1795,13 @@ bool OpDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(144)) goto parse_is_commutative; break; } - // optional bool is_commutative = 18; + // bool is_commutative = 18; case 18: { - if (tag == 144) { - parse_is_commutative: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -1838,14 +1809,13 @@ bool OpDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(152)) goto parse_allows_uninitialized_input; break; } - // optional bool allows_uninitialized_input = 19; + // bool allows_uninitialized_input = 19; case 19: { - if (tag == 152) { - parse_allows_uninitialized_input: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -1853,18 +1823,16 @@ bool OpDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -1881,10 +1849,13 @@ failure: void OpDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpDef) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -1892,69 +1863,76 @@ void OpDef::SerializeWithCachedSizes( } // repeated .tensorflow.OpDef.ArgDef input_arg = 2; - for (unsigned int i = 0, n = this->input_arg_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->input_arg_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->input_arg(i), output); + 2, this->input_arg(static_cast(i)), output); } // repeated .tensorflow.OpDef.ArgDef output_arg = 3; - for (unsigned int i = 0, n = this->output_arg_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->output_arg_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->output_arg(i), output); + 3, this->output_arg(static_cast(i)), output); } // repeated .tensorflow.OpDef.AttrDef attr = 4; - for (unsigned int i = 0, n = this->attr_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->attr_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->attr(i), output); + 4, this->attr(static_cast(i)), output); } - // optional string summary = 5; + // string summary = 5; if (this->summary().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->summary().data(), this->summary().length(), + this->summary().data(), static_cast(this->summary().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.summary"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->summary(), output); } - // optional string description = 6; + // string description = 6; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), this->description().length(), + this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.description"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 6, this->description(), output); } - // optional .tensorflow.OpDeprecation deprecation = 8; + // .tensorflow.OpDeprecation deprecation = 8; if (this->has_deprecation()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, *this->deprecation_, output); } - // optional bool is_aggregate = 16; + // bool is_aggregate = 16; if (this->is_aggregate() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->is_aggregate(), output); } - // optional bool is_stateful = 17; + // bool is_stateful = 17; if (this->is_stateful() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->is_stateful(), output); } - // optional bool is_commutative = 18; + // bool is_commutative = 18; if (this->is_commutative() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->is_commutative(), output); } - // optional bool allows_uninitialized_input = 19; + // bool allows_uninitialized_input = 19; if (this->allows_uninitialized_input() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->allows_uninitialized_input(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.OpDef) } @@ -1962,10 +1940,13 @@ void OpDef::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDef) - // optional string name = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.name"); target = @@ -1974,30 +1955,33 @@ void OpDef::SerializeWithCachedSizes( } // repeated .tensorflow.OpDef.ArgDef input_arg = 2; - for (unsigned int i = 0, n = this->input_arg_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->input_arg_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->input_arg(i), false, target); + InternalWriteMessageToArray( + 2, this->input_arg(static_cast(i)), deterministic, target); } // repeated .tensorflow.OpDef.ArgDef output_arg = 3; - for (unsigned int i = 0, n = this->output_arg_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->output_arg_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, this->output_arg(i), false, target); + InternalWriteMessageToArray( + 3, this->output_arg(static_cast(i)), deterministic, target); } // repeated .tensorflow.OpDef.AttrDef attr = 4; - for (unsigned int i = 0, n = this->attr_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->attr_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, this->attr(i), false, target); + InternalWriteMessageToArray( + 4, this->attr(static_cast(i)), deterministic, target); } - // optional string summary = 5; + // string summary = 5; if (this->summary().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->summary().data(), this->summary().length(), + this->summary().data(), static_cast(this->summary().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.summary"); target = @@ -2005,10 +1989,10 @@ void OpDef::SerializeWithCachedSizes( 5, this->summary(), target); } - // optional string description = 6; + // string description = 6; if (this->description().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), this->description().length(), + this->description().data(), static_cast(this->description().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDef.description"); target = @@ -2016,33 +2000,37 @@ void OpDef::SerializeWithCachedSizes( 6, this->description(), target); } - // optional .tensorflow.OpDeprecation deprecation = 8; + // .tensorflow.OpDeprecation deprecation = 8; if (this->has_deprecation()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8, *this->deprecation_, false, target); + InternalWriteMessageToArray( + 8, *this->deprecation_, deterministic, target); } - // optional bool is_aggregate = 16; + // bool is_aggregate = 16; if (this->is_aggregate() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->is_aggregate(), target); } - // optional bool is_stateful = 17; + // bool is_stateful = 17; if (this->is_stateful() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->is_stateful(), target); } - // optional bool is_commutative = 18; + // bool is_commutative = 18; if (this->is_commutative() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->is_commutative(), target); } - // optional bool allows_uninitialized_input = 19; + // bool allows_uninitialized_input = 19; if (this->allows_uninitialized_input() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->allows_uninitialized_input(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDef) return target; } @@ -2051,87 +2039,92 @@ size_t OpDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDef) size_t total_size = 0; - // optional string name = 1; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .tensorflow.OpDef.ArgDef input_arg = 2; + { + unsigned int count = static_cast(this->input_arg_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->input_arg(static_cast(i))); + } + } + + // repeated .tensorflow.OpDef.ArgDef output_arg = 3; + { + unsigned int count = static_cast(this->output_arg_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->output_arg(static_cast(i))); + } + } + + // repeated .tensorflow.OpDef.AttrDef attr = 4; + { + unsigned int count = static_cast(this->attr_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->attr(static_cast(i))); + } + } + + // string name = 1; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } - // optional .tensorflow.OpDeprecation deprecation = 8; - if (this->has_deprecation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->deprecation_); - } - - // optional string summary = 5; + // string summary = 5; if (this->summary().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->summary()); } - // optional string description = 6; + // string description = 6; if (this->description().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->description()); } - // optional bool is_commutative = 18; + // .tensorflow.OpDeprecation deprecation = 8; + if (this->has_deprecation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->deprecation_); + } + + // bool is_commutative = 18; if (this->is_commutative() != 0) { total_size += 2 + 1; } - // optional bool is_aggregate = 16; + // bool is_aggregate = 16; if (this->is_aggregate() != 0) { total_size += 2 + 1; } - // optional bool is_stateful = 17; + // bool is_stateful = 17; if (this->is_stateful() != 0) { total_size += 2 + 1; } - // optional bool allows_uninitialized_input = 19; + // bool allows_uninitialized_input = 19; if (this->allows_uninitialized_input() != 0) { total_size += 2 + 1; } - // repeated .tensorflow.OpDef.ArgDef input_arg = 2; - { - unsigned int count = this->input_arg_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->input_arg(i)); - } - } - - // repeated .tensorflow.OpDef.ArgDef output_arg = 3; - { - unsigned int count = this->output_arg_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->output_arg(i)); - } - } - - // repeated .tensorflow.OpDef.AttrDef attr = 4; - { - unsigned int count = this->attr_size(); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->attr(i)); - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -2141,7 +2134,7 @@ size_t OpDef::ByteSizeLong() const { void OpDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDef) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const OpDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -2150,36 +2143,32 @@ void OpDef::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDef) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void OpDef::MergeFrom(const OpDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDef) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void OpDef::UnsafeMergeFrom(const OpDef& from) { - GOOGLE_DCHECK(&from != this); input_arg_.MergeFrom(from.input_arg_); output_arg_.MergeFrom(from.output_arg_); attr_.MergeFrom(from.attr_); if (from.name().size() > 0) { set_name(from.name()); } - if (from.has_deprecation()) { - mutable_deprecation()->::tensorflow::OpDeprecation::MergeFrom(from.deprecation()); - } if (from.summary().size() > 0) { set_summary(from.summary()); } if (from.description().size() > 0) { set_description(from.description()); } + if (from.has_deprecation()) { + mutable_deprecation()->::tensorflow::OpDeprecation::MergeFrom(from.deprecation()); + } if (from.is_commutative() != 0) { set_is_commutative(from.is_commutative()); } @@ -2205,11 +2194,10 @@ void OpDef::CopyFrom(const OpDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDef) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool OpDef::IsInitialized() const { - return true; } @@ -2218,10 +2206,13 @@ void OpDef::Swap(OpDef* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - OpDef temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + OpDef* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void OpDef::UnsafeArenaSwap(OpDef* other) { @@ -2230,1128 +2221,32 @@ void OpDef::UnsafeArenaSwap(OpDef* other) { InternalSwap(other); } void OpDef::InternalSwap(OpDef* other) { + using std::swap; + input_arg_.InternalSwap(&other->input_arg_); + output_arg_.InternalSwap(&other->output_arg_); + attr_.InternalSwap(&other->attr_); name_.Swap(&other->name_); - input_arg_.UnsafeArenaSwap(&other->input_arg_); - output_arg_.UnsafeArenaSwap(&other->output_arg_); - attr_.UnsafeArenaSwap(&other->attr_); - std::swap(deprecation_, other->deprecation_); summary_.Swap(&other->summary_); description_.Swap(&other->description_); - std::swap(is_commutative_, other->is_commutative_); - std::swap(is_aggregate_, other->is_aggregate_); - std::swap(is_stateful_, other->is_stateful_); - std::swap(allows_uninitialized_input_, other->allows_uninitialized_input_); + swap(deprecation_, other->deprecation_); + swap(is_commutative_, other->is_commutative_); + swap(is_aggregate_, other->is_aggregate_); + swap(is_stateful_, other->is_stateful_); + swap(allows_uninitialized_input_, other->allows_uninitialized_input_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpDef::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = OpDef_descriptor_; - metadata.reflection = OpDef_reflection_; - return metadata; + protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// OpDef_ArgDef - -// optional string name = 1; -void OpDef_ArgDef::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef_ArgDef::name() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef_ArgDef::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.name) -} -void OpDef_ArgDef::set_name(const char* value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.name) -} -void OpDef_ArgDef::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.name) -} -::std::string* OpDef_ArgDef::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef_ArgDef::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.name) -} -void OpDef_ArgDef::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.name) -} - -// optional string description = 2; -void OpDef_ArgDef::clear_description() { - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef_ArgDef::description() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.description) - return description_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef_ArgDef::set_description(const ::std::string& value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.description) -} -void OpDef_ArgDef::set_description(const char* value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.description) -} -void OpDef_ArgDef::set_description(const char* value, - size_t size) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.description) -} -::std::string* OpDef_ArgDef::mutable_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.description) - return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::release_description() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.description) - - return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef_ArgDef::set_allocated_description(::std::string* description) { - if (description != NULL) { - - } else { - - } - description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.description) -} -void OpDef_ArgDef::unsafe_arena_set_allocated_description( - ::std::string* description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description != NULL) { - - } else { - - } - description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.description) -} - -// optional .tensorflow.DataType type = 3; -void OpDef_ArgDef::clear_type() { - type_ = 0; -} -::tensorflow::DataType OpDef_ArgDef::type() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type) - return static_cast< ::tensorflow::DataType >(type_); -} -void OpDef_ArgDef::set_type(::tensorflow::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type) -} - -// optional string type_attr = 4; -void OpDef_ArgDef::clear_type_attr() { - type_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef_ArgDef::type_attr() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type_attr) - return type_attr_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef_ArgDef::set_type_attr(const ::std::string& value) { - - type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type_attr) -} -void OpDef_ArgDef::set_type_attr(const char* value) { - - type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.type_attr) -} -void OpDef_ArgDef::set_type_attr(const char* value, - size_t size) { - - type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.type_attr) -} -::std::string* OpDef_ArgDef::mutable_type_attr() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.type_attr) - return type_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::release_type_attr() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.type_attr) - - return type_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::unsafe_arena_release_type_attr() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_attr) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef_ArgDef::set_allocated_type_attr(::std::string* type_attr) { - if (type_attr != NULL) { - - } else { - - } - type_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_attr, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.type_attr) -} -void OpDef_ArgDef::unsafe_arena_set_allocated_type_attr( - ::std::string* type_attr) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type_attr != NULL) { - - } else { - - } - type_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type_attr, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.type_attr) -} - -// optional string number_attr = 5; -void OpDef_ArgDef::clear_number_attr() { - number_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef_ArgDef::number_attr() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.number_attr) - return number_attr_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef_ArgDef::set_number_attr(const ::std::string& value) { - - number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.number_attr) -} -void OpDef_ArgDef::set_number_attr(const char* value) { - - number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.number_attr) -} -void OpDef_ArgDef::set_number_attr(const char* value, - size_t size) { - - number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.number_attr) -} -::std::string* OpDef_ArgDef::mutable_number_attr() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.number_attr) - return number_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::release_number_attr() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.number_attr) - - return number_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::unsafe_arena_release_number_attr() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.number_attr) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return number_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef_ArgDef::set_allocated_number_attr(::std::string* number_attr) { - if (number_attr != NULL) { - - } else { - - } - number_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), number_attr, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.number_attr) -} -void OpDef_ArgDef::unsafe_arena_set_allocated_number_attr( - ::std::string* number_attr) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (number_attr != NULL) { - - } else { - - } - number_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - number_attr, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.number_attr) -} - -// optional string type_list_attr = 6; -void OpDef_ArgDef::clear_type_list_attr() { - type_list_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef_ArgDef::type_list_attr() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type_list_attr) - return type_list_attr_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef_ArgDef::set_type_list_attr(const ::std::string& value) { - - type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type_list_attr) -} -void OpDef_ArgDef::set_type_list_attr(const char* value) { - - type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.type_list_attr) -} -void OpDef_ArgDef::set_type_list_attr(const char* value, - size_t size) { - - type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.type_list_attr) -} -::std::string* OpDef_ArgDef::mutable_type_list_attr() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.type_list_attr) - return type_list_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::release_type_list_attr() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.type_list_attr) - - return type_list_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_ArgDef::unsafe_arena_release_type_list_attr() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_list_attr) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_list_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef_ArgDef::set_allocated_type_list_attr(::std::string* type_list_attr) { - if (type_list_attr != NULL) { - - } else { - - } - type_list_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_list_attr, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.type_list_attr) -} -void OpDef_ArgDef::unsafe_arena_set_allocated_type_list_attr( - ::std::string* type_list_attr) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type_list_attr != NULL) { - - } else { - - } - type_list_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type_list_attr, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.type_list_attr) -} - -// optional bool is_ref = 16; -void OpDef_ArgDef::clear_is_ref() { - is_ref_ = false; -} -bool OpDef_ArgDef::is_ref() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.is_ref) - return is_ref_; -} -void OpDef_ArgDef::set_is_ref(bool value) { - - is_ref_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.is_ref) -} - -inline const OpDef_ArgDef* OpDef_ArgDef::internal_default_instance() { - return &OpDef_ArgDef_default_instance_.get(); -} -// ------------------------------------------------------------------- - -// OpDef_AttrDef - -// optional string name = 1; -void OpDef_AttrDef::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef_AttrDef::name() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef_AttrDef::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.name) -} -void OpDef_AttrDef::set_name(const char* value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.AttrDef.name) -} -void OpDef_AttrDef::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.AttrDef.name) -} -::std::string* OpDef_AttrDef::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_AttrDef::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_AttrDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef_AttrDef::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.name) -} -void OpDef_AttrDef::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.name) -} - -// optional string type = 2; -void OpDef_AttrDef::clear_type() { - type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef_AttrDef::type() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.type) - return type_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef_AttrDef::set_type(const ::std::string& value) { - - type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.type) -} -void OpDef_AttrDef::set_type(const char* value) { - - type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.AttrDef.type) -} -void OpDef_AttrDef::set_type(const char* value, - size_t size) { - - type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.AttrDef.type) -} -::std::string* OpDef_AttrDef::mutable_type() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.type) - return type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_AttrDef::release_type() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.type) - - return type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_AttrDef::unsafe_arena_release_type() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.type) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef_AttrDef::set_allocated_type(::std::string* type) { - if (type != NULL) { - - } else { - - } - type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.type) -} -void OpDef_AttrDef::unsafe_arena_set_allocated_type( - ::std::string* type) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type != NULL) { - - } else { - - } - type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.type) -} - -// optional .tensorflow.AttrValue default_value = 3; -bool OpDef_AttrDef::has_default_value() const { - return this != internal_default_instance() && default_value_ != NULL; -} -void OpDef_AttrDef::clear_default_value() { - if (GetArenaNoVirtual() == NULL && default_value_ != NULL) delete default_value_; - default_value_ = NULL; -} -const ::tensorflow::AttrValue& OpDef_AttrDef::default_value() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.default_value) - return default_value_ != NULL ? *default_value_ - : *::tensorflow::AttrValue::internal_default_instance(); -} -::tensorflow::AttrValue* OpDef_AttrDef::mutable_default_value() { - - if (default_value_ == NULL) { - _slow_mutable_default_value(); - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.default_value) - return default_value_; -} -::tensorflow::AttrValue* OpDef_AttrDef::release_default_value() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.default_value) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_default_value(); - } else { - ::tensorflow::AttrValue* temp = default_value_; - default_value_ = NULL; - return temp; - } -} - void OpDef_AttrDef::set_allocated_default_value(::tensorflow::AttrValue* default_value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete default_value_; - } - if (default_value != NULL) { - _slow_set_allocated_default_value(message_arena, &default_value); - } - default_value_ = default_value; - if (default_value) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.default_value) -} - -// optional string description = 4; -void OpDef_AttrDef::clear_description() { - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef_AttrDef::description() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.description) - return description_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef_AttrDef::set_description(const ::std::string& value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.description) -} -void OpDef_AttrDef::set_description(const char* value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.AttrDef.description) -} -void OpDef_AttrDef::set_description(const char* value, - size_t size) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.AttrDef.description) -} -::std::string* OpDef_AttrDef::mutable_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.description) - return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_AttrDef::release_description() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.description) - - return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef_AttrDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef_AttrDef::set_allocated_description(::std::string* description) { - if (description != NULL) { - - } else { - - } - description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.description) -} -void OpDef_AttrDef::unsafe_arena_set_allocated_description( - ::std::string* description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description != NULL) { - - } else { - - } - description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.description) -} - -// optional bool has_minimum = 5; -void OpDef_AttrDef::clear_has_minimum() { - has_minimum_ = false; -} -bool OpDef_AttrDef::has_minimum() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.has_minimum) - return has_minimum_; -} -void OpDef_AttrDef::set_has_minimum(bool value) { - - has_minimum_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.has_minimum) -} - -// optional int64 minimum = 6; -void OpDef_AttrDef::clear_minimum() { - minimum_ = GOOGLE_LONGLONG(0); -} -::google::protobuf::int64 OpDef_AttrDef::minimum() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.minimum) - return minimum_; -} -void OpDef_AttrDef::set_minimum(::google::protobuf::int64 value) { - - minimum_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.minimum) -} - -// optional .tensorflow.AttrValue allowed_values = 7; -bool OpDef_AttrDef::has_allowed_values() const { - return this != internal_default_instance() && allowed_values_ != NULL; -} -void OpDef_AttrDef::clear_allowed_values() { - if (GetArenaNoVirtual() == NULL && allowed_values_ != NULL) delete allowed_values_; - allowed_values_ = NULL; -} -const ::tensorflow::AttrValue& OpDef_AttrDef::allowed_values() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.allowed_values) - return allowed_values_ != NULL ? *allowed_values_ - : *::tensorflow::AttrValue::internal_default_instance(); -} -::tensorflow::AttrValue* OpDef_AttrDef::mutable_allowed_values() { - - if (allowed_values_ == NULL) { - _slow_mutable_allowed_values(); - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.allowed_values) - return allowed_values_; -} -::tensorflow::AttrValue* OpDef_AttrDef::release_allowed_values() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.allowed_values) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_allowed_values(); - } else { - ::tensorflow::AttrValue* temp = allowed_values_; - allowed_values_ = NULL; - return temp; - } -} - void OpDef_AttrDef::set_allocated_allowed_values(::tensorflow::AttrValue* allowed_values) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete allowed_values_; - } - if (allowed_values != NULL) { - _slow_set_allocated_allowed_values(message_arena, &allowed_values); - } - allowed_values_ = allowed_values; - if (allowed_values) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.allowed_values) -} - -inline const OpDef_AttrDef* OpDef_AttrDef::internal_default_instance() { - return &OpDef_AttrDef_default_instance_.get(); -} -// ------------------------------------------------------------------- - -// OpDef - -// optional string name = 1; -void OpDef::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef::name() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.name) -} -void OpDef::set_name(const char* value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.name) -} -void OpDef::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.name) -} -::std::string* OpDef::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.name) -} -void OpDef::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.name) -} - -// repeated .tensorflow.OpDef.ArgDef input_arg = 2; -int OpDef::input_arg_size() const { - return input_arg_.size(); -} -void OpDef::clear_input_arg() { - input_arg_.Clear(); -} -const ::tensorflow::OpDef_ArgDef& OpDef::input_arg(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.input_arg) - return input_arg_.Get(index); -} -::tensorflow::OpDef_ArgDef* OpDef::mutable_input_arg(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.input_arg) - return input_arg_.Mutable(index); -} -::tensorflow::OpDef_ArgDef* OpDef::add_input_arg() { - // @@protoc_insertion_point(field_add:tensorflow.OpDef.input_arg) - return input_arg_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >* -OpDef::mutable_input_arg() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpDef.input_arg) - return &input_arg_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >& -OpDef::input_arg() const { - // @@protoc_insertion_point(field_list:tensorflow.OpDef.input_arg) - return input_arg_; -} - -// repeated .tensorflow.OpDef.ArgDef output_arg = 3; -int OpDef::output_arg_size() const { - return output_arg_.size(); -} -void OpDef::clear_output_arg() { - output_arg_.Clear(); -} -const ::tensorflow::OpDef_ArgDef& OpDef::output_arg(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.output_arg) - return output_arg_.Get(index); -} -::tensorflow::OpDef_ArgDef* OpDef::mutable_output_arg(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.output_arg) - return output_arg_.Mutable(index); -} -::tensorflow::OpDef_ArgDef* OpDef::add_output_arg() { - // @@protoc_insertion_point(field_add:tensorflow.OpDef.output_arg) - return output_arg_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >* -OpDef::mutable_output_arg() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpDef.output_arg) - return &output_arg_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >& -OpDef::output_arg() const { - // @@protoc_insertion_point(field_list:tensorflow.OpDef.output_arg) - return output_arg_; -} - -// repeated .tensorflow.OpDef.AttrDef attr = 4; -int OpDef::attr_size() const { - return attr_.size(); -} -void OpDef::clear_attr() { - attr_.Clear(); -} -const ::tensorflow::OpDef_AttrDef& OpDef::attr(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.attr) - return attr_.Get(index); -} -::tensorflow::OpDef_AttrDef* OpDef::mutable_attr(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.attr) - return attr_.Mutable(index); -} -::tensorflow::OpDef_AttrDef* OpDef::add_attr() { - // @@protoc_insertion_point(field_add:tensorflow.OpDef.attr) - return attr_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef >* -OpDef::mutable_attr() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpDef.attr) - return &attr_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef >& -OpDef::attr() const { - // @@protoc_insertion_point(field_list:tensorflow.OpDef.attr) - return attr_; -} - -// optional .tensorflow.OpDeprecation deprecation = 8; -bool OpDef::has_deprecation() const { - return this != internal_default_instance() && deprecation_ != NULL; -} -void OpDef::clear_deprecation() { - if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) delete deprecation_; - deprecation_ = NULL; -} -const ::tensorflow::OpDeprecation& OpDef::deprecation() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.deprecation) - return deprecation_ != NULL ? *deprecation_ - : *::tensorflow::OpDeprecation::internal_default_instance(); -} -::tensorflow::OpDeprecation* OpDef::mutable_deprecation() { - - if (deprecation_ == NULL) { - _slow_mutable_deprecation(); - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.deprecation) - return deprecation_; -} -::tensorflow::OpDeprecation* OpDef::release_deprecation() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.deprecation) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_deprecation(); - } else { - ::tensorflow::OpDeprecation* temp = deprecation_; - deprecation_ = NULL; - return temp; - } -} - void OpDef::set_allocated_deprecation(::tensorflow::OpDeprecation* deprecation) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete deprecation_; - } - if (deprecation != NULL) { - _slow_set_allocated_deprecation(message_arena, &deprecation); - } - deprecation_ = deprecation; - if (deprecation) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.deprecation) -} - -// optional string summary = 5; -void OpDef::clear_summary() { - summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef::summary() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.summary) - return summary_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef::set_summary(const ::std::string& value) { - - summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.summary) -} -void OpDef::set_summary(const char* value) { - - summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.summary) -} -void OpDef::set_summary(const char* value, - size_t size) { - - summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.summary) -} -::std::string* OpDef::mutable_summary() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.summary) - return summary_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef::release_summary() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.summary) - - return summary_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef::unsafe_arena_release_summary() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.summary) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return summary_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef::set_allocated_summary(::std::string* summary) { - if (summary != NULL) { - - } else { - - } - summary_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), summary, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.summary) -} -void OpDef::unsafe_arena_set_allocated_summary( - ::std::string* summary) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (summary != NULL) { - - } else { - - } - summary_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - summary, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.summary) -} - -// optional string description = 6; -void OpDef::clear_description() { - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDef::description() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.description) - return description_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDef::set_description(const ::std::string& value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.description) -} -void OpDef::set_description(const char* value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.description) -} -void OpDef::set_description(const char* value, - size_t size) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.description) -} -::std::string* OpDef::mutable_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.description) - return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef::release_description() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.description) - - return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDef::set_allocated_description(::std::string* description) { - if (description != NULL) { - - } else { - - } - description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.description) -} -void OpDef::unsafe_arena_set_allocated_description( - ::std::string* description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description != NULL) { - - } else { - - } - description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.description) -} - -// optional bool is_commutative = 18; -void OpDef::clear_is_commutative() { - is_commutative_ = false; -} -bool OpDef::is_commutative() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.is_commutative) - return is_commutative_; -} -void OpDef::set_is_commutative(bool value) { - - is_commutative_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_commutative) -} - -// optional bool is_aggregate = 16; -void OpDef::clear_is_aggregate() { - is_aggregate_ = false; -} -bool OpDef::is_aggregate() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.is_aggregate) - return is_aggregate_; -} -void OpDef::set_is_aggregate(bool value) { - - is_aggregate_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_aggregate) -} - -// optional bool is_stateful = 17; -void OpDef::clear_is_stateful() { - is_stateful_ = false; -} -bool OpDef::is_stateful() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.is_stateful) - return is_stateful_; -} -void OpDef::set_is_stateful(bool value) { - - is_stateful_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_stateful) -} - -// optional bool allows_uninitialized_input = 19; -void OpDef::clear_allows_uninitialized_input() { - allows_uninitialized_input_ = false; -} -bool OpDef::allows_uninitialized_input() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.allows_uninitialized_input) - return allows_uninitialized_input_; -} -void OpDef::set_allows_uninitialized_input(bool value) { - - allows_uninitialized_input_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.allows_uninitialized_input) -} - -inline const OpDef* OpDef::internal_default_instance() { - return &OpDef_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void OpDeprecation::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int OpDeprecation::kVersionFieldNumber; const int OpDeprecation::kExplanationFieldNumber; @@ -3359,29 +2254,31 @@ const int OpDeprecation::kExplanationFieldNumber; OpDeprecation::OpDeprecation() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecation(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpDeprecation) } OpDeprecation::OpDeprecation(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_op_5fdef_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecation(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpDeprecation) } - -void OpDeprecation::InitAsDefaultInstance() { -} - OpDeprecation::OpDeprecation(const OpDeprecation& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + explanation_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.explanation().size() > 0) { + explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.explanation(), + GetArenaNoVirtual()); + } + version_ = from.version_; // @@protoc_insertion_point(copy_constructor:tensorflow.OpDeprecation) } @@ -3397,12 +2294,8 @@ OpDeprecation::~OpDeprecation() { } void OpDeprecation::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - explanation_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + explanation_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void OpDeprecation::ArenaDtor(void* object) { @@ -3417,25 +2310,28 @@ void OpDeprecation::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpDeprecation::descriptor() { - protobuf_AssignDescriptorsOnce(); - return OpDeprecation_descriptor_; + ::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const OpDeprecation& OpDeprecation::default_instance() { - protobuf_InitDefaults_op_5fdef_2eproto(); + ::protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecation(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed OpDeprecation_default_instance_; - OpDeprecation* OpDeprecation::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpDeprecation::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpDeprecation) - version_ = 0; + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + explanation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + version_ = 0; + _internal_metadata_.Clear(); } bool OpDeprecation::MergePartialFromCodedStream( @@ -3444,13 +2340,14 @@ bool OpDeprecation::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpDeprecation) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 version = 1; + // int32 version = 1; case 1: { - if (tag == 8) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -3458,35 +2355,32 @@ bool OpDeprecation::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_explanation; break; } - // optional string explanation = 2; + // string explanation = 2; case 2: { - if (tag == 18) { - parse_explanation: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_explanation())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->explanation().data(), this->explanation().length(), + this->explanation().data(), static_cast(this->explanation().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.OpDeprecation.explanation")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -3503,21 +2397,28 @@ failure: void OpDeprecation::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpDeprecation) - // optional int32 version = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 version = 1; if (this->version() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->version(), output); } - // optional string explanation = 2; + // string explanation = 2; if (this->explanation().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->explanation().data(), this->explanation().length(), + this->explanation().data(), static_cast(this->explanation().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDeprecation.explanation"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->explanation(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.OpDeprecation) } @@ -3525,15 +2426,18 @@ void OpDeprecation::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpDeprecation) - // optional int32 version = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 version = 1; if (this->version() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->version(), target); } - // optional string explanation = 2; + // string explanation = 2; if (this->explanation().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->explanation().data(), this->explanation().length(), + this->explanation().data(), static_cast(this->explanation().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.OpDeprecation.explanation"); target = @@ -3541,6 +2445,10 @@ void OpDeprecation::SerializeWithCachedSizes( 2, this->explanation(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpDeprecation) return target; } @@ -3549,20 +2457,25 @@ size_t OpDeprecation::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpDeprecation) size_t total_size = 0; - // optional int32 version = 1; - if (this->version() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->version()); + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - - // optional string explanation = 2; + // string explanation = 2; if (this->explanation().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->explanation()); } + // int32 version = 1; + if (this->version() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->version()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -3572,7 +2485,7 @@ size_t OpDeprecation::ByteSizeLong() const { void OpDeprecation::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpDeprecation) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const OpDeprecation* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -3581,27 +2494,23 @@ void OpDeprecation::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpDeprecation) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void OpDeprecation::MergeFrom(const OpDeprecation& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpDeprecation) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void OpDeprecation::UnsafeMergeFrom(const OpDeprecation& from) { - GOOGLE_DCHECK(&from != this); - if (from.version() != 0) { - set_version(from.version()); - } if (from.explanation().size() > 0) { set_explanation(from.explanation()); } + if (from.version() != 0) { + set_version(from.version()); + } } void OpDeprecation::CopyFrom(const ::google::protobuf::Message& from) { @@ -3615,11 +2524,10 @@ void OpDeprecation::CopyFrom(const OpDeprecation& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpDeprecation) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool OpDeprecation::IsInitialized() const { - return true; } @@ -3628,10 +2536,13 @@ void OpDeprecation::Swap(OpDeprecation* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - OpDeprecation temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + OpDeprecation* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void OpDeprecation::UnsafeArenaSwap(OpDeprecation* other) { @@ -3640,117 +2551,32 @@ void OpDeprecation::UnsafeArenaSwap(OpDeprecation* other) { InternalSwap(other); } void OpDeprecation::InternalSwap(OpDeprecation* other) { - std::swap(version_, other->version_); + using std::swap; explanation_.Swap(&other->explanation_); + swap(version_, other->version_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpDeprecation::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = OpDeprecation_descriptor_; - metadata.reflection = OpDeprecation_reflection_; - return metadata; + protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// OpDeprecation - -// optional int32 version = 1; -void OpDeprecation::clear_version() { - version_ = 0; -} -::google::protobuf::int32 OpDeprecation::version() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDeprecation.version) - return version_; -} -void OpDeprecation::set_version(::google::protobuf::int32 value) { - - version_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDeprecation.version) -} - -// optional string explanation = 2; -void OpDeprecation::clear_explanation() { - explanation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& OpDeprecation::explanation() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDeprecation.explanation) - return explanation_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void OpDeprecation::set_explanation(const ::std::string& value) { - - explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDeprecation.explanation) -} -void OpDeprecation::set_explanation(const char* value) { - - explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDeprecation.explanation) -} -void OpDeprecation::set_explanation(const char* value, - size_t size) { - - explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDeprecation.explanation) -} -::std::string* OpDeprecation::mutable_explanation() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDeprecation.explanation) - return explanation_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDeprecation::release_explanation() { - // @@protoc_insertion_point(field_release:tensorflow.OpDeprecation.explanation) - - return explanation_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* OpDeprecation::unsafe_arena_release_explanation() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDeprecation.explanation) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return explanation_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void OpDeprecation::set_allocated_explanation(::std::string* explanation) { - if (explanation != NULL) { - - } else { - - } - explanation_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), explanation, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDeprecation.explanation) -} -void OpDeprecation::unsafe_arena_set_allocated_explanation( - ::std::string* explanation) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (explanation != NULL) { - - } else { - - } - explanation_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - explanation, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDeprecation.explanation) -} - -inline const OpDeprecation* OpDeprecation::internal_default_instance() { - return &OpDeprecation_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void OpList::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int OpList::kOpFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 OpList::OpList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_op_5fdef_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_op_5fdef_2eproto::InitDefaultsOpList(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.OpList) } @@ -3758,22 +2584,17 @@ OpList::OpList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), op_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_op_5fdef_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_op_5fdef_2eproto::InitDefaultsOpList(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.OpList) } - -void OpList::InitAsDefaultInstance() { -} - OpList::OpList(const OpList& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + op_(from.op_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:tensorflow.OpList) } @@ -3787,11 +2608,7 @@ OpList::~OpList() { } void OpList::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void OpList::ArenaDtor(void* object) { @@ -3806,24 +2623,27 @@ void OpList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* OpList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return OpList_descriptor_; + ::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const OpList& OpList::default_instance() { - protobuf_InitDefaults_op_5fdef_2eproto(); + ::protobuf_op_5fdef_2eproto::InitDefaultsOpList(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed OpList_default_instance_; - OpList* OpList::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void OpList::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.OpList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + op_.Clear(); + _internal_metadata_.Clear(); } bool OpList::MergePartialFromCodedStream( @@ -3832,34 +2652,28 @@ bool OpList::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.OpList) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .tensorflow.OpDef op = 1; case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_op: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_op())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_op())); } else { goto handle_unusual; } - if (input->ExpectTag(10)) goto parse_loop_op; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -3876,12 +2690,20 @@ failure: void OpList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.OpList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .tensorflow.OpDef op = 1; - for (unsigned int i = 0, n = this->op_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->op_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->op(i), output); + 1, this->op(static_cast(i)), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.OpList) } @@ -3889,13 +2711,21 @@ void OpList::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.OpList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .tensorflow.OpDef op = 1; - for (unsigned int i = 0, n = this->op_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->op_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->op(i), false, target); + InternalWriteMessageToArray( + 1, this->op(static_cast(i)), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.OpList) return target; } @@ -3904,14 +2734,19 @@ size_t OpList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.OpList) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated .tensorflow.OpDef op = 1; { - unsigned int count = this->op_size(); + unsigned int count = static_cast(this->op_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->op(i)); + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->op(static_cast(i))); } } @@ -3924,7 +2759,7 @@ size_t OpList::ByteSizeLong() const { void OpList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.OpList) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const OpList* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -3933,21 +2768,17 @@ void OpList::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.OpList) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void OpList::MergeFrom(const OpList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.OpList) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void OpList::UnsafeMergeFrom(const OpList& from) { - GOOGLE_DCHECK(&from != this); op_.MergeFrom(from.op_); } @@ -3962,11 +2793,10 @@ void OpList::CopyFrom(const OpList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.OpList) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool OpList::IsInitialized() const { - return true; } @@ -3975,10 +2805,13 @@ void OpList::Swap(OpList* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - OpList temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + OpList* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void OpList::UnsafeArenaSwap(OpList* other) { @@ -3987,59 +2820,19 @@ void OpList::UnsafeArenaSwap(OpList* other) { InternalSwap(other); } void OpList::InternalSwap(OpList* other) { - op_.UnsafeArenaSwap(&other->op_); + using std::swap; + op_.InternalSwap(&other->op_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata OpList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = OpList_descriptor_; - metadata.reflection = OpList_reflection_; - return metadata; + protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// OpList - -// repeated .tensorflow.OpDef op = 1; -int OpList::op_size() const { - return op_.size(); -} -void OpList::clear_op() { - op_.Clear(); -} -const ::tensorflow::OpDef& OpList::op(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpList.op) - return op_.Get(index); -} -::tensorflow::OpDef* OpList::mutable_op(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpList.op) - return op_.Mutable(index); -} -::tensorflow::OpDef* OpList::add_op() { - // @@protoc_insertion_point(field_add:tensorflow.OpList.op) - return op_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef >* -OpList::mutable_op() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpList.op) - return &op_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef >& -OpList::op() const { - // @@protoc_insertion_point(field_list:tensorflow.OpList.op) - return op_; -} - -inline const OpList* OpList::internal_default_instance() { - return &OpList_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace tensorflow // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/op_def.pb.h b/modules/dnn/misc/tensorflow/op_def.pb.h index 71956e4d20..76d24275ac 100644 --- a/modules/dnn/misc/tensorflow/op_def.pb.h +++ b/modules/dnn/misc/tensorflow/op_def.pb.h @@ -8,42 +8,78 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3001000 +#if GOOGLE_PROTOBUF_VERSION < 3005000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include #include #include +#include #include #include #include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include #include "attr_value.pb.h" #include "types.pb.h" // @@protoc_insertion_point(includes) +namespace protobuf_op_5fdef_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[5]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsOpDef_ArgDefImpl(); +void InitDefaultsOpDef_ArgDef(); +void InitDefaultsOpDef_AttrDefImpl(); +void InitDefaultsOpDef_AttrDef(); +void InitDefaultsOpDefImpl(); +void InitDefaultsOpDef(); +void InitDefaultsOpDeprecationImpl(); +void InitDefaultsOpDeprecation(); +void InitDefaultsOpListImpl(); +void InitDefaultsOpList(); +inline void InitDefaults() { + InitDefaultsOpDef_ArgDef(); + InitDefaultsOpDef_AttrDef(); + InitDefaultsOpDef(); + InitDefaultsOpDeprecation(); + InitDefaultsOpList(); +} +} // namespace protobuf_op_5fdef_2eproto namespace tensorflow { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_op_5fdef_2eproto(); -void protobuf_InitDefaults_op_5fdef_2eproto(); -void protobuf_AssignDesc_op_5fdef_2eproto(); -void protobuf_ShutdownFile_op_5fdef_2eproto(); - class OpDef; +class OpDefDefaultTypeInternal; +extern OpDefDefaultTypeInternal _OpDef_default_instance_; class OpDef_ArgDef; +class OpDef_ArgDefDefaultTypeInternal; +extern OpDef_ArgDefDefaultTypeInternal _OpDef_ArgDef_default_instance_; class OpDef_AttrDef; +class OpDef_AttrDefDefaultTypeInternal; +extern OpDef_AttrDefDefaultTypeInternal _OpDef_AttrDef_default_instance_; class OpDeprecation; +class OpDeprecationDefaultTypeInternal; +extern OpDeprecationDefaultTypeInternal _OpDeprecation_default_instance_; class OpList; +class OpListDefaultTypeInternal; +extern OpListDefaultTypeInternal _OpList_default_instance_; +} // namespace tensorflow +namespace tensorflow { // =================================================================== @@ -58,48 +94,69 @@ class OpDef_ArgDef : public ::google::protobuf::Message /* @@protoc_insertion_po CopyFrom(from); return *this; } + #if LANG_CXX11 + OpDef_ArgDef(OpDef_ArgDef&& from) noexcept + : OpDef_ArgDef() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline OpDef_ArgDef& operator=(OpDef_ArgDef&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const OpDef_ArgDef& default_instance(); - static const OpDef_ArgDef* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OpDef_ArgDef* internal_default_instance() { + return reinterpret_cast( + &_OpDef_ArgDef_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; void UnsafeArenaSwap(OpDef_ArgDef* other); void Swap(OpDef_ArgDef* other); + friend void swap(OpDef_ArgDef& a, OpDef_ArgDef& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline OpDef_ArgDef* New() const { return New(NULL); } + inline OpDef_ArgDef* New() const PROTOBUF_FINAL { return New(NULL); } - OpDef_ArgDef* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + OpDef_ArgDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const OpDef_ArgDef& from); void MergeFrom(const OpDef_ArgDef& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(OpDef_ArgDef* other); - void UnsafeMergeFrom(const OpDef_ArgDef& from); protected: explicit OpDef_ArgDef(::google::protobuf::Arena* arena); private: @@ -114,89 +171,134 @@ class OpDef_ArgDef : public ::google::protobuf::Message /* @@protoc_insertion_po } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string name = 1; + // string name = 1; void clear_name(); static const int kNameFieldNumber = 1; const ::std::string& name() const; void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif void set_name(const char* value); void set_name(const char* value, size_t size); ::std::string* mutable_name(); ::std::string* release_name(); void set_allocated_name(::std::string* name); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_name(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_name( ::std::string* name); - // optional string description = 2; + // string description = 2; void clear_description(); static const int kDescriptionFieldNumber = 2; const ::std::string& description() const; void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif void set_description(const char* value); void set_description(const char* value, size_t size); ::std::string* mutable_description(); ::std::string* release_description(); void set_allocated_description(::std::string* description); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_description(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_description( ::std::string* description); - // optional .tensorflow.DataType type = 3; - void clear_type(); - static const int kTypeFieldNumber = 3; - ::tensorflow::DataType type() const; - void set_type(::tensorflow::DataType value); - - // optional string type_attr = 4; + // string type_attr = 4; void clear_type_attr(); static const int kTypeAttrFieldNumber = 4; const ::std::string& type_attr() const; void set_type_attr(const ::std::string& value); + #if LANG_CXX11 + void set_type_attr(::std::string&& value); + #endif void set_type_attr(const char* value); void set_type_attr(const char* value, size_t size); ::std::string* mutable_type_attr(); ::std::string* release_type_attr(); void set_allocated_type_attr(::std::string* type_attr); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_type_attr(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_type_attr( ::std::string* type_attr); - // optional string number_attr = 5; + // string number_attr = 5; void clear_number_attr(); static const int kNumberAttrFieldNumber = 5; const ::std::string& number_attr() const; void set_number_attr(const ::std::string& value); + #if LANG_CXX11 + void set_number_attr(::std::string&& value); + #endif void set_number_attr(const char* value); void set_number_attr(const char* value, size_t size); ::std::string* mutable_number_attr(); ::std::string* release_number_attr(); void set_allocated_number_attr(::std::string* number_attr); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_number_attr(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_number_attr( ::std::string* number_attr); - // optional string type_list_attr = 6; + // string type_list_attr = 6; void clear_type_list_attr(); static const int kTypeListAttrFieldNumber = 6; const ::std::string& type_list_attr() const; void set_type_list_attr(const ::std::string& value); + #if LANG_CXX11 + void set_type_list_attr(::std::string&& value); + #endif void set_type_list_attr(const char* value); void set_type_list_attr(const char* value, size_t size); ::std::string* mutable_type_list_attr(); ::std::string* release_type_list_attr(); void set_allocated_type_list_attr(::std::string* type_list_attr); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_type_list_attr(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_type_list_attr( ::std::string* type_list_attr); - // optional bool is_ref = 16; + // .tensorflow.DataType type = 3; + void clear_type(); + static const int kTypeFieldNumber = 3; + ::tensorflow::DataType type() const; + void set_type(::tensorflow::DataType value); + + // bool is_ref = 16; void clear_is_ref(); static const int kIsRefFieldNumber = 16; bool is_ref() const; @@ -206,7 +308,7 @@ class OpDef_ArgDef : public ::google::protobuf::Message /* @@protoc_insertion_po private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::internal::ArenaStringPtr name_; @@ -217,15 +319,9 @@ class OpDef_ArgDef : public ::google::protobuf::Message /* @@protoc_insertion_po int type_; bool is_ref_; mutable int _cached_size_; - friend void protobuf_InitDefaults_op_5fdef_2eproto_impl(); - friend void protobuf_AddDesc_op_5fdef_2eproto_impl(); - friend void protobuf_AssignDesc_op_5fdef_2eproto(); - friend void protobuf_ShutdownFile_op_5fdef_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_op_5fdef_2eproto::TableStruct; + friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDefImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed OpDef_ArgDef_default_instance_; - // ------------------------------------------------------------------- class OpDef_AttrDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpDef.AttrDef) */ { @@ -239,48 +335,69 @@ class OpDef_AttrDef : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + OpDef_AttrDef(OpDef_AttrDef&& from) noexcept + : OpDef_AttrDef() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline OpDef_AttrDef& operator=(OpDef_AttrDef&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const OpDef_AttrDef& default_instance(); - static const OpDef_AttrDef* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OpDef_AttrDef* internal_default_instance() { + return reinterpret_cast( + &_OpDef_AttrDef_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; void UnsafeArenaSwap(OpDef_AttrDef* other); void Swap(OpDef_AttrDef* other); + friend void swap(OpDef_AttrDef& a, OpDef_AttrDef& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline OpDef_AttrDef* New() const { return New(NULL); } + inline OpDef_AttrDef* New() const PROTOBUF_FINAL { return New(NULL); } - OpDef_AttrDef* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + OpDef_AttrDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const OpDef_AttrDef& from); void MergeFrom(const OpDef_AttrDef& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(OpDef_AttrDef* other); - void UnsafeMergeFrom(const OpDef_AttrDef& from); protected: explicit OpDef_AttrDef(::google::protobuf::Arena* arena); private: @@ -295,107 +412,128 @@ class OpDef_AttrDef : public ::google::protobuf::Message /* @@protoc_insertion_p } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional string name = 1; + // string name = 1; void clear_name(); static const int kNameFieldNumber = 1; const ::std::string& name() const; void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif void set_name(const char* value); void set_name(const char* value, size_t size); ::std::string* mutable_name(); ::std::string* release_name(); void set_allocated_name(::std::string* name); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_name(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_name( ::std::string* name); - // optional string type = 2; + // string type = 2; void clear_type(); static const int kTypeFieldNumber = 2; const ::std::string& type() const; void set_type(const ::std::string& value); + #if LANG_CXX11 + void set_type(::std::string&& value); + #endif void set_type(const char* value); void set_type(const char* value, size_t size); ::std::string* mutable_type(); ::std::string* release_type(); void set_allocated_type(::std::string* type); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_type(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_type( ::std::string* type); - // optional .tensorflow.AttrValue default_value = 3; - bool has_default_value() const; - void clear_default_value(); - static const int kDefaultValueFieldNumber = 3; - private: - void _slow_mutable_default_value(); - void _slow_set_allocated_default_value( - ::google::protobuf::Arena* message_arena, ::tensorflow::AttrValue** default_value); - ::tensorflow::AttrValue* _slow_release_default_value(); - public: - const ::tensorflow::AttrValue& default_value() const; - ::tensorflow::AttrValue* mutable_default_value(); - ::tensorflow::AttrValue* release_default_value(); - void set_allocated_default_value(::tensorflow::AttrValue* default_value); - ::tensorflow::AttrValue* unsafe_arena_release_default_value(); - void unsafe_arena_set_allocated_default_value( - ::tensorflow::AttrValue* default_value); - - // optional string description = 4; + // string description = 4; void clear_description(); static const int kDescriptionFieldNumber = 4; const ::std::string& description() const; void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif void set_description(const char* value); void set_description(const char* value, size_t size); ::std::string* mutable_description(); ::std::string* release_description(); void set_allocated_description(::std::string* description); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_description(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_description( ::std::string* description); - // optional bool has_minimum = 5; - void clear_has_minimum(); - static const int kHasMinimumFieldNumber = 5; - bool has_minimum() const; - void set_has_minimum(bool value); + // .tensorflow.AttrValue default_value = 3; + bool has_default_value() const; + void clear_default_value(); + static const int kDefaultValueFieldNumber = 3; + private: + void _slow_mutable_default_value(); + public: + const ::tensorflow::AttrValue& default_value() const; + ::tensorflow::AttrValue* release_default_value(); + ::tensorflow::AttrValue* mutable_default_value(); + void set_allocated_default_value(::tensorflow::AttrValue* default_value); + void unsafe_arena_set_allocated_default_value( + ::tensorflow::AttrValue* default_value); + ::tensorflow::AttrValue* unsafe_arena_release_default_value(); - // optional int64 minimum = 6; - void clear_minimum(); - static const int kMinimumFieldNumber = 6; - ::google::protobuf::int64 minimum() const; - void set_minimum(::google::protobuf::int64 value); - - // optional .tensorflow.AttrValue allowed_values = 7; + // .tensorflow.AttrValue allowed_values = 7; bool has_allowed_values() const; void clear_allowed_values(); static const int kAllowedValuesFieldNumber = 7; private: void _slow_mutable_allowed_values(); - void _slow_set_allocated_allowed_values( - ::google::protobuf::Arena* message_arena, ::tensorflow::AttrValue** allowed_values); - ::tensorflow::AttrValue* _slow_release_allowed_values(); public: const ::tensorflow::AttrValue& allowed_values() const; - ::tensorflow::AttrValue* mutable_allowed_values(); ::tensorflow::AttrValue* release_allowed_values(); + ::tensorflow::AttrValue* mutable_allowed_values(); void set_allocated_allowed_values(::tensorflow::AttrValue* allowed_values); - ::tensorflow::AttrValue* unsafe_arena_release_allowed_values(); void unsafe_arena_set_allocated_allowed_values( ::tensorflow::AttrValue* allowed_values); + ::tensorflow::AttrValue* unsafe_arena_release_allowed_values(); + + // int64 minimum = 6; + void clear_minimum(); + static const int kMinimumFieldNumber = 6; + ::google::protobuf::int64 minimum() const; + void set_minimum(::google::protobuf::int64 value); + + // bool has_minimum = 5; + void clear_has_minimum(); + static const int kHasMinimumFieldNumber = 5; + bool has_minimum() const; + void set_has_minimum(bool value); // @@protoc_insertion_point(class_scope:tensorflow.OpDef.AttrDef) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::internal::ArenaStringPtr name_; @@ -406,15 +544,9 @@ class OpDef_AttrDef : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::int64 minimum_; bool has_minimum_; mutable int _cached_size_; - friend void protobuf_InitDefaults_op_5fdef_2eproto_impl(); - friend void protobuf_AddDesc_op_5fdef_2eproto_impl(); - friend void protobuf_AssignDesc_op_5fdef_2eproto(); - friend void protobuf_ShutdownFile_op_5fdef_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_op_5fdef_2eproto::TableStruct; + friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDefImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed OpDef_AttrDef_default_instance_; - // ------------------------------------------------------------------- class OpDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpDef) */ { @@ -428,48 +560,69 @@ class OpDef : public ::google::protobuf::Message /* @@protoc_insertion_point(cla CopyFrom(from); return *this; } + #if LANG_CXX11 + OpDef(OpDef&& from) noexcept + : OpDef() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline OpDef& operator=(OpDef&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const OpDef& default_instance(); - static const OpDef* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OpDef* internal_default_instance() { + return reinterpret_cast( + &_OpDef_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; void UnsafeArenaSwap(OpDef* other); void Swap(OpDef* other); + friend void swap(OpDef& a, OpDef& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline OpDef* New() const { return New(NULL); } + inline OpDef* New() const PROTOBUF_FINAL { return New(NULL); } - OpDef* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + OpDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const OpDef& from); void MergeFrom(const OpDef& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(OpDef* other); - void UnsafeMergeFrom(const OpDef& from); protected: explicit OpDef(::google::protobuf::Arena* arena); private: @@ -484,7 +637,7 @@ class OpDef : public ::google::protobuf::Message /* @@protoc_insertion_point(cla } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -493,20 +646,6 @@ class OpDef : public ::google::protobuf::Message /* @@protoc_insertion_point(cla // accessors ------------------------------------------------------- - // optional string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - ::std::string* unsafe_arena_release_name(); - void unsafe_arena_set_allocated_name( - ::std::string* name); - // repeated .tensorflow.OpDef.ArgDef input_arg = 2; int input_arg_size() const; void clear_input_arg(); @@ -543,71 +682,109 @@ class OpDef : public ::google::protobuf::Message /* @@protoc_insertion_point(cla const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef >& attr() const; - // optional .tensorflow.OpDeprecation deprecation = 8; - bool has_deprecation() const; - void clear_deprecation(); - static const int kDeprecationFieldNumber = 8; - private: - void _slow_mutable_deprecation(); - void _slow_set_allocated_deprecation( - ::google::protobuf::Arena* message_arena, ::tensorflow::OpDeprecation** deprecation); - ::tensorflow::OpDeprecation* _slow_release_deprecation(); - public: - const ::tensorflow::OpDeprecation& deprecation() const; - ::tensorflow::OpDeprecation* mutable_deprecation(); - ::tensorflow::OpDeprecation* release_deprecation(); - void set_allocated_deprecation(::tensorflow::OpDeprecation* deprecation); - ::tensorflow::OpDeprecation* unsafe_arena_release_deprecation(); - void unsafe_arena_set_allocated_deprecation( - ::tensorflow::OpDeprecation* deprecation); + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + ::std::string* unsafe_arena_release_name(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_name( + ::std::string* name); - // optional string summary = 5; + // string summary = 5; void clear_summary(); static const int kSummaryFieldNumber = 5; const ::std::string& summary() const; void set_summary(const ::std::string& value); + #if LANG_CXX11 + void set_summary(::std::string&& value); + #endif void set_summary(const char* value); void set_summary(const char* value, size_t size); ::std::string* mutable_summary(); ::std::string* release_summary(); void set_allocated_summary(::std::string* summary); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_summary(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_summary( ::std::string* summary); - // optional string description = 6; + // string description = 6; void clear_description(); static const int kDescriptionFieldNumber = 6; const ::std::string& description() const; void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif void set_description(const char* value); void set_description(const char* value, size_t size); ::std::string* mutable_description(); ::std::string* release_description(); void set_allocated_description(::std::string* description); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_description(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_description( ::std::string* description); - // optional bool is_commutative = 18; + // .tensorflow.OpDeprecation deprecation = 8; + bool has_deprecation() const; + void clear_deprecation(); + static const int kDeprecationFieldNumber = 8; + private: + void _slow_mutable_deprecation(); + public: + const ::tensorflow::OpDeprecation& deprecation() const; + ::tensorflow::OpDeprecation* release_deprecation(); + ::tensorflow::OpDeprecation* mutable_deprecation(); + void set_allocated_deprecation(::tensorflow::OpDeprecation* deprecation); + void unsafe_arena_set_allocated_deprecation( + ::tensorflow::OpDeprecation* deprecation); + ::tensorflow::OpDeprecation* unsafe_arena_release_deprecation(); + + // bool is_commutative = 18; void clear_is_commutative(); static const int kIsCommutativeFieldNumber = 18; bool is_commutative() const; void set_is_commutative(bool value); - // optional bool is_aggregate = 16; + // bool is_aggregate = 16; void clear_is_aggregate(); static const int kIsAggregateFieldNumber = 16; bool is_aggregate() const; void set_is_aggregate(bool value); - // optional bool is_stateful = 17; + // bool is_stateful = 17; void clear_is_stateful(); static const int kIsStatefulFieldNumber = 17; bool is_stateful() const; void set_is_stateful(bool value); - // optional bool allows_uninitialized_input = 19; + // bool allows_uninitialized_input = 19; void clear_allows_uninitialized_input(); static const int kAllowsUninitializedInputFieldNumber = 19; bool allows_uninitialized_input() const; @@ -617,7 +794,7 @@ class OpDef : public ::google::protobuf::Message /* @@protoc_insertion_point(cla private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef > input_arg_; @@ -632,15 +809,9 @@ class OpDef : public ::google::protobuf::Message /* @@protoc_insertion_point(cla bool is_stateful_; bool allows_uninitialized_input_; mutable int _cached_size_; - friend void protobuf_InitDefaults_op_5fdef_2eproto_impl(); - friend void protobuf_AddDesc_op_5fdef_2eproto_impl(); - friend void protobuf_AssignDesc_op_5fdef_2eproto(); - friend void protobuf_ShutdownFile_op_5fdef_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_op_5fdef_2eproto::TableStruct; + friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpDefImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed OpDef_default_instance_; - // ------------------------------------------------------------------- class OpDeprecation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpDeprecation) */ { @@ -654,48 +825,69 @@ class OpDeprecation : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + OpDeprecation(OpDeprecation&& from) noexcept + : OpDeprecation() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline OpDeprecation& operator=(OpDeprecation&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const OpDeprecation& default_instance(); - static const OpDeprecation* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OpDeprecation* internal_default_instance() { + return reinterpret_cast( + &_OpDeprecation_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; void UnsafeArenaSwap(OpDeprecation* other); void Swap(OpDeprecation* other); + friend void swap(OpDeprecation& a, OpDeprecation& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline OpDeprecation* New() const { return New(NULL); } + inline OpDeprecation* New() const PROTOBUF_FINAL { return New(NULL); } - OpDeprecation* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + OpDeprecation* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const OpDeprecation& from); void MergeFrom(const OpDeprecation& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(OpDeprecation* other); - void UnsafeMergeFrom(const OpDeprecation& from); protected: explicit OpDeprecation(::google::protobuf::Arena* arena); private: @@ -710,51 +902,54 @@ class OpDeprecation : public ::google::protobuf::Message /* @@protoc_insertion_p } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int32 version = 1; - void clear_version(); - static const int kVersionFieldNumber = 1; - ::google::protobuf::int32 version() const; - void set_version(::google::protobuf::int32 value); - - // optional string explanation = 2; + // string explanation = 2; void clear_explanation(); static const int kExplanationFieldNumber = 2; const ::std::string& explanation() const; void set_explanation(const ::std::string& value); + #if LANG_CXX11 + void set_explanation(::std::string&& value); + #endif void set_explanation(const char* value); void set_explanation(const char* value, size_t size); ::std::string* mutable_explanation(); ::std::string* release_explanation(); void set_allocated_explanation(::std::string* explanation); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_explanation(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_explanation( ::std::string* explanation); + // int32 version = 1; + void clear_version(); + static const int kVersionFieldNumber = 1; + ::google::protobuf::int32 version() const; + void set_version(::google::protobuf::int32 value); + // @@protoc_insertion_point(class_scope:tensorflow.OpDeprecation) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::internal::ArenaStringPtr explanation_; ::google::protobuf::int32 version_; mutable int _cached_size_; - friend void protobuf_InitDefaults_op_5fdef_2eproto_impl(); - friend void protobuf_AddDesc_op_5fdef_2eproto_impl(); - friend void protobuf_AssignDesc_op_5fdef_2eproto(); - friend void protobuf_ShutdownFile_op_5fdef_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_op_5fdef_2eproto::TableStruct; + friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecationImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed OpDeprecation_default_instance_; - // ------------------------------------------------------------------- class OpList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpList) */ { @@ -768,48 +963,69 @@ class OpList : public ::google::protobuf::Message /* @@protoc_insertion_point(cl CopyFrom(from); return *this; } + #if LANG_CXX11 + OpList(OpList&& from) noexcept + : OpList() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline OpList& operator=(OpList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const OpList& default_instance(); - static const OpList* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OpList* internal_default_instance() { + return reinterpret_cast( + &_OpList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; void UnsafeArenaSwap(OpList* other); void Swap(OpList* other); + friend void swap(OpList& a, OpList& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline OpList* New() const { return New(NULL); } + inline OpList* New() const PROTOBUF_FINAL { return New(NULL); } - OpList* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + OpList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const OpList& from); void MergeFrom(const OpList& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(OpList* other); - void UnsafeMergeFrom(const OpList& from); protected: explicit OpList(::google::protobuf::Arena* arena); private: @@ -824,7 +1040,7 @@ class OpList : public ::google::protobuf::Message /* @@protoc_insertion_point(cl } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -846,42 +1062,48 @@ class OpList : public ::google::protobuf::Message /* @@protoc_insertion_point(cl private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef > op_; mutable int _cached_size_; - friend void protobuf_InitDefaults_op_5fdef_2eproto_impl(); - friend void protobuf_AddDesc_op_5fdef_2eproto_impl(); - friend void protobuf_AssignDesc_op_5fdef_2eproto(); - friend void protobuf_ShutdownFile_op_5fdef_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_op_5fdef_2eproto::TableStruct; + friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpListImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed OpList_default_instance_; - // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // OpDef_ArgDef -// optional string name = 1; +// string name = 1; inline void OpDef_ArgDef::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef_ArgDef::name() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.Get(); } inline void OpDef_ArgDef::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.name) } +#if LANG_CXX11 +inline void OpDef_ArgDef::set_name(::std::string&& value) { + + name_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.name) +} +#endif inline void OpDef_ArgDef::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -904,13 +1126,6 @@ inline ::std::string* OpDef_ArgDef::release_name() { return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef_ArgDef::set_allocated_name(::std::string* name) { if (name != NULL) { @@ -921,6 +1136,13 @@ inline void OpDef_ArgDef::set_allocated_name(::std::string* name) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.name) } +inline ::std::string* OpDef_ArgDef::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.name) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef_ArgDef::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -934,20 +1156,29 @@ inline void OpDef_ArgDef::unsafe_arena_set_allocated_name( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.name) } -// optional string description = 2; +// string description = 2; inline void OpDef_ArgDef::clear_description() { description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef_ArgDef::description() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.description) - return description_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return description_.Get(); } inline void OpDef_ArgDef::set_description(const ::std::string& value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.description) } +#if LANG_CXX11 +inline void OpDef_ArgDef::set_description(::std::string&& value) { + + description_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.description) +} +#endif inline void OpDef_ArgDef::set_description(const char* value) { + GOOGLE_DCHECK(value != NULL); description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -970,13 +1201,6 @@ inline ::std::string* OpDef_ArgDef::release_description() { return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef_ArgDef::set_allocated_description(::std::string* description) { if (description != NULL) { @@ -987,6 +1211,13 @@ inline void OpDef_ArgDef::set_allocated_description(::std::string* description) GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.description) } +inline ::std::string* OpDef_ArgDef::unsafe_arena_release_description() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.description) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef_ArgDef::unsafe_arena_set_allocated_description( ::std::string* description) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1000,7 +1231,7 @@ inline void OpDef_ArgDef::unsafe_arena_set_allocated_description( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.description) } -// optional .tensorflow.DataType type = 3; +// .tensorflow.DataType type = 3; inline void OpDef_ArgDef::clear_type() { type_ = 0; } @@ -1014,20 +1245,29 @@ inline void OpDef_ArgDef::set_type(::tensorflow::DataType value) { // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type) } -// optional string type_attr = 4; +// string type_attr = 4; inline void OpDef_ArgDef::clear_type_attr() { type_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef_ArgDef::type_attr() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type_attr) - return type_attr_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return type_attr_.Get(); } inline void OpDef_ArgDef::set_type_attr(const ::std::string& value) { type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type_attr) } +#if LANG_CXX11 +inline void OpDef_ArgDef::set_type_attr(::std::string&& value) { + + type_attr_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.type_attr) +} +#endif inline void OpDef_ArgDef::set_type_attr(const char* value) { + GOOGLE_DCHECK(value != NULL); type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1050,13 +1290,6 @@ inline ::std::string* OpDef_ArgDef::release_type_attr() { return type_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_type_attr() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_attr) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef_ArgDef::set_allocated_type_attr(::std::string* type_attr) { if (type_attr != NULL) { @@ -1067,6 +1300,13 @@ inline void OpDef_ArgDef::set_allocated_type_attr(::std::string* type_attr) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.type_attr) } +inline ::std::string* OpDef_ArgDef::unsafe_arena_release_type_attr() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_attr) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return type_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef_ArgDef::unsafe_arena_set_allocated_type_attr( ::std::string* type_attr) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1080,20 +1320,29 @@ inline void OpDef_ArgDef::unsafe_arena_set_allocated_type_attr( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.type_attr) } -// optional string number_attr = 5; +// string number_attr = 5; inline void OpDef_ArgDef::clear_number_attr() { number_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef_ArgDef::number_attr() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.number_attr) - return number_attr_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return number_attr_.Get(); } inline void OpDef_ArgDef::set_number_attr(const ::std::string& value) { number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.number_attr) } +#if LANG_CXX11 +inline void OpDef_ArgDef::set_number_attr(::std::string&& value) { + + number_attr_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.number_attr) +} +#endif inline void OpDef_ArgDef::set_number_attr(const char* value) { + GOOGLE_DCHECK(value != NULL); number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1116,13 +1365,6 @@ inline ::std::string* OpDef_ArgDef::release_number_attr() { return number_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_number_attr() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.number_attr) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return number_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef_ArgDef::set_allocated_number_attr(::std::string* number_attr) { if (number_attr != NULL) { @@ -1133,6 +1375,13 @@ inline void OpDef_ArgDef::set_allocated_number_attr(::std::string* number_attr) GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.number_attr) } +inline ::std::string* OpDef_ArgDef::unsafe_arena_release_number_attr() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.number_attr) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return number_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef_ArgDef::unsafe_arena_set_allocated_number_attr( ::std::string* number_attr) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1146,20 +1395,29 @@ inline void OpDef_ArgDef::unsafe_arena_set_allocated_number_attr( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.number_attr) } -// optional string type_list_attr = 6; +// string type_list_attr = 6; inline void OpDef_ArgDef::clear_type_list_attr() { type_list_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef_ArgDef::type_list_attr() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type_list_attr) - return type_list_attr_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return type_list_attr_.Get(); } inline void OpDef_ArgDef::set_type_list_attr(const ::std::string& value) { type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type_list_attr) } +#if LANG_CXX11 +inline void OpDef_ArgDef::set_type_list_attr(::std::string&& value) { + + type_list_attr_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.type_list_attr) +} +#endif inline void OpDef_ArgDef::set_type_list_attr(const char* value) { + GOOGLE_DCHECK(value != NULL); type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1182,13 +1440,6 @@ inline ::std::string* OpDef_ArgDef::release_type_list_attr() { return type_list_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_type_list_attr() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_list_attr) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_list_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef_ArgDef::set_allocated_type_list_attr(::std::string* type_list_attr) { if (type_list_attr != NULL) { @@ -1199,6 +1450,13 @@ inline void OpDef_ArgDef::set_allocated_type_list_attr(::std::string* type_list_ GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.type_list_attr) } +inline ::std::string* OpDef_ArgDef::unsafe_arena_release_type_list_attr() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_list_attr) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return type_list_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef_ArgDef::unsafe_arena_set_allocated_type_list_attr( ::std::string* type_list_attr) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1212,7 +1470,7 @@ inline void OpDef_ArgDef::unsafe_arena_set_allocated_type_list_attr( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.type_list_attr) } -// optional bool is_ref = 16; +// bool is_ref = 16; inline void OpDef_ArgDef::clear_is_ref() { is_ref_ = false; } @@ -1226,27 +1484,33 @@ inline void OpDef_ArgDef::set_is_ref(bool value) { // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.is_ref) } -inline const OpDef_ArgDef* OpDef_ArgDef::internal_default_instance() { - return &OpDef_ArgDef_default_instance_.get(); -} // ------------------------------------------------------------------- // OpDef_AttrDef -// optional string name = 1; +// string name = 1; inline void OpDef_AttrDef::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef_AttrDef::name() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.Get(); } inline void OpDef_AttrDef::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.name) } +#if LANG_CXX11 +inline void OpDef_AttrDef::set_name(::std::string&& value) { + + name_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.AttrDef.name) +} +#endif inline void OpDef_AttrDef::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1269,13 +1533,6 @@ inline ::std::string* OpDef_AttrDef::release_name() { return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef_AttrDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef_AttrDef::set_allocated_name(::std::string* name) { if (name != NULL) { @@ -1286,6 +1543,13 @@ inline void OpDef_AttrDef::set_allocated_name(::std::string* name) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.name) } +inline ::std::string* OpDef_AttrDef::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.name) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef_AttrDef::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1299,20 +1563,29 @@ inline void OpDef_AttrDef::unsafe_arena_set_allocated_name( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.name) } -// optional string type = 2; +// string type = 2; inline void OpDef_AttrDef::clear_type() { type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef_AttrDef::type() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.type) - return type_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return type_.Get(); } inline void OpDef_AttrDef::set_type(const ::std::string& value) { type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.type) } +#if LANG_CXX11 +inline void OpDef_AttrDef::set_type(::std::string&& value) { + + type_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.AttrDef.type) +} +#endif inline void OpDef_AttrDef::set_type(const char* value) { + GOOGLE_DCHECK(value != NULL); type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1335,13 +1608,6 @@ inline ::std::string* OpDef_AttrDef::release_type() { return type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef_AttrDef::unsafe_arena_release_type() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.type) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef_AttrDef::set_allocated_type(::std::string* type) { if (type != NULL) { @@ -1352,6 +1618,13 @@ inline void OpDef_AttrDef::set_allocated_type(::std::string* type) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.type) } +inline ::std::string* OpDef_AttrDef::unsafe_arena_release_type() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.type) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef_AttrDef::unsafe_arena_set_allocated_type( ::std::string* type) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1365,18 +1638,32 @@ inline void OpDef_AttrDef::unsafe_arena_set_allocated_type( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.type) } -// optional .tensorflow.AttrValue default_value = 3; +// .tensorflow.AttrValue default_value = 3; inline bool OpDef_AttrDef::has_default_value() const { return this != internal_default_instance() && default_value_ != NULL; } -inline void OpDef_AttrDef::clear_default_value() { - if (GetArenaNoVirtual() == NULL && default_value_ != NULL) delete default_value_; - default_value_ = NULL; -} inline const ::tensorflow::AttrValue& OpDef_AttrDef::default_value() const { + const ::tensorflow::AttrValue* p = default_value_; // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.default_value) - return default_value_ != NULL ? *default_value_ - : *::tensorflow::AttrValue::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::tensorflow::_AttrValue_default_instance_); +} +inline ::tensorflow::AttrValue* OpDef_AttrDef::release_default_value() { + // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.default_value) + + ::tensorflow::AttrValue* temp = default_value_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + default_value_ = NULL; + return temp; +} +inline ::tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_default_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.default_value) + + ::tensorflow::AttrValue* temp = default_value_; + default_value_ = NULL; + return temp; } inline ::tensorflow::AttrValue* OpDef_AttrDef::mutable_default_value() { @@ -1386,48 +1673,49 @@ inline ::tensorflow::AttrValue* OpDef_AttrDef::mutable_default_value() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.default_value) return default_value_; } -inline ::tensorflow::AttrValue* OpDef_AttrDef::release_default_value() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.default_value) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_default_value(); - } else { - ::tensorflow::AttrValue* temp = default_value_; - default_value_ = NULL; - return temp; - } -} -inline void OpDef_AttrDef::set_allocated_default_value(::tensorflow::AttrValue* default_value) { +inline void OpDef_AttrDef::set_allocated_default_value(::tensorflow::AttrValue* default_value) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { - delete default_value_; + delete reinterpret_cast< ::google::protobuf::MessageLite*>(default_value_); } - if (default_value != NULL) { - _slow_set_allocated_default_value(message_arena, &default_value); - } - default_value_ = default_value; if (default_value) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(default_value)->GetArena(); + if (message_arena != submessage_arena) { + default_value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, default_value, submessage_arena); + } } else { } + default_value_ = default_value; // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.default_value) } -// optional string description = 4; +// string description = 4; inline void OpDef_AttrDef::clear_description() { description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef_AttrDef::description() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.description) - return description_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return description_.Get(); } inline void OpDef_AttrDef::set_description(const ::std::string& value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.description) } +#if LANG_CXX11 +inline void OpDef_AttrDef::set_description(::std::string&& value) { + + description_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.AttrDef.description) +} +#endif inline void OpDef_AttrDef::set_description(const char* value) { + GOOGLE_DCHECK(value != NULL); description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1450,13 +1738,6 @@ inline ::std::string* OpDef_AttrDef::release_description() { return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef_AttrDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef_AttrDef::set_allocated_description(::std::string* description) { if (description != NULL) { @@ -1467,6 +1748,13 @@ inline void OpDef_AttrDef::set_allocated_description(::std::string* description) GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.description) } +inline ::std::string* OpDef_AttrDef::unsafe_arena_release_description() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.description) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef_AttrDef::unsafe_arena_set_allocated_description( ::std::string* description) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1480,7 +1768,7 @@ inline void OpDef_AttrDef::unsafe_arena_set_allocated_description( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.description) } -// optional bool has_minimum = 5; +// bool has_minimum = 5; inline void OpDef_AttrDef::clear_has_minimum() { has_minimum_ = false; } @@ -1494,7 +1782,7 @@ inline void OpDef_AttrDef::set_has_minimum(bool value) { // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.has_minimum) } -// optional int64 minimum = 6; +// int64 minimum = 6; inline void OpDef_AttrDef::clear_minimum() { minimum_ = GOOGLE_LONGLONG(0); } @@ -1508,18 +1796,32 @@ inline void OpDef_AttrDef::set_minimum(::google::protobuf::int64 value) { // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.minimum) } -// optional .tensorflow.AttrValue allowed_values = 7; +// .tensorflow.AttrValue allowed_values = 7; inline bool OpDef_AttrDef::has_allowed_values() const { return this != internal_default_instance() && allowed_values_ != NULL; } -inline void OpDef_AttrDef::clear_allowed_values() { - if (GetArenaNoVirtual() == NULL && allowed_values_ != NULL) delete allowed_values_; - allowed_values_ = NULL; -} inline const ::tensorflow::AttrValue& OpDef_AttrDef::allowed_values() const { + const ::tensorflow::AttrValue* p = allowed_values_; // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.allowed_values) - return allowed_values_ != NULL ? *allowed_values_ - : *::tensorflow::AttrValue::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::tensorflow::_AttrValue_default_instance_); +} +inline ::tensorflow::AttrValue* OpDef_AttrDef::release_allowed_values() { + // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.allowed_values) + + ::tensorflow::AttrValue* temp = allowed_values_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + allowed_values_ = NULL; + return temp; +} +inline ::tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_allowed_values() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.allowed_values) + + ::tensorflow::AttrValue* temp = allowed_values_; + allowed_values_ = NULL; + return temp; } inline ::tensorflow::AttrValue* OpDef_AttrDef::mutable_allowed_values() { @@ -1529,55 +1831,53 @@ inline ::tensorflow::AttrValue* OpDef_AttrDef::mutable_allowed_values() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.allowed_values) return allowed_values_; } -inline ::tensorflow::AttrValue* OpDef_AttrDef::release_allowed_values() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.allowed_values) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_allowed_values(); - } else { - ::tensorflow::AttrValue* temp = allowed_values_; - allowed_values_ = NULL; - return temp; - } -} -inline void OpDef_AttrDef::set_allocated_allowed_values(::tensorflow::AttrValue* allowed_values) { +inline void OpDef_AttrDef::set_allocated_allowed_values(::tensorflow::AttrValue* allowed_values) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { - delete allowed_values_; + delete reinterpret_cast< ::google::protobuf::MessageLite*>(allowed_values_); } - if (allowed_values != NULL) { - _slow_set_allocated_allowed_values(message_arena, &allowed_values); - } - allowed_values_ = allowed_values; if (allowed_values) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(allowed_values)->GetArena(); + if (message_arena != submessage_arena) { + allowed_values = ::google::protobuf::internal::GetOwnedMessage( + message_arena, allowed_values, submessage_arena); + } } else { } + allowed_values_ = allowed_values; // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.allowed_values) } -inline const OpDef_AttrDef* OpDef_AttrDef::internal_default_instance() { - return &OpDef_AttrDef_default_instance_.get(); -} // ------------------------------------------------------------------- // OpDef -// optional string name = 1; +// string name = 1; inline void OpDef::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef::name() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.Get(); } inline void OpDef::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.name) } +#if LANG_CXX11 +inline void OpDef::set_name(::std::string&& value) { + + name_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.name) +} +#endif inline void OpDef::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1600,13 +1900,6 @@ inline ::std::string* OpDef::release_name() { return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef::set_allocated_name(::std::string* name) { if (name != NULL) { @@ -1617,6 +1910,13 @@ inline void OpDef::set_allocated_name(::std::string* name) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.name) } +inline ::std::string* OpDef::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.name) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1720,18 +2020,38 @@ OpDef::attr() const { return attr_; } -// optional .tensorflow.OpDeprecation deprecation = 8; +// .tensorflow.OpDeprecation deprecation = 8; inline bool OpDef::has_deprecation() const { return this != internal_default_instance() && deprecation_ != NULL; } inline void OpDef::clear_deprecation() { - if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) delete deprecation_; + if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) { + delete deprecation_; + } deprecation_ = NULL; } inline const ::tensorflow::OpDeprecation& OpDef::deprecation() const { + const ::tensorflow::OpDeprecation* p = deprecation_; // @@protoc_insertion_point(field_get:tensorflow.OpDef.deprecation) - return deprecation_ != NULL ? *deprecation_ - : *::tensorflow::OpDeprecation::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::tensorflow::_OpDeprecation_default_instance_); +} +inline ::tensorflow::OpDeprecation* OpDef::release_deprecation() { + // @@protoc_insertion_point(field_release:tensorflow.OpDef.deprecation) + + ::tensorflow::OpDeprecation* temp = deprecation_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + deprecation_ = NULL; + return temp; +} +inline ::tensorflow::OpDeprecation* OpDef::unsafe_arena_release_deprecation() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.deprecation) + + ::tensorflow::OpDeprecation* temp = deprecation_; + deprecation_ = NULL; + return temp; } inline ::tensorflow::OpDeprecation* OpDef::mutable_deprecation() { @@ -1741,48 +2061,49 @@ inline ::tensorflow::OpDeprecation* OpDef::mutable_deprecation() { // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.deprecation) return deprecation_; } -inline ::tensorflow::OpDeprecation* OpDef::release_deprecation() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.deprecation) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_deprecation(); - } else { - ::tensorflow::OpDeprecation* temp = deprecation_; - deprecation_ = NULL; - return temp; - } -} -inline void OpDef::set_allocated_deprecation(::tensorflow::OpDeprecation* deprecation) { +inline void OpDef::set_allocated_deprecation(::tensorflow::OpDeprecation* deprecation) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete deprecation_; } - if (deprecation != NULL) { - _slow_set_allocated_deprecation(message_arena, &deprecation); - } - deprecation_ = deprecation; if (deprecation) { + ::google::protobuf::Arena* submessage_arena = + ::google::protobuf::Arena::GetArena(deprecation); + if (message_arena != submessage_arena) { + deprecation = ::google::protobuf::internal::GetOwnedMessage( + message_arena, deprecation, submessage_arena); + } } else { } + deprecation_ = deprecation; // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.deprecation) } -// optional string summary = 5; +// string summary = 5; inline void OpDef::clear_summary() { summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef::summary() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.summary) - return summary_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return summary_.Get(); } inline void OpDef::set_summary(const ::std::string& value) { summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.summary) } +#if LANG_CXX11 +inline void OpDef::set_summary(::std::string&& value) { + + summary_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.summary) +} +#endif inline void OpDef::set_summary(const char* value) { + GOOGLE_DCHECK(value != NULL); summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1805,13 +2126,6 @@ inline ::std::string* OpDef::release_summary() { return summary_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef::unsafe_arena_release_summary() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.summary) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return summary_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef::set_allocated_summary(::std::string* summary) { if (summary != NULL) { @@ -1822,6 +2136,13 @@ inline void OpDef::set_allocated_summary(::std::string* summary) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.summary) } +inline ::std::string* OpDef::unsafe_arena_release_summary() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.summary) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return summary_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef::unsafe_arena_set_allocated_summary( ::std::string* summary) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1835,20 +2156,29 @@ inline void OpDef::unsafe_arena_set_allocated_summary( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.summary) } -// optional string description = 6; +// string description = 6; inline void OpDef::clear_description() { description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDef::description() const { // @@protoc_insertion_point(field_get:tensorflow.OpDef.description) - return description_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return description_.Get(); } inline void OpDef::set_description(const ::std::string& value) { description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDef.description) } +#if LANG_CXX11 +inline void OpDef::set_description(::std::string&& value) { + + description_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.description) +} +#endif inline void OpDef::set_description(const char* value) { + GOOGLE_DCHECK(value != NULL); description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -1871,13 +2201,6 @@ inline ::std::string* OpDef::release_description() { return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDef::set_allocated_description(::std::string* description) { if (description != NULL) { @@ -1888,6 +2211,13 @@ inline void OpDef::set_allocated_description(::std::string* description) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.description) } +inline ::std::string* OpDef::unsafe_arena_release_description() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.description) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDef::unsafe_arena_set_allocated_description( ::std::string* description) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -1901,7 +2231,7 @@ inline void OpDef::unsafe_arena_set_allocated_description( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.description) } -// optional bool is_commutative = 18; +// bool is_commutative = 18; inline void OpDef::clear_is_commutative() { is_commutative_ = false; } @@ -1915,7 +2245,7 @@ inline void OpDef::set_is_commutative(bool value) { // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_commutative) } -// optional bool is_aggregate = 16; +// bool is_aggregate = 16; inline void OpDef::clear_is_aggregate() { is_aggregate_ = false; } @@ -1929,7 +2259,7 @@ inline void OpDef::set_is_aggregate(bool value) { // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_aggregate) } -// optional bool is_stateful = 17; +// bool is_stateful = 17; inline void OpDef::clear_is_stateful() { is_stateful_ = false; } @@ -1943,7 +2273,7 @@ inline void OpDef::set_is_stateful(bool value) { // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_stateful) } -// optional bool allows_uninitialized_input = 19; +// bool allows_uninitialized_input = 19; inline void OpDef::clear_allows_uninitialized_input() { allows_uninitialized_input_ = false; } @@ -1957,14 +2287,11 @@ inline void OpDef::set_allows_uninitialized_input(bool value) { // @@protoc_insertion_point(field_set:tensorflow.OpDef.allows_uninitialized_input) } -inline const OpDef* OpDef::internal_default_instance() { - return &OpDef_default_instance_.get(); -} // ------------------------------------------------------------------- // OpDeprecation -// optional int32 version = 1; +// int32 version = 1; inline void OpDeprecation::clear_version() { version_ = 0; } @@ -1978,20 +2305,29 @@ inline void OpDeprecation::set_version(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:tensorflow.OpDeprecation.version) } -// optional string explanation = 2; +// string explanation = 2; inline void OpDeprecation::clear_explanation() { explanation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& OpDeprecation::explanation() const { // @@protoc_insertion_point(field_get:tensorflow.OpDeprecation.explanation) - return explanation_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return explanation_.Get(); } inline void OpDeprecation::set_explanation(const ::std::string& value) { explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.OpDeprecation.explanation) } +#if LANG_CXX11 +inline void OpDeprecation::set_explanation(::std::string&& value) { + + explanation_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDeprecation.explanation) +} +#endif inline void OpDeprecation::set_explanation(const char* value) { + GOOGLE_DCHECK(value != NULL); explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -2014,13 +2350,6 @@ inline ::std::string* OpDeprecation::release_explanation() { return explanation_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* OpDeprecation::unsafe_arena_release_explanation() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDeprecation.explanation) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return explanation_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void OpDeprecation::set_allocated_explanation(::std::string* explanation) { if (explanation != NULL) { @@ -2031,6 +2360,13 @@ inline void OpDeprecation::set_allocated_explanation(::std::string* explanation) GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDeprecation.explanation) } +inline ::std::string* OpDeprecation::unsafe_arena_release_explanation() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDeprecation.explanation) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return explanation_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void OpDeprecation::unsafe_arena_set_allocated_explanation( ::std::string* explanation) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -2044,9 +2380,6 @@ inline void OpDeprecation::unsafe_arena_set_allocated_explanation( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDeprecation.explanation) } -inline const OpDeprecation* OpDeprecation::internal_default_instance() { - return &OpDeprecation_default_instance_.get(); -} // ------------------------------------------------------------------- // OpList @@ -2081,10 +2414,9 @@ OpList::op() const { return op_; } -inline const OpList* OpList::internal_default_instance() { - return &OpList_default_instance_.get(); -} -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- diff --git a/modules/dnn/misc/tensorflow/tensor.pb.cc b/modules/dnn/misc/tensorflow/tensor.pb.cc index e9851095be..a5118ad526 100644 --- a/modules/dnn/misc/tensorflow/tensor.pb.cc +++ b/modules/dnn/misc/tensorflow/tensor.pb.cc @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensor.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "tensor.pb.h" #include @@ -15,173 +14,137 @@ #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) - namespace tensorflow { +class TensorProtoDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TensorProto_default_instance_; +} // namespace tensorflow +namespace protobuf_tensor_2eproto { +void InitDefaultsTensorProtoImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -namespace { - -const ::google::protobuf::Descriptor* TensorProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TensorProto_reflection_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_tensor_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_tensor_2eproto() { - protobuf_AddDesc_tensor_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "tensor.proto"); - GOOGLE_CHECK(file != NULL); - TensorProto_descriptor_ = file->message_type(0); - static const int TensorProto_offsets_[13] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, dtype_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, tensor_shape_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, version_number_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, tensor_content_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, half_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, float_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, double_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, int_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, string_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, scomplex_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, int64_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, bool_val_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, dcomplex_val_), - }; - TensorProto_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TensorProto_descriptor_, - TensorProto::internal_default_instance(), - TensorProto_offsets_, - -1, - -1, - -1, - sizeof(TensorProto), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorProto, _internal_metadata_)); +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto(); + { + void* ptr = &::tensorflow::_TensorProto_default_instance_; + new (ptr) ::tensorflow::TensorProto(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::TensorProto::InitAsDefaultInstance(); } -namespace { +void InitDefaultsTensorProto() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTensorProtoImpl); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, dtype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, tensor_shape_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, version_number_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, tensor_content_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, half_val_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, float_val_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, double_val_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, int_val_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, string_val_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, scomplex_val_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, int64_val_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, bool_val_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorProto, dcomplex_val_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::tensorflow::TensorProto)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::tensorflow::_TensorProto_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "tensor.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_tensor_2eproto); + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TensorProto_descriptor_, TensorProto::internal_default_instance()); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); } -} // namespace - -void protobuf_ShutdownFile_tensor_2eproto() { - TensorProto_default_instance_.Shutdown(); - delete TensorProto_reflection_; -} - -void protobuf_InitDefaults_tensor_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::tensorflow::protobuf_InitDefaults_tensor_5fshape_2eproto(); - ::tensorflow::protobuf_InitDefaults_types_2eproto(); - ::google::protobuf::internal::GetEmptyString(); - TensorProto_default_instance_.DefaultConstruct(); - TensorProto_default_instance_.get_mutable()->InitAsDefaultInstance(); -} - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_tensor_2eproto_once_); -void protobuf_InitDefaults_tensor_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_tensor_2eproto_once_, - &protobuf_InitDefaults_tensor_2eproto_impl); -} -void protobuf_AddDesc_tensor_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - protobuf_InitDefaults_tensor_2eproto(); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\014tensor.proto\022\ntensorflow\032\022tensor_shape" + ".proto\032\013types.proto\"\345\002\n\013TensorProto\022#\n\005d" + "type\030\001 \001(\0162\024.tensorflow.DataType\0222\n\014tens" + "or_shape\030\002 \001(\0132\034.tensorflow.TensorShapeP" + "roto\022\026\n\016version_number\030\003 \001(\005\022\026\n\016tensor_c" + "ontent\030\004 \001(\014\022\024\n\010half_val\030\r \003(\005B\002\020\001\022\025\n\tfl" + "oat_val\030\005 \003(\002B\002\020\001\022\026\n\ndouble_val\030\006 \003(\001B\002\020" + "\001\022\023\n\007int_val\030\007 \003(\005B\002\020\001\022\022\n\nstring_val\030\010 \003" + "(\014\022\030\n\014scomplex_val\030\t \003(\002B\002\020\001\022\025\n\tint64_va" + "l\030\n \003(\003B\002\020\001\022\024\n\010bool_val\030\013 \003(\010B\002\020\001\022\030\n\014dco" + "mplex_val\030\014 \003(\001B\002\020\001B-\n\030org.tensorflow.fr" + "ameworkB\014TensorProtosP\001\370\001\001b\006proto3" + }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\014tensor.proto\022\ntensorflow\032\022tensor_shape" - ".proto\032\013types.proto\"\345\002\n\013TensorProto\022#\n\005d" - "type\030\001 \001(\0162\024.tensorflow.DataType\0222\n\014tens" - "or_shape\030\002 \001(\0132\034.tensorflow.TensorShapeP" - "roto\022\026\n\016version_number\030\003 \001(\005\022\026\n\016tensor_c" - "ontent\030\004 \001(\014\022\024\n\010half_val\030\r \003(\005B\002\020\001\022\025\n\tfl" - "oat_val\030\005 \003(\002B\002\020\001\022\026\n\ndouble_val\030\006 \003(\001B\002\020" - "\001\022\023\n\007int_val\030\007 \003(\005B\002\020\001\022\022\n\nstring_val\030\010 \003" - "(\014\022\030\n\014scomplex_val\030\t \003(\002B\002\020\001\022\025\n\tint64_va" - "l\030\n \003(\003B\002\020\001\022\024\n\010bool_val\030\013 \003(\010B\002\020\001\022\030\n\014dco" - "mplex_val\030\014 \003(\001B\002\020\001B-\n\030org.tensorflow.fr" - "ameworkB\014TensorProtosP\001\370\001\001b\006proto3", 474); + descriptor, 474); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "tensor.proto", &protobuf_RegisterTypes); - ::tensorflow::protobuf_AddDesc_tensor_5fshape_2eproto(); - ::tensorflow::protobuf_AddDesc_types_2eproto(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_tensor_2eproto); + ::protobuf_tensor_5fshape_2eproto::AddDescriptors(); + ::protobuf_types_2eproto::AddDescriptors(); } -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_tensor_2eproto_once_); -void protobuf_AddDesc_tensor_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_tensor_2eproto_once_, - &protobuf_AddDesc_tensor_2eproto_impl); +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_tensor_2eproto { - StaticDescriptorInitializer_tensor_2eproto() { - protobuf_AddDesc_tensor_2eproto(); +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); } -} static_descriptor_initializer_tensor_2eproto_; - -namespace { - -static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; -static void MergeFromFail(int line) { - ::google::protobuf::internal::MergeFromFail(__FILE__, line); -} - -} // namespace - +} static_descriptor_initializer; +} // namespace protobuf_tensor_2eproto +namespace tensorflow { // =================================================================== +void TensorProto::InitAsDefaultInstance() { + ::tensorflow::_TensorProto_default_instance_._instance.get_mutable()->tensor_shape_ = const_cast< ::tensorflow::TensorShapeProto*>( + ::tensorflow::TensorShapeProto::internal_default_instance()); +} void TensorProto::_slow_mutable_tensor_shape() { tensor_shape_ = ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorShapeProto >( GetArenaNoVirtual()); } -::tensorflow::TensorShapeProto* TensorProto::_slow_release_tensor_shape() { - if (tensor_shape_ == NULL) { - return NULL; - } else { - ::tensorflow::TensorShapeProto* temp = new ::tensorflow::TensorShapeProto(*tensor_shape_); - tensor_shape_ = NULL; - return temp; - } -} -::tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_tensor_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_shape) - - ::tensorflow::TensorShapeProto* temp = tensor_shape_; - tensor_shape_ = NULL; - return temp; -} -void TensorProto::_slow_set_allocated_tensor_shape( - ::google::protobuf::Arena* message_arena, ::tensorflow::TensorShapeProto** tensor_shape) { - if (message_arena != NULL && - ::google::protobuf::Arena::GetArena(*tensor_shape) == NULL) { - message_arena->Own(*tensor_shape); - } else if (message_arena != - ::google::protobuf::Arena::GetArena(*tensor_shape)) { - ::tensorflow::TensorShapeProto* new_tensor_shape = - ::google::protobuf::Arena::CreateMessage< ::tensorflow::TensorShapeProto >( - message_arena); - new_tensor_shape->CopyFrom(**tensor_shape); - *tensor_shape = new_tensor_shape; - } -} void TensorProto::unsafe_arena_set_allocated_tensor_shape( ::tensorflow::TensorShapeProto* tensor_shape) { if (GetArenaNoVirtual() == NULL) { @@ -195,6 +158,12 @@ void TensorProto::unsafe_arena_set_allocated_tensor_shape( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorProto.tensor_shape) } +void TensorProto::clear_tensor_shape() { + if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) { + delete tensor_shape_; + } + tensor_shape_ = NULL; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int TensorProto::kDtypeFieldNumber; const int TensorProto::kTensorShapeFieldNumber; @@ -213,14 +182,15 @@ const int TensorProto::kDcomplexValFieldNumber; TensorProto::TensorProto() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_tensor_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_tensor_2eproto::InitDefaultsTensorProto(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.TensorProto) } TensorProto::TensorProto(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), - half_val_(arena), float_val_(arena), double_val_(arena), int_val_(arena), @@ -228,33 +198,48 @@ TensorProto::TensorProto(::google::protobuf::Arena* arena) scomplex_val_(arena), int64_val_(arena), bool_val_(arena), - dcomplex_val_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_tensor_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + dcomplex_val_(arena), + half_val_(arena) { + ::protobuf_tensor_2eproto::InitDefaultsTensorProto(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.TensorProto) } - -void TensorProto::InitAsDefaultInstance() { - tensor_shape_ = const_cast< ::tensorflow::TensorShapeProto*>( - ::tensorflow::TensorShapeProto::internal_default_instance()); -} - TensorProto::TensorProto(const TensorProto& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + float_val_(from.float_val_), + double_val_(from.double_val_), + int_val_(from.int_val_), + string_val_(from.string_val_), + scomplex_val_(from.scomplex_val_), + int64_val_(from.int64_val_), + bool_val_(from.bool_val_), + dcomplex_val_(from.dcomplex_val_), + half_val_(from.half_val_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tensor_content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.tensor_content().size() > 0) { + tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tensor_content(), + GetArenaNoVirtual()); + } + if (from.has_tensor_shape()) { + tensor_shape_ = new ::tensorflow::TensorShapeProto(*from.tensor_shape_); + } else { + tensor_shape_ = NULL; + } + ::memcpy(&dtype_, &from.dtype_, + static_cast(reinterpret_cast(&version_number_) - + reinterpret_cast(&dtype_)) + sizeof(version_number_)); // @@protoc_insertion_point(copy_constructor:tensorflow.TensorProto) } void TensorProto::SharedCtor() { tensor_content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tensor_shape_ = NULL; - ::memset(&dtype_, 0, reinterpret_cast(&version_number_) - - reinterpret_cast(&dtype_) + sizeof(version_number_)); + ::memset(&tensor_shape_, 0, static_cast( + reinterpret_cast(&version_number_) - + reinterpret_cast(&tensor_shape_)) + sizeof(version_number_)); _cached_size_ = 0; } @@ -264,15 +249,9 @@ TensorProto::~TensorProto() { } void TensorProto::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - tensor_content_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); - if (this != &TensorProto_default_instance_.get()) { - delete tensor_shape_; - } + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + tensor_content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete tensor_shape_; } void TensorProto::ArenaDtor(void* object) { @@ -287,48 +266,25 @@ void TensorProto::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* TensorProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TensorProto_descriptor_; + ::protobuf_tensor_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_tensor_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const TensorProto& TensorProto::default_instance() { - protobuf_InitDefaults_tensor_2eproto(); + ::protobuf_tensor_2eproto::InitDefaultsTensorProto(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed TensorProto_default_instance_; - TensorProto* TensorProto::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void TensorProto::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.TensorProto) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(TensorProto, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(dtype_, version_number_); - if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) delete tensor_shape_; - tensor_shape_ = NULL; - tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - -#undef ZR_HELPER_ -#undef ZR_ - - half_val_.Clear(); float_val_.Clear(); double_val_.Clear(); int_val_.Clear(); @@ -337,6 +293,16 @@ void TensorProto::Clear() { int64_val_.Clear(); bool_val_.Clear(); dcomplex_val_.Clear(); + half_val_.Clear(); + tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) { + delete tensor_shape_; + } + tensor_shape_ = NULL; + ::memset(&dtype_, 0, static_cast( + reinterpret_cast(&version_number_) - + reinterpret_cast(&dtype_)) + sizeof(version_number_)); + _internal_metadata_.Clear(); } bool TensorProto::MergePartialFromCodedStream( @@ -345,13 +311,14 @@ bool TensorProto::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.TensorProto) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional .tensorflow.DataType dtype = 1; + // .tensorflow.DataType dtype = 1; case 1: { - if (tag == 8) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( @@ -360,27 +327,25 @@ bool TensorProto::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_tensor_shape; break; } - // optional .tensorflow.TensorShapeProto tensor_shape = 2; + // .tensorflow.TensorShapeProto tensor_shape = 2; case 2: { - if (tag == 18) { - parse_tensor_shape: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_tensor_shape())); } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_version_number; break; } - // optional int32 version_number = 3; + // int32 version_number = 3; case 3: { - if (tag == 24) { - parse_version_number: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -388,189 +353,192 @@ bool TensorProto::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_tensor_content; break; } - // optional bytes tensor_content = 4; + // bytes tensor_content = 4; case 4: { - if (tag == 34) { - parse_tensor_content: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->mutable_tensor_content())); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_float_val; break; } // repeated float float_val = 5 [packed = true]; case 5: { - if (tag == 42) { - parse_float_val: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_float_val()))); - } else if (tag == 45) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 42, input, this->mutable_float_val()))); + 1, 42u, input, this->mutable_float_val()))); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_double_val; break; } // repeated double double_val = 6 [packed = true]; case 6: { - if (tag == 50) { - parse_double_val: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_double_val()))); - } else if (tag == 49) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 50, input, this->mutable_double_val()))); + 1, 50u, input, this->mutable_double_val()))); } else { goto handle_unusual; } - if (input->ExpectTag(58)) goto parse_int_val; break; } // repeated int32 int_val = 7 [packed = true]; case 7: { - if (tag == 58) { - parse_int_val: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_int_val()))); - } else if (tag == 56) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - 1, 58, input, this->mutable_int_val()))); + 1, 58u, input, this->mutable_int_val()))); } else { goto handle_unusual; } - if (input->ExpectTag(66)) goto parse_string_val; break; } // repeated bytes string_val = 8; case 8: { - if (tag == 66) { - parse_string_val: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->add_string_val())); } else { goto handle_unusual; } - if (input->ExpectTag(66)) goto parse_string_val; - if (input->ExpectTag(74)) goto parse_scomplex_val; break; } // repeated float scomplex_val = 9 [packed = true]; case 9: { - if (tag == 74) { - parse_scomplex_val: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_scomplex_val()))); - } else if (tag == 77) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - 1, 74, input, this->mutable_scomplex_val()))); + 1, 74u, input, this->mutable_scomplex_val()))); } else { goto handle_unusual; } - if (input->ExpectTag(82)) goto parse_int64_val; break; } // repeated int64 int64_val = 10 [packed = true]; case 10: { - if (tag == 82) { - parse_int64_val: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_int64_val()))); - } else if (tag == 80) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - 1, 82, input, this->mutable_int64_val()))); + 1, 82u, input, this->mutable_int64_val()))); } else { goto handle_unusual; } - if (input->ExpectTag(90)) goto parse_bool_val; break; } // repeated bool bool_val = 11 [packed = true]; case 11: { - if (tag == 90) { - parse_bool_val: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, this->mutable_bool_val()))); - } else if (tag == 88) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - 1, 90, input, this->mutable_bool_val()))); + 1, 90u, input, this->mutable_bool_val()))); } else { goto handle_unusual; } - if (input->ExpectTag(98)) goto parse_dcomplex_val; break; } // repeated double dcomplex_val = 12 [packed = true]; case 12: { - if (tag == 98) { - parse_dcomplex_val: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_dcomplex_val()))); - } else if (tag == 97) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(97u /* 97 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - 1, 98, input, this->mutable_dcomplex_val()))); + 1, 98u, input, this->mutable_dcomplex_val()))); } else { goto handle_unusual; } - if (input->ExpectTag(106)) goto parse_half_val; break; } // repeated int32 half_val = 13 [packed = true]; case 13: { - if (tag == 106) { - parse_half_val: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_half_val()))); - } else if (tag == 104) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - 1, 106, input, this->mutable_half_val()))); + 1, 106u, input, this->mutable_half_val()))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -587,24 +555,27 @@ failure: void TensorProto::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.TensorProto) - // optional .tensorflow.DataType dtype = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .tensorflow.DataType dtype = 1; if (this->dtype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->dtype(), output); } - // optional .tensorflow.TensorShapeProto tensor_shape = 2; + // .tensorflow.TensorShapeProto tensor_shape = 2; if (this->has_tensor_shape()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, *this->tensor_shape_, output); } - // optional int32 version_number = 3; + // int32 version_number = 3; if (this->version_number() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->version_number(), output); } - // optional bytes tensor_content = 4; + // bytes tensor_content = 4; if (this->tensor_content().size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 4, this->tensor_content(), output); @@ -613,35 +584,34 @@ void TensorProto::SerializeWithCachedSizes( // repeated float float_val = 5 [packed = true]; if (this->float_val_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_float_val_cached_byte_size_); - } - for (int i = 0; i < this->float_val_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->float_val(i), output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _float_val_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteFloatArray( + this->float_val().data(), this->float_val_size(), output); } // repeated double double_val = 6 [packed = true]; if (this->double_val_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_double_val_cached_byte_size_); - } - for (int i = 0; i < this->double_val_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteDoubleNoTag( - this->double_val(i), output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _double_val_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( + this->double_val().data(), this->double_val_size(), output); } // repeated int32 int_val = 7 [packed = true]; if (this->int_val_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int_val_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _int_val_cached_byte_size_)); } - for (int i = 0; i < this->int_val_size(); i++) { + for (int i = 0, n = this->int_val_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->int_val(i), output); } // repeated bytes string_val = 8; - for (int i = 0; i < this->string_val_size(); i++) { + for (int i = 0, n = this->string_val_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 8, this->string_val(i), output); } @@ -649,19 +619,19 @@ void TensorProto::SerializeWithCachedSizes( // repeated float scomplex_val = 9 [packed = true]; if (this->scomplex_val_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_scomplex_val_cached_byte_size_); - } - for (int i = 0; i < this->scomplex_val_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteFloatNoTag( - this->scomplex_val(i), output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _scomplex_val_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteFloatArray( + this->scomplex_val().data(), this->scomplex_val_size(), output); } // repeated int64 int64_val = 10 [packed = true]; if (this->int64_val_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_int64_val_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _int64_val_cached_byte_size_)); } - for (int i = 0; i < this->int64_val_size(); i++) { + for (int i = 0, n = this->int64_val_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( this->int64_val(i), output); } @@ -669,33 +639,36 @@ void TensorProto::SerializeWithCachedSizes( // repeated bool bool_val = 11 [packed = true]; if (this->bool_val_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(11, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_bool_val_cached_byte_size_); - } - for (int i = 0; i < this->bool_val_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteBoolNoTag( - this->bool_val(i), output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _bool_val_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteBoolArray( + this->bool_val().data(), this->bool_val_size(), output); } // repeated double dcomplex_val = 12 [packed = true]; if (this->dcomplex_val_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(12, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_dcomplex_val_cached_byte_size_); - } - for (int i = 0; i < this->dcomplex_val_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteDoubleNoTag( - this->dcomplex_val(i), output); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _dcomplex_val_cached_byte_size_)); + ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( + this->dcomplex_val().data(), this->dcomplex_val_size(), output); } // repeated int32 half_val = 13 [packed = true]; if (this->half_val_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(13, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_half_val_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _half_val_cached_byte_size_)); } - for (int i = 0; i < this->half_val_size(); i++) { + for (int i = 0, n = this->half_val_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->half_val(i), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.TensorProto) } @@ -703,25 +676,28 @@ void TensorProto::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorProto) - // optional .tensorflow.DataType dtype = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .tensorflow.DataType dtype = 1; if (this->dtype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->dtype(), target); } - // optional .tensorflow.TensorShapeProto tensor_shape = 2; + // .tensorflow.TensorShapeProto tensor_shape = 2; if (this->has_tensor_shape()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->tensor_shape_, false, target); + InternalWriteMessageToArray( + 2, *this->tensor_shape_, deterministic, target); } - // optional int32 version_number = 3; + // int32 version_number = 3; if (this->version_number() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->version_number(), target); } - // optional bytes tensor_content = 4; + // bytes tensor_content = 4; if (this->tensor_content().size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( @@ -735,11 +711,10 @@ void TensorProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _float_val_cached_byte_size_, target); - } - for (int i = 0; i < this->float_val_size(); i++) { + static_cast< ::google::protobuf::int32>( + _float_val_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->float_val(i), target); + WriteFloatNoTagToArray(this->float_val_, target); } // repeated double double_val = 6 [packed = true]; @@ -749,11 +724,10 @@ void TensorProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _double_val_cached_byte_size_, target); - } - for (int i = 0; i < this->double_val_size(); i++) { + static_cast< ::google::protobuf::int32>( + _double_val_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->double_val(i), target); + WriteDoubleNoTagToArray(this->double_val_, target); } // repeated int32 int_val = 7 [packed = true]; @@ -763,15 +737,14 @@ void TensorProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _int_val_cached_byte_size_, target); - } - for (int i = 0; i < this->int_val_size(); i++) { + static_cast< ::google::protobuf::int32>( + _int_val_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->int_val(i), target); + WriteInt32NoTagToArray(this->int_val_, target); } // repeated bytes string_val = 8; - for (int i = 0; i < this->string_val_size(); i++) { + for (int i = 0, n = this->string_val_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(8, this->string_val(i), target); } @@ -783,11 +756,10 @@ void TensorProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _scomplex_val_cached_byte_size_, target); - } - for (int i = 0; i < this->scomplex_val_size(); i++) { + static_cast< ::google::protobuf::int32>( + _scomplex_val_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteFloatNoTagToArray(this->scomplex_val(i), target); + WriteFloatNoTagToArray(this->scomplex_val_, target); } // repeated int64 int64_val = 10 [packed = true]; @@ -797,11 +769,10 @@ void TensorProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _int64_val_cached_byte_size_, target); - } - for (int i = 0; i < this->int64_val_size(); i++) { + static_cast< ::google::protobuf::int32>( + _int64_val_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->int64_val(i), target); + WriteInt64NoTagToArray(this->int64_val_, target); } // repeated bool bool_val = 11 [packed = true]; @@ -811,11 +782,10 @@ void TensorProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _bool_val_cached_byte_size_, target); - } - for (int i = 0; i < this->bool_val_size(); i++) { + static_cast< ::google::protobuf::int32>( + _bool_val_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteBoolNoTagToArray(this->bool_val(i), target); + WriteBoolNoTagToArray(this->bool_val_, target); } // repeated double dcomplex_val = 12 [packed = true]; @@ -825,11 +795,10 @@ void TensorProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _dcomplex_val_cached_byte_size_, target); - } - for (int i = 0; i < this->dcomplex_val_size(); i++) { + static_cast< ::google::protobuf::int32>( + _dcomplex_val_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->dcomplex_val(i), target); + WriteDoubleNoTagToArray(this->dcomplex_val_, target); } // repeated int32 half_val = 13 [packed = true]; @@ -839,13 +808,16 @@ void TensorProto::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _half_val_cached_byte_size_, target); - } - for (int i = 0; i < this->half_val_size(); i++) { + static_cast< ::google::protobuf::int32>( + _half_val_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->half_val(i), target); + WriteInt32NoTagToArray(this->half_val_, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorProto) return target; } @@ -854,60 +826,19 @@ size_t TensorProto::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorProto) size_t total_size = 0; - // optional .tensorflow.DataType dtype = 1; - if (this->dtype() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->dtype()); + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - - // optional .tensorflow.TensorShapeProto tensor_shape = 2; - if (this->has_tensor_shape()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->tensor_shape_); - } - - // optional int32 version_number = 3; - if (this->version_number() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->version_number()); - } - - // optional bytes tensor_content = 4; - if (this->tensor_content().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->tensor_content()); - } - - // repeated int32 half_val = 13 [packed = true]; - { - size_t data_size = 0; - unsigned int count = this->half_val_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->half_val(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _half_val_cached_byte_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - // repeated float float_val = 5 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->float_val_size(); - data_size = 4UL * count; + unsigned int count = static_cast(this->float_val_size()); + size_t data_size = 4UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -918,12 +849,12 @@ size_t TensorProto::ByteSizeLong() const { // repeated double double_val = 6 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->double_val_size(); - data_size = 8UL * count; + unsigned int count = static_cast(this->double_val_size()); + size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -934,15 +865,12 @@ size_t TensorProto::ByteSizeLong() const { // repeated int32 int_val = 7 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->int_val_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->int_val(i)); - } + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + Int32Size(this->int_val_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -954,19 +882,19 @@ size_t TensorProto::ByteSizeLong() const { // repeated bytes string_val = 8; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->string_val_size()); - for (int i = 0; i < this->string_val_size(); i++) { + for (int i = 0, n = this->string_val_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->string_val(i)); } // repeated float scomplex_val = 9 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->scomplex_val_size(); - data_size = 4UL * count; + unsigned int count = static_cast(this->scomplex_val_size()); + size_t data_size = 4UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -977,15 +905,12 @@ size_t TensorProto::ByteSizeLong() const { // repeated int64 int64_val = 10 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->int64_val_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int64Size(this->int64_val(i)); - } + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + Int64Size(this->int64_val_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -996,12 +921,12 @@ size_t TensorProto::ByteSizeLong() const { // repeated bool bool_val = 11 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->bool_val_size(); - data_size = 1UL * count; + unsigned int count = static_cast(this->bool_val_size()); + size_t data_size = 1UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -1012,12 +937,12 @@ size_t TensorProto::ByteSizeLong() const { // repeated double dcomplex_val = 12 [packed = true]; { - size_t data_size = 0; - unsigned int count = this->dcomplex_val_size(); - data_size = 8UL * count; + unsigned int count = static_cast(this->dcomplex_val_size()); + size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -1026,6 +951,49 @@ size_t TensorProto::ByteSizeLong() const { total_size += data_size; } + // repeated int32 half_val = 13 [packed = true]; + { + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + Int32Size(this->half_val_); + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _half_val_cached_byte_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + // bytes tensor_content = 4; + if (this->tensor_content().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->tensor_content()); + } + + // .tensorflow.TensorShapeProto tensor_shape = 2; + if (this->has_tensor_shape()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->tensor_shape_); + } + + // .tensorflow.DataType dtype = 1; + if (this->dtype() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->dtype()); + } + + // int32 version_number = 3; + if (this->version_number() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->version_number()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -1035,7 +1003,7 @@ size_t TensorProto::ByteSizeLong() const { void TensorProto::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorProto) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const TensorProto* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -1044,42 +1012,38 @@ void TensorProto::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorProto) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void TensorProto::MergeFrom(const TensorProto& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorProto) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void TensorProto::UnsafeMergeFrom(const TensorProto& from) { - GOOGLE_DCHECK(&from != this); - half_val_.UnsafeMergeFrom(from.half_val_); - float_val_.UnsafeMergeFrom(from.float_val_); - double_val_.UnsafeMergeFrom(from.double_val_); - int_val_.UnsafeMergeFrom(from.int_val_); - string_val_.UnsafeMergeFrom(from.string_val_); - scomplex_val_.UnsafeMergeFrom(from.scomplex_val_); - int64_val_.UnsafeMergeFrom(from.int64_val_); - bool_val_.UnsafeMergeFrom(from.bool_val_); - dcomplex_val_.UnsafeMergeFrom(from.dcomplex_val_); - if (from.dtype() != 0) { - set_dtype(from.dtype()); + float_val_.MergeFrom(from.float_val_); + double_val_.MergeFrom(from.double_val_); + int_val_.MergeFrom(from.int_val_); + string_val_.MergeFrom(from.string_val_); + scomplex_val_.MergeFrom(from.scomplex_val_); + int64_val_.MergeFrom(from.int64_val_); + bool_val_.MergeFrom(from.bool_val_); + dcomplex_val_.MergeFrom(from.dcomplex_val_); + half_val_.MergeFrom(from.half_val_); + if (from.tensor_content().size() > 0) { + set_tensor_content(from.tensor_content()); } if (from.has_tensor_shape()) { mutable_tensor_shape()->::tensorflow::TensorShapeProto::MergeFrom(from.tensor_shape()); } + if (from.dtype() != 0) { + set_dtype(from.dtype()); + } if (from.version_number() != 0) { set_version_number(from.version_number()); } - if (from.tensor_content().size() > 0) { - set_tensor_content(from.tensor_content()); - } } void TensorProto::CopyFrom(const ::google::protobuf::Message& from) { @@ -1093,11 +1057,10 @@ void TensorProto::CopyFrom(const TensorProto& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorProto) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool TensorProto::IsInitialized() const { - return true; } @@ -1106,10 +1069,13 @@ void TensorProto::Swap(TensorProto* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - TensorProto temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + TensorProto* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void TensorProto::UnsafeArenaSwap(TensorProto* other) { @@ -1118,479 +1084,31 @@ void TensorProto::UnsafeArenaSwap(TensorProto* other) { InternalSwap(other); } void TensorProto::InternalSwap(TensorProto* other) { - std::swap(dtype_, other->dtype_); - std::swap(tensor_shape_, other->tensor_shape_); - std::swap(version_number_, other->version_number_); + using std::swap; + float_val_.InternalSwap(&other->float_val_); + double_val_.InternalSwap(&other->double_val_); + int_val_.InternalSwap(&other->int_val_); + string_val_.InternalSwap(&other->string_val_); + scomplex_val_.InternalSwap(&other->scomplex_val_); + int64_val_.InternalSwap(&other->int64_val_); + bool_val_.InternalSwap(&other->bool_val_); + dcomplex_val_.InternalSwap(&other->dcomplex_val_); + half_val_.InternalSwap(&other->half_val_); tensor_content_.Swap(&other->tensor_content_); - half_val_.UnsafeArenaSwap(&other->half_val_); - float_val_.UnsafeArenaSwap(&other->float_val_); - double_val_.UnsafeArenaSwap(&other->double_val_); - int_val_.UnsafeArenaSwap(&other->int_val_); - string_val_.UnsafeArenaSwap(&other->string_val_); - scomplex_val_.UnsafeArenaSwap(&other->scomplex_val_); - int64_val_.UnsafeArenaSwap(&other->int64_val_); - bool_val_.UnsafeArenaSwap(&other->bool_val_); - dcomplex_val_.UnsafeArenaSwap(&other->dcomplex_val_); + swap(tensor_shape_, other->tensor_shape_); + swap(dtype_, other->dtype_); + swap(version_number_, other->version_number_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata TensorProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TensorProto_descriptor_; - metadata.reflection = TensorProto_reflection_; - return metadata; + protobuf_tensor_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_tensor_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TensorProto - -// optional .tensorflow.DataType dtype = 1; -void TensorProto::clear_dtype() { - dtype_ = 0; -} -::tensorflow::DataType TensorProto::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -void TensorProto::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.dtype) -} - -// optional .tensorflow.TensorShapeProto tensor_shape = 2; -bool TensorProto::has_tensor_shape() const { - return this != internal_default_instance() && tensor_shape_ != NULL; -} -void TensorProto::clear_tensor_shape() { - if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) delete tensor_shape_; - tensor_shape_ = NULL; -} -const ::tensorflow::TensorShapeProto& TensorProto::tensor_shape() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_shape) - return tensor_shape_ != NULL ? *tensor_shape_ - : *::tensorflow::TensorShapeProto::internal_default_instance(); -} -::tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() { - - if (tensor_shape_ == NULL) { - _slow_mutable_tensor_shape(); - } - // @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.tensor_shape) - return tensor_shape_; -} -::tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() { - // @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_shape) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_tensor_shape(); - } else { - ::tensorflow::TensorShapeProto* temp = tensor_shape_; - tensor_shape_ = NULL; - return temp; - } -} - void TensorProto::set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete tensor_shape_; - } - if (tensor_shape != NULL) { - _slow_set_allocated_tensor_shape(message_arena, &tensor_shape); - } - tensor_shape_ = tensor_shape; - if (tensor_shape) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_shape) -} - -// optional int32 version_number = 3; -void TensorProto::clear_version_number() { - version_number_ = 0; -} -::google::protobuf::int32 TensorProto::version_number() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.version_number) - return version_number_; -} -void TensorProto::set_version_number(::google::protobuf::int32 value) { - - version_number_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.version_number) -} - -// optional bytes tensor_content = 4; -void TensorProto::clear_tensor_content() { - tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& TensorProto::tensor_content() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_content) - return tensor_content_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void TensorProto::set_tensor_content(const ::std::string& value) { - - tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.tensor_content) -} -void TensorProto::set_tensor_content(const char* value) { - - tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.tensor_content) -} -void TensorProto::set_tensor_content(const void* value, - size_t size) { - - tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorProto.tensor_content) -} -::std::string* TensorProto::mutable_tensor_content() { - - // @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.tensor_content) - return tensor_content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* TensorProto::release_tensor_content() { - // @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_content) - - return tensor_content_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* TensorProto::unsafe_arena_release_tensor_content() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_content) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return tensor_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void TensorProto::set_allocated_tensor_content(::std::string* tensor_content) { - if (tensor_content != NULL) { - - } else { - - } - tensor_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensor_content, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_content) -} -void TensorProto::unsafe_arena_set_allocated_tensor_content( - ::std::string* tensor_content) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (tensor_content != NULL) { - - } else { - - } - tensor_content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - tensor_content, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorProto.tensor_content) -} - -// repeated int32 half_val = 13 [packed = true]; -int TensorProto::half_val_size() const { - return half_val_.size(); -} -void TensorProto::clear_half_val() { - half_val_.Clear(); -} -::google::protobuf::int32 TensorProto::half_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.half_val) - return half_val_.Get(index); -} -void TensorProto::set_half_val(int index, ::google::protobuf::int32 value) { - half_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.half_val) -} -void TensorProto::add_half_val(::google::protobuf::int32 value) { - half_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.half_val) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -TensorProto::half_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.half_val) - return half_val_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -TensorProto::mutable_half_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.half_val) - return &half_val_; -} - -// repeated float float_val = 5 [packed = true]; -int TensorProto::float_val_size() const { - return float_val_.size(); -} -void TensorProto::clear_float_val() { - float_val_.Clear(); -} -float TensorProto::float_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.float_val) - return float_val_.Get(index); -} -void TensorProto::set_float_val(int index, float value) { - float_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.float_val) -} -void TensorProto::add_float_val(float value) { - float_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.float_val) -} -const ::google::protobuf::RepeatedField< float >& -TensorProto::float_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.float_val) - return float_val_; -} -::google::protobuf::RepeatedField< float >* -TensorProto::mutable_float_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.float_val) - return &float_val_; -} - -// repeated double double_val = 6 [packed = true]; -int TensorProto::double_val_size() const { - return double_val_.size(); -} -void TensorProto::clear_double_val() { - double_val_.Clear(); -} -double TensorProto::double_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.double_val) - return double_val_.Get(index); -} -void TensorProto::set_double_val(int index, double value) { - double_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.double_val) -} -void TensorProto::add_double_val(double value) { - double_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.double_val) -} -const ::google::protobuf::RepeatedField< double >& -TensorProto::double_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.double_val) - return double_val_; -} -::google::protobuf::RepeatedField< double >* -TensorProto::mutable_double_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.double_val) - return &double_val_; -} - -// repeated int32 int_val = 7 [packed = true]; -int TensorProto::int_val_size() const { - return int_val_.size(); -} -void TensorProto::clear_int_val() { - int_val_.Clear(); -} -::google::protobuf::int32 TensorProto::int_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.int_val) - return int_val_.Get(index); -} -void TensorProto::set_int_val(int index, ::google::protobuf::int32 value) { - int_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.int_val) -} -void TensorProto::add_int_val(::google::protobuf::int32 value) { - int_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.int_val) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -TensorProto::int_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.int_val) - return int_val_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -TensorProto::mutable_int_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.int_val) - return &int_val_; -} - -// repeated bytes string_val = 8; -int TensorProto::string_val_size() const { - return string_val_.size(); -} -void TensorProto::clear_string_val() { - string_val_.Clear(); -} -const ::std::string& TensorProto::string_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.string_val) - return string_val_.Get(index); -} -::std::string* TensorProto::mutable_string_val(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.string_val) - return string_val_.Mutable(index); -} -void TensorProto::set_string_val(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.string_val) - string_val_.Mutable(index)->assign(value); -} -void TensorProto::set_string_val(int index, const char* value) { - string_val_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.string_val) -} -void TensorProto::set_string_val(int index, const void* value, size_t size) { - string_val_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorProto.string_val) -} -::std::string* TensorProto::add_string_val() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.TensorProto.string_val) - return string_val_.Add(); -} -void TensorProto::add_string_val(const ::std::string& value) { - string_val_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val) -} -void TensorProto::add_string_val(const char* value) { - string_val_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.TensorProto.string_val) -} -void TensorProto::add_string_val(const void* value, size_t size) { - string_val_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.TensorProto.string_val) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -TensorProto::string_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.string_val) - return string_val_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -TensorProto::mutable_string_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.string_val) - return &string_val_; -} - -// repeated float scomplex_val = 9 [packed = true]; -int TensorProto::scomplex_val_size() const { - return scomplex_val_.size(); -} -void TensorProto::clear_scomplex_val() { - scomplex_val_.Clear(); -} -float TensorProto::scomplex_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.scomplex_val) - return scomplex_val_.Get(index); -} -void TensorProto::set_scomplex_val(int index, float value) { - scomplex_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.scomplex_val) -} -void TensorProto::add_scomplex_val(float value) { - scomplex_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.scomplex_val) -} -const ::google::protobuf::RepeatedField< float >& -TensorProto::scomplex_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.scomplex_val) - return scomplex_val_; -} -::google::protobuf::RepeatedField< float >* -TensorProto::mutable_scomplex_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.scomplex_val) - return &scomplex_val_; -} - -// repeated int64 int64_val = 10 [packed = true]; -int TensorProto::int64_val_size() const { - return int64_val_.size(); -} -void TensorProto::clear_int64_val() { - int64_val_.Clear(); -} -::google::protobuf::int64 TensorProto::int64_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.int64_val) - return int64_val_.Get(index); -} -void TensorProto::set_int64_val(int index, ::google::protobuf::int64 value) { - int64_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.int64_val) -} -void TensorProto::add_int64_val(::google::protobuf::int64 value) { - int64_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.int64_val) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -TensorProto::int64_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.int64_val) - return int64_val_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -TensorProto::mutable_int64_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.int64_val) - return &int64_val_; -} - -// repeated bool bool_val = 11 [packed = true]; -int TensorProto::bool_val_size() const { - return bool_val_.size(); -} -void TensorProto::clear_bool_val() { - bool_val_.Clear(); -} -bool TensorProto::bool_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.bool_val) - return bool_val_.Get(index); -} -void TensorProto::set_bool_val(int index, bool value) { - bool_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.bool_val) -} -void TensorProto::add_bool_val(bool value) { - bool_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.bool_val) -} -const ::google::protobuf::RepeatedField< bool >& -TensorProto::bool_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.bool_val) - return bool_val_; -} -::google::protobuf::RepeatedField< bool >* -TensorProto::mutable_bool_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.bool_val) - return &bool_val_; -} - -// repeated double dcomplex_val = 12 [packed = true]; -int TensorProto::dcomplex_val_size() const { - return dcomplex_val_.size(); -} -void TensorProto::clear_dcomplex_val() { - dcomplex_val_.Clear(); -} -double TensorProto::dcomplex_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.dcomplex_val) - return dcomplex_val_.Get(index); -} -void TensorProto::set_dcomplex_val(int index, double value) { - dcomplex_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.dcomplex_val) -} -void TensorProto::add_dcomplex_val(double value) { - dcomplex_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.dcomplex_val) -} -const ::google::protobuf::RepeatedField< double >& -TensorProto::dcomplex_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.dcomplex_val) - return dcomplex_val_; -} -::google::protobuf::RepeatedField< double >* -TensorProto::mutable_dcomplex_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.dcomplex_val) - return &dcomplex_val_; -} - -inline const TensorProto* TensorProto::internal_default_instance() { - return &TensorProto_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace tensorflow // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/tensor.pb.h b/modules/dnn/misc/tensorflow/tensor.pb.h index 362821f563..5d3e64ed09 100644 --- a/modules/dnn/misc/tensorflow/tensor.pb.h +++ b/modules/dnn/misc/tensorflow/tensor.pb.h @@ -8,38 +8,54 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3001000 +#if GOOGLE_PROTOBUF_VERSION < 3005000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include #include #include +#include #include #include #include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include #include "tensor_shape.pb.h" #include "types.pb.h" // @@protoc_insertion_point(includes) +namespace protobuf_tensor_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsTensorProtoImpl(); +void InitDefaultsTensorProto(); +inline void InitDefaults() { + InitDefaultsTensorProto(); +} +} // namespace protobuf_tensor_2eproto namespace tensorflow { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_tensor_2eproto(); -void protobuf_InitDefaults_tensor_2eproto(); -void protobuf_AssignDesc_tensor_2eproto(); -void protobuf_ShutdownFile_tensor_2eproto(); - class TensorProto; +class TensorProtoDefaultTypeInternal; +extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_; +} // namespace tensorflow +namespace tensorflow { // =================================================================== @@ -54,48 +70,69 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi CopyFrom(from); return *this; } + #if LANG_CXX11 + TensorProto(TensorProto&& from) noexcept + : TensorProto() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline TensorProto& operator=(TensorProto&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const TensorProto& default_instance(); - static const TensorProto* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TensorProto* internal_default_instance() { + return reinterpret_cast( + &_TensorProto_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; void UnsafeArenaSwap(TensorProto* other); void Swap(TensorProto* other); + friend void swap(TensorProto& a, TensorProto& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline TensorProto* New() const { return New(NULL); } + inline TensorProto* New() const PROTOBUF_FINAL { return New(NULL); } - TensorProto* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + TensorProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const TensorProto& from); void MergeFrom(const TensorProto& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(TensorProto* other); - void UnsafeMergeFrom(const TensorProto& from); protected: explicit TensorProto(::google::protobuf::Arena* arena); private: @@ -110,68 +147,12 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional .tensorflow.DataType dtype = 1; - void clear_dtype(); - static const int kDtypeFieldNumber = 1; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // optional .tensorflow.TensorShapeProto tensor_shape = 2; - bool has_tensor_shape() const; - void clear_tensor_shape(); - static const int kTensorShapeFieldNumber = 2; - private: - void _slow_mutable_tensor_shape(); - void _slow_set_allocated_tensor_shape( - ::google::protobuf::Arena* message_arena, ::tensorflow::TensorShapeProto** tensor_shape); - ::tensorflow::TensorShapeProto* _slow_release_tensor_shape(); - public: - const ::tensorflow::TensorShapeProto& tensor_shape() const; - ::tensorflow::TensorShapeProto* mutable_tensor_shape(); - ::tensorflow::TensorShapeProto* release_tensor_shape(); - void set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape(); - void unsafe_arena_set_allocated_tensor_shape( - ::tensorflow::TensorShapeProto* tensor_shape); - - // optional int32 version_number = 3; - void clear_version_number(); - static const int kVersionNumberFieldNumber = 3; - ::google::protobuf::int32 version_number() const; - void set_version_number(::google::protobuf::int32 value); - - // optional bytes tensor_content = 4; - void clear_tensor_content(); - static const int kTensorContentFieldNumber = 4; - const ::std::string& tensor_content() const; - void set_tensor_content(const ::std::string& value); - void set_tensor_content(const char* value); - void set_tensor_content(const void* value, size_t size); - ::std::string* mutable_tensor_content(); - ::std::string* release_tensor_content(); - void set_allocated_tensor_content(::std::string* tensor_content); - ::std::string* unsafe_arena_release_tensor_content(); - void unsafe_arena_set_allocated_tensor_content( - ::std::string* tensor_content); - - // repeated int32 half_val = 13 [packed = true]; - int half_val_size() const; - void clear_half_val(); - static const int kHalfValFieldNumber = 13; - ::google::protobuf::int32 half_val(int index) const; - void set_half_val(int index, ::google::protobuf::int32 value); - void add_half_val(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - half_val() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_half_val(); - // repeated float float_val = 5 [packed = true]; int float_val_size() const; void clear_float_val(); @@ -215,10 +196,16 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi const ::std::string& string_val(int index) const; ::std::string* mutable_string_val(int index); void set_string_val(int index, const ::std::string& value); + #if LANG_CXX11 + void set_string_val(int index, ::std::string&& value); + #endif void set_string_val(int index, const char* value); void set_string_val(int index, const void* value, size_t size); ::std::string* add_string_val(); void add_string_val(const ::std::string& value); + #if LANG_CXX11 + void add_string_val(::std::string&& value); + #endif void add_string_val(const char* value); void add_string_val(const void* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& string_val() const; @@ -272,15 +259,75 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi ::google::protobuf::RepeatedField< double >* mutable_dcomplex_val(); + // repeated int32 half_val = 13 [packed = true]; + int half_val_size() const; + void clear_half_val(); + static const int kHalfValFieldNumber = 13; + ::google::protobuf::int32 half_val(int index) const; + void set_half_val(int index, ::google::protobuf::int32 value); + void add_half_val(::google::protobuf::int32 value); + const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& + half_val() const; + ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* + mutable_half_val(); + + // bytes tensor_content = 4; + void clear_tensor_content(); + static const int kTensorContentFieldNumber = 4; + const ::std::string& tensor_content() const; + void set_tensor_content(const ::std::string& value); + #if LANG_CXX11 + void set_tensor_content(::std::string&& value); + #endif + void set_tensor_content(const char* value); + void set_tensor_content(const void* value, size_t size); + ::std::string* mutable_tensor_content(); + ::std::string* release_tensor_content(); + void set_allocated_tensor_content(::std::string* tensor_content); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + ::std::string* unsafe_arena_release_tensor_content(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_tensor_content( + ::std::string* tensor_content); + + // .tensorflow.TensorShapeProto tensor_shape = 2; + bool has_tensor_shape() const; + void clear_tensor_shape(); + static const int kTensorShapeFieldNumber = 2; + private: + void _slow_mutable_tensor_shape(); + public: + const ::tensorflow::TensorShapeProto& tensor_shape() const; + ::tensorflow::TensorShapeProto* release_tensor_shape(); + ::tensorflow::TensorShapeProto* mutable_tensor_shape(); + void set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape); + void unsafe_arena_set_allocated_tensor_shape( + ::tensorflow::TensorShapeProto* tensor_shape); + ::tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape(); + + // .tensorflow.DataType dtype = 1; + void clear_dtype(); + static const int kDtypeFieldNumber = 1; + ::tensorflow::DataType dtype() const; + void set_dtype(::tensorflow::DataType value); + + // int32 version_number = 3; + void clear_version_number(); + static const int kVersionNumberFieldNumber = 3; + ::google::protobuf::int32 version_number() const; + void set_version_number(::google::protobuf::int32 value); + // @@protoc_insertion_point(class_scope:tensorflow.TensorProto) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > half_val_; - mutable int _half_val_cached_byte_size_; ::google::protobuf::RepeatedField< float > float_val_; mutable int _float_val_cached_byte_size_; ::google::protobuf::RepeatedField< double > double_val_; @@ -296,29 +343,28 @@ class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_poi mutable int _bool_val_cached_byte_size_; ::google::protobuf::RepeatedField< double > dcomplex_val_; mutable int _dcomplex_val_cached_byte_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::int32 > half_val_; + mutable int _half_val_cached_byte_size_; ::google::protobuf::internal::ArenaStringPtr tensor_content_; ::tensorflow::TensorShapeProto* tensor_shape_; int dtype_; ::google::protobuf::int32 version_number_; mutable int _cached_size_; - friend void protobuf_InitDefaults_tensor_2eproto_impl(); - friend void protobuf_AddDesc_tensor_2eproto_impl(); - friend void protobuf_AssignDesc_tensor_2eproto(); - friend void protobuf_ShutdownFile_tensor_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_tensor_2eproto::TableStruct; + friend void ::protobuf_tensor_2eproto::InitDefaultsTensorProtoImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed TensorProto_default_instance_; - // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // TensorProto -// optional .tensorflow.DataType dtype = 1; +// .tensorflow.DataType dtype = 1; inline void TensorProto::clear_dtype() { dtype_ = 0; } @@ -332,18 +378,32 @@ inline void TensorProto::set_dtype(::tensorflow::DataType value) { // @@protoc_insertion_point(field_set:tensorflow.TensorProto.dtype) } -// optional .tensorflow.TensorShapeProto tensor_shape = 2; +// .tensorflow.TensorShapeProto tensor_shape = 2; inline bool TensorProto::has_tensor_shape() const { return this != internal_default_instance() && tensor_shape_ != NULL; } -inline void TensorProto::clear_tensor_shape() { - if (GetArenaNoVirtual() == NULL && tensor_shape_ != NULL) delete tensor_shape_; - tensor_shape_ = NULL; -} inline const ::tensorflow::TensorShapeProto& TensorProto::tensor_shape() const { + const ::tensorflow::TensorShapeProto* p = tensor_shape_; // @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_shape) - return tensor_shape_ != NULL ? *tensor_shape_ - : *::tensorflow::TensorShapeProto::internal_default_instance(); + return p != NULL ? *p : *reinterpret_cast( + &::tensorflow::_TensorShapeProto_default_instance_); +} +inline ::tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() { + // @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_shape) + + ::tensorflow::TensorShapeProto* temp = tensor_shape_; + if (GetArenaNoVirtual() != NULL) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL); + } + tensor_shape_ = NULL; + return temp; +} +inline ::tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_tensor_shape() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_shape) + + ::tensorflow::TensorShapeProto* temp = tensor_shape_; + tensor_shape_ = NULL; + return temp; } inline ::tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() { @@ -353,35 +413,27 @@ inline ::tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() { // @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.tensor_shape) return tensor_shape_; } -inline ::tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() { - // @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_shape) - - if (GetArenaNoVirtual() != NULL) { - return _slow_release_tensor_shape(); - } else { - ::tensorflow::TensorShapeProto* temp = tensor_shape_; - tensor_shape_ = NULL; - return temp; - } -} -inline void TensorProto::set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape) { +inline void TensorProto::set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { - delete tensor_shape_; + delete reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_shape_); } - if (tensor_shape != NULL) { - _slow_set_allocated_tensor_shape(message_arena, &tensor_shape); - } - tensor_shape_ = tensor_shape; if (tensor_shape) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_shape)->GetArena(); + if (message_arena != submessage_arena) { + tensor_shape = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tensor_shape, submessage_arena); + } } else { } + tensor_shape_ = tensor_shape; // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_shape) } -// optional int32 version_number = 3; +// int32 version_number = 3; inline void TensorProto::clear_version_number() { version_number_ = 0; } @@ -395,20 +447,29 @@ inline void TensorProto::set_version_number(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:tensorflow.TensorProto.version_number) } -// optional bytes tensor_content = 4; +// bytes tensor_content = 4; inline void TensorProto::clear_tensor_content() { tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& TensorProto::tensor_content() const { // @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_content) - return tensor_content_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return tensor_content_.Get(); } inline void TensorProto::set_tensor_content(const ::std::string& value) { tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.TensorProto.tensor_content) } +#if LANG_CXX11 +inline void TensorProto::set_tensor_content(::std::string&& value) { + + tensor_content_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.TensorProto.tensor_content) +} +#endif inline void TensorProto::set_tensor_content(const char* value) { + GOOGLE_DCHECK(value != NULL); tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -431,13 +492,6 @@ inline ::std::string* TensorProto::release_tensor_content() { return tensor_content_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* TensorProto::unsafe_arena_release_tensor_content() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_content) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return tensor_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void TensorProto::set_allocated_tensor_content(::std::string* tensor_content) { if (tensor_content != NULL) { @@ -448,6 +502,13 @@ inline void TensorProto::set_allocated_tensor_content(::std::string* tensor_cont GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_content) } +inline ::std::string* TensorProto::unsafe_arena_release_tensor_content() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_content) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return tensor_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void TensorProto::unsafe_arena_set_allocated_tensor_content( ::std::string* tensor_content) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -600,7 +661,14 @@ inline void TensorProto::set_string_val(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:tensorflow.TensorProto.string_val) string_val_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void TensorProto::set_string_val(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:tensorflow.TensorProto.string_val) + string_val_.Mutable(index)->assign(std::move(value)); +} +#endif inline void TensorProto::set_string_val(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); string_val_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.string_val) } @@ -617,7 +685,14 @@ inline void TensorProto::add_string_val(const ::std::string& value) { string_val_.Add()->assign(value); // @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val) } +#if LANG_CXX11 +inline void TensorProto::add_string_val(::std::string&& value) { + string_val_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val) +} +#endif inline void TensorProto::add_string_val(const char* value) { + GOOGLE_DCHECK(value != NULL); string_val_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:tensorflow.TensorProto.string_val) } @@ -756,10 +831,9 @@ TensorProto::mutable_dcomplex_val() { return &dcomplex_val_; } -inline const TensorProto* TensorProto::internal_default_instance() { - return &TensorProto_default_instance_.get(); -} -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) diff --git a/modules/dnn/misc/tensorflow/tensor_shape.pb.cc b/modules/dnn/misc/tensorflow/tensor_shape.pb.cc index 1e92ff8842..b0459f7a95 100644 --- a/modules/dnn/misc/tensorflow/tensor_shape.pb.cc +++ b/modules/dnn/misc/tensorflow/tensor_shape.pb.cc @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensor_shape.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "tensor_shape.pb.h" #include @@ -15,142 +14,147 @@ #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) - namespace tensorflow { +class TensorShapeProto_DimDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TensorShapeProto_Dim_default_instance_; +class TensorShapeProtoDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TensorShapeProto_default_instance_; +} // namespace tensorflow +namespace protobuf_tensor_5fshape_2eproto { +void InitDefaultsTensorShapeProto_DimImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -namespace { - -const ::google::protobuf::Descriptor* TensorShapeProto_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TensorShapeProto_reflection_ = NULL; -const ::google::protobuf::Descriptor* TensorShapeProto_Dim_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - TensorShapeProto_Dim_reflection_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_tensor_5fshape_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_tensor_5fshape_2eproto() { - protobuf_AddDesc_tensor_5fshape_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "tensor_shape.proto"); - GOOGLE_CHECK(file != NULL); - TensorShapeProto_descriptor_ = file->message_type(0); - static const int TensorShapeProto_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto, dim_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto, unknown_rank_), - }; - TensorShapeProto_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TensorShapeProto_descriptor_, - TensorShapeProto::internal_default_instance(), - TensorShapeProto_offsets_, - -1, - -1, - -1, - sizeof(TensorShapeProto), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto, _internal_metadata_)); - TensorShapeProto_Dim_descriptor_ = TensorShapeProto_descriptor_->nested_type(0); - static const int TensorShapeProto_Dim_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto_Dim, size_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto_Dim, name_), - }; - TensorShapeProto_Dim_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - TensorShapeProto_Dim_descriptor_, - TensorShapeProto_Dim::internal_default_instance(), - TensorShapeProto_Dim_offsets_, - -1, - -1, - -1, - sizeof(TensorShapeProto_Dim), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TensorShapeProto_Dim, _internal_metadata_)); +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::tensorflow::_TensorShapeProto_Dim_default_instance_; + new (ptr) ::tensorflow::TensorShapeProto_Dim(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::TensorShapeProto_Dim::InitAsDefaultInstance(); } -namespace { +void InitDefaultsTensorShapeProto_Dim() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTensorShapeProto_DimImpl); +} + +void InitDefaultsTensorShapeProtoImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim(); + { + void* ptr = &::tensorflow::_TensorShapeProto_default_instance_; + new (ptr) ::tensorflow::TensorShapeProto(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::TensorShapeProto::InitAsDefaultInstance(); +} + +void InitDefaultsTensorShapeProto() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTensorShapeProtoImpl); +} + +::google::protobuf::Metadata file_level_metadata[2]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto_Dim, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto_Dim, size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto_Dim, name_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto, dim_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::TensorShapeProto, unknown_rank_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::tensorflow::TensorShapeProto_Dim)}, + { 7, -1, sizeof(::tensorflow::TensorShapeProto)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::tensorflow::_TensorShapeProto_Dim_default_instance_), + reinterpret_cast(&::tensorflow::_TensorShapeProto_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "tensor_shape.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_tensor_5fshape_2eproto); + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TensorShapeProto_descriptor_, TensorShapeProto::internal_default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TensorShapeProto_Dim_descriptor_, TensorShapeProto_Dim::internal_default_instance()); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); } -} // namespace - -void protobuf_ShutdownFile_tensor_5fshape_2eproto() { - TensorShapeProto_default_instance_.Shutdown(); - delete TensorShapeProto_reflection_; - TensorShapeProto_Dim_default_instance_.Shutdown(); - delete TensorShapeProto_Dim_reflection_; -} - -void protobuf_InitDefaults_tensor_5fshape_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - TensorShapeProto_default_instance_.DefaultConstruct(); - ::google::protobuf::internal::GetEmptyString(); - TensorShapeProto_Dim_default_instance_.DefaultConstruct(); - TensorShapeProto_default_instance_.get_mutable()->InitAsDefaultInstance(); - TensorShapeProto_Dim_default_instance_.get_mutable()->InitAsDefaultInstance(); -} - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_tensor_5fshape_2eproto_once_); -void protobuf_InitDefaults_tensor_5fshape_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_tensor_5fshape_2eproto_once_, - &protobuf_InitDefaults_tensor_5fshape_2eproto_impl); -} -void protobuf_AddDesc_tensor_5fshape_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - protobuf_InitDefaults_tensor_5fshape_2eproto(); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\022tensor_shape.proto\022\ntensorflow\"z\n\020Tens" + "orShapeProto\022-\n\003dim\030\002 \003(\0132 .tensorflow.T" + "ensorShapeProto.Dim\022\024\n\014unknown_rank\030\003 \001(" + "\010\032!\n\003Dim\022\014\n\004size\030\001 \001(\003\022\014\n\004name\030\002 \001(\tB2\n\030" + "org.tensorflow.frameworkB\021TensorShapePro" + "tosP\001\370\001\001b\006proto3" + }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\022tensor_shape.proto\022\ntensorflow\"z\n\020Tens" - "orShapeProto\022-\n\003dim\030\002 \003(\0132 .tensorflow.T" - "ensorShapeProto.Dim\022\024\n\014unknown_rank\030\003 \001(" - "\010\032!\n\003Dim\022\014\n\004size\030\001 \001(\003\022\014\n\004name\030\002 \001(\tB2\n\030" - "org.tensorflow.frameworkB\021TensorShapePro" - "tosP\001\370\001\001b\006proto3", 216); + descriptor, 216); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "tensor_shape.proto", &protobuf_RegisterTypes); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_tensor_5fshape_2eproto); } -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_tensor_5fshape_2eproto_once_); -void protobuf_AddDesc_tensor_5fshape_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_tensor_5fshape_2eproto_once_, - &protobuf_AddDesc_tensor_5fshape_2eproto_impl); +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_tensor_5fshape_2eproto { - StaticDescriptorInitializer_tensor_5fshape_2eproto() { - protobuf_AddDesc_tensor_5fshape_2eproto(); +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); } -} static_descriptor_initializer_tensor_5fshape_2eproto_; - -namespace { - -static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; -static void MergeFromFail(int line) { - ::google::protobuf::internal::MergeFromFail(__FILE__, line); -} - -} // namespace - +} static_descriptor_initializer; +} // namespace protobuf_tensor_5fshape_2eproto +namespace tensorflow { // =================================================================== +void TensorShapeProto_Dim::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int TensorShapeProto_Dim::kSizeFieldNumber; const int TensorShapeProto_Dim::kNameFieldNumber; @@ -158,29 +162,31 @@ const int TensorShapeProto_Dim::kNameFieldNumber; TensorShapeProto_Dim::TensorShapeProto_Dim() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_tensor_5fshape_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.TensorShapeProto.Dim) } TensorShapeProto_Dim::TensorShapeProto_Dim(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_tensor_5fshape_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.TensorShapeProto.Dim) } - -void TensorShapeProto_Dim::InitAsDefaultInstance() { -} - TensorShapeProto_Dim::TensorShapeProto_Dim(const TensorShapeProto_Dim& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(), + GetArenaNoVirtual()); + } + size_ = from.size_; // @@protoc_insertion_point(copy_constructor:tensorflow.TensorShapeProto.Dim) } @@ -196,12 +202,8 @@ TensorShapeProto_Dim::~TensorShapeProto_Dim() { } void TensorShapeProto_Dim::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - - name_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), arena); + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void TensorShapeProto_Dim::ArenaDtor(void* object) { @@ -216,25 +218,28 @@ void TensorShapeProto_Dim::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* TensorShapeProto_Dim::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TensorShapeProto_Dim_descriptor_; + ::protobuf_tensor_5fshape_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_tensor_5fshape_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const TensorShapeProto_Dim& TensorShapeProto_Dim::default_instance() { - protobuf_InitDefaults_tensor_5fshape_2eproto(); + ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_Dim(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed TensorShapeProto_Dim_default_instance_; - TensorShapeProto_Dim* TensorShapeProto_Dim::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void TensorShapeProto_Dim::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.TensorShapeProto.Dim) - size_ = GOOGLE_LONGLONG(0); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); + size_ = GOOGLE_LONGLONG(0); + _internal_metadata_.Clear(); } bool TensorShapeProto_Dim::MergePartialFromCodedStream( @@ -243,13 +248,14 @@ bool TensorShapeProto_Dim::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.TensorShapeProto.Dim) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int64 size = 1; + // int64 size = 1; case 1: { - if (tag == 8) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( @@ -257,35 +263,32 @@ bool TensorShapeProto_Dim::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_name; break; } - // optional string name = 2; + // string name = 2; case 2: { - if (tag == 18) { - parse_name: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "tensorflow.TensorShapeProto.Dim.name")); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -302,21 +305,28 @@ failure: void TensorShapeProto_Dim::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.TensorShapeProto.Dim) - // optional int64 size = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 size = 1; if (this->size() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->size(), output); } - // optional string name = 2; + // string name = 2; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorShapeProto.Dim.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->name(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.TensorShapeProto.Dim) } @@ -324,15 +334,18 @@ void TensorShapeProto_Dim::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorShapeProto.Dim) - // optional int64 size = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 size = 1; if (this->size() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->size(), target); } - // optional string name = 2; + // string name = 2; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), this->name().length(), + this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tensorflow.TensorShapeProto.Dim.name"); target = @@ -340,6 +353,10 @@ void TensorShapeProto_Dim::SerializeWithCachedSizes( 2, this->name(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorShapeProto.Dim) return target; } @@ -348,20 +365,25 @@ size_t TensorShapeProto_Dim::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorShapeProto.Dim) size_t total_size = 0; - // optional int64 size = 1; - if (this->size() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->size()); + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - - // optional string name = 2; + // string name = 2; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } + // int64 size = 1; + if (this->size() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->size()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -371,7 +393,7 @@ size_t TensorShapeProto_Dim::ByteSizeLong() const { void TensorShapeProto_Dim::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorShapeProto.Dim) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const TensorShapeProto_Dim* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -380,27 +402,23 @@ void TensorShapeProto_Dim::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorShapeProto.Dim) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void TensorShapeProto_Dim::MergeFrom(const TensorShapeProto_Dim& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorShapeProto.Dim) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void TensorShapeProto_Dim::UnsafeMergeFrom(const TensorShapeProto_Dim& from) { - GOOGLE_DCHECK(&from != this); - if (from.size() != 0) { - set_size(from.size()); - } if (from.name().size() > 0) { set_name(from.name()); } + if (from.size() != 0) { + set_size(from.size()); + } } void TensorShapeProto_Dim::CopyFrom(const ::google::protobuf::Message& from) { @@ -414,11 +432,10 @@ void TensorShapeProto_Dim::CopyFrom(const TensorShapeProto_Dim& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorShapeProto.Dim) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool TensorShapeProto_Dim::IsInitialized() const { - return true; } @@ -427,10 +444,13 @@ void TensorShapeProto_Dim::Swap(TensorShapeProto_Dim* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - TensorShapeProto_Dim temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + TensorShapeProto_Dim* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void TensorShapeProto_Dim::UnsafeArenaSwap(TensorShapeProto_Dim* other) { @@ -439,23 +459,23 @@ void TensorShapeProto_Dim::UnsafeArenaSwap(TensorShapeProto_Dim* other) { InternalSwap(other); } void TensorShapeProto_Dim::InternalSwap(TensorShapeProto_Dim* other) { - std::swap(size_, other->size_); + using std::swap; name_.Swap(&other->name_); + swap(size_, other->size_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata TensorShapeProto_Dim::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TensorShapeProto_Dim_descriptor_; - metadata.reflection = TensorShapeProto_Dim_reflection_; - return metadata; + protobuf_tensor_5fshape_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_tensor_5fshape_2eproto::file_level_metadata[kIndexInFileMessages]; } -// ------------------------------------------------------------------- +// =================================================================== +void TensorShapeProto::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int TensorShapeProto::kDimFieldNumber; const int TensorShapeProto::kUnknownRankFieldNumber; @@ -463,7 +483,9 @@ const int TensorShapeProto::kUnknownRankFieldNumber; TensorShapeProto::TensorShapeProto() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_tensor_5fshape_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.TensorShapeProto) } @@ -471,22 +493,18 @@ TensorShapeProto::TensorShapeProto(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), dim_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_tensor_5fshape_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.TensorShapeProto) } - -void TensorShapeProto::InitAsDefaultInstance() { -} - TensorShapeProto::TensorShapeProto(const TensorShapeProto& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + dim_(from.dim_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + unknown_rank_ = from.unknown_rank_; // @@protoc_insertion_point(copy_constructor:tensorflow.TensorShapeProto) } @@ -501,11 +519,7 @@ TensorShapeProto::~TensorShapeProto() { } void TensorShapeProto::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void TensorShapeProto::ArenaDtor(void* object) { @@ -520,25 +534,28 @@ void TensorShapeProto::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* TensorShapeProto::descriptor() { - protobuf_AssignDescriptorsOnce(); - return TensorShapeProto_descriptor_; + ::protobuf_tensor_5fshape_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_tensor_5fshape_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const TensorShapeProto& TensorShapeProto::default_instance() { - protobuf_InitDefaults_tensor_5fshape_2eproto(); + ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed TensorShapeProto_default_instance_; - TensorShapeProto* TensorShapeProto::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void TensorShapeProto::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.TensorShapeProto) - unknown_rank_ = false; + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + dim_.Clear(); + unknown_rank_ = false; + _internal_metadata_.Clear(); } bool TensorShapeProto::MergePartialFromCodedStream( @@ -547,30 +564,25 @@ bool TensorShapeProto::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.TensorShapeProto) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .tensorflow.TensorShapeProto.Dim dim = 2; case 2: { - if (tag == 18) { - DO_(input->IncrementRecursionDepth()); - parse_loop_dim: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_dim())); + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_dim())); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_loop_dim; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(24)) goto parse_unknown_rank; break; } - // optional bool unknown_rank = 3; + // bool unknown_rank = 3; case 3: { - if (tag == 24) { - parse_unknown_rank: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -578,18 +590,16 @@ bool TensorShapeProto::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -606,17 +616,25 @@ failure: void TensorShapeProto::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.TensorShapeProto) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .tensorflow.TensorShapeProto.Dim dim = 2; - for (unsigned int i = 0, n = this->dim_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->dim_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->dim(i), output); + 2, this->dim(static_cast(i)), output); } - // optional bool unknown_rank = 3; + // bool unknown_rank = 3; if (this->unknown_rank() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->unknown_rank(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.TensorShapeProto) } @@ -624,18 +642,26 @@ void TensorShapeProto::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TensorShapeProto) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .tensorflow.TensorShapeProto.Dim dim = 2; - for (unsigned int i = 0, n = this->dim_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->dim_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, this->dim(i), false, target); + InternalWriteMessageToArray( + 2, this->dim(static_cast(i)), deterministic, target); } - // optional bool unknown_rank = 3; + // bool unknown_rank = 3; if (this->unknown_rank() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->unknown_rank(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TensorShapeProto) return target; } @@ -644,22 +670,27 @@ size_t TensorShapeProto::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.TensorShapeProto) size_t total_size = 0; - // optional bool unknown_rank = 3; - if (this->unknown_rank() != 0) { - total_size += 1 + 1; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - // repeated .tensorflow.TensorShapeProto.Dim dim = 2; { - unsigned int count = this->dim_size(); + unsigned int count = static_cast(this->dim_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dim(i)); + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->dim(static_cast(i))); } } + // bool unknown_rank = 3; + if (this->unknown_rank() != 0) { + total_size += 1 + 1; + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -669,7 +700,7 @@ size_t TensorShapeProto::ByteSizeLong() const { void TensorShapeProto::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TensorShapeProto) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const TensorShapeProto* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -678,21 +709,17 @@ void TensorShapeProto::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TensorShapeProto) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void TensorShapeProto::MergeFrom(const TensorShapeProto& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TensorShapeProto) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void TensorShapeProto::UnsafeMergeFrom(const TensorShapeProto& from) { - GOOGLE_DCHECK(&from != this); dim_.MergeFrom(from.dim_); if (from.unknown_rank() != 0) { set_unknown_rank(from.unknown_rank()); @@ -710,11 +737,10 @@ void TensorShapeProto::CopyFrom(const TensorShapeProto& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TensorShapeProto) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool TensorShapeProto::IsInitialized() const { - return true; } @@ -723,10 +749,13 @@ void TensorShapeProto::Swap(TensorShapeProto* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - TensorShapeProto temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + TensorShapeProto* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void TensorShapeProto::UnsafeArenaSwap(TensorShapeProto* other) { @@ -735,161 +764,20 @@ void TensorShapeProto::UnsafeArenaSwap(TensorShapeProto* other) { InternalSwap(other); } void TensorShapeProto::InternalSwap(TensorShapeProto* other) { - dim_.UnsafeArenaSwap(&other->dim_); - std::swap(unknown_rank_, other->unknown_rank_); + using std::swap; + dim_.InternalSwap(&other->dim_); + swap(unknown_rank_, other->unknown_rank_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata TensorShapeProto::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = TensorShapeProto_descriptor_; - metadata.reflection = TensorShapeProto_reflection_; - return metadata; + protobuf_tensor_5fshape_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_tensor_5fshape_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TensorShapeProto_Dim - -// optional int64 size = 1; -void TensorShapeProto_Dim::clear_size() { - size_ = GOOGLE_LONGLONG(0); -} -::google::protobuf::int64 TensorShapeProto_Dim::size() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.size) - return size_; -} -void TensorShapeProto_Dim::set_size(::google::protobuf::int64 value) { - - size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.size) -} - -// optional string name = 2; -void TensorShapeProto_Dim::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -const ::std::string& TensorShapeProto_Dim::name() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void TensorShapeProto_Dim::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.name) -} -void TensorShapeProto_Dim::set_name(const char* value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.TensorShapeProto.Dim.name) -} -void TensorShapeProto_Dim::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorShapeProto.Dim.name) -} -::std::string* TensorShapeProto_Dim::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.Dim.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* TensorShapeProto_Dim::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.TensorShapeProto.Dim.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorShapeProto.Dim.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -void TensorShapeProto_Dim::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorShapeProto.Dim.name) -} -void TensorShapeProto_Dim::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorShapeProto.Dim.name) -} - -inline const TensorShapeProto_Dim* TensorShapeProto_Dim::internal_default_instance() { - return &TensorShapeProto_Dim_default_instance_.get(); -} -// ------------------------------------------------------------------- - -// TensorShapeProto - -// repeated .tensorflow.TensorShapeProto.Dim dim = 2; -int TensorShapeProto::dim_size() const { - return dim_.size(); -} -void TensorShapeProto::clear_dim() { - dim_.Clear(); -} -const ::tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.dim) - return dim_.Get(index); -} -::tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.dim) - return dim_.Mutable(index); -} -::tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() { - // @@protoc_insertion_point(field_add:tensorflow.TensorShapeProto.dim) - return dim_.Add(); -} -::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >* -TensorShapeProto::mutable_dim() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorShapeProto.dim) - return &dim_; -} -const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >& -TensorShapeProto::dim() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorShapeProto.dim) - return dim_; -} - -// optional bool unknown_rank = 3; -void TensorShapeProto::clear_unknown_rank() { - unknown_rank_ = false; -} -bool TensorShapeProto::unknown_rank() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.unknown_rank) - return unknown_rank_; -} -void TensorShapeProto::set_unknown_rank(bool value) { - - unknown_rank_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.unknown_rank) -} - -inline const TensorShapeProto* TensorShapeProto::internal_default_instance() { - return &TensorShapeProto_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace tensorflow // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/tensor_shape.pb.h b/modules/dnn/misc/tensorflow/tensor_shape.pb.h index df66bfccae..043d8b0ec2 100644 --- a/modules/dnn/misc/tensorflow/tensor_shape.pb.h +++ b/modules/dnn/misc/tensorflow/tensor_shape.pb.h @@ -8,37 +8,58 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3001000 +#if GOOGLE_PROTOBUF_VERSION < 3005000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include #include #include +#include #include #include #include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include // @@protoc_insertion_point(includes) +namespace protobuf_tensor_5fshape_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[2]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsTensorShapeProto_DimImpl(); +void InitDefaultsTensorShapeProto_Dim(); +void InitDefaultsTensorShapeProtoImpl(); +void InitDefaultsTensorShapeProto(); +inline void InitDefaults() { + InitDefaultsTensorShapeProto_Dim(); + InitDefaultsTensorShapeProto(); +} +} // namespace protobuf_tensor_5fshape_2eproto namespace tensorflow { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_tensor_5fshape_2eproto(); -void protobuf_InitDefaults_tensor_5fshape_2eproto(); -void protobuf_AssignDesc_tensor_5fshape_2eproto(); -void protobuf_ShutdownFile_tensor_5fshape_2eproto(); - class TensorShapeProto; +class TensorShapeProtoDefaultTypeInternal; +extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_; class TensorShapeProto_Dim; +class TensorShapeProto_DimDefaultTypeInternal; +extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_; +} // namespace tensorflow +namespace tensorflow { // =================================================================== @@ -53,48 +74,69 @@ class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_inse CopyFrom(from); return *this; } + #if LANG_CXX11 + TensorShapeProto_Dim(TensorShapeProto_Dim&& from) noexcept + : TensorShapeProto_Dim() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline TensorShapeProto_Dim& operator=(TensorShapeProto_Dim&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const TensorShapeProto_Dim& default_instance(); - static const TensorShapeProto_Dim* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TensorShapeProto_Dim* internal_default_instance() { + return reinterpret_cast( + &_TensorShapeProto_Dim_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; void UnsafeArenaSwap(TensorShapeProto_Dim* other); void Swap(TensorShapeProto_Dim* other); + friend void swap(TensorShapeProto_Dim& a, TensorShapeProto_Dim& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline TensorShapeProto_Dim* New() const { return New(NULL); } + inline TensorShapeProto_Dim* New() const PROTOBUF_FINAL { return New(NULL); } - TensorShapeProto_Dim* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + TensorShapeProto_Dim* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const TensorShapeProto_Dim& from); void MergeFrom(const TensorShapeProto_Dim& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(TensorShapeProto_Dim* other); - void UnsafeMergeFrom(const TensorShapeProto_Dim& from); protected: explicit TensorShapeProto_Dim(::google::protobuf::Arena* arena); private: @@ -109,51 +151,54 @@ class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_inse } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int64 size = 1; - void clear_size(); - static const int kSizeFieldNumber = 1; - ::google::protobuf::int64 size() const; - void set_size(::google::protobuf::int64 value); - - // optional string name = 2; + // string name = 2; void clear_name(); static const int kNameFieldNumber = 2; const ::std::string& name() const; void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif void set_name(const char* value); void set_name(const char* value, size_t size); ::std::string* mutable_name(); ::std::string* release_name(); void set_allocated_name(::std::string* name); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") ::std::string* unsafe_arena_release_name(); + PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") void unsafe_arena_set_allocated_name( ::std::string* name); + // int64 size = 1; + void clear_size(); + static const int kSizeFieldNumber = 1; + ::google::protobuf::int64 size() const; + void set_size(::google::protobuf::int64 value); + // @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto.Dim) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::int64 size_; mutable int _cached_size_; - friend void protobuf_InitDefaults_tensor_5fshape_2eproto_impl(); - friend void protobuf_AddDesc_tensor_5fshape_2eproto_impl(); - friend void protobuf_AssignDesc_tensor_5fshape_2eproto(); - friend void protobuf_ShutdownFile_tensor_5fshape_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_tensor_5fshape_2eproto::TableStruct; + friend void ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_DimImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed TensorShapeProto_Dim_default_instance_; - // ------------------------------------------------------------------- class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorShapeProto) */ { @@ -167,48 +212,69 @@ class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + TensorShapeProto(TensorShapeProto&& from) noexcept + : TensorShapeProto() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline TensorShapeProto& operator=(TensorShapeProto&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const TensorShapeProto& default_instance(); - static const TensorShapeProto* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TensorShapeProto* internal_default_instance() { + return reinterpret_cast( + &_TensorShapeProto_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; void UnsafeArenaSwap(TensorShapeProto* other); void Swap(TensorShapeProto* other); + friend void swap(TensorShapeProto& a, TensorShapeProto& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline TensorShapeProto* New() const { return New(NULL); } + inline TensorShapeProto* New() const PROTOBUF_FINAL { return New(NULL); } - TensorShapeProto* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + TensorShapeProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const TensorShapeProto& from); void MergeFrom(const TensorShapeProto& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(TensorShapeProto* other); - void UnsafeMergeFrom(const TensorShapeProto& from); protected: explicit TensorShapeProto(::google::protobuf::Arena* arena); private: @@ -223,7 +289,7 @@ class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertio } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -243,7 +309,7 @@ class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertio const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >& dim() const; - // optional bool unknown_rank = 3; + // bool unknown_rank = 3; void clear_unknown_rank(); static const int kUnknownRankFieldNumber = 3; bool unknown_rank() const; @@ -253,30 +319,27 @@ class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertio private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim > dim_; bool unknown_rank_; mutable int _cached_size_; - friend void protobuf_InitDefaults_tensor_5fshape_2eproto_impl(); - friend void protobuf_AddDesc_tensor_5fshape_2eproto_impl(); - friend void protobuf_AssignDesc_tensor_5fshape_2eproto(); - friend void protobuf_ShutdownFile_tensor_5fshape_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_tensor_5fshape_2eproto::TableStruct; + friend void ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProtoImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed TensorShapeProto_default_instance_; - // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // TensorShapeProto_Dim -// optional int64 size = 1; +// int64 size = 1; inline void TensorShapeProto_Dim::clear_size() { size_ = GOOGLE_LONGLONG(0); } @@ -290,20 +353,29 @@ inline void TensorShapeProto_Dim::set_size(::google::protobuf::int64 value) { // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.size) } -// optional string name = 2; +// string name = 2; inline void TensorShapeProto_Dim::clear_name() { name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& TensorShapeProto_Dim::name() const { // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.name) - return name_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return name_.Get(); } inline void TensorShapeProto_Dim::set_name(const ::std::string& value) { name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.name) } +#if LANG_CXX11 +inline void TensorShapeProto_Dim::set_name(::std::string&& value) { + + name_.Set( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); + // @@protoc_insertion_point(field_set_rvalue:tensorflow.TensorShapeProto.Dim.name) +} +#endif inline void TensorShapeProto_Dim::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); @@ -326,13 +398,6 @@ inline ::std::string* TensorShapeProto_Dim::release_name() { return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -inline ::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorShapeProto.Dim.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} inline void TensorShapeProto_Dim::set_allocated_name(::std::string* name) { if (name != NULL) { @@ -343,6 +408,13 @@ inline void TensorShapeProto_Dim::set_allocated_name(::std::string* name) { GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorShapeProto.Dim.name) } +inline ::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorShapeProto.Dim.name) + GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); + + return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} inline void TensorShapeProto_Dim::unsafe_arena_set_allocated_name( ::std::string* name) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); @@ -356,9 +428,6 @@ inline void TensorShapeProto_Dim::unsafe_arena_set_allocated_name( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorShapeProto.Dim.name) } -inline const TensorShapeProto_Dim* TensorShapeProto_Dim::internal_default_instance() { - return &TensorShapeProto_Dim_default_instance_.get(); -} // ------------------------------------------------------------------- // TensorShapeProto @@ -393,7 +462,7 @@ TensorShapeProto::dim() const { return dim_; } -// optional bool unknown_rank = 3; +// bool unknown_rank = 3; inline void TensorShapeProto::clear_unknown_rank() { unknown_rank_ = false; } @@ -407,10 +476,9 @@ inline void TensorShapeProto::set_unknown_rank(bool value) { // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.unknown_rank) } -inline const TensorShapeProto* TensorShapeProto::internal_default_instance() { - return &TensorShapeProto_default_instance_.get(); -} -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // ------------------------------------------------------------------- diff --git a/modules/dnn/misc/tensorflow/types.pb.cc b/modules/dnn/misc/tensorflow/types.pb.cc index 0e509cc200..39f917ffe1 100644 --- a/modules/dnn/misc/tensorflow/types.pb.cc +++ b/modules/dnn/misc/tensorflow/types.pb.cc @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: types.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "types.pb.h" #include @@ -15,98 +14,81 @@ #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) - namespace tensorflow { +} // namespace tensorflow +namespace protobuf_types_2eproto { +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; +const ::google::protobuf::uint32 TableStruct::offsets[1] = {}; +static const ::google::protobuf::internal::MigrationSchema* schemas = NULL; +static const ::google::protobuf::Message* const* file_default_instances = NULL; -namespace { - -const ::google::protobuf::EnumDescriptor* DataType_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_types_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_types_2eproto() { - protobuf_AddDesc_types_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "types.proto"); - GOOGLE_CHECK(file != NULL); - DataType_descriptor_ = file->enum_type(0); +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "types.proto", schemas, file_default_instances, TableStruct::offsets, factory, + NULL, file_level_enum_descriptors, NULL); } -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_types_2eproto); + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); } -} // namespace - -void protobuf_ShutdownFile_types_2eproto() { -} - -void protobuf_InitDefaults_types_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - -} - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_types_2eproto_once_); -void protobuf_InitDefaults_types_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_types_2eproto_once_, - &protobuf_InitDefaults_types_2eproto_impl); -} -void protobuf_AddDesc_types_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - protobuf_InitDefaults_types_2eproto(); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\013types.proto\022\ntensorflow*\234\005\n\010DataType\022\016" + "\n\nDT_INVALID\020\000\022\014\n\010DT_FLOAT\020\001\022\r\n\tDT_DOUBL" + "E\020\002\022\014\n\010DT_INT32\020\003\022\014\n\010DT_UINT8\020\004\022\014\n\010DT_IN" + "T16\020\005\022\013\n\007DT_INT8\020\006\022\r\n\tDT_STRING\020\007\022\020\n\014DT_" + "COMPLEX64\020\010\022\014\n\010DT_INT64\020\t\022\013\n\007DT_BOOL\020\n\022\014" + "\n\010DT_QINT8\020\013\022\r\n\tDT_QUINT8\020\014\022\r\n\tDT_QINT32" + "\020\r\022\017\n\013DT_BFLOAT16\020\016\022\r\n\tDT_QINT16\020\017\022\016\n\nDT" + "_QUINT16\020\020\022\r\n\tDT_UINT16\020\021\022\021\n\rDT_COMPLEX1" + "28\020\022\022\013\n\007DT_HALF\020\023\022\020\n\014DT_FLOAT_REF\020e\022\021\n\rD" + "T_DOUBLE_REF\020f\022\020\n\014DT_INT32_REF\020g\022\020\n\014DT_U" + "INT8_REF\020h\022\020\n\014DT_INT16_REF\020i\022\017\n\013DT_INT8_" + "REF\020j\022\021\n\rDT_STRING_REF\020k\022\024\n\020DT_COMPLEX64" + "_REF\020l\022\020\n\014DT_INT64_REF\020m\022\017\n\013DT_BOOL_REF\020" + "n\022\020\n\014DT_QINT8_REF\020o\022\021\n\rDT_QUINT8_REF\020p\022\021" + "\n\rDT_QINT32_REF\020q\022\023\n\017DT_BFLOAT16_REF\020r\022\021" + "\n\rDT_QINT16_REF\020s\022\022\n\016DT_QUINT16_REF\020t\022\021\n" + "\rDT_UINT16_REF\020u\022\025\n\021DT_COMPLEX128_REF\020v\022" + "\017\n\013DT_HALF_REF\020wB,\n\030org.tensorflow.frame" + "workB\013TypesProtosP\001\370\001\001b\006proto3" + }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\013types.proto\022\ntensorflow*\234\005\n\010DataType\022\016" - "\n\nDT_INVALID\020\000\022\014\n\010DT_FLOAT\020\001\022\r\n\tDT_DOUBL" - "E\020\002\022\014\n\010DT_INT32\020\003\022\014\n\010DT_UINT8\020\004\022\014\n\010DT_IN" - "T16\020\005\022\013\n\007DT_INT8\020\006\022\r\n\tDT_STRING\020\007\022\020\n\014DT_" - "COMPLEX64\020\010\022\014\n\010DT_INT64\020\t\022\013\n\007DT_BOOL\020\n\022\014" - "\n\010DT_QINT8\020\013\022\r\n\tDT_QUINT8\020\014\022\r\n\tDT_QINT32" - "\020\r\022\017\n\013DT_BFLOAT16\020\016\022\r\n\tDT_QINT16\020\017\022\016\n\nDT" - "_QUINT16\020\020\022\r\n\tDT_UINT16\020\021\022\021\n\rDT_COMPLEX1" - "28\020\022\022\013\n\007DT_HALF\020\023\022\020\n\014DT_FLOAT_REF\020e\022\021\n\rD" - "T_DOUBLE_REF\020f\022\020\n\014DT_INT32_REF\020g\022\020\n\014DT_U" - "INT8_REF\020h\022\020\n\014DT_INT16_REF\020i\022\017\n\013DT_INT8_" - "REF\020j\022\021\n\rDT_STRING_REF\020k\022\024\n\020DT_COMPLEX64" - "_REF\020l\022\020\n\014DT_INT64_REF\020m\022\017\n\013DT_BOOL_REF\020" - "n\022\020\n\014DT_QINT8_REF\020o\022\021\n\rDT_QUINT8_REF\020p\022\021" - "\n\rDT_QINT32_REF\020q\022\023\n\017DT_BFLOAT16_REF\020r\022\021" - "\n\rDT_QINT16_REF\020s\022\022\n\016DT_QUINT16_REF\020t\022\021\n" - "\rDT_UINT16_REF\020u\022\025\n\021DT_COMPLEX128_REF\020v\022" - "\017\n\013DT_HALF_REF\020wB,\n\030org.tensorflow.frame" - "workB\013TypesProtosP\001\370\001\001b\006proto3", 750); + descriptor, 750); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "types.proto", &protobuf_RegisterTypes); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_types_2eproto); } -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_types_2eproto_once_); -void protobuf_AddDesc_types_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_types_2eproto_once_, - &protobuf_AddDesc_types_2eproto_impl); +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_types_2eproto { - StaticDescriptorInitializer_types_2eproto() { - protobuf_AddDesc_types_2eproto(); +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); } -} static_descriptor_initializer_types_2eproto_; +} static_descriptor_initializer; +} // namespace protobuf_types_2eproto +namespace tensorflow { const ::google::protobuf::EnumDescriptor* DataType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return DataType_descriptor_; + protobuf_types_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_types_2eproto::file_level_enum_descriptors[0]; } bool DataType_IsValid(int value) { switch (value) { @@ -157,7 +139,6 @@ bool DataType_IsValid(int value) { // @@protoc_insertion_point(namespace_scope) - } // namespace tensorflow // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/types.pb.h b/modules/dnn/misc/tensorflow/types.pb.h index 40ed7b856f..0f1aa4214a 100644 --- a/modules/dnn/misc/tensorflow/types.pb.h +++ b/modules/dnn/misc/tensorflow/types.pb.h @@ -8,34 +8,45 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3001000 +#if GOOGLE_PROTOBUF_VERSION < 3005000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include #include #include +#include #include #include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include // @@protoc_insertion_point(includes) +namespace protobuf_types_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +inline void InitDefaults() { +} +} // namespace protobuf_types_2eproto +namespace tensorflow { +} // namespace tensorflow namespace tensorflow { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_types_2eproto(); -void protobuf_InitDefaults_types_2eproto(); -void protobuf_AssignDesc_types_2eproto(); -void protobuf_ShutdownFile_types_2eproto(); - enum DataType { DT_INVALID = 0, @@ -103,14 +114,18 @@ inline bool DataType_Parse( // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) } // namespace tensorflow -#ifndef SWIG namespace google { namespace protobuf { @@ -122,7 +137,6 @@ inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::DataType>() { } // namespace protobuf } // namespace google -#endif // SWIG // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/versions.pb.cc b/modules/dnn/misc/tensorflow/versions.pb.cc index a4556a0ff7..e3c7ebf50a 100644 --- a/modules/dnn/misc/tensorflow/versions.pb.cc +++ b/modules/dnn/misc/tensorflow/versions.pb.cc @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: versions.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "versions.pb.h" #include @@ -15,117 +14,111 @@ #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) - namespace tensorflow { +class VersionDefDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _VersionDef_default_instance_; +} // namespace tensorflow +namespace protobuf_versions_2eproto { +void InitDefaultsVersionDefImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -namespace { - -const ::google::protobuf::Descriptor* VersionDef_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - VersionDef_reflection_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_versions_2eproto() GOOGLE_ATTRIBUTE_COLD; -void protobuf_AssignDesc_versions_2eproto() { - protobuf_AddDesc_versions_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "versions.proto"); - GOOGLE_CHECK(file != NULL); - VersionDef_descriptor_ = file->message_type(0); - static const int VersionDef_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionDef, producer_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionDef, min_consumer_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionDef, bad_consumers_), - }; - VersionDef_reflection_ = - ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( - VersionDef_descriptor_, - VersionDef::internal_default_instance(), - VersionDef_offsets_, - -1, - -1, - -1, - sizeof(VersionDef), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionDef, _internal_metadata_)); +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::tensorflow::_VersionDef_default_instance_; + new (ptr) ::tensorflow::VersionDef(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::tensorflow::VersionDef::InitAsDefaultInstance(); } -namespace { +void InitDefaultsVersionDef() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVersionDefImpl); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::VersionDef, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::VersionDef, producer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::VersionDef, min_consumer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tensorflow::VersionDef, bad_consumers_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::tensorflow::VersionDef)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::tensorflow::_VersionDef_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "versions.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_versions_2eproto); + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - VersionDef_descriptor_, VersionDef::internal_default_instance()); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); } -} // namespace - -void protobuf_ShutdownFile_versions_2eproto() { - VersionDef_default_instance_.Shutdown(); - delete VersionDef_reflection_; -} - -void protobuf_InitDefaults_versions_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - VersionDef_default_instance_.DefaultConstruct(); - VersionDef_default_instance_.get_mutable()->InitAsDefaultInstance(); -} - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_versions_2eproto_once_); -void protobuf_InitDefaults_versions_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_versions_2eproto_once_, - &protobuf_InitDefaults_versions_2eproto_impl); -} -void protobuf_AddDesc_versions_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - protobuf_InitDefaults_versions_2eproto(); +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\016versions.proto\022\ntensorflow\"K\n\nVersionD" + "ef\022\020\n\010producer\030\001 \001(\005\022\024\n\014min_consumer\030\002 \001" + "(\005\022\025\n\rbad_consumers\030\003 \003(\005B/\n\030org.tensorf" + "low.frameworkB\016VersionsProtosP\001\370\001\001b\006prot" + "o3" + }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\016versions.proto\022\ntensorflow\"K\n\nVersionD" - "ef\022\020\n\010producer\030\001 \001(\005\022\024\n\014min_consumer\030\002 \001" - "(\005\022\025\n\rbad_consumers\030\003 \003(\005B/\n\030org.tensorf" - "low.frameworkB\016VersionsProtosP\001\370\001\001b\006prot" - "o3", 162); + descriptor, 162); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "versions.proto", &protobuf_RegisterTypes); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_versions_2eproto); } -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_versions_2eproto_once_); -void protobuf_AddDesc_versions_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_versions_2eproto_once_, - &protobuf_AddDesc_versions_2eproto_impl); +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_versions_2eproto { - StaticDescriptorInitializer_versions_2eproto() { - protobuf_AddDesc_versions_2eproto(); +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); } -} static_descriptor_initializer_versions_2eproto_; - -namespace { - -static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN; -static void MergeFromFail(int line) { - ::google::protobuf::internal::MergeFromFail(__FILE__, line); -} - -} // namespace - +} static_descriptor_initializer; +} // namespace protobuf_versions_2eproto +namespace tensorflow { // =================================================================== +void VersionDef::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int VersionDef::kProducerFieldNumber; const int VersionDef::kMinConsumerFieldNumber; @@ -134,7 +127,9 @@ const int VersionDef::kBadConsumersFieldNumber; VersionDef::VersionDef() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (this != internal_default_instance()) protobuf_InitDefaults_versions_2eproto(); + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_versions_2eproto::InitDefaultsVersionDef(); + } SharedCtor(); // @@protoc_insertion_point(constructor:tensorflow.VersionDef) } @@ -142,28 +137,27 @@ VersionDef::VersionDef(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), bad_consumers_(arena) { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_InitDefaults_versions_2eproto(); -#endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER + ::protobuf_versions_2eproto::InitDefaultsVersionDef(); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:tensorflow.VersionDef) } - -void VersionDef::InitAsDefaultInstance() { -} - VersionDef::VersionDef(const VersionDef& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL) { - SharedCtor(); - UnsafeMergeFrom(from); + _internal_metadata_(NULL), + bad_consumers_(from.bad_consumers_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&producer_, &from.producer_, + static_cast(reinterpret_cast(&min_consumer_) - + reinterpret_cast(&producer_)) + sizeof(min_consumer_)); // @@protoc_insertion_point(copy_constructor:tensorflow.VersionDef) } void VersionDef::SharedCtor() { - ::memset(&producer_, 0, reinterpret_cast(&min_consumer_) - - reinterpret_cast(&producer_) + sizeof(min_consumer_)); + ::memset(&producer_, 0, static_cast( + reinterpret_cast(&min_consumer_) - + reinterpret_cast(&producer_)) + sizeof(min_consumer_)); _cached_size_ = 0; } @@ -173,11 +167,7 @@ VersionDef::~VersionDef() { } void VersionDef::SharedDtor() { - ::google::protobuf::Arena* arena = GetArenaNoVirtual(); - if (arena != NULL) { - return; - } - + GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void VersionDef::ArenaDtor(void* object) { @@ -192,45 +182,30 @@ void VersionDef::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* VersionDef::descriptor() { - protobuf_AssignDescriptorsOnce(); - return VersionDef_descriptor_; + ::protobuf_versions_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_versions_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const VersionDef& VersionDef::default_instance() { - protobuf_InitDefaults_versions_2eproto(); + ::protobuf_versions_2eproto::InitDefaultsVersionDef(); return *internal_default_instance(); } -::google::protobuf::internal::ExplicitlyConstructed VersionDef_default_instance_; - VersionDef* VersionDef::New(::google::protobuf::Arena* arena) const { return ::google::protobuf::Arena::CreateMessage(arena); } void VersionDef::Clear() { // @@protoc_insertion_point(message_clear_start:tensorflow.VersionDef) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(VersionDef, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&(first), 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(producer_, min_consumer_); - -#undef ZR_HELPER_ -#undef ZR_ + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; bad_consumers_.Clear(); + ::memset(&producer_, 0, static_cast( + reinterpret_cast(&min_consumer_) - + reinterpret_cast(&producer_)) + sizeof(min_consumer_)); + _internal_metadata_.Clear(); } bool VersionDef::MergePartialFromCodedStream( @@ -239,13 +214,14 @@ bool VersionDef::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:tensorflow.VersionDef) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional int32 producer = 1; + // int32 producer = 1; case 1: { - if (tag == 8) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -253,14 +229,13 @@ bool VersionDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_min_consumer; break; } - // optional int32 min_consumer = 2; + // int32 min_consumer = 2; case 2: { - if (tag == 16) { - parse_min_consumer: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -268,36 +243,35 @@ bool VersionDef::MergePartialFromCodedStream( } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_bad_consumers; break; } // repeated int32 bad_consumers = 3; case 3: { - if (tag == 26) { - parse_bad_consumers: + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_bad_consumers()))); - } else if (tag == 24) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - 1, 26, input, this->mutable_bad_consumers()))); + 1, 26u, input, this->mutable_bad_consumers()))); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -314,12 +288,15 @@ failure: void VersionDef::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:tensorflow.VersionDef) - // optional int32 producer = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 producer = 1; if (this->producer() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->producer(), output); } - // optional int32 min_consumer = 2; + // int32 min_consumer = 2; if (this->min_consumer() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_consumer(), output); } @@ -327,13 +304,18 @@ void VersionDef::SerializeWithCachedSizes( // repeated int32 bad_consumers = 3; if (this->bad_consumers_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_bad_consumers_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _bad_consumers_cached_byte_size_)); } - for (int i = 0; i < this->bad_consumers_size(); i++) { + for (int i = 0, n = this->bad_consumers_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->bad_consumers(i), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:tensorflow.VersionDef) } @@ -341,12 +323,15 @@ void VersionDef::SerializeWithCachedSizes( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:tensorflow.VersionDef) - // optional int32 producer = 1; + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 producer = 1; if (this->producer() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->producer(), target); } - // optional int32 min_consumer = 2; + // int32 min_consumer = 2; if (this->min_consumer() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_consumer(), target); } @@ -358,13 +343,16 @@ void VersionDef::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _bad_consumers_cached_byte_size_, target); - } - for (int i = 0; i < this->bad_consumers_size(); i++) { + static_cast< ::google::protobuf::int32>( + _bad_consumers_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->bad_consumers(i), target); + WriteInt32NoTagToArray(this->bad_consumers_, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:tensorflow.VersionDef) return target; } @@ -373,31 +361,19 @@ size_t VersionDef::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:tensorflow.VersionDef) size_t total_size = 0; - // optional int32 producer = 1; - if (this->producer() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->producer()); + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - - // optional int32 min_consumer = 2; - if (this->min_consumer() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->min_consumer()); - } - // repeated int32 bad_consumers = 3; { - size_t data_size = 0; - unsigned int count = this->bad_consumers_size(); - for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - Int32Size(this->bad_consumers(i)); - } + size_t data_size = ::google::protobuf::internal::WireFormatLite:: + Int32Size(this->bad_consumers_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -406,6 +382,20 @@ size_t VersionDef::ByteSizeLong() const { total_size += data_size; } + // int32 producer = 1; + if (this->producer() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->producer()); + } + + // int32 min_consumer = 2; + if (this->min_consumer() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->min_consumer()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -415,7 +405,7 @@ size_t VersionDef::ByteSizeLong() const { void VersionDef::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.VersionDef) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); + GOOGLE_DCHECK_NE(&from, this); const VersionDef* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); @@ -424,22 +414,18 @@ void VersionDef::MergeFrom(const ::google::protobuf::Message& from) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.VersionDef) - UnsafeMergeFrom(*source); + MergeFrom(*source); } } void VersionDef::MergeFrom(const VersionDef& from) { // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.VersionDef) - if (GOOGLE_PREDICT_TRUE(&from != this)) { - UnsafeMergeFrom(from); - } else { - MergeFromFail(__LINE__); - } -} + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; -void VersionDef::UnsafeMergeFrom(const VersionDef& from) { - GOOGLE_DCHECK(&from != this); - bad_consumers_.UnsafeMergeFrom(from.bad_consumers_); + bad_consumers_.MergeFrom(from.bad_consumers_); if (from.producer() != 0) { set_producer(from.producer()); } @@ -459,11 +445,10 @@ void VersionDef::CopyFrom(const VersionDef& from) { // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.VersionDef) if (&from == this) return; Clear(); - UnsafeMergeFrom(from); + MergeFrom(from); } bool VersionDef::IsInitialized() const { - return true; } @@ -472,10 +457,13 @@ void VersionDef::Swap(VersionDef* other) { if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { - VersionDef temp; - temp.UnsafeMergeFrom(*this); - CopyFrom(*other); - other->CopyFrom(temp); + VersionDef* temp = New(GetArenaNoVirtual()); + temp->MergeFrom(*other); + other->CopyFrom(*this); + InternalSwap(temp); + if (GetArenaNoVirtual() == NULL) { + delete temp; + } } } void VersionDef::UnsafeArenaSwap(VersionDef* other) { @@ -484,89 +472,21 @@ void VersionDef::UnsafeArenaSwap(VersionDef* other) { InternalSwap(other); } void VersionDef::InternalSwap(VersionDef* other) { - std::swap(producer_, other->producer_); - std::swap(min_consumer_, other->min_consumer_); - bad_consumers_.UnsafeArenaSwap(&other->bad_consumers_); + using std::swap; + bad_consumers_.InternalSwap(&other->bad_consumers_); + swap(producer_, other->producer_); + swap(min_consumer_, other->min_consumer_); _internal_metadata_.Swap(&other->_internal_metadata_); - std::swap(_cached_size_, other->_cached_size_); + swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata VersionDef::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = VersionDef_descriptor_; - metadata.reflection = VersionDef_reflection_; - return metadata; + protobuf_versions_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_versions_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// VersionDef - -// optional int32 producer = 1; -void VersionDef::clear_producer() { - producer_ = 0; -} -::google::protobuf::int32 VersionDef::producer() const { - // @@protoc_insertion_point(field_get:tensorflow.VersionDef.producer) - return producer_; -} -void VersionDef::set_producer(::google::protobuf::int32 value) { - - producer_ = value; - // @@protoc_insertion_point(field_set:tensorflow.VersionDef.producer) -} - -// optional int32 min_consumer = 2; -void VersionDef::clear_min_consumer() { - min_consumer_ = 0; -} -::google::protobuf::int32 VersionDef::min_consumer() const { - // @@protoc_insertion_point(field_get:tensorflow.VersionDef.min_consumer) - return min_consumer_; -} -void VersionDef::set_min_consumer(::google::protobuf::int32 value) { - - min_consumer_ = value; - // @@protoc_insertion_point(field_set:tensorflow.VersionDef.min_consumer) -} - -// repeated int32 bad_consumers = 3; -int VersionDef::bad_consumers_size() const { - return bad_consumers_.size(); -} -void VersionDef::clear_bad_consumers() { - bad_consumers_.Clear(); -} -::google::protobuf::int32 VersionDef::bad_consumers(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.VersionDef.bad_consumers) - return bad_consumers_.Get(index); -} -void VersionDef::set_bad_consumers(int index, ::google::protobuf::int32 value) { - bad_consumers_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.VersionDef.bad_consumers) -} -void VersionDef::add_bad_consumers(::google::protobuf::int32 value) { - bad_consumers_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.VersionDef.bad_consumers) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -VersionDef::bad_consumers() const { - // @@protoc_insertion_point(field_list:tensorflow.VersionDef.bad_consumers) - return bad_consumers_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -VersionDef::mutable_bad_consumers() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.VersionDef.bad_consumers) - return &bad_consumers_; -} - -inline const VersionDef* VersionDef::internal_default_instance() { - return &VersionDef_default_instance_.get(); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace tensorflow // @@protoc_insertion_point(global_scope) diff --git a/modules/dnn/misc/tensorflow/versions.pb.h b/modules/dnn/misc/tensorflow/versions.pb.h index ce099cbf48..d67bce8d42 100644 --- a/modules/dnn/misc/tensorflow/versions.pb.h +++ b/modules/dnn/misc/tensorflow/versions.pb.h @@ -8,36 +8,52 @@ #include -#if GOOGLE_PROTOBUF_VERSION < 3001000 +#if GOOGLE_PROTOBUF_VERSION < 3005000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include #include #include +#include #include #include #include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export #include // @@protoc_insertion_point(includes) +namespace protobuf_versions_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsVersionDefImpl(); +void InitDefaultsVersionDef(); +inline void InitDefaults() { + InitDefaultsVersionDef(); +} +} // namespace protobuf_versions_2eproto namespace tensorflow { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_versions_2eproto(); -void protobuf_InitDefaults_versions_2eproto(); -void protobuf_AssignDesc_versions_2eproto(); -void protobuf_ShutdownFile_versions_2eproto(); - class VersionDef; +class VersionDefDefaultTypeInternal; +extern VersionDefDefaultTypeInternal _VersionDef_default_instance_; +} // namespace tensorflow +namespace tensorflow { // =================================================================== @@ -52,48 +68,69 @@ class VersionDef : public ::google::protobuf::Message /* @@protoc_insertion_poin CopyFrom(from); return *this; } + #if LANG_CXX11 + VersionDef(VersionDef&& from) noexcept + : VersionDef() { + *this = ::std::move(from); + } - inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(); } - inline void* GetMaybeArenaPointer() const { + inline VersionDef& operator=(VersionDef&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { + return GetArenaNoVirtual(); + } + inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const VersionDef& default_instance(); - static const VersionDef* internal_default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VersionDef* internal_default_instance() { + return reinterpret_cast( + &_VersionDef_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; void UnsafeArenaSwap(VersionDef* other); void Swap(VersionDef* other); + friend void swap(VersionDef& a, VersionDef& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline VersionDef* New() const { return New(NULL); } + inline VersionDef* New() const PROTOBUF_FINAL { return New(NULL); } - VersionDef* New(::google::protobuf::Arena* arena) const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); + VersionDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const VersionDef& from); void MergeFrom(const VersionDef& from); - void Clear(); - bool IsInitialized() const; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; - size_t ByteSizeLong() const; + size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const { - return InternalSerializeWithCachedSizesToArray(false, output); - } - int GetCachedSize() const { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const; + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(VersionDef* other); - void UnsafeMergeFrom(const VersionDef& from); protected: explicit VersionDef(::google::protobuf::Arena* arena); private: @@ -108,24 +145,12 @@ class VersionDef : public ::google::protobuf::Message /* @@protoc_insertion_poin } public: - ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // optional int32 producer = 1; - void clear_producer(); - static const int kProducerFieldNumber = 1; - ::google::protobuf::int32 producer() const; - void set_producer(::google::protobuf::int32 value); - - // optional int32 min_consumer = 2; - void clear_min_consumer(); - static const int kMinConsumerFieldNumber = 2; - ::google::protobuf::int32 min_consumer() const; - void set_min_consumer(::google::protobuf::int32 value); - // repeated int32 bad_consumers = 3; int bad_consumers_size() const; void clear_bad_consumers(); @@ -138,11 +163,23 @@ class VersionDef : public ::google::protobuf::Message /* @@protoc_insertion_poin ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* mutable_bad_consumers(); + // int32 producer = 1; + void clear_producer(); + static const int kProducerFieldNumber = 1; + ::google::protobuf::int32 producer() const; + void set_producer(::google::protobuf::int32 value); + + // int32 min_consumer = 2; + void clear_min_consumer(); + static const int kMinConsumerFieldNumber = 2; + ::google::protobuf::int32 min_consumer() const; + void set_min_consumer(::google::protobuf::int32 value); + // @@protoc_insertion_point(class_scope:tensorflow.VersionDef) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - friend class ::google::protobuf::Arena; + template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::RepeatedField< ::google::protobuf::int32 > bad_consumers_; @@ -150,24 +187,21 @@ class VersionDef : public ::google::protobuf::Message /* @@protoc_insertion_poin ::google::protobuf::int32 producer_; ::google::protobuf::int32 min_consumer_; mutable int _cached_size_; - friend void protobuf_InitDefaults_versions_2eproto_impl(); - friend void protobuf_AddDesc_versions_2eproto_impl(); - friend void protobuf_AssignDesc_versions_2eproto(); - friend void protobuf_ShutdownFile_versions_2eproto(); - - void InitAsDefaultInstance(); + friend struct ::protobuf_versions_2eproto::TableStruct; + friend void ::protobuf_versions_2eproto::InitDefaultsVersionDefImpl(); }; -extern ::google::protobuf::internal::ExplicitlyConstructed VersionDef_default_instance_; - // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // VersionDef -// optional int32 producer = 1; +// int32 producer = 1; inline void VersionDef::clear_producer() { producer_ = 0; } @@ -181,7 +215,7 @@ inline void VersionDef::set_producer(::google::protobuf::int32 value) { // @@protoc_insertion_point(field_set:tensorflow.VersionDef.producer) } -// optional int32 min_consumer = 2; +// int32 min_consumer = 2; inline void VersionDef::clear_min_consumer() { min_consumer_ = 0; } @@ -225,10 +259,9 @@ VersionDef::mutable_bad_consumers() { return &bad_consumers_; } -inline const VersionDef* VersionDef::internal_default_instance() { - return &VersionDef_default_instance_.get(); -} -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // @@protoc_insertion_point(namespace_scope)